@Test public void testGetSelectPicker() { final HTMLElement expectedSelect = mock(HTMLElement.class); when(body.querySelector(".selectpicker")).thenReturn(expectedSelect); final Element actualSelect = view.getSelectPicker(); assertEquals(expectedSelect, actualSelect); }
Element getSelectPicker() { return body.querySelector(".selectpicker"); }
DataTypeConstraintModalView implements DataTypeConstraintModal.View { Element getSelectPicker() { return body.querySelector(".selectpicker"); } }
DataTypeConstraintModalView implements DataTypeConstraintModal.View { Element getSelectPicker() { return body.querySelector(".selectpicker"); } @Inject  DataTypeConstraintModalView(final HTMLDivElement header,
                                       final HTMLDivElement body,
                                       final HTMLDivElement footer,
                                       final HTMLDivElement componentContainer,
                                       final HTMLButtonElement okButton,
                                       final HTMLButtonElement cancelButton,
                                       final HTMLAnchorElement clearAllAnchor,
                                       final @Named("span") HTMLElement type,
                                       final HTMLDivElement selectConstraint,
                                       final HTMLDivElement constraintWarningMessage,
                                       final HTMLButtonElement closeConstraintWarningMessage); }
DataTypeConstraintModalView implements DataTypeConstraintModal.View { Element getSelectPicker() { return body.querySelector(".selectpicker"); } @Inject  DataTypeConstraintModalView(final HTMLDivElement header,
                                       final HTMLDivElement body,
                                       final HTMLDivElement footer,
                                       final HTMLDivElement componentContainer,
                                       final HTMLButtonElement okButton,
                                       final HTMLButtonElement cancelButton,
                                       final HTMLAnchorElement clearAllAnchor,
                                       final @Named("span") HTMLElement type,
                                       final HTMLDivElement selectConstraint,
                                       final HTMLDivElement constraintWarningMessage,
                                       final HTMLButtonElement closeConstraintWarningMessage); @PostConstruct void init(); @Override void init(final DataTypeConstraintModal presenter); @Override String getHeader(); @Override HTMLElement getBody(); @Override HTMLElement getFooter(); @EventHandler("ok-button") void onOkButtonClick(final ClickEvent e); @EventHandler("cancel-button") void onCancelButtonClick(final ClickEvent e); @EventHandler("clear-all-anchor") void onClearAllAnchorClick(final ClickEvent e); @EventHandler("close-constraint-warning-message") void onCloseConstraintWarningClick(final ClickEvent e); @Override void showConstraintWarningMessage(); @Override void setType(final String type); @Override void setupEmptyContainer(); @Override void loadComponent(final ConstraintType constraintType); @Override void onShow(); @Override void setupOnHideHandler(final Command handler); @Override void enableOkButton(); @Override void disableOkButton(); }
DataTypeConstraintModalView implements DataTypeConstraintModal.View { Element getSelectPicker() { return body.querySelector(".selectpicker"); } @Inject  DataTypeConstraintModalView(final HTMLDivElement header,
                                       final HTMLDivElement body,
                                       final HTMLDivElement footer,
                                       final HTMLDivElement componentContainer,
                                       final HTMLButtonElement okButton,
                                       final HTMLButtonElement cancelButton,
                                       final HTMLAnchorElement clearAllAnchor,
                                       final @Named("span") HTMLElement type,
                                       final HTMLDivElement selectConstraint,
                                       final HTMLDivElement constraintWarningMessage,
                                       final HTMLButtonElement closeConstraintWarningMessage); @PostConstruct void init(); @Override void init(final DataTypeConstraintModal presenter); @Override String getHeader(); @Override HTMLElement getBody(); @Override HTMLElement getFooter(); @EventHandler("ok-button") void onOkButtonClick(final ClickEvent e); @EventHandler("cancel-button") void onCancelButtonClick(final ClickEvent e); @EventHandler("clear-all-anchor") void onClearAllAnchorClick(final ClickEvent e); @EventHandler("close-constraint-warning-message") void onCloseConstraintWarningClick(final ClickEvent e); @Override void showConstraintWarningMessage(); @Override void setType(final String type); @Override void setupEmptyContainer(); @Override void loadComponent(final ConstraintType constraintType); @Override void onShow(); @Override void setupOnHideHandler(final Command handler); @Override void enableOkButton(); @Override void disableOkButton();  }