@Test public void testGetDescription() { when(translationService.getDefinitionSetDescription(eq("org.kie.workbench.common.stunner.core.definition.adapter.binding.BindableDefinitionSetAdapterImplTest"))) .thenReturn("defSetDescriptionValue"); String description = tested.getDescription(INSTANCE); assertEquals("defSetDescriptionValue", description); }
@Override public String getDescription(T pojo) { String description = translationService.getDefinitionSetDescription(getId(pojo)); return description != null && description.trim().length() > 0 ? description : getId(pojo); }
BindableDefinitionSetAdapterImpl implements BindableDefinitionSetAdapter<T> { @Override public String getDescription(T pojo) { String description = translationService.getDefinitionSetDescription(getId(pojo)); return description != null && description.trim().length() > 0 ? description : getId(pojo); } }
BindableDefinitionSetAdapterImpl implements BindableDefinitionSetAdapter<T> { @Override public String getDescription(T pojo) { String description = translationService.getDefinitionSetDescription(getId(pojo)); return description != null && description.trim().length() > 0 ? description : getId(pojo); } private  BindableDefinitionSetAdapterImpl(StunnerTranslationService translationService); }
BindableDefinitionSetAdapterImpl implements BindableDefinitionSetAdapter<T> { @Override public String getDescription(T pojo) { String description = translationService.getDefinitionSetDescription(getId(pojo)); return description != null && description.trim().length() > 0 ? description : getId(pojo); } private  BindableDefinitionSetAdapterImpl(StunnerTranslationService translationService); static BindableDefinitionSetAdapterImpl<Object> create(StunnerTranslationService translationService); @Override void setBindings(Class<?> type, DefinitionSetAdapterBindings bindings); @Override String getId(T pojo); @Override String getDomain(T pojo); @Override String getDescription(T pojo); @Override Set<String> getDefinitions(T pojo); @Override @SuppressWarnings("all") Class<? extends ElementFactory> getGraphFactoryType(T pojo); @Override Annotation getQualifier(T pojo); @Override Optional<String> getSvgNodeId(T pojo); @Override boolean accepts(Class<?> type); @Override int getPriority(); }
BindableDefinitionSetAdapterImpl implements BindableDefinitionSetAdapter<T> { @Override public String getDescription(T pojo) { String description = translationService.getDefinitionSetDescription(getId(pojo)); return description != null && description.trim().length() > 0 ? description : getId(pojo); } private  BindableDefinitionSetAdapterImpl(StunnerTranslationService translationService); static BindableDefinitionSetAdapterImpl<Object> create(StunnerTranslationService translationService); @Override void setBindings(Class<?> type, DefinitionSetAdapterBindings bindings); @Override String getId(T pojo); @Override String getDomain(T pojo); @Override String getDescription(T pojo); @Override Set<String> getDefinitions(T pojo); @Override @SuppressWarnings("all") Class<? extends ElementFactory> getGraphFactoryType(T pojo); @Override Annotation getQualifier(T pojo); @Override Optional<String> getSvgNodeId(T pojo); @Override boolean accepts(Class<?> type); @Override int getPriority();  }