Journal
Benchmarking Java Logging Frameworks Without GuessworkLogging is often treated as a harmless diagnostic feature until a Java service reaches production traffic. A single request may produce several log events, and…Writing Tests for Java JPA Specifications and Criteria QueriesDynamic database filtering is useful when a single endpoint must support optional search fields, sorting, ranges and access rules. In a Spring Data JPA…Mocking Java Classloaders in Dynamic Loading TestsDynamic class loading sits behind many Java features that look simple from the outside: plugin discovery, JDBC drivers, application servers, scripting engines,…Testing Java Swing Interfaces With AssertJ SwingJava Swing applications still support many business-critical workflows, particularly in banking, logistics, healthcare, manufacturing and government…Using JUnit 5 Test Templates for Repeating Tests with VariationsA single unit test often checks one example, while real software must handle a family of related inputs. A postcode validator, REST endpoint, payment…How to Test Java Properties Files Across Locale ChangesTesting Java properties files and resource bundles with locale changes is more than checking whether a key exists. A bundle can load for en-AU while silently…Testing Java HTTP Clients with Unirest and MockServerTesting a Java HTTP client becomes misleading when unit tests stop at the service object and never exercise JSON encoding, headers, status handling, or…Integration testing Java message queues with embedded brokersIntegration testing for Java message queues should prove that a producer can place a correctly shaped message on a broker and that the intended consumer…How to Test Java Cryptography APIs with Sample Keys and CertificatesCryptography tests are easiest to trust when they use controlled keys, certificates and byte sequences. Java provides mature APIs through the Java Cryptography…Testing concurrency with Phaser, CyclicBarrier and CountDownLatchConcurrent code rarely fails simply because a thread cannot start. Defects usually emerge when workers meet at an unexpected moment: a consumer reads before a…