Search in sources :

Example 1 with MyFailingCertPath

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

the class CertPathTest method testWriteReplace_ObjectStreamException.

public final void testWriteReplace_ObjectStreamException() {
    try {
        MyFailingCertPath cp = new MyFailingCertPath(testEncoding);
        Object obj = cp.writeReplace();
        fail("expected ObjectStreamException");
    } catch (ObjectStreamException e) {
    // ok
    }
}
Also used : MyFailingCertPath(org.apache.harmony.security.tests.support.cert.MyFailingCertPath) ObjectStreamException(java.io.ObjectStreamException)

Aggregations

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