Methods Summary |
---|
public static void | main(java.lang.String[] args)
if (args.length == 0){
junit.textui.TestRunner.run(ValidPropertyTest.class);
} else {
junit.textui.TestRunner.run(makeSuite(args));
}
|
private static junit.framework.TestSuite | makeSuite(java.lang.String[] args)
final TestSuite ts = new TestSuite();
for (int i = 0; i < args.length; i++){
ts.addTest(new ValidPropertyTest(args[i]));
}
return ts;
|
private void | nyi()
fail("Not Yet Implemented");
|
protected void | setUp()
|
protected void | tearDown()
|
public void | testEmptyConstructor()
ValidProperty vp = new ValidProperty();
assertNull(vp.getName());
|
public void | testNameMutation()
ValidProperty vp = new ValidProperty("name", "value");
assertEquals("name", vp.getName());
assertEquals("value", vp.getValue());
vp.setName("foo");
assertEquals("foo", vp.getName());
assertEquals("value", vp.getValue());
|
public void | testSimpleConstructor()
ValidProperty vp = new ValidProperty("name", "value");
assertEquals("name", vp.getName());
assertEquals("value", vp.getValue());
|
public void | testValueMutation()
ValidProperty vp = new ValidProperty("name", "value");
assertEquals("name", vp.getName());
assertEquals("value", vp.getValue());
vp.setValue("foo");
assertEquals("foo", vp.getValue());
assertEquals("name", vp.getName());
|