use of java.security.cert.CertPath in project robovm by robovm.
the class CertPathTest method testGetEncodings.
/**
* This test just calls <code>getEncodings()</code> method<br>
*/
public final void testGetEncodings() {
CertPath cp1 = new MyCertPath(testEncoding);
cp1.getEncodings();
}
use of java.security.cert.CertPath in project robovm by robovm.
the class CertPathTest method testHashCodeEqualsObject.
/**
* Test for <code>hashCode()</code> method<br>
* Assertion: hash code of equal objects should be the same
*/
public final void testHashCodeEqualsObject() {
CertPath cp1 = new MyCertPath(testEncoding);
CertPath cp2 = new MyCertPath(testEncoding);
assertTrue((cp1.hashCode() == cp2.hashCode()) && cp1.equals(cp2));
}
use of java.security.cert.CertPath in project robovm by robovm.
the class CertPathTest method testSerializationCompatibility.
/**
* serialization/deserialization compatibility with RI.
*/
public void testSerializationCompatibility() throws Exception {
TestUtils.initCertPathSSCertChain();
CertPath certPath = TestUtils.buildCertPathSSCertChain();
SerializationTest.verifyGolden(this, certPath);
}
use of java.security.cert.CertPath in project robovm by robovm.
the class CertPathTest method testEqualsObject02.
/**
* Test for <code>equals(Object)</code> method<br>
* Assertion: object equals to other <code>CertPath</code>
* instance with the same state
*/
public final void testEqualsObject02() {
CertPath cp1 = new MyCertPath(testEncoding);
CertPath cp2 = new MyCertPath(testEncoding);
assertTrue(cp1.equals(cp2) && cp2.equals(cp1));
}
use of java.security.cert.CertPath in project robovm by robovm.
the class CertPathTest method testGetEncoded.
/**
* This test just calls <code>getEncoded()</code> method<br>
*
* @throws CertificateEncodingException
*/
public final void testGetEncoded() throws CertificateEncodingException {
CertPath cp1 = new MyCertPath(testEncoding);
cp1.getEncoded();
}
Aggregations