Skip to content

Commit 74e67d6

Browse files
buddhini81zhendrikse
authored andcommitted
Fix the test method (eugenp#2491)
* Remove assertion before persist in test1 * Add back assertion after persist
1 parent 15666e8 commit 74e67d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎spring-hibernate5/src/test/java/com/baeldung/hibernate/manytomany/HibernateManyToManyAnnotationMainIntegrationTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public void givenData_whenInsert_thenCreatesMtoMrelationship() {
4747
Employee employee = new Employee(emp.split(" ")[0], emp.split(" ")[1]);
4848
assertEquals(0, employee.getProjects().size());
4949
employee.setProjects(projects);
50-
assertNotNull(employee);
5150
session.persist(employee);
51+
assertNotNull(employee);
5252
}
5353
}
5454

0 commit comments

Comments
 (0)