[Tests] Update test data after changes to FIR diagnostic messages

This commit is contained in:
Kirill Rakhman
2023-08-11 11:00:37 +02:00
committed by Space Team
parent de1c92a32f
commit d0cc86f52c
101 changed files with 675 additions and 227 deletions
@@ -5,12 +5,17 @@ assertBuildLogHasNoLineThatContains("AutoCloseable");
int line1 = findBuildLogLineThatContains("Unresolved reference: stream");
int line2 = findBuildLogLineThatContains("Unresolved reference: java.util.stream.Stream");
int line1K2 = findBuildLogLineThatContains("Unresolved reference 'stream'");
int line2K2 = findBuildLogLineThatContains("Unresolved reference 'java.util.stream.Stream'");
if (line1 >= 0) {
print("Expected content \"Unresolved reference: stream\" was found at line " + (line1+1) + " of build log: \"" + buildLog[line1] + "\"");
} else if (line2 >= 0) {
print("Expected content \"Unresolved reference: java.util.stream.Stream\" was found at line " + (line2+1) + " of build log: \"" + buildLog[line2] + "\"");
} else if (line1K2 >= 0) {
print("Expected content \"Unresolved reference 'stream'\" was found at line " + (line1K2+1) + " of build log: \"" + buildLog[line1K2] + "\"");
} else if (line2K2 >= 0) {
print("Expected content \"Unresolved reference 'java.util.stream.Stream'\" was found at line " + (line2K2+1) + " of build log: \"" + buildLog[line2K2] + "\"");
} else {
throw new Exception("Expected build log to contain: \"Unresolved reference: stream\" or \"Unresolved reference: java.util.stream.Stream\"");
}