diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2009-11-05 11:40:20 -0400 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2009-11-05 11:40:20 -0400 |
commit | 292259cfdd08cf0e86e2598e06a956f010c2580e (patch) | |
tree | 101ae6b47b8c5f12bb97ed74aa569b123988c971 /proxy/code/src/org/fedoraproject/candlepin/resource/cert/test/CertTest.java | |
parent | 95da771375a35edfecf89117a12ea0f93f9b9535 (diff) | |
download | candlepin-292259cfdd08cf0e86e2598e06a956f010c2580e.tar.gz candlepin-292259cfdd08cf0e86e2598e06a956f010c2580e.tar.xz candlepin-292259cfdd08cf0e86e2598e06a956f010c2580e.zip |
Switch unit tests to junit4.
Diffstat (limited to 'proxy/code/src/org/fedoraproject/candlepin/resource/cert/test/CertTest.java')
-rw-r--r-- | proxy/code/src/org/fedoraproject/candlepin/resource/cert/test/CertTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/proxy/code/src/org/fedoraproject/candlepin/resource/cert/test/CertTest.java b/proxy/code/src/org/fedoraproject/candlepin/resource/cert/test/CertTest.java index f8992bb..9aff520 100644 --- a/proxy/code/src/org/fedoraproject/candlepin/resource/cert/test/CertTest.java +++ b/proxy/code/src/org/fedoraproject/candlepin/resource/cert/test/CertTest.java @@ -38,19 +38,21 @@ import java.security.spec.RSAPrivateCrtKeySpec; import java.security.spec.RSAPublicKeySpec; import java.util.Date; -import junit.framework.TestCase; +import org.junit.Test; /** * CertTest * @version $Rev$ */ -public class CertTest extends TestCase { +public class CertTest { + @Test public void testCertGenerator() { String cert = CertGenerator.getCertString(); System.out.println("Cert: " + cert); } + @Test public void testCertExample() throws Exception { Security.addProvider(new BouncyCastleProvider()); |