Changes

Jump to navigation Jump to search
493 bytes added ,  10:01, 22 June 2022
m
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==

Navigation menu