220221222223224225226227228229230
); // // Check the OrangeNode weight. assertEquals( "0", node.properties().get( OrangeNode.WEIGHT_PROPERTY_URI ).value() ); //
238239240241242243244245246247248
); // // Check the OrangeNode weight. assertEquals( "1", node.properties().get( OrangeNode.WEIGHT_PROPERTY_URI ).value() ); //
256257258259260261262263264265266
); // // Check the AppleNode weight. assertEquals( "2", node.properties().get( AppleNode.WEIGHT_PROPERTY_URI ).value() ); //
274275276277278279280281282283284
); // // Check the AppleNode weight. assertEquals( "3", node.properties().get( AppleNode.WEIGHT_PROPERTY_URI ).value() ); // // Check we can set the modified date.
280281282283284285286287288289290
AppleNode.WEIGHT_PROPERTY_URI ).value() ); // // Check we can set the modified date. node.properties().set( FruitNode.MODIFIED_PROPERTY_URI, "2008-11-29T06:25:50.379+0000" ); //
295296297298299300301302303304305
PropertyException.class, new TestBlock() { public void run() { frog.properties().set( FruitNode.CREATED_PROPERTY_URI, "2008-11-29T06:25:50.379+0000" ); } }
7778798081828384858687
// // Check we can set the secret property. assertEquals( "egertvsg", inner.properties().set( new URI("urn:test.secret"), "egertvsg" ).value() );
8788899091929394959697
// // Check we can get the secret property. assertEquals( "egertvsg", inner.properties().get( new URI("urn:test.secret") ).value() ); //
96979899100101102103104105106
// // Check we can set the test properties. assertEquals( "green", inner.properties().set( new URI("urn:test.frog"), "green" ).value() );
106107108109110111112113114115116
// // Check we can get the test property. assertEquals( "green", inner.properties().get( new URI("urn:test.frog") ).value() ); //