Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DROOLS-4130] Fix default session name #1164

Merged
merged 1 commit into from Jun 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -271,7 +271,7 @@ public void createRULEScenario() throws Exception {
model,
"Commit comment",
Type.RULE,
"default");
null);

assertNotNull(returnPath);
assertNotNull(model.getSimulation());
Expand Down
Expand Up @@ -132,7 +132,7 @@ public void create(final Package pkg,
break;
case RULE:
default:
value = "default";
value = null;
}
busyIndicatorView.showBusyIndicator(CommonConstants.INSTANCE.Saving());
CustomBusyPopup.showMessage(CommonConstants.INSTANCE.Saving());
Expand Down
Expand Up @@ -111,7 +111,7 @@ public void setup() {
when(gridContextMenuMock.getView()).thenReturn(gridContextMenuViewMock);
when(headerGivenContextMenuMock.getView()).thenReturn(headerContextMenuViewMock);
this.modelLocal = new ScenarioSimulationModel();
modelLocal.setSimulation(getSimulation(ScenarioSimulationModel.Type.RULE, "default"));
modelLocal.setSimulation(getSimulation(ScenarioSimulationModel.Type.RULE, null));
this.content = new ScenarioSimulationModelContent(modelLocal,
overviewMock,
mock(PackageDataModelOracleBaselinePayload.class));
Expand Down
Expand Up @@ -47,6 +47,7 @@
import static org.junit.Assert.assertTrue;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;
import static org.mockito.Matchers.isNull;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.spy;
Expand Down Expand Up @@ -173,7 +174,7 @@ private void createCommon(ScenarioSimulationModel.Type type, boolean validate, b
handler.create(mock(Package.class), "BASEFILENAME", mock(NewResourcePresenter.class));
if (called) {
verify(busyIndicatorViewMock, times(1)).showBusyIndicator(eq(CommonConstants.INSTANCE.Saving()));
verify(scenarioSimulationServiceMock, times(1)).create(any(), any(), any(), any(), any(), any());
verify(scenarioSimulationServiceMock, times(1)).create(any(), any(), any(), any(), any(), isNull(String.class));
}
}

Expand Down