File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
plugin-maven/src/test/java/com/diffplug/spotless/maven/java Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -30,4 +30,14 @@ void testFormatAnnotations() throws Exception {
30
30
mavenRunner ().withArguments ("spotless:apply" ).runNoError ();
31
31
assertFile (path ).sameAsResource ("java/formatannotations/FormatAnnotationsTestOutput.test" );
32
32
}
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
+ }
33
43
}
You can’t perform that action at this time.
0 commit comments