public void testPatternInvalidInput() throws InvalidVersionSpecificationException
{
try
{
new Pattern(null);
fail("NullPointerException expected.");
}
catch(NullPointerException e){}
try
{
new Pattern("a:b:c:d:e:f:g");
fail("IllegalArgumentException expected.");
}
catch(IllegalArgumentException e){}
try
{
new Pattern("a::");
fail("IllegalArgumentException expected.");
}
catch(IllegalArgumentException e){}
try
{
Pattern p = new Pattern("*");
p.match(null);
fail("NullPointerException expected.");
}
catch(NullPointerException e){}
}