Search in sources :

Example 1 with SettingsView

use of org.drools.workbench.screens.scenariosimulation.client.rightpanel.SettingsView in project drools-wb by kiegroup.

the class MockProducer method getSettingsViewMock.

public static SettingsView getSettingsViewMock() {
    SettingsView toReturn = mock(SettingsView.class);
    when(toReturn.getNameLabel()).thenReturn(nameLabelMock());
    doReturn(fileNameMock()).when(toReturn).getFileName();
    when(toReturn.getTypeLabel()).thenReturn(typeLabelMock());
    doReturn(scenarioTypeMock()).when(toReturn).getScenarioType();
    doReturn(ruleSettingsMock()).when(toReturn).getRuleSettings();
    doReturn(dmoSessionMock()).when(toReturn).getDmoSession();
    doReturn(ruleFlowGroupMock()).when(toReturn).getRuleFlowGroup();
    doReturn(dmnSettingsMock()).when(toReturn).getDmnSettings();
    when(toReturn.getDmnFileLabel()).thenReturn(dmnModelLabelMock());
    doReturn(dmnFilePathPlaceholderMock()).when(toReturn).getDmnFilePathPlaceholder();
    doReturn(dmnFilePathErrorLabelMock()).when(toReturn).getDmnFilePathErrorLabel();
    when(toReturn.getDmnNamespaceLabel()).thenReturn(dmnNamespaceLabelMock());
    doReturn(dmnNamespaceMock()).when(toReturn).getDmnNamespace();
    when(toReturn.getDmnNameLabel()).thenReturn(dmnNameLabelMock());
    doReturn(dmnNameMock()).when(toReturn).getDmnName();
    doReturn(skipFromBuildMock()).when(toReturn).getSkipFromBuild();
    doReturn(statelessMock()).when(toReturn).getStateless();
    return toReturn;
}
Also used : SettingsView(org.drools.workbench.screens.scenariosimulation.client.rightpanel.SettingsView)

Aggregations

SettingsView (org.drools.workbench.screens.scenariosimulation.client.rightpanel.SettingsView)1