Fix the test method (#2491)

* Remove assertion before persist in test1

* Add back assertion after persist
This commit is contained in:
Buddhini Samarakkody 2017-08-24 07:41:01 +05:30 committed by Zeger Hendrikse
parent 15666e8ed4
commit 74e67d6ce9
1 changed files with 1 additions and 1 deletions

View File

@ -47,8 +47,8 @@ public class HibernateManyToManyAnnotationMainIntegrationTest {
Employee employee = new Employee(emp.split(" ")[0], emp.split(" ")[1]);
assertEquals(0, employee.getProjects().size());
employee.setProjects(projects);
assertNotNull(employee);
session.persist(employee);
assertNotNull(employee);
}
}