use of java.security.Timestamp in project robovm by robovm.
the class TimestampTest method testTimestamp.
public void testTimestamp() {
try {
new Timestamp(null, cpath);
fail("null was accepted");
} catch (NullPointerException ex) {
/* ok */
}
try {
new Timestamp(now, null);
fail("null was accepted");
return;
} catch (NullPointerException ex) {
/* ok */
}
Timestamp timestamp = new Timestamp(now, cpath);
assertEquals("not expected value", now, timestamp.getTimestamp());
assertEquals("not expected cert path", cpath, timestamp.getSignerCertPath());
}
use of java.security.Timestamp in project robovm by robovm.
the class TimestampTest method testGetTimestamp.
public void testGetTimestamp() {
Timestamp t = new Timestamp(now, cpath);
assertEquals(now, t.getTimestamp());
assertNotSame(now, t.getTimestamp());
}
Aggregations