use of java.security.cert.CertificateNotYetValidException in project j2objc by google.
the class CertificateNotYetValidExceptionTest method testCertificateNotYetValidException01.
/**
* Test for <code>CertificateNotYetValidException()</code> constructor
* Assertion: constructs CertificateNotYetValidException with no detail
* message
*/
public void testCertificateNotYetValidException01() {
CertificateNotYetValidException tE = new CertificateNotYetValidException();
assertNull("getMessage() must return null.", tE.getMessage());
assertNull("getCause() must return null", tE.getCause());
}
use of java.security.cert.CertificateNotYetValidException in project j2objc by google.
the class CertificateNotYetValidExceptionTest method testCertificateNotYetValidException02.
/**
* Test for <code>CertificateNotYetValidException(String)</code>
* constructor Assertion: constructs CertificateNotYetValidException with
* detail message msg. Parameter <code>msg</code> is not null.
*/
public void testCertificateNotYetValidException02() {
CertificateNotYetValidException tE;
for (int i = 0; i < msgs.length; i++) {
tE = new CertificateNotYetValidException(msgs[i]);
assertEquals("getMessage() must return: ".concat(msgs[i]), tE.getMessage(), msgs[i]);
assertNull("getCause() must return null", tE.getCause());
}
}
Aggregations