@Test public void testDefunctConfigClass() throws Exception { TestMonitor monitor = new TestMonitor(); ConfigurationMetadata<?> metadata = ConfigurationMetadata.getConfigurationMetadata(DefunctConfigClass.class, monitor); Map<String, Set<String>> expectedAttributes = new HashMap<>(); expectedAttributes.put("Value", ImmutableSet.of("value")); verifyMetaData(metadata, DefunctConfigClass.class, null, false, expectedAttributes); monitor.assertNumberOfErrors(0); monitor.assertNumberOfWarnings(0); }
public static <T> ConfigurationMetadata<T> getConfigurationMetadata(Class<T> configClass) { return getConfigurationMetadata(configClass, Problems.NULL_MONITOR); }
ConfigurationMetadata { public static <T> ConfigurationMetadata<T> getConfigurationMetadata(Class<T> configClass) { return getConfigurationMetadata(configClass, Problems.NULL_MONITOR); } }
ConfigurationMetadata { public static <T> ConfigurationMetadata<T> getConfigurationMetadata(Class<T> configClass) { return getConfigurationMetadata(configClass, Problems.NULL_MONITOR); } private  ConfigurationMetadata(Class<T> configClass, Monitor monitor); }
ConfigurationMetadata { public static <T> ConfigurationMetadata<T> getConfigurationMetadata(Class<T> configClass) { return getConfigurationMetadata(configClass, Problems.NULL_MONITOR); } private  ConfigurationMetadata(Class<T> configClass, Monitor monitor); static ConfigurationMetadata<T> getValidConfigurationMetadata(Class<T> configClass); static ConfigurationMetadata<T> getConfigurationMetadata(Class<T> configClass); static boolean isConfigClass(Class<?> classz); Class<T> getConfigClass(); Constructor<T> getConstructor(); Map<String, AttributeMetadata> getAttributes(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static Method findAnnotatedMethod(Class<?> configClass, Class<? extends java.lang.annotation.Annotation> annotation, String methodName, Class<?>... paramTypes); }
ConfigurationMetadata { public static <T> ConfigurationMetadata<T> getConfigurationMetadata(Class<T> configClass) { return getConfigurationMetadata(configClass, Problems.NULL_MONITOR); } private  ConfigurationMetadata(Class<T> configClass, Monitor monitor); static ConfigurationMetadata<T> getValidConfigurationMetadata(Class<T> configClass); static ConfigurationMetadata<T> getConfigurationMetadata(Class<T> configClass); static boolean isConfigClass(Class<?> classz); Class<T> getConfigClass(); Constructor<T> getConstructor(); Map<String, AttributeMetadata> getAttributes(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static Method findAnnotatedMethod(Class<?> configClass, Class<? extends java.lang.annotation.Annotation> annotation, String methodName, Class<?>... paramTypes);  }