diff --git a/plugin-maven/src/test/java/com/diffplug/spotless/maven/java/ImportOrderTest.java b/plugin-maven/src/test/java/com/diffplug/spotless/maven/java/ImportOrderTest.java index 206b5ba38a..5a5a00e379 100644 --- a/plugin-maven/src/test/java/com/diffplug/spotless/maven/java/ImportOrderTest.java +++ b/plugin-maven/src/test/java/com/diffplug/spotless/maven/java/ImportOrderTest.java @@ -39,10 +39,20 @@ public void order() throws Exception { runTest(); } + @Test + public void standard() throws Exception { + writePomWithJavaSteps(""); + runTest("java/importsorter/JavaCodeSortedImportsDefault.test"); + } + private void runTest() throws Exception { + runTest("java/importsorter/JavaCodeSortedImports.test"); + } + + private void runTest(String expectedResource) throws Exception { String path = "src/main/java/test.java"; setFile(path).toResource("java/importsorter/JavaCodeUnsortedImports.test"); mavenRunner().withArguments("spotless:apply").runNoError(); - assertFile(path).sameAsResource("java/importsorter/JavaCodeSortedImports.test"); + assertFile(path).sameAsResource(expectedResource); } }