JPA Entities and the Serializable Interface - formatting
This commit is contained in:
parent
860605b3e9
commit
ec09e1293f
|
@ -40,8 +40,8 @@ public class JPASerializableIntegrationTest {
|
||||||
assertEquals("johndoe", userDb.getEmail().getName());
|
assertEquals("johndoe", userDb.getEmail().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenAssociation_whenPersisted_thenMultipleAccountsWillBeFoundByEmail() {
|
public void givenAssociation_whenPersisted_thenMultipleAccountsWillBeFoundByEmail() {
|
||||||
UserId userId = new UserId();
|
UserId userId = new UserId();
|
||||||
userId.setName("John");
|
userId.setName("John");
|
||||||
userId.setLastName("Doe");
|
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")
|
List userAccounts = entityManager.createQuery("select a from Account a join fetch a.user where a.user.email = :email")
|
||||||
.setParameter("email", email).getResultList();
|
.setParameter("email", email).getResultList();
|
||||||
assertEquals(2, userAccounts.size());
|
assertEquals(2, userAccounts.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void tearDown() {
|
public void tearDown() {
|
||||||
|
|
Loading…
Reference in New Issue