Update timestamp and batch app tests to check task name
With the latest changes in boot logs include app name and the tests needed to be amended to look at the name value that is returned as a part of the task log
This commit is contained in:
@@ -56,7 +56,7 @@ public class BatchJobApplicationTests {
|
||||
|
||||
assertThat(i).isGreaterThan(0);
|
||||
|
||||
String taskTitle = "Demo Batch Job Task";
|
||||
String taskTitle = "taskName='Demo Batch Job Task'";
|
||||
Pattern pattern = Pattern.compile(taskTitle);
|
||||
Matcher matcher = pattern.matcher(output);
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ public class TaskApplicationTests {
|
||||
.isTrue();
|
||||
assertThat(output.contains(EXIT_CODE_MESSAGE)).as("Test results have incorrect exit code: " + output).isTrue();
|
||||
|
||||
String taskTitle = "Demo Timestamp Task";
|
||||
String taskTitle = " taskName='Demo Timestamp Task'";
|
||||
Pattern pattern = Pattern.compile(taskTitle);
|
||||
Matcher matcher = pattern.matcher(output);
|
||||
int count = 0;
|
||||
|
||||
Reference in New Issue
Block a user