diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2009-11-25 15:59:36 -0400 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2009-11-25 15:59:36 -0400 |
commit | d2335372b366d7fb0837983f6705fd9f4156f337 (patch) | |
tree | ff57cc715d0f30490407a6a9f323a14022e8d927 | |
parent | 5cce0bb1e32e659f0cd2c435ed81147563ce3169 (diff) | |
download | candlepin-d2335372b366d7fb0837983f6705fd9f4156f337.tar.gz candlepin-d2335372b366d7fb0837983f6705fd9f4156f337.tar.xz candlepin-d2335372b366d7fb0837983f6705fd9f4156f337.zip |
Fix a ProductTest.
-rw-r--r-- | proxy/code/src/org/fedoraproject/candlepin/model/test/ProductTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proxy/code/src/org/fedoraproject/candlepin/model/test/ProductTest.java b/proxy/code/src/org/fedoraproject/candlepin/model/test/ProductTest.java index f960098..2341f5b 100644 --- a/proxy/code/src/org/fedoraproject/candlepin/model/test/ProductTest.java +++ b/proxy/code/src/org/fedoraproject/candlepin/model/test/ProductTest.java @@ -84,7 +84,7 @@ public class ProductTest extends ModelTestFixture { assertEquals(2, result.getChildProducts().size()); } - @Test + @Test(expected = PersistenceException.class) public void childHasSingleParentOnly() { em.getTransaction().begin(); @@ -95,7 +95,7 @@ public class ProductTest extends ModelTestFixture { List objects = em.createQuery("from Product p").getResultList(); parent1.addChildProduct(child1); -// parent2.addChildProduct(child1); + parent2.addChildProduct(child1); // should cause the failure em.persist(child1); em.persist(parent1); |