Skip to content

Commit e796257

Browse files
committed
Add invocation of test
1 parent 42b25f7 commit e796257

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

plugin-maven/src/test/java/com/diffplug/spotless/maven/java/FormatAnnotationsStepTest.java

+10
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,14 @@ void testFormatAnnotations() throws Exception {
3030
mavenRunner().withArguments("spotless:apply").runNoError();
3131
assertFile(path).sameAsResource("java/formatannotations/FormatAnnotationsTestOutput.test");
3232
}
33+
34+
@Test
35+
void testFormatAnnotationsAccessModifiers() throws Exception {
36+
writePomWithJavaSteps("<formatAnnotations/>");
37+
38+
String path = "src/main/java/test.java";
39+
setFile(path).toResource("java/formatannotations/FormatAnnotationsAccessModifiersInput.test");
40+
mavenRunner().withArguments("spotless:apply").runNoError();
41+
assertFile(path).sameAsResource("java/formatannotations/FormatAnnotationsAccessModifiersOutput.test");
42+
}
3343
}

0 commit comments

Comments
 (0)