@Test public void setAndClearAnnotations() { data.set("croc", "aqua"); data.set("roo", "mars"); data.set("dingo", "bat"); assertEquals("incorrect property", "bat", data.value("dingo")); data.clear("dingo", "roo"); assertNull("incorrect property", data.value("dingo")); assertNull("incorrect property", data.value("root")); assertEquals("incorrect property", "aqua", data.value("croc")); assertEquals("incorrect properties", 1, data.keys().size()); }
@Test public void behaviour() { TestBehaviour behaviour = data.behaviour(TestBehaviour.class); assertTrue("incorrect behaviour", behaviour instanceof TestBehaviourImpl); }
@Test public void basics() { assertSame("incorrect type", ddc, data.driver()); assertTrue("incorrect toString", data.toString().contains("foo.bar")); }