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 {
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}
You can’t perform that action at this time.
0 commit comments