Hamcrest
spring-boot-testing-data-patterns
Hamcrest | spring-boot-testing-data-patterns | |
---|---|---|
1 | 1 | |
2,084 | 8 | |
-0.1% | - | |
0.0 | 0.0 | |
7 months ago | over 2 years ago | |
Java | Java | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Hamcrest
-
Spring Boot + JPA — Clear Tests
Hamcrest is an assertion library that helps to build a declarative pipeline of matchers. For example, that's how posts count can be validated.
spring-boot-testing-data-patterns
-
Spring Boot + JPA — Clear Tests
The implementation details have been omitted for brevity because it's not the topic of the article. You can find the complete working solution in the repository.
What are some alternatives?
AssertJ - AssertJ is a library providing easy to use rich typed assertions
Truth - Fluent assertions for Java and Android
TestNG - TestNG testing framework
JSONAssert - Write JSON unit tests in less code. Great for testing REST interfaces.
Cucumber - Cucumber for the JVM
Mockito - Most popular Mocking framework for unit tests written in Java
JUnit - A programmer-oriented testing framework for Java.
REST Assured - Java DSL for easy testing of REST services
Awaitility - Awaitility is a small Java DSL for synchronizing asynchronous operations
Lamdba Behave - A modern testing and behavioural specification framework for Java 8
PowerMock - PowerMock is a Java framework that allows you to unit test code normally regarded as untestable.
Gatling - Modern Load Testing as Code