Set<String> packageNames = new HashSet<String>();
Map<String, Object> attributes = new HashMap<String, Object>();
try
{
new ImportDescription(null, attributes);
Assert.fail("Should have caught the null package names list");
}
catch (AssertionError donothing)
{
}
try
{
new ImportDescription(packageNames, null);
Assert.fail("Should have caught the null attributes map");
}
catch (AssertionError donothing)
{
}
packageNames.add("com.acme.detonator");
new ImportDescription(packageNames, attributes);
}