Package org.metagrid.gatekeeper.node

Examples of org.metagrid.gatekeeper.node.Node.properties()


            );
        //
        // Check the OrangeNode weight.
        assertEquals(
            "0",
            node.properties().get(
                OrangeNode.WEIGHT_PROPERTY_URI
                ).value()
            );

        //
View Full Code Here


            );
        //
        // Check the OrangeNode weight.
        assertEquals(
            "1",
            node.properties().get(
                OrangeNode.WEIGHT_PROPERTY_URI
                ).value()
            );

        //
View Full Code Here

            );
        //
        // Check the AppleNode weight.
        assertEquals(
            "2",
            node.properties().get(
                AppleNode.WEIGHT_PROPERTY_URI
                ).value()
            );

        //
View Full Code Here

            );
        //
        // Check the AppleNode weight.
        assertEquals(
            "3",
            node.properties().get(
                AppleNode.WEIGHT_PROPERTY_URI
                ).value()
            );
        //
        // Check we can set the modified date.
View Full Code Here

                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"
            );

        //
View Full Code Here

            PropertyException.class,
            new TestBlock()
                {
                public void run()
                    {
                    frog.properties().set(
                        FruitNode.CREATED_PROPERTY_URI,
                        "2008-11-29T06:25:50.379+0000"
                        );
                    }
                }
View Full Code Here

        //
        // Check we can set the secret property.
        assertEquals(
            "egertvsg",
            inner.properties().set(
                new URI("urn:test.secret"),
                "egertvsg"
                ).value()
            );
View Full Code Here

        //
        // Check we can get the secret property.
        assertEquals(
            "egertvsg",
            inner.properties().get(
                new URI("urn:test.secret")
                ).value()
            );

        //
View Full Code Here

        //
        // Check we can set the test properties.
        assertEquals(
            "green",
            inner.properties().set(
                new URI("urn:test.frog"),
                "green"
                ).value()
            );
View Full Code Here

        //
        // Check we can get the test property.
        assertEquals(
            "green",
            inner.properties().get(
                new URI("urn:test.frog")
                ).value()
            );

        //
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.