@Test public void testGetDescription() { final String description = tested.getDescription(instance); assertEquals(FooTestBean.DESCRIPTION, description); }
@Override public String getDescription(final T definition) { try { return getAnnotatedFieldValue(definition, Description.class); } catch (Exception e) { LOG.error("Error obtaining annotated description for Definition with id " + getId(definition)); } return BindableAdapterUtils.toSimpleName(definition); }
BackendDefinitionAdapter extends AbstractReflectAdapter<T> implements DefinitionAdapter<T>,
                   HasInheritance { @Override public String getDescription(final T definition) { try { return getAnnotatedFieldValue(definition, Description.class); } catch (Exception e) { LOG.error("Error obtaining annotated description for Definition with id " + getId(definition)); } return BindableAdapterUtils.toSimpleName(definition); } }
BackendDefinitionAdapter extends AbstractReflectAdapter<T> implements DefinitionAdapter<T>,
                   HasInheritance { @Override public String getDescription(final T definition) { try { return getAnnotatedFieldValue(definition, Description.class); } catch (Exception e) { LOG.error("Error obtaining annotated description for Definition with id " + getId(definition)); } return BindableAdapterUtils.toSimpleName(definition); } @Inject  BackendDefinitionAdapter(); }
BackendDefinitionAdapter extends AbstractReflectAdapter<T> implements DefinitionAdapter<T>,
                   HasInheritance { @Override public String getDescription(final T definition) { try { return getAnnotatedFieldValue(definition, Description.class); } catch (Exception e) { LOG.error("Error obtaining annotated description for Definition with id " + getId(definition)); } return BindableAdapterUtils.toSimpleName(definition); } @Inject  BackendDefinitionAdapter(); @Override boolean accepts(Class<?> pojo); @Override DefinitionId getId(final T definition); @Override String[] getPropertyFields(final T pojo); @Override String getMetaPropertyField(final T pojo,
                                       final PropertyMetaTypes metaType); @Override String getCategory(final T definition); @Override String getTitle(final T definition); @Override String getDescription(final T definition); @Override @SuppressWarnings("all") String[] getLabels(final T definition); @Override Class<? extends ElementFactory> getGraphFactoryType(final T definition); static Class<? extends ElementFactory> getGraphFactory(final Class<?> type); @Override String getBaseType(final Class<?> type); @Override String[] getTypes(final String baseType); }
BackendDefinitionAdapter extends AbstractReflectAdapter<T> implements DefinitionAdapter<T>,
                   HasInheritance { @Override public String getDescription(final T definition) { try { return getAnnotatedFieldValue(definition, Description.class); } catch (Exception e) { LOG.error("Error obtaining annotated description for Definition with id " + getId(definition)); } return BindableAdapterUtils.toSimpleName(definition); } @Inject  BackendDefinitionAdapter(); @Override boolean accepts(Class<?> pojo); @Override DefinitionId getId(final T definition); @Override String[] getPropertyFields(final T pojo); @Override String getMetaPropertyField(final T pojo,
                                       final PropertyMetaTypes metaType); @Override String getCategory(final T definition); @Override String getTitle(final T definition); @Override String getDescription(final T definition); @Override @SuppressWarnings("all") String[] getLabels(final T definition); @Override Class<? extends ElementFactory> getGraphFactoryType(final T definition); static Class<? extends ElementFactory> getGraphFactory(final Class<?> type); @Override String getBaseType(final Class<?> type); @Override String[] getTypes(final String baseType);  }