Skip to content

Commit e9d0569

Browse files
authored
Create readme.md
1 parent 1dc0bd1 commit e9d0569

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

testing-spring-boot-basics/readme.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Testing Spring Boot REST API using Mockito and MockMvc
2+
3+
The best way to confirm the reliability and correctness of software applications is to write tests that assert the desired behaviour of an application. This post covers how to perform unit and integration testing in Spring Boot.
4+
5+
The spring-boot-starter-teststarter dependency is required for writing the unit and integration tests in the Spring Boot application. The Spring Boot version 3.2.2 spring-boot-starter-test includes the following transitive dependencies.
6+
7+
- Jupiter JUnit5: The de facto standard for unit testing Java.
8+
- Jayway JsonPath: A popular Java library used for parsing and querying JSON documents. It is used for navigating through the structure of your JSON data and accessing specific values or elements.
9+
- Awaitility: Used for waiting for asynchronous operations to complete without introducing additional logic in your code.
10+
- Hamcrest: Hamcrest is used for writing expressive and readable assertions in unit tests. It provides a clear and concise way to express what you expect from your code, making your tests easier to understand and maintain.
11+
- Mockito: Java mocking framework used to create mock objects that simulate the behaviour of real objects without actually implementing their functionality. This makes it easier to isolate the code you're testing from external dependencies and write more focused and reliable tests.
12+
13+
Read [the full article here](https://stacktips.com/courses/spring-boot-for-beginners/testing-spring-boot-using-mockito-and-mockmvc)
14+
15+
### Related topics:
16+
17+
* [#spring-boot](https://stacktips.com/topics/spring-boot)
18+
* [#android](https://stacktips.com/topics/android)
19+
* [#java](https://stacktips.com/topics/java)
20+
* [#python](https://stacktips.com/topics/python)
21+
* [#spring](https://stacktips.com/topics/spring)
22+
* [#design-pattern](https://stacktips.com/topics/design-pattern)
23+
* [#git](https://stacktips.com/topics/git)
24+
* [#maven](https://stacktips.com/topics/maven)

0 commit comments

Comments
 (0)