Commit df54e46c authored by Romain Bioteau's avatar Romain Bioteau Committed by GitHub

fix(deploy) add diagram filename next to processes (#1905)

Closes BST-542
parent ee0eaebd
......@@ -85,7 +85,11 @@ public class ProcessArtifact implements VersionedArtifact {
@Override
public StyledString getStyledString() {
return new StyledString(getDisplayName());
StyledString styledString = new StyledString(getDisplayName());
if(hasSingleVersion()) {
styledString.append(" "+ ((ProcessVersion) getLatestVersion()).getFileStore().getResource().getName(), StyledString.COUNTER_STYLER);
}
return styledString;
}
public ArtifactVersion getLatestVersion() {
......
......@@ -148,7 +148,9 @@ public class ProcessVersion extends BuildableArtifact implements ArtifactVersion
@Override
public StyledString getStyledString() {
return new StyledString(getVersion());
StyledString styledString = new StyledString(getVersion());
styledString.append(" "+ getFileStore().getResource().getName(), StyledString.DECORATIONS_STYLER);
return styledString;
}
@Override
......
......@@ -90,9 +90,9 @@ public class DeployWizardIT {
assertThat(botDeployDialog.isDeployEnabled()).isTrue();
botDeployDialog.selectLatest();
assertThat(botDeployDialog.artifactsTree().getSWTBotWidget().getTreeItem("Processes").getNode("Pool")
.getNode("1.0").isChecked()).isFalse();
.getNode("1.0 MonDiagramme-1.0.proc").isChecked()).isFalse();
assertThat(botDeployDialog.artifactsTree().getSWTBotWidget().getTreeItem("Processes").getNode("Pool")
.getNode("2.0").isChecked()).isTrue();
.getNode("2.0 MonDiagramme-2.0.proc").isChecked()).isTrue();
//Check username validation
botDeployDialog.setDefaultUser("john.doe");
......@@ -128,9 +128,9 @@ public class DeployWizardIT {
botDeployDialog.artifactsTree().getSWTBotWidget().getTreeItem("Organization").getItems()[0].isChecked())
.isFalse();
assertThat(botDeployDialog.artifactsTree().getSWTBotWidget().getTreeItem("Processes").getNode("Pool")
.getNode("1.0").isChecked()).isFalse();
.getNode("1.0 MonDiagramme-1.0.proc").isChecked()).isFalse();
assertThat(botDeployDialog.artifactsTree().getSWTBotWidget().getTreeItem("Processes").getNode("Pool")
.getNode("2.0").isChecked()).isTrue();
.getNode("2.0 MonDiagramme-2.0.proc").isChecked()).isTrue();
botDeployDialog.cancel();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment