diff options
Diffstat (limited to 'proxy/code/src/org/fedoraproject/candlepin/model/test/CertificateTest.java')
-rw-r--r-- | proxy/code/src/org/fedoraproject/candlepin/model/test/CertificateTest.java | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/proxy/code/src/org/fedoraproject/candlepin/model/test/CertificateTest.java b/proxy/code/src/org/fedoraproject/candlepin/model/test/CertificateTest.java new file mode 100644 index 0000000..d0744c2 --- /dev/null +++ b/proxy/code/src/org/fedoraproject/candlepin/model/test/CertificateTest.java @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2009 Red Hat, Inc. + * + * This software is licensed to you under the GNU General Public License, + * version 2 (GPLv2). There is NO WARRANTY for this software, express or + * implied, including the implied warranties of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 + * along with this software; if not, see + * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. + * + * Red Hat trademarks are not licensed under GPLv2. No permission is + * granted to use or replicate Red Hat trademarks that are incorporated + * in this software or its documentation. + */ + + + +package org.fedoraproject.candlepin.model.test; + +import org.fedoraproject.candlepin.test.DatabaseTestFixture; +import org.fedoraproject.candlepin.model.Owner; +import org.fedoraproject.candlepin.model.Certificate; + +import org.fedoraproject.candlepin.test.DatabaseTestFixture; +import org.fedoraproject.candlepin.test.TestUtil; +import org.junit.Before; +import static org.junit.Assert.*; +import org.junit.Before; +import org.junit.Test; + + +public class CertificateTest extends DatabaseTestFixture { + + @Before + public void setUpTestObjects() { + + String ownerName = "Example Corporation"; + Owner owner = new Owner(ownerName); + + String cert = "This is not actually a certificate. No entitlements for you!"; + + Certificate certificate = new Certificate(cert, owner); + beginTransaction(); + em.persist(owner); + em.persist(certificate); + commitTransaction(); + } + + + @Test + public void testGetCertificate() { +// Certificate newCertificate = new Certificate(); + + // doesn't actually do anything yet + + } +} + |