Fix and improve Javadoc in spring-orm
See gh-28796
This commit is contained in:
@@ -119,7 +119,7 @@ public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEnt
|
||||
|
||||
doInstantiateAndSave(em);
|
||||
setComplete();
|
||||
endTransaction(); // Should rollback
|
||||
endTransaction(); // Should roll back
|
||||
assertThat(countRowsInTable(em, "person")).as("Tx must have committed back").isEqualTo(1);
|
||||
|
||||
// Now clean up the database
|
||||
@@ -139,7 +139,7 @@ public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEnt
|
||||
EntityManager em = entityManagerFactory.createEntityManager();
|
||||
em.joinTransaction();
|
||||
doInstantiateAndSave(em);
|
||||
endTransaction(); // Should rollback
|
||||
endTransaction(); // Should roll back
|
||||
assertThat(countRowsInTable(em, "person")).as("Tx must have been rolled back").isEqualTo(0);
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEnt
|
||||
doInstantiateAndSave(em);
|
||||
|
||||
setComplete();
|
||||
endTransaction(); // Should rollback
|
||||
endTransaction(); // Should roll back
|
||||
assertThat(countRowsInTable(em, "person")).as("Tx must have committed back").isEqualTo(1);
|
||||
|
||||
// Now clean up the database
|
||||
|
||||
@@ -139,7 +139,7 @@ public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntit
|
||||
|
||||
doInstantiateAndSave(em);
|
||||
setComplete();
|
||||
endTransaction(); // Should rollback
|
||||
endTransaction(); // Should roll back
|
||||
assertThat(countRowsInTable(em, "person")).as("Tx must have committed back").isEqualTo(1);
|
||||
|
||||
// Now clean up the database
|
||||
@@ -150,7 +150,7 @@ public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntit
|
||||
public void testRollbackOccurs() {
|
||||
EntityManager em = createContainerManagedEntityManager();
|
||||
doInstantiateAndSave(em);
|
||||
endTransaction(); // Should rollback
|
||||
endTransaction(); // Should roll back
|
||||
assertThat(countRowsInTable(em, "person")).as("Tx must have been rolled back").isEqualTo(0);
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntit
|
||||
EntityManager em = createContainerManagedEntityManager();
|
||||
doInstantiateAndSave(em);
|
||||
setComplete();
|
||||
endTransaction(); // Should rollback
|
||||
endTransaction(); // Should roll back
|
||||
assertThat(countRowsInTable(em, "person")).as("Tx must have committed back").isEqualTo(1);
|
||||
|
||||
// Now clean up the database
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.springframework.beans.testfixture.beans.TestBean;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
|
||||
/**
|
||||
* Simple JavaBean domain object representing an person.
|
||||
* Simple JavaBean domain object representing a person.
|
||||
*
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user