Package org.metagrid.gatekeeper.node

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


        //
        // 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

                ).value()
            );

//
// Count the inner properties.
for (Property p : inner.properties())
    {
    log.debug("Inner [" + p.type() + "][" + p.value() + "]");
    }

//
View Full Code Here

    }

        //
        // Check we get a null property.
        assertNull(
            inner.properties().get(
                new URI("urn:test.newt")
                )
            );

        //
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.