Example made in Java (Maven) with the objective to show how MapStruct can be used along with some JUnit tests.
Technologies used:
- Eclipse Mars.1 Release (4.5.1)
- WidFly 10 Final (latest version)
- H2 Database
- JUnit
- MapStruct Framework
- User has notes (as many as the user wants)
- A Note belong to an User
-
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</ </dependency>
-
<dependency> <groupId>org.mapstruct</groupId> <artifactId>mapstruct</artifactId> <version>1.0.0.CR2</version> </dependency>