Commits

Micha Kops committed 0bd957c

PersistIssueTask output format modified.

  • Participants
  • Parent commits f9e3f55

Comments (0)

Files changed (2)

src/main/java/com/hascode/tutorial/PersistIssueTask.java

 	@Override
 	public void execute(final DelegateExecution execution) throws Exception {
 		String output = String.format(
-				"(%s) Issue added: %s \tDescription: %s\tPriority: %s",
-				execution.getVariable("summary"), new Date().toString(),
+				"(%s) New issue: %s Description: %s Priority: %s",
+				new Date().toString(), execution.getVariable("summary"),
 				execution.getVariable("description"),
 				execution.getVariable("priority"));
 		FileWriter writer = new FileWriter(issueTracker);

src/test/java/it/IssueRequestProcessTest.java

 		assertThat(issueTracker.exists(), equalTo(true));
 		assertThat(
 				FileUtils.readFileToString(issueTracker),
-				containsString("Description: When I'm adding articles to the basket and click on 'buy' I'm getting a 404 error. I hate your xxxing shop!"));
+				endsWith("New issue: Website Error! Shop order failed Description: When I'm adding articles to the basket and click on 'buy' I'm getting a 404 error. I hate your xxxing shop! Priority: critical"));
 	}
 }