@Test public void testGetDescription() { final String description = tested.getDescription(instance); assertEquals(FooTestSet.DESC, description); }
@Override public String getDescription(final T definitionSet) { try { return getAnnotatedFieldValue(definitionSet, Description.class); } catch (Exception e) { LOG.error("Error obtaining annotated category for DefinitionSet with id " + getId(definitionSet)); } return BindableAdapterUtils.toSimpleName(definitionSet); }
BackendDefinitionSetAdapter extends AbstractReflectDefinitionSetAdapter<T> implements DefinitionSetAdapter<T> { @Override public String getDescription(final T definitionSet) { try { return getAnnotatedFieldValue(definitionSet, Description.class); } catch (Exception e) { LOG.error("Error obtaining annotated category for DefinitionSet with id " + getId(definitionSet)); } return BindableAdapterUtils.toSimpleName(definitionSet); } }
BackendDefinitionSetAdapter extends AbstractReflectDefinitionSetAdapter<T> implements DefinitionSetAdapter<T> { @Override public String getDescription(final T definitionSet) { try { return getAnnotatedFieldValue(definitionSet, Description.class); } catch (Exception e) { LOG.error("Error obtaining annotated category for DefinitionSet with id " + getId(definitionSet)); } return BindableAdapterUtils.toSimpleName(definitionSet); } @Inject  BackendDefinitionSetAdapter(final BackendDefinitionAdapter annotatedDefinitionAdapter); }
BackendDefinitionSetAdapter extends AbstractReflectDefinitionSetAdapter<T> implements DefinitionSetAdapter<T> { @Override public String getDescription(final T definitionSet) { try { return getAnnotatedFieldValue(definitionSet, Description.class); } catch (Exception e) { LOG.error("Error obtaining annotated category for DefinitionSet with id " + getId(definitionSet)); } return BindableAdapterUtils.toSimpleName(definitionSet); } @Inject  BackendDefinitionSetAdapter(final BackendDefinitionAdapter annotatedDefinitionAdapter); @Override boolean accepts(final Class<?> pojo); @Override Class<? extends ElementFactory> getGraphFactoryType(final T definitionSet); @Override Annotation getQualifier(final T definitionSet); @Override String getDescription(final T definitionSet); @Override Set<String> getDefinitions(final T definitionSet); }
BackendDefinitionSetAdapter extends AbstractReflectDefinitionSetAdapter<T> implements DefinitionSetAdapter<T> { @Override public String getDescription(final T definitionSet) { try { return getAnnotatedFieldValue(definitionSet, Description.class); } catch (Exception e) { LOG.error("Error obtaining annotated category for DefinitionSet with id " + getId(definitionSet)); } return BindableAdapterUtils.toSimpleName(definitionSet); } @Inject  BackendDefinitionSetAdapter(final BackendDefinitionAdapter annotatedDefinitionAdapter); @Override boolean accepts(final Class<?> pojo); @Override Class<? extends ElementFactory> getGraphFactoryType(final T definitionSet); @Override Annotation getQualifier(final T definitionSet); @Override String getDescription(final T definitionSet); @Override Set<String> getDefinitions(final T definitionSet);  }