Below you will find pages that utilize the taxonomy term “java”
Posts
How to Randomize Tests in JUnit with Gradle
The ability to randomize the order of tests has always been a useful tool for diagnosing flaky tests as it exposes the interdependency between tests. However, until JUnit 5.8.0, you were only able to randomize the order of methods within a test class using MethodOrder$Random. Now you can also randomize the class order!
Lets setup version 5.8.0 of JUnit, and demonstrate how to run classes and methods randomly.
1. Setting up JUnit 5.
Posts
Adding GraphQL to Your Spring App: Made Easy
I am sure that you have heard about GraphQL. It is the latest pattern that everyone is talking about. I want to walk you through adding your first GraphQL Endpoint.
Before we begin, I am assuming that you already have a Java Spring application and you have already read the introduction to GraphQL. Just like your real application we are going to utilize code that is already written to add our new endpoint.