@Test public void testGetProperties() throws Exception { List<InstanceConfig> instances = getInstanceConfigs(); Assert.assertEquals(2, instances.size()); List<PropertyConfig> properties = instances.get(0).getProperties(); Assert.assertEquals(2, properties.size()); properties = instances.get(1).getProperties(); Assert.assertEquals(1, properties.size()); instances = getInstanceConfigs(xml_no_properties); Assert.assertEquals(1, instances.size()); properties = instances.get(0).getProperties(); Assert.assertNotNull(properties); Assert.assertEquals(0, properties.size()); }
public List<PropertyConfig> getProperties() { return properties == null ? Collections.<PropertyConfig>emptyList() : properties; }
InstanceConfig { public List<PropertyConfig> getProperties() { return properties == null ? Collections.<PropertyConfig>emptyList() : properties; } }
InstanceConfig { public List<PropertyConfig> getProperties() { return properties == null ? Collections.<PropertyConfig>emptyList() : properties; }  }
InstanceConfig { public List<PropertyConfig> getProperties() { return properties == null ? Collections.<PropertyConfig>emptyList() : properties; }  String getName(); String getLabel(); String getDescription(); boolean isVisible(); String getIcon(); String getIcon64(); List<PropertyConfig> getProperties(); }
InstanceConfig { public List<PropertyConfig> getProperties() { return properties == null ? Collections.<PropertyConfig>emptyList() : properties; }  String getName(); String getLabel(); String getDescription(); boolean isVisible(); String getIcon(); String getIcon64(); List<PropertyConfig> getProperties();  }