Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aecio committed Oct 3, 2021
1 parent e9964a7 commit 99d8c57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class LoggingSpec extends AbstractIntegrationSpec {
result.output =~ /Foo\.java: formatted successfully/
result.output =~ /Bar\.java: UP-TO-DATE/
// (?s) makes the regex match newlines with . (dot) operators
result.output =~ /(?s)Detected Java syntax errors in the following files.*Baz\.java/
result.output =~ /(?s)Detected Java syntax errors in the following files.*OtherNon\.java/
result.output =~ /(?s)Failed to format the following files.*Baz\.java/
result.output =~ /(?s)Failed to format the following files.*OtherNon\.java/
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class VerifyGoogleJavaFormat extends FormatTask implements VerificationTask {
}
}
if (invalid.size() > 0) {
logger.lifecycle('\n\nDetected Java syntax errors in the following files ({} "{}" {}):\n',
logger.lifecycle('\n\nFailed to verify format of the following files ({} "{}" {}):\n',
'you can configure this task to exclude them, see',
'https://github.com/sherter/google-java-format-gradle-plugin',
'for details')
Expand Down

0 comments on commit 99d8c57

Please sign in to comment.