use of java.security.cert.CertStoreException in project robovm by robovm.
the class CertStoreExceptionTest method testCertStoreException06.
/**
* Test for <code>CertStoreException(String, Throwable)</code> constructor
* Assertion: constructs CertStoreException when <code>cause</code> is
* null <code>msg</code> is null
*/
public void testCertStoreException06() {
CertStoreException tE = new CertStoreException(null, null);
assertNull("getMessage() must return null", tE.getMessage());
assertNull("getCause() must return null", tE.getCause());
}
use of java.security.cert.CertStoreException in project robovm by robovm.
the class CertStoreExceptionTest method testCertStoreException05.
/**
* Test for <code>CertStoreException(Throwable)</code> constructor
* Assertion: constructs CertStoreException when <code>cause</code> is not
* null
*/
public void testCertStoreException05() {
CertStoreException tE = new CertStoreException(tCause);
if (tE.getMessage() != null) {
String toS = tCause.toString();
String getM = tE.getMessage();
assertTrue("getMessage() should contain ".concat(toS), (getM.indexOf(toS) != -1));
}
assertNotNull("getCause() must not return null", tE.getCause());
assertEquals("getCause() must return ".concat(tCause.toString()), tE.getCause(), tCause);
}
use of java.security.cert.CertStoreException in project robovm by robovm.
the class CertStoreExceptionTest method testCertStoreException01.
/**
* Test for <code>CertStoreException()</code> constructor Assertion:
* constructs CertStoreException with no detail message
*/
public void testCertStoreException01() {
CertStoreException tE = new CertStoreException();
assertNull("getMessage() must return null.", tE.getMessage());
assertNull("getCause() must return null", tE.getCause());
}
use of java.security.cert.CertStoreException in project robovm by robovm.
the class CertStoreExceptionTest method testCertStoreException08.
/**
* Test for <code>CertStoreException(String, Throwable)</code> constructor
* Assertion: constructs CertStoreException when <code>cause</code> is not
* null <code>msg</code> is null
*/
public void testCertStoreException08() {
CertStoreException tE = new CertStoreException(null, tCause);
if (tE.getMessage() != null) {
String toS = tCause.toString();
String getM = tE.getMessage();
assertTrue("getMessage() must should ".concat(toS), (getM.indexOf(toS) != -1));
}
assertNotNull("getCause() must not return null", tE.getCause());
assertEquals("getCause() must return ".concat(tCause.toString()), tE.getCause(), tCause);
}
use of java.security.cert.CertStoreException in project robovm by robovm.
the class CertStoreExceptionTest method testCertStoreException02.
/**
* Test for <code>CertStoreException(String)</code> constructor Assertion:
* constructs CertStoreException with detail message msg. Parameter
* <code>msg</code> is not null.
*/
public void testCertStoreException02() {
CertStoreException tE;
for (int i = 0; i < msgs.length; i++) {
tE = new CertStoreException(msgs[i]);
assertEquals("getMessage() must return: ".concat(msgs[i]), tE.getMessage(), msgs[i]);
assertNull("getCause() must return null", tE.getCause());
}
}
Aggregations