Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.25 KB

File metadata and controls

22 lines (15 loc) · 1.25 KB

Testing Jakarta EE applications

Generally, in a Jakarta EE application, there are some tools can be used for testing Jakarta EE components.

  • Use JUnit or TestNG to test simple POJOs.
  • Use Mockito like mock framework to isolate the dependencies of a component in tests.
  • Test Jakarta EE components in a real world environment with JBoss Arquillian.

Besides, there are some existing extensions to help for improving testing productivity.

  • AssertJ includes a collection of fluent assertions.
  • RestAssured provides BDD like behaviors for testing RESTful APIs.
  • JsonPath provides XPath like query for JSON.
  • awaitility provides assertions for async invocation.

In this post, we will focus on testing Jakarta EE components on the following Jakarta EE 8 compatible application servers with JBoss Arquillian.