summaryrefslogtreecommitdiffstats
path: root/proxy/code/src/org/fedoraproject/candlepin/model/test/OwnerTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/code/src/org/fedoraproject/candlepin/model/test/OwnerTest.java')
-rw-r--r--proxy/code/src/org/fedoraproject/candlepin/model/test/OwnerTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/proxy/code/src/org/fedoraproject/candlepin/model/test/OwnerTest.java b/proxy/code/src/org/fedoraproject/candlepin/model/test/OwnerTest.java
index 98445ec..9e8df6c 100644
--- a/proxy/code/src/org/fedoraproject/candlepin/model/test/OwnerTest.java
+++ b/proxy/code/src/org/fedoraproject/candlepin/model/test/OwnerTest.java
@@ -48,7 +48,7 @@ public class OwnerTest extends DatabaseTestFixture {
@Test
public void testList() throws Exception {
- em.getTransaction().begin();
+ beginTransaction();
List<Owner> orgs = em.createQuery("select o from Owner as o")
.getResultList();
@@ -57,7 +57,7 @@ public class OwnerTest extends DatabaseTestFixture {
for (int i = 0; i < 10; i++) {
em.persist(new Owner("Corp " + i));
}
- em.getTransaction().commit();
+ commitTransaction();
orgs = em.createQuery("select o from Owner as o")
.getResultList();