javax.validation defines a number of Bean Validation Constraints for values of most commonly used types. In this post we’ll show how to use each of them!
Continue reading Bean Validation Constraintsjunit
In this article we present practical Bean Validation Unit Testing using JUnit. Testing this part is very simple, yet often neglected by many developers. Let’s fix that!
Continue reading Bean Validation Unit TestingJUnit Theories allow to generate test data using parameter suppliers. In this post we’re going to implement ParameterSupplier that produces Fibonacci numbers and as source of test data.
Continue reading JUnit Theories with homemade ParamaterSuppliersJUnit Theories comes parameter suppliers that can generate values for test parameters based on specified criteria. In this post we present a number of built-in parameter suppliers, ready for reuse!
Continue reading JUnit Theories with built-in ParamaterSuppliersJUnit Theories is advanced and experimental feature that allows to execute tests with selection of dynamically generated data. In this post we’re going to show how to provide input data using DataPoints.
Continue reading JUnit Theories with DataPointsJUnit comes with a bunch of rules, but sometimes writing own JUnit Custom Rules is useful. In the following tutorial we’re going to show to way to do that.
Continue reading JUnit Custom RulesJUnit Rules is a flexible mechanism to enhance tests by executing code around them. JUnit provides built-in rules and makes it very easy to write custom rules!
Continue reading JUnit Rules – code around testsHow to control JUnit test execution order? It’s not only possible, but also easy in recent versions of the most popular testing library!
Continue reading JUnit test execution orderJUnit Assume is a handy feature that allows developer to specify assumptions about execution environment and hence execute tests conditionally. It’s practical and easy to use.
Continue reading JUnit Assume – execute tests conditionallyJUnit Parameterized Tests are JUnit’s way to execute one test multiple times, but with different data sets. This is commonly known as data-driven testing.
Continue reading JUnit Parameterized tests