@Test public void testGetValue() throws Exception { List<InstanceConfig> instanceConfigs = InstanceConfigTest.getInstanceConfigs(); for (InstanceConfig instanceConfig : instanceConfigs) { List<PropertyConfig> propertyConfigs = instanceConfig.getProperties(); Assert.assertTrue(propertyConfigs.size() <= 2); Assert.assertTrue(propertyConfigs.get(0).getValue().startsWith("v1-")); if (propertyConfigs.size() == 2) { Assert.assertTrue(propertyConfigs.get(1).getValue().startsWith("v2-")); } } }
public String getValue() { return value; }
PropertyConfig { public String getValue() { return value; } }
PropertyConfig { public String getValue() { return value; }  }
PropertyConfig { public String getValue() { return value; }  String getKey(); String getValue(); }
PropertyConfig { public String getValue() { return value; }  String getKey(); String getValue();  }