Search in sources :

Example 1 with MyFailingCertificate

use of org.apache.harmony.security.tests.support.cert.MyFailingCertificate in project robovm by robovm.

the class CertificateTest method testWriteReplace2.

/**
     * This test just calls <code>writeReplace()</code> method<br>
     */
public final void testWriteReplace2() {
    MyCertificate c1 = new MyFailingCertificate("TEST_TYPE", testEncoding);
    try {
        c1.writeReplace();
        fail();
    } catch (ObjectStreamException expected) {
    }
}
Also used : MyCertificate(org.apache.harmony.security.tests.support.cert.MyCertificate) ObjectStreamException(java.io.ObjectStreamException) MyFailingCertificate(org.apache.harmony.security.tests.support.cert.MyFailingCertificate)

Aggregations

ObjectStreamException (java.io.ObjectStreamException)1 MyCertificate (org.apache.harmony.security.tests.support.cert.MyCertificate)1 MyFailingCertificate (org.apache.harmony.security.tests.support.cert.MyFailingCertificate)1