From 652843b9034a566b33aea48e9c8838a5ef095e3e Mon Sep 17 00:00:00 2001 From: Jo Vandeginste Date: Sat, 19 Oct 2019 20:41:53 +0200 Subject: [PATCH] Rename some Slack classes Signed-off-by: Jo Vandeginste --- .../workflow/MattermostSendStep.java | 4 ++-- .../workflow/MattermostSendStep/help.html | 2 +- .../workflow/MattermostSendStepTest.java | 20 +++++++++---------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/jenkins/plugins/mattermost/workflow/MattermostSendStep.java b/src/main/java/jenkins/plugins/mattermost/workflow/MattermostSendStep.java index 96d63d4..9411670 100644 --- a/src/main/java/jenkins/plugins/mattermost/workflow/MattermostSendStep.java +++ b/src/main/java/jenkins/plugins/mattermost/workflow/MattermostSendStep.java @@ -95,7 +95,7 @@ public class MattermostSendStep extends AbstractStepImpl { public static class DescriptorImpl extends AbstractStepDescriptorImpl { public DescriptorImpl() { - super(SlackSendStepExecution.class); + super(MattermostSendStepExecution.class); } @Override @@ -109,7 +109,7 @@ public class MattermostSendStep extends AbstractStepImpl { } } - public static class SlackSendStepExecution + public static class MattermostSendStepExecution extends AbstractSynchronousNonBlockingStepExecution { private static final long serialVersionUID = 1L; diff --git a/src/main/resources/jenkins/plugins/mattermost/workflow/MattermostSendStep/help.html b/src/main/resources/jenkins/plugins/mattermost/workflow/MattermostSendStep/help.html index 3ce9a77..0a517b6 100644 --- a/src/main/resources/jenkins/plugins/mattermost/workflow/MattermostSendStep/help.html +++ b/src/main/resources/jenkins/plugins/mattermost/workflow/MattermostSendStep/help.html @@ -1,7 +1,7 @@
Simple step for sending a Mattermost message to specified channel.
Use the advanced settings to override the Mattermost Plugin global configuration to include: endpoint, channel and icon.
- Please see the Slack Plugin global configuration for more details on the fields. + Please see the Mattermost Plugin global configuration for more details on the fields. Usage Example:
diff --git a/src/test/java/jenkins/plugins/mattermost/workflow/MattermostSendStepTest.java b/src/test/java/jenkins/plugins/mattermost/workflow/MattermostSendStepTest.java index 647527c..038de13 100644 --- a/src/test/java/jenkins/plugins/mattermost/workflow/MattermostSendStepTest.java +++ b/src/test/java/jenkins/plugins/mattermost/workflow/MattermostSendStepTest.java @@ -47,8 +47,8 @@ public class MattermostSendStepTest { @Test public void testStepOverrides() throws Exception { - MattermostSendStep.SlackSendStepExecution stepExecution = - spy(new MattermostSendStep.SlackSendStepExecution()); + MattermostSendStep.MattermostSendStepExecution stepExecution = + spy(new MattermostSendStep.MattermostSendStepExecution()); MattermostSendStep mattermostSendStep = new MattermostSendStep("message"); mattermostSendStep.setIcon("icon"); mattermostSendStep.setEndpoint("endpoint"); @@ -78,8 +78,8 @@ public class MattermostSendStepTest { @Test public void testValuesForGlobalConfig() throws Exception { - MattermostSendStep.SlackSendStepExecution stepExecution = - spy(new MattermostSendStep.SlackSendStepExecution()); + MattermostSendStep.MattermostSendStepExecution stepExecution = + spy(new MattermostSendStep.MattermostSendStepExecution()); stepExecution.step = new MattermostSendStep("message"); when(Jenkins.getInstance()).thenReturn(jenkins); @@ -117,8 +117,8 @@ public class MattermostSendStepTest { @Test public void testNonNullEmptyColor() throws Exception { - MattermostSendStep.SlackSendStepExecution stepExecution = - spy(new MattermostSendStep.SlackSendStepExecution()); + MattermostSendStep.MattermostSendStepExecution stepExecution = + spy(new MattermostSendStep.MattermostSendStepExecution()); MattermostSendStep mattermostSendStep = new MattermostSendStep("message"); mattermostSendStep.setColor(""); stepExecution.step = mattermostSendStep; @@ -141,8 +141,8 @@ public class MattermostSendStepTest { @Test public void testNonNullPretext() throws Exception { - MattermostSendStep.SlackSendStepExecution stepExecution = - spy(new MattermostSendStep.SlackSendStepExecution()); + MattermostSendStep.MattermostSendStepExecution stepExecution = + spy(new MattermostSendStep.MattermostSendStepExecution()); MattermostSendStep mattermostSendStep = new MattermostSendStep("message"); mattermostSendStep.setText("@foo @bar"); stepExecution.step = mattermostSendStep; @@ -164,8 +164,8 @@ public class MattermostSendStepTest { @Test public void testNullJenkinsInstance() throws Exception { - MattermostSendStep.SlackSendStepExecution stepExecution = - spy(new MattermostSendStep.SlackSendStepExecution()); + MattermostSendStep.MattermostSendStepExecution stepExecution = + spy(new MattermostSendStep.MattermostSendStepExecution()); stepExecution.step = new MattermostSendStep("message"); when(Jenkins.getInstance()).thenThrow(NullPointerException.class);