Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Java: Spring Boot
(edit)
Revision as of 10:01, 22 June 2022
493 bytes added
,
10:01, 22 June 2022
m
→Dev Tools
Line 108:
Line 108:
*Develop server reloading on changes (pom.xml changes are not detected)
*Develop server reloading on changes (pom.xml changes are not detected)
+
+
<br />
+
+
== Unit tests ==
+
+
=== Add Maven dependencies for JUnit ===
+
<syntaxhighlight lang="xml">
+
....
+
<dependencies>
+
....
+
<dependency>
+
<groupId>org.junit.jupiter</groupId>
+
<artifactId>junit-jupiter</artifactId>
+
<version>5.8.2</version>
+
<scope>test</scope>
+
</dependency>
+
....
+
</dependencies>
+
....
+
</syntaxhighlight>
+
+
=== Package structure to create tests ===
+
[[File:Pstructjstest.png|left|thumb]]
+
+
+
+
+
+
+
+
+
==Example: Spring Boot with Data JPA and in memory database H2==
==Example: Spring Boot with Data JPA and in memory database H2==
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version