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:
Glenn Renfro
2023-06-22 16:12:37 -04:00
parent cd54b77c6f
commit e72c730cbc
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;