Java Lobby Announcements

Subscribe to Java Lobby Announcements feed
Recent posts in Java on DZone.com
Updated: 12 hours 52 min ago

SpringOne2GX 2015 Replay: Get the Most Out of Testing With Spring 4.2

Wed, 2016-02-03 09:01

Join Sam Brannen and Nicolas Fränkel to discover what’s new in Spring Framework 4.2’s testing support and learn tips and best practices for testing modern, Spring-based applications. Sam Brannen is the Spring Test component lead and author of the Spring TestContext Framework, and Nicolas Fränkel is the author of the book “Integration Testing from the Trenches.”

In this session, Sam and Nicolas will cover the latest testing features in Core Spring, Spring Boot, and Spring Security. In addition to new features, they will also present insider tips and best practices on integration testing with suites in TestNG, database transactions, SQL script execution, granularity of context configuration files, optimum use of the context cache, a discussion on TestNG vs. JUnit, and much more.

Categories: Java

Dropwizard Part 3: Measuring Your Application Metrics

Wed, 2016-02-03 09:01

At some point in their lifetime, almost all applications need the ability to report key statistics; the latency of a certain method is fairly standard, but also internal application state as well as longer term averages and application health checks. One of the things that always surprised me was the lack of a standard library or way of doing these things in Java; my teams always ended up manually instrumenting the code and then either exposing information via a web page or JMX. There is always the inherent risk our instrumentation would slow down or break the application, it required maintaining and it always took longer to write than first expected.

As a result, I was really intrigued to discover Metrics, part of the Dropwizard libraries. This has been written by the Dropwizard team from the ground up to solve this standard problem in a simple way. It can be used completely separately to Dropwizard and is simple to add into the code base. Even better it comes with a variety of reporting methods out of the box, including console, JMX, and Grafana.

Categories: Java

Pages