use of java.security.cert.X509CRLSelector in project j2objc by google.
the class X509CRLSelectorTest method test_setIssuerNamesLjava_util_Collection01.
/**
* setIssuerNames(Collection <?> names)
*/
public void test_setIssuerNamesLjava_util_Collection01() throws IOException {
// Regression for HARMONY-737
X509CRLSelector selector = new X509CRLSelector();
selector.setIssuerNames(new TreeSet<Comparable>() {
private static final long serialVersionUID = 6009545505321092498L;
public Iterator<Comparable> iterator() {
return null;
}
});
}
use of java.security.cert.X509CRLSelector in project j2objc by google.
the class X509CRLSelectorTest method test_addIssuerNameLjava_lang_String02.
/**
* java.security.cert.X509CRLSelector#addIssuerName(java.lang.String)
*/
public void test_addIssuerNameLjava_lang_String02() throws IOException {
// Regression for HARMONY-736
X509CRLSelector selector = new X509CRLSelector();
// no exception for null
selector.addIssuerName((String) null);
}
use of java.security.cert.X509CRLSelector in project j2objc by google.
the class X509CRLSelectorTest method test_addIssuerName$B_3.
/**
* java.security.cert.X509CRLSelector#addIssuerName(byte[])
*/
public void test_addIssuerName$B_3() throws Exception {
// Regression for HARMONY-465
X509CRLSelector obj = new X509CRLSelector();
try {
obj.addIssuerName(new byte[] { (byte) 2, (byte) 3, (byte) 4 });
fail("IOException expected");
} catch (IOException e) {
// expected
}
}
Aggregations