Skip to content

Commit 0ace169

Browse files
committed
little fix
1 parent a2a676b commit 0ace169

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

src/main/java/org/scm4j/deployer/api/Component.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
public class Component implements IComponent {
1010

1111
@Getter final private Artifact artifactCoords;
12-
@Getter private IDeploymentProcedure installationProcedure;
12+
@Getter private IDeploymentProcedure deploymentProcedure;
1313
private final ProductStructure ps;
1414

1515
public Component(String coords, ProductStructure productStructure) {
@@ -19,11 +19,11 @@ public Component(String coords, ProductStructure productStructure) {
1919

2020
public Action addAction(String clazz) {
2121
Action action = new Action(clazz, this);
22-
if (this.installationProcedure == null) {
23-
this.installationProcedure = new DeploymentProcedure(new ArrayList<>());
24-
this.installationProcedure.getActions().add(action);
22+
if (this.deploymentProcedure == null) {
23+
this.deploymentProcedure = new DeploymentProcedure(new ArrayList<>());
24+
this.deploymentProcedure.getActions().add(action);
2525
} else {
26-
this.installationProcedure.getActions().add(action);
26+
this.deploymentProcedure.getActions().add(action);
2727
}
2828
return action;
2929
}

src/main/java/org/scm4j/deployer/api/IComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
public interface IComponent {
66
Artifact getArtifactCoords();
7-
IDeploymentProcedure getInstallationProcedure();
7+
IDeploymentProcedure getDeploymentProcedure();
88
}

src/test/java/org/scm4j/deployer/api/ApiTest.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import org.junit.Test;
44

5-
import java.util.concurrent.Executor;
6-
75
import static org.junit.Assert.assertEquals;
86

97
public class ApiTest {
@@ -25,10 +23,10 @@ public void testProductStructure() {
2523
.parent()
2624
.parent();
2725
assertEquals(ps.getComponents().get(0).getArtifactCoords().toString(), "123:123:jar:123");
28-
assertEquals(ps.getComponents().get(1).getInstallationProcedure().getActions().get(0).getInstallerClassName(), "IComponentDeployer");
29-
assertEquals(ps.getComponents().get(1).getInstallationProcedure().getActions().get(0).getParams().get("8"), "9");
26+
assertEquals(ps.getComponents().get(1).getDeploymentProcedure().getActions().get(0).getInstallerClassName(), "IComponentDeployer");
27+
assertEquals(ps.getComponents().get(1).getDeploymentProcedure().getActions().get(0).getParams().get("8"), "9");
3028
assertEquals(ps.getComponents().get(1).getArtifactCoords().toString(), "345:345:jar:345");
31-
assertEquals(ps.getComponents().get(0).getInstallationProcedure().getActions().get(0).getParams().get("3"), "4");
32-
assertEquals(ps.getComponents().get(0).getInstallationProcedure().getActions().get(1).getInstallerClassName(), "IComponentDeployer");
29+
assertEquals(ps.getComponents().get(0).getDeploymentProcedure().getActions().get(0).getParams().get("3"), "4");
30+
assertEquals(ps.getComponents().get(0).getDeploymentProcedure().getActions().get(1).getInstallerClassName(), "IComponentDeployer");
3331
}
3432
}

0 commit comments

Comments
 (0)