@Test public void testGetLabel() { doReturn("A").when(translationService).format(any()); final String label = kieEnumSelectElement.getLabel(TestEnum.FOO); assertEquals("A", label); assertEquals("A", label); }
String getLabel(final T e) { return translationService.format(e.name()); }
KieEnumSelectElement implements IsElement { String getLabel(final T e) { return translationService.format(e.name()); } }
KieEnumSelectElement implements IsElement { String getLabel(final T e) { return translationService.format(e.name()); } @Inject  KieEnumSelectElement(final View view,
                                final KieSelectElement kieSelectElement,
                                final TranslationService translationService); }
KieEnumSelectElement implements IsElement { String getLabel(final T e) { return translationService.format(e.name()); } @Inject  KieEnumSelectElement(final View view,
                                final KieSelectElement kieSelectElement,
                                final TranslationService translationService); @PostConstruct void init(); @SuppressWarnings("unchecked") void setup(final T[] values,
                      final T initialValue,
                      final Consumer<T> onChange); T getValue(); @Override HTMLElement getElement(); }
KieEnumSelectElement implements IsElement { String getLabel(final T e) { return translationService.format(e.name()); } @Inject  KieEnumSelectElement(final View view,
                                final KieSelectElement kieSelectElement,
                                final TranslationService translationService); @PostConstruct void init(); @SuppressWarnings("unchecked") void setup(final T[] values,
                      final T initialValue,
                      final Consumer<T> onChange); T getValue(); @Override HTMLElement getElement();  }