Fix the test method (#2491)
* Remove assertion before persist in test1 * Add back assertion after persist
This commit is contained in:
parent
15666e8ed4
commit
74e67d6ce9
|
@ -47,8 +47,8 @@ public class HibernateManyToManyAnnotationMainIntegrationTest {
|
||||||
Employee employee = new Employee(emp.split(" ")[0], emp.split(" ")[1]);
|
Employee employee = new Employee(emp.split(" ")[0], emp.split(" ")[1]);
|
||||||
assertEquals(0, employee.getProjects().size());
|
assertEquals(0, employee.getProjects().size());
|
||||||
employee.setProjects(projects);
|
employee.setProjects(projects);
|
||||||
assertNotNull(employee);
|
|
||||||
session.persist(employee);
|
session.persist(employee);
|
||||||
|
assertNotNull(employee);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue