added main method.
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
+import junit.framework.Test;
import junit.framework.TestCase;
+import junit.framework.TestSuite;
import org.bouncycastle.jcajce.interfaces.XDHPrivateKey;
import org.bouncycastle.jcajce.interfaces.XDHPublicKey;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
@@ -137,4 +139,15 @@ private void keyFactoryCheck(KeyPair kp)
assertTrue(
privateKey instanceof XECPrivateKey);
}
+
+ public static void main(String args[])
+ {
+ junit.textui.TestRunner.run(XDHKeyTest.class);
+ }
+
+ public static Test suite()
+ throws Exception
+ {
+ return new TestSuite(XDHKeyTest.class);
+ }
}
