Commits

Micha Kops committed 155cbf9

Test for filtering bad words added.

  • Participants
  • Parent commits 386fa2e

Comments (0)

Files changed (1)

src/test/java/it/IssueRequestProcessTest.java

 package it;
 
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.endsWith;
 import static org.hamcrest.Matchers.equalTo;
 import static org.hamcrest.Matchers.greaterThan;
 import static org.hamcrest.Matchers.notNullValue;
 				equalTo(DESCRIPTION_VALUE));
 		assertThat(historicSummary.getTime(), greaterThan(startDate));
 
+		assertThat(
+				(String) activitiRule.getRuntimeService()
+						.getVariable(processInstance.getProcessInstanceId(),
+								DESCRIPTION_KEY),
+				endsWith("I hate your xxxing shop!"));
+
 		TaskService taskService = activitiRule.getTaskService();
 		Task approveCriticalIssueTask = taskService.createTaskQuery()
 				.processInstanceId(processInstance.getProcessInstanceId())