@Test public void toStringShouldReturnHelpfulValue() { EarlyAccessFeature feature = new EarlyAccessFeature("shortName", "description", false); String result = feature.toString(); assertTrue(result.contains("shortName")); assertTrue(result.contains("description")); }
@Override public String toString() { return format("\"%s\" (%s)", name, description); }
EarlyAccessFeature { @Override public String toString() { return format("\"%s\" (%s)", name, description); } }
EarlyAccessFeature { @Override public String toString() { return format("\"%s\" (%s)", name, description); } EarlyAccessFeature(String name, String description, boolean enabledByDefault,
                              EarlyAccessFeature... impliedBy); }
EarlyAccessFeature { @Override public String toString() { return format("\"%s\" (%s)", name, description); } EarlyAccessFeature(String name, String description, boolean enabledByDefault,
                              EarlyAccessFeature... impliedBy); @SuppressWarnings({ "unchecked", "rawtypes" }) void assertEnabled(Properties configuration, Logger logger); @SuppressWarnings({ "unchecked", "rawtypes" }) boolean isEnabled(Properties configuration); void assertEnabled(Map<String, ?> configuration, Logger logger); boolean isEnabled(Map<String, ?> configuration); String getPropertyName(); @Override String toString(); }
EarlyAccessFeature { @Override public String toString() { return format("\"%s\" (%s)", name, description); } EarlyAccessFeature(String name, String description, boolean enabledByDefault,
                              EarlyAccessFeature... impliedBy); @SuppressWarnings({ "unchecked", "rawtypes" }) void assertEnabled(Properties configuration, Logger logger); @SuppressWarnings({ "unchecked", "rawtypes" }) boolean isEnabled(Properties configuration); void assertEnabled(Map<String, ?> configuration, Logger logger); boolean isEnabled(Map<String, ?> configuration); String getPropertyName(); @Override String toString();  }