Learn about the best practices for concurrency in Java to ensure your multi-threaded applications are efficient, synchronized, and error-free. Concurrency in Java is the ability of multiple threads to ...
Hamcrest is based on the concept of a matcher, which can be a very natural way of asserting whether or not the result of a test is in a desired state. If you have not used Hamcrest, examples in this ...
Learn how to write and validate unit tests with JUnit 5. This article shows you how to configure a Maven project for JUnit, write basic and parameterized unit tests, and use JUnit 5’s built-in ...
If you are a tester, you have probably heard about Behaviour-Driven Development, or BDD in short, and the debates around what it is, and how and what it should be used for. Regardless of what we think ...
In order to use LocalStack with Java, this project provides a simple JUnit runner and a JUnit 5 extension. Take a look at the example JUnit tests in src/test/java. By default, the JUnit Test Runner ...
A monthly overview of things you need to know as an architect or aspiring architect. Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with ...
A test fixture is a fixed state of a set of objects used as a baseline for running tests. The purpose of a test fixture is to ensure that there is a well known and fixed environment in which tests are ...