@Test
public void testGeneralizedTimeSyntaxCheckerTestErrorCase()
{
try
{
new GeneralizedTime( "20060005184527Z" );
fail( "Expected ParseException" );
}
catch ( ParseException pe )
{
// expected
}
try
{
new GeneralizedTime( "20061305184527Z" );
fail( "Expected ParseException" );
}
catch ( ParseException pe )
{
// expected
}
try
{
new GeneralizedTime( "20062205184527Z" );
fail( "Expected ParseException" );
}
catch ( ParseException pe )
{
// expected
}
try
{
new GeneralizedTime( "20061200184527Z" );
fail( "Expected ParseException" );
}
catch ( ParseException pe )
{
// expected
}
try
{
new GeneralizedTime( "20061235184527Z" );
fail( "Expected ParseException" );
}
catch ( ParseException pe )
{
// expected
}
try
{
new GeneralizedTime( "20061205604527Z" );
fail( "Expected ParseException" );
}
catch ( ParseException pe )
{
// expected
}
try
{
new GeneralizedTime( "20061205186027Z" );
fail( "Expected ParseException" );
}
catch ( ParseException pe )
{
// expected
}
try
{
new GeneralizedTime( "20061205184561Z" );
fail( "Expected ParseException" );
}
catch ( ParseException pe )
{
// expected
}
try
{
new GeneralizedTime( "20061205184527Z+" );
fail( "Expected ParseException" );
}
catch ( ParseException pe )
{
// expected
}
try
{
new GeneralizedTime( "20061205184527+2400" );
fail( "Expected ParseException" );
}
catch ( ParseException pe )
{
// expected
}
try
{
new GeneralizedTime( "20061205184527+9900" );
fail( "Expected ParseException" );
}
catch ( ParseException pe )
{
// expected
}
try
{
new GeneralizedTime( "20061205184527+1260" );
fail( "Expected ParseException" );
}
catch ( ParseException pe )
{
// expected
}
try
{
new GeneralizedTime( "20061205184527+1299" );
fail( "Expected ParseException" );
}
catch ( ParseException pe )
{
// expected