[#1151] Fix broken test on Java9+

This commit is contained in:
Remko Popma
2020-08-26 10:29:18 +09:00
parent b210f7433e
commit 368e7c2089
2 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
asciidoctorGradlePluginVersion = 1.6.1
compileTestingVersion = 0.17
compileTestingVersion = 0.18
gradleBintrayPluginVersion = 1.+
groovyVersion = 2.4.10
hamcrestCoreVersion = 1.3

View File

@@ -140,7 +140,10 @@ public class AbstractCommandSpecProcessorTest {
"@Unmatched must be of type String[] or List<String> but was: int",
"@Unmatched must be of type String[] or List<String> but was: java.lang.Integer"
));
validateErrorMessages(compilation, expected);
List<String> reportedTwiceOnJava9Plus = new ArrayList<>(Arrays.asList(
"@Mixin must have a declared type, not int"
));
validateErrorMessages(compilation, expected, reportedTwiceOnJava9Plus);
}
@Test