133134135136137138139140141142143
new TestBlock() { public void run() throws Exception { outer.properties().get( new URI("urn:test.frog") ); } } );
147148149150151152153154155156157
new TestBlock() { public void run() throws Exception { outer.properties().get( new URI("urn:test.toad") ); } } );
166167168169170171172173174175176
// // Check we can get the frog property. assertEquals( "green", outer.properties().get( new URI("urn:test.frog") ).value() ); //
181182183184185186187188189190191
{ public void run() throws Exception { try { outer.properties().get( new URI("urn:test.toad") ); } catch (ProtectedException ouch) {
218219220221222223224225226227228
// // Check we can set the toad property. assertEquals( "brown", outer.properties().set( new URI("urn:test.toad"), "brown" ).value() );
233234235236237238239240241242243
log.debug("Inner [" + p.type() + "][" + p.value() + "]"); } // // Count the outer properties. for (Property p : outer.properties()) { log.debug("Outer [" + p.type() + "][" + p.value() + "]"); } //
257258259260261262263264265266267
public void run() throws Exception { try { assertNull( outer.properties().get( new URI("urn:test.newt") ) ); } catch (ProtectedException ouch)
289290291292293294295296297298299
); // // Check we get a null property. assertNull( outer.properties().get( new URI("urn:test.newt") ) ); /*
379380381382383384385386387388389
// // Check the created node properties. assertEquals( "0", created.properties().get( CountedNodeServer.SERIAL_PROPERTY_URI ).value() ); log.debug("");
400401402403404405406407408409410
// // Check the selected node properties. assertEquals( "1", selected.properties().get( CountedNodeServer.SERIAL_PROPERTY_URI ).value() ); }