Picnic-Bot
2022-06-05 20:52:45 +02:00
committed by GitHub
parent a074e2fdd6
commit 0a63361500
3 changed files with 8 additions and 3 deletions

View File

@@ -126,6 +126,11 @@
<artifactId>jaxb-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>

View File

@@ -13,6 +13,7 @@ import com.google.errorprone.BugCheckerRefactoringTestHelper;
import com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode;
import java.util.regex.Pattern;
import java.util.stream.Stream;
import org.junit.ComparisonFailure;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
@@ -139,8 +140,7 @@ public final class RefasterCheckTest {
assertThatCode(() -> verifyRefactoring(group, namePattern(group, template)))
.withFailMessage(
"Template %s does not affect the tests for group %s; is it tested?", template, group)
.isInstanceOf(AssertionError.class)
.hasMessageFindingMatch("^(diff|expected):");
.isInstanceOf(ComparisonFailure.class);
}
private static ImmutableSetMultimap<String, String> indexTemplateNamesByGroup(

View File

@@ -254,7 +254,7 @@
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
<version>1.0.1</version>
<version>1.1.3</version>
</dependency>
<!-- Specified as a workaround for
https://github.com/mojohaus/versions-maven-plugin/issues/244. -->