Skip to content

Commit

Permalink
Doh
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Mar 12, 2023
1 parent f18b665 commit 72d4d6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import com.google.errorprone.matchers.Description;
import com.sun.source.tree.ClassTree;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
Expand Down Expand Up @@ -120,7 +119,8 @@ void bugPatternAnnotationIsAbsent() {

private static void verifyFileMatchesResource(
Path outputDirectory, String fileName, String resourceName) throws IOException {
assertThat(Files.readString(outputDirectory.resolve(fileName)))
assertThat(outputDirectory.resolve(fileName))
.content(UTF_8)
.isEqualToIgnoringWhitespace(getResource(resourceName));
}

Expand Down

0 comments on commit 72d4d6e

Please sign in to comment.