SettingsViewImpl extends Composite implements SettingsView { @Override public void reset() { scenarioType.setInnerText(""); fileName.setValue(""); dmnName.setValue(""); dmnNamespace.setValue(""); dmnFilePathErrorLabel.getStyle().setDisplay(Style.Display.NONE); dmnFilePathErrorLabel.setInnerText(""); skipFromBuild.setChecked(false); stateless.setChecked(false); dmnSettings.getStyle().setDisplay(Style.Display.NONE); ruleSettings.getStyle().setDisplay(Style.Display.NONE); }  @Override void init(Presenter presenter); @Override void setupDropdown(final Element dropdownElement); @Override Presenter getPresenter(); @Override void reset(); @Override LabelElement getNameLabel(); @Override InputElement getFileName(); @Override LabelElement getTypeLabel(); @Override SpanElement getScenarioType(); @Override DivElement getRuleSettings(); @Override InputElement getDmoSession(); @Override InputElement getRuleFlowGroup(); @Override DivElement getDmnSettings(); @Override LabelElement getDmnFileLabel(); @Override DivElement getDmnFilePathPlaceholder(); @Override SpanElement getDmnFilePathErrorLabel(); @Override LabelElement getDmnNamespaceLabel(); @Override InputElement getDmnNamespace(); @Override LabelElement getDmnNameLabel(); @Override InputElement getDmnName(); @Override InputElement getSkipFromBuild(); @Override SpanElement getSkipFromBuildLabel(); @Override InputElement getStateless(); @EventHandler("dmoSession") void syncDmoSession(BlurEvent event); @EventHandler("ruleFlowGroup") void syncRuleFlowGroup(BlurEvent event); @EventHandler("stateless") void syncStateless(ChangeEvent event); @EventHandler("skipFromBuild") void syncSkipFromBuild(ChangeEvent event);  }
@Test public void resetTest() { settingsViewSpy.reset(); verify(scenarioTypeMock, times(1)).setInnerText(eq("")); verify(fileNameMock, times(1)).setValue(eq("")); verify(dmnNameMock, times(1)).setValue(eq("")); verify(dmnNamespaceMock, times(1)).setValue(eq("")); verify(dmnFilePathErrorLabelStyleMock, times(1)).setDisplay(eq(Style.Display.NONE)); verify(dmnFilePathErrorLabelMock, times(1)).setInnerText(eq("")); verify(skipFromBuildMock, times(1)).setChecked(eq(false)); verify(statelessMock, times(1)).setChecked(eq(false)); verify(ruleSettingsStyleMock, times(1)).setDisplay(eq(Style.Display.NONE)); verify(dmnSettingsStyleMock, times(1)).setDisplay(eq(Style.Display.NONE)); }