[BAEL-1686] - Added integration testing
This commit is contained in:
committed by
José Carlos Valero Sánchez
parent
b3fd211763
commit
8a5ff707c5
@@ -25,13 +25,13 @@ public class Application {
|
||||
|
||||
@PostConstruct private void initializeData() {
|
||||
// Create John
|
||||
final Address johnsAddress = new Address(UUID.randomUUID().toString(), "Fake Street 1", "Fake country");
|
||||
final Address johnsAddress = new Address(UUID.randomUUID().toString(), "Fake Street 1", "Fake Country");
|
||||
addressRepository.save(johnsAddress);
|
||||
final Person john = new Person(UUID.randomUUID().toString(), "John", johnsAddress);
|
||||
personRepository.save(john);
|
||||
|
||||
// Create Lisa
|
||||
final Address lisasAddress = new Address(UUID.randomUUID().toString(), "Real Street 1", "Real country");
|
||||
final Address lisasAddress = new Address(UUID.randomUUID().toString(), "Real Street 1", "Real Country");
|
||||
addressRepository.save(lisasAddress);
|
||||
final Person lisa = new Person(UUID.randomUUID().toString(), "Lisa", lisasAddress);
|
||||
personRepository.save(lisa);
|
||||
|
||||
Reference in New Issue
Block a user