This post is a list of 100 tips about Java and Testing tools. The tips are composed of the following tools and will be posted in this order:

  • JUnit
  • Selenium WebDriver
  • WireMock
  • TestNG
  • RestAssured

Every day I will post on my Twitter and LinkedIn account one tip for you.
This page is updated weekly.

1JUnit 5With JUnit5 you can parameterize your tests using a ValueSource
2Selenium WebSelenium WebDriver has a Grid-based on Docker images where you can distribute and/or parallelize your web tests
3WireMockYou can run WireMock in different modes: standalone, JUnit 4.x Rule, or through the WireMockServer class
4TestNGTestNG has an extensively Command Line Parameters to run your tests
5RestAssuredWith RestAssured you can configure it to return BigDecimal instead of float or double
6JUnitYou can use Composed Annotation to add more than one action for your tests, like the @Test and a filter using JUnit5
7Selenium WebDriverSelenium WebDriver needs a binary for the browser you will use
8WireMockYou can easily create a Mock Server with a few lines of code using WireMock
9TestNGYou can create Test Groups to easily filter your test by any category with TestNG
10RestAssuredWith RestAssured you can choose between #Jackson, #Jackson2, GSON or Johnzon to use the automatic serialization/deserialization
11JUnitWith JUnit5 you can use @DisplayName to add a custom name during the test execution instead of seeing the test method name.
12Selenium WebDriverYou can locate one or more elements using different locators in Selenium WebDriver
13WireMockWith WireMock you can apply different configurations like network and port bindings, HTTP, proxy, file location, gzip, cors, etc…
14TestNGYou can inject data into your tests using the @Parameter annotation in TestNG
15RestAssuredWith RestAssured you can validate your JSON Schema.
In this link, you can find an example and the additional library to use
16JUnitWith JUnit5 you can use Java 8 lambdas inside the assertions
17Selenium WebDriverYou can perform actions like click, type, and drag-and-drop in Selenium WebDriver
18WireMockYou can run WireMock standalone creating service virtualization for your necessity using the jar file or writing Java code
19TestNGWith TestNG, you can add dependency between tests
20RestAssuredWith RestAssured you can extract values from the JSON response using the JSON Path
21JUnitYou can use Assumptions on #JUnit5 to assume you are in the expected state/place, like on the dev environment
22Selenium WebDriverYou can manipulate the browser doing actions like navigation, back, forward, refresh and manage different windows in Selenium WebDriver
23WireMockYou can create a Stub using WireMock, adding priority, sending response headers, and specifying the response body to it
24TestNGYou can create tests dynamically using the @Factory annotation in TestNG
25RestAssuredWith RestAssured you can extract values from the XML response using the XML Path

Would like to follow me and see the tips daily? Just click on the social media below.

Would you like to have 5 specific examples?

You can download my eBook 5 Tools Java Developers Can Use To Deliver High-Quality Software.