super(name);
}
public void testConstructors() throws Exception
{
NameAndVersionSupport test = new NameAndVersionSupport();
assertNotNull(test.getName());
assertEquals(Version.DEFAULT_VERSION, test.getVersion());
test = new NameAndVersionSupport("test");
assertEquals("test", test.getName());
assertEquals(Version.DEFAULT_VERSION, test.getVersion());
test = new NameAndVersionSupport("test", "version");
assertEquals("test", test.getName());
assertEquals("version", test.getVersion());
try
{
fail("Should not be here for: " + new NameAndVersionSupport(null));
}
catch (Throwable t)
{
checkDeepThrowable(IllegalArgumentException.class, t);
}
try
{
fail("Should not be here for: " + new NameAndVersionSupport(null, "version"));
}
catch (Throwable t)
{
checkDeepThrowable(IllegalArgumentException.class, t);
}