diff --git a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrderTest.java b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrderTest.java index c6beec59973..b16a5ed6a17 100644 --- a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrderTest.java +++ b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrderTest.java @@ -39,6 +39,15 @@ void identification() { " assertThat(map).containsValue(value);", " }", " }", + "", + " // BUG: Diagnostic contains:", + " class UnusedLexicographicallyUnorderedParameters {", + " @BeforeTemplate", + " void foo(int a, int b) {}", + "", + " @BeforeTemplate", + " void bar(int b, int a) {}", + " }", "}") .doTest(); }