Package com.sonyericsson.hudson.plugins.metadata.model

Examples of com.sonyericsson.hudson.plugins.metadata.model.MetadataNodeProperty


            }
            DescribableList<NodeProperty<?>, NodePropertyDescriptor> properties = theNode.getNodeProperties();
            if (properties == null) {
                throw new NoMetadataException("The node " + node + " has no associated properties.");
            }
            MetadataNodeProperty property = properties.get(MetadataNodeProperty.class);
            if (property != null) {
                container = property;
            } else {
                if (createContainer) {
                    container = MetadataNodeProperty.MetadataNodePropertyDescriptor.instanceFor(theNode);
View Full Code Here


        Hudson hudson = MockUtils.mockHudson();
        Node node = mock(Node.class);
        when(hudson.getNode("theNode")).thenReturn(node);
        DescribableList describableList = mock(DescribableList.class);
        when(node.getNodeProperties()).thenReturn(describableList);
        MetadataNodeProperty property = mock(MetadataNodeProperty.class);
        when(describableList.get(MetadataNodeProperty.class)).thenReturn(property);
        MetadataParent container = CliUtils.getContainer("theNode", null, null, false);
        assertNotNull(container);
        assertSame(property, container);
    }
View Full Code Here

TOP

Related Classes of com.sonyericsson.hudson.plugins.metadata.model.MetadataNodeProperty

Copyright © 2018 www.massapicom. 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.