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());
|
||||
}
|
||||
|
||||
@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() {
|
||||
|
|
Loading…
Reference in New Issue