Skip to content

Commit

Permalink
Add test for JENKINS-33856
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Alvizu committed May 25, 2016
1 parent 9dfacfd commit 866012f
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -135,4 +135,13 @@ public void testSaveConfig()
JiraExtBuildStep after = project.getBuildersList().get(JiraExtBuildStep.class);
jenkinsRule.assertEqualBeans(builder, after, "issueStrategy");
}

@Test
public void testJenkins33856()
{
ChangeLogSet.Entry entry = MockChangeLogUtil.mockChangeLogSetEntry("Testing JIRA (ticket with a few spaces at the end and no EOL) FOO-141 ");
assertThat(strategy.getJiraIssuesFromChangeSet(entry).size(), equalTo(1));
assertThat(strategy.getJiraIssuesFromChangeSet(entry),
hasItem(Matchers.<JiraCommit>hasProperty("jiraTicket", equalTo("FOO-141"))));
}
}

0 comments on commit 866012f

Please sign in to comment.