@Test (expectedExceptions = IllegalArgumentException.class) public void testBadConfig() { config.setComponents(ImmutableList.of("housekeeper", "invalid")); }
public void setComponents(Collection<String> components) { if (components == null || components.isEmpty()) { this.components = DEFAULT; } else { this.components = Component.fromStrings(components); } }
StatusConfig { public void setComponents(Collection<String> components) { if (components == null || components.isEmpty()) { this.components = DEFAULT; } else { this.components = Component.fromStrings(components); } } }
StatusConfig { public void setComponents(Collection<String> components) { if (components == null || components.isEmpty()) { this.components = DEFAULT; } else { this.components = Component.fromStrings(components); } }  }
StatusConfig { public void setComponents(Collection<String> components) { if (components == null || components.isEmpty()) { this.components = DEFAULT; } else { this.components = Component.fromStrings(components); } }  Set<Component> getComponents(); void setComponents(Collection<String> components); }
StatusConfig { public void setComponents(Collection<String> components) { if (components == null || components.isEmpty()) { this.components = DEFAULT; } else { this.components = Component.fromStrings(components); } }  Set<Component> getComponents(); void setComponents(Collection<String> components);  }