This commit is contained in:
Keith Donald
2009-04-16 22:21:17 +00:00
parent 28531fe661
commit eedff0448f

View File

@@ -135,4 +135,18 @@ public class AbstractModelTests extends TestCase {
LinkedList result = obj.merge(child, parent);
assertEquals(null, result);
}
public void testCopyModel() {
AttributeModel model = new AttributeModel("foo", "bar");
FlowModel m = new FlowModel();
AttributeModel copy = (AttributeModel) m.copy(model);
assertEquals("foo", copy.getName());
assertEquals("bar", copy.getValue());
}
public void testCopyModelNull() {
FlowModel m = new FlowModel();
AttributeModel copy = (AttributeModel) m.copy(null);
assertNull(copy);
}
}