JPA Entities and the Serializable Interface - formatting

This commit is contained in:
Mladen Savic 2021-07-01 19:43:04 +02:00
parent 860605b3e9
commit ec09e1293f
1 changed files with 25 additions and 25 deletions

View File

@ -40,8 +40,8 @@ public class JPASerializableIntegrationTest {
assertEquals("johndoe", userDb.getEmail().getName());
}
@Test
public void givenAssociation_whenPersisted_thenMultipleAccountsWillBeFoundByEmail() {
@Test
public void givenAssociation_whenPersisted_thenMultipleAccountsWillBeFoundByEmail() {
UserId userId = new UserId();
userId.setName("John");
userId.setLastName("Doe");
@ -66,7 +66,7 @@ public void givenAssociation_whenPersisted_thenMultipleAccountsWillBeFoundByEmai
List userAccounts = entityManager.createQuery("select a from Account a join fetch a.user where a.user.email = :email")
.setParameter("email", email).getResultList();
assertEquals(2, userAccounts.size());
}
}
@After
public void tearDown() {