SettingsViewImpl extends Composite implements SettingsView { @Override public void init(Presenter presenter) { this.presenter = presenter; nameLabel.setInnerText(ScenarioSimulationEditorConstants.INSTANCE.name()); typeLabel.setInnerText(ScenarioSimulationEditorConstants.INSTANCE.type()); statelessLabel.setInnerText(STATELESS_LABEL); dmnFileLabel.setInnerText(DMN_MODEL_LABEL); dmnNamespaceLabel.setInnerText(DMN_NAMESPACE_LABEL); dmnNameLabel.setInnerText(DMN_NAME_LABEL); }  @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 init() { settingsViewSpy.init(settingsPresenterMock); assertEquals(settingsPresenterMock, settingsViewSpy.presenter); nameLabelMock.setInnerText(eq(ScenarioSimulationEditorConstants.INSTANCE.name())); typeLabelMock.setInnerText(eq(ScenarioSimulationEditorConstants.INSTANCE.type())); statelessLabelMock.setInnerText(eq(STATELESS_LABEL)); dmnModelLabelMock.setInnerText(eq(DMN_MODEL_LABEL)); dmnNamespaceLabelMock.setInnerText(eq(DMN_NAMESPACE_LABEL)); dmnNameLabelMock.setInnerText(eq(DMN_NAME_LABEL)); }