Examples of SimplePropertyMap


Examples of org.metagrid.gatekeeper.node.property.SimplePropertyMap

    public void testEmptySet()
    throws Exception
        {
        //
        // Create our PropertyMap (null node).
        final PropertyMap properties = new SimplePropertyMap(null);
        //
        // Create our reader.
        final XMLPropertiesReader reader = new XMLPropertiesReaderImpl(
            new XMLPropertyReaderImpl()
            );
        //
        // Parse the test XML.
        reader.read(
            new StringResource(
                  "<properties xmlns='urn:metagrid'>"
                + "</properties>"
                ).reader(),
            properties
            );
        //
        // Create the Iterator.
        Iterator<Property> iterator = properties.iterator();
        //
        // Check the set is empty.
        assertFalse(
            iterator.hasNext()
            );
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.