@Test public void testGetSelectPicker() { final HTMLElement element = mock(HTMLElement.class); final HTMLElement expectedSelect = mock(HTMLElement.class); doReturn(element).when(view).getElement(); when(element.querySelector("[data-field='type-select']")).thenReturn(expectedSelect); final Element actualSelect = view.getSelectPicker(); assertEquals(expectedSelect, actualSelect); }
Element getSelectPicker() { return getElement().querySelector("[data-field='type-select']"); }
DataTypeSelectView implements DataTypeSelect.View { Element getSelectPicker() { return getElement().querySelector("[data-field='type-select']"); } }
DataTypeSelectView implements DataTypeSelect.View { Element getSelectPicker() { return getElement().querySelector("[data-field='type-select']"); } @Inject  DataTypeSelectView(final HTMLDivElement typeText,
                              final HTMLSelectElement typeSelect,
                              final HTMLOptGroupElement typeSelectOptGroup,
                              final HTMLOptionElement typeSelectOption,
                              final HTMLOptGroupElement typeSelectStructureOptGroup,
                              final TranslationService translationService); }
DataTypeSelectView implements DataTypeSelect.View { Element getSelectPicker() { return getElement().querySelector("[data-field='type-select']"); } @Inject  DataTypeSelectView(final HTMLDivElement typeText,
                              final HTMLSelectElement typeSelect,
                              final HTMLOptGroupElement typeSelectOptGroup,
                              final HTMLOptionElement typeSelectOption,
                              final HTMLOptGroupElement typeSelectStructureOptGroup,
                              final TranslationService translationService); @Override void init(final DataTypeSelect presenter); @Override void setupDropdown(); @Override void enableEditMode(); @Override void disableEditMode(); @Override void setDataType(final DataType dataType); void onSelectChange(final JQuerySelectPickerEvent event); @Override String getValue(); }
DataTypeSelectView implements DataTypeSelect.View { Element getSelectPicker() { return getElement().querySelector("[data-field='type-select']"); } @Inject  DataTypeSelectView(final HTMLDivElement typeText,
                              final HTMLSelectElement typeSelect,
                              final HTMLOptGroupElement typeSelectOptGroup,
                              final HTMLOptionElement typeSelectOption,
                              final HTMLOptGroupElement typeSelectStructureOptGroup,
                              final TranslationService translationService); @Override void init(final DataTypeSelect presenter); @Override void setupDropdown(); @Override void enableEditMode(); @Override void disableEditMode(); @Override void setDataType(final DataType dataType); void onSelectChange(final JQuerySelectPickerEvent event); @Override String getValue();  }