* This test case verifies the default values that will be used when missing from
* the timestamp-verification element.
*/
public void testLoadEmptyTimestampVerification() throws Exception
{
WSSecurityConfiguration config = load("jboss-wsse-empty-tv.xml");
assertNotNull("TimestampVerification Missing", config.getTimestampVerification());
TimestampVerification tv = config.getTimestampVerification();
assertEquals("Expected 'createdTolerance' to be '0'", 0, tv.getCreatedTolerance());
assertTrue("Expected 'warnCreated' to default to 'true'", tv.isWarnCreated());
assertEquals("Expected 'expiresTolerance' to be '0'", 0, tv.getExpiresTolerance());
assertTrue("Expected 'warnExpires' to default to 'true'", tv.isWarnExpires());
}