mirror of
https://github.com/jenkinsci/mattermost-plugin.git
synced 2024-11-24 08:12:36 +02:00
Rename some Slack classes
Signed-off-by: Jo Vandeginste <Jo.Vandeginste@kuleuven.be>
This commit is contained in:
parent
bbc95656b6
commit
652843b903
@ -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<Void> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div>
|
||||
Simple step for sending a Mattermost message to specified channel.<br>
|
||||
Use the advanced settings to override the Mattermost Plugin global configuration to include: <code>endpoint</code>, <code>channel</code> and <code>icon</code>.<br>
|
||||
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:<br>
|
||||
<code>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user