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 static class DescriptorImpl extends AbstractStepDescriptorImpl {
|
||||||
|
|
||||||
public DescriptorImpl() {
|
public DescriptorImpl() {
|
||||||
super(SlackSendStepExecution.class);
|
super(MattermostSendStepExecution.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -109,7 +109,7 @@ public class MattermostSendStep extends AbstractStepImpl {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class SlackSendStepExecution
|
public static class MattermostSendStepExecution
|
||||||
extends AbstractSynchronousNonBlockingStepExecution<Void> {
|
extends AbstractSynchronousNonBlockingStepExecution<Void> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div>
|
<div>
|
||||||
Simple step for sending a Mattermost message to specified channel.<br>
|
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>
|
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>
|
Usage Example:<br>
|
||||||
<code>
|
<code>
|
||||||
|
@ -47,8 +47,8 @@ public class MattermostSendStepTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testStepOverrides() throws Exception {
|
public void testStepOverrides() throws Exception {
|
||||||
MattermostSendStep.SlackSendStepExecution stepExecution =
|
MattermostSendStep.MattermostSendStepExecution stepExecution =
|
||||||
spy(new MattermostSendStep.SlackSendStepExecution());
|
spy(new MattermostSendStep.MattermostSendStepExecution());
|
||||||
MattermostSendStep mattermostSendStep = new MattermostSendStep("message");
|
MattermostSendStep mattermostSendStep = new MattermostSendStep("message");
|
||||||
mattermostSendStep.setIcon("icon");
|
mattermostSendStep.setIcon("icon");
|
||||||
mattermostSendStep.setEndpoint("endpoint");
|
mattermostSendStep.setEndpoint("endpoint");
|
||||||
@ -78,8 +78,8 @@ public class MattermostSendStepTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testValuesForGlobalConfig() throws Exception {
|
public void testValuesForGlobalConfig() throws Exception {
|
||||||
|
|
||||||
MattermostSendStep.SlackSendStepExecution stepExecution =
|
MattermostSendStep.MattermostSendStepExecution stepExecution =
|
||||||
spy(new MattermostSendStep.SlackSendStepExecution());
|
spy(new MattermostSendStep.MattermostSendStepExecution());
|
||||||
stepExecution.step = new MattermostSendStep("message");
|
stepExecution.step = new MattermostSendStep("message");
|
||||||
|
|
||||||
when(Jenkins.getInstance()).thenReturn(jenkins);
|
when(Jenkins.getInstance()).thenReturn(jenkins);
|
||||||
@ -117,8 +117,8 @@ public class MattermostSendStepTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testNonNullEmptyColor() throws Exception {
|
public void testNonNullEmptyColor() throws Exception {
|
||||||
|
|
||||||
MattermostSendStep.SlackSendStepExecution stepExecution =
|
MattermostSendStep.MattermostSendStepExecution stepExecution =
|
||||||
spy(new MattermostSendStep.SlackSendStepExecution());
|
spy(new MattermostSendStep.MattermostSendStepExecution());
|
||||||
MattermostSendStep mattermostSendStep = new MattermostSendStep("message");
|
MattermostSendStep mattermostSendStep = new MattermostSendStep("message");
|
||||||
mattermostSendStep.setColor("");
|
mattermostSendStep.setColor("");
|
||||||
stepExecution.step = mattermostSendStep;
|
stepExecution.step = mattermostSendStep;
|
||||||
@ -141,8 +141,8 @@ public class MattermostSendStepTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testNonNullPretext() throws Exception {
|
public void testNonNullPretext() throws Exception {
|
||||||
|
|
||||||
MattermostSendStep.SlackSendStepExecution stepExecution =
|
MattermostSendStep.MattermostSendStepExecution stepExecution =
|
||||||
spy(new MattermostSendStep.SlackSendStepExecution());
|
spy(new MattermostSendStep.MattermostSendStepExecution());
|
||||||
MattermostSendStep mattermostSendStep = new MattermostSendStep("message");
|
MattermostSendStep mattermostSendStep = new MattermostSendStep("message");
|
||||||
mattermostSendStep.setText("@foo @bar");
|
mattermostSendStep.setText("@foo @bar");
|
||||||
stepExecution.step = mattermostSendStep;
|
stepExecution.step = mattermostSendStep;
|
||||||
@ -164,8 +164,8 @@ public class MattermostSendStepTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testNullJenkinsInstance() throws Exception {
|
public void testNullJenkinsInstance() throws Exception {
|
||||||
|
|
||||||
MattermostSendStep.SlackSendStepExecution stepExecution =
|
MattermostSendStep.MattermostSendStepExecution stepExecution =
|
||||||
spy(new MattermostSendStep.SlackSendStepExecution());
|
spy(new MattermostSendStep.MattermostSendStepExecution());
|
||||||
stepExecution.step = new MattermostSendStep("message");
|
stepExecution.step = new MattermostSendStep("message");
|
||||||
|
|
||||||
when(Jenkins.getInstance()).thenThrow(NullPointerException.class);
|
when(Jenkins.getInstance()).thenThrow(NullPointerException.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user