@Test public void shouldDefaultToEnabled() { Properties configuration = new Properties(); EarlyAccessFeature feature = new EarlyAccessFeature("test", "test description", true); assertTrue(feature.isEnabled(configuration)); }
@SuppressWarnings({ "unchecked", "rawtypes" }) public boolean isEnabled(Properties configuration) { return isEnabled((Map) configuration); }
EarlyAccessFeature { @SuppressWarnings({ "unchecked", "rawtypes" }) public boolean isEnabled(Properties configuration) { return isEnabled((Map) configuration); } }
EarlyAccessFeature { @SuppressWarnings({ "unchecked", "rawtypes" }) public boolean isEnabled(Properties configuration) { return isEnabled((Map) configuration); } EarlyAccessFeature(String name, String description, boolean enabledByDefault,
                              EarlyAccessFeature... impliedBy); }
EarlyAccessFeature { @SuppressWarnings({ "unchecked", "rawtypes" }) public boolean isEnabled(Properties configuration) { return isEnabled((Map) configuration); } 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 { @SuppressWarnings({ "unchecked", "rawtypes" }) public boolean isEnabled(Properties configuration) { return isEnabled((Map) configuration); } 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();  }