Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ void integration() throws IOException {
" }",
"}");

setFile("test.java").toResource("java/cleanthat/MultipleMutators.dirty.java");
setFile("test.java").toResource("java/cleanthat/MultipleMutators.dirty.test");
gradleRunner().withArguments("spotlessApply").build();
assertFile("test.java").sameAsResource("java/cleanthat/MultipleMutators.clean.java");
assertFile("test.java").sameAsResource("java/cleanthat/MultipleMutators.clean.test");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.diffplug.spotless.maven.java;
package com.diffplug.spotless.maven.test;

import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
Expand All @@ -33,7 +33,7 @@ void testEnableDraft() throws Exception {
" <includeDraft>true</includeDraft>",
"</cleanthat>");

runTest("MultipleMutators.dirty.java", "MultipleMutators.clean.onlyOptionalIsPresent.java");
runTest("MultipleMutators.dirty.test", "MultipleMutators.clean.onlyOptionalIsPresent.test");
}

@Test
Expand All @@ -45,7 +45,7 @@ void testLiteralsFirstInComparisons() throws Exception {
" </mutators>",
"</cleanthat>");

runTest("LiteralsFirstInComparisons.dirty.java", "LiteralsFirstInComparisons.clean.java");
runTest("LiteralsFirstInComparisons.dirty.test", "LiteralsFirstInComparisons.clean.test");
}

@Test
Expand All @@ -59,7 +59,7 @@ void testMultipleMutators_defaultIsJdk7() throws Exception {
" </mutators>",
"</cleanthat>");

runTest("MultipleMutators.dirty.java", "MultipleMutators.clean.onlyLiteralsFirst.java");
runTest("MultipleMutators.dirty.test", "MultipleMutators.clean.onlyLiteralsFirst.test");
}

@Test
Expand All @@ -73,7 +73,7 @@ void testMultipleMutators_Jdk11IntroducedOptionalisPresent() throws Exception {
" </mutators>",
"</cleanthat>");

runTest("MultipleMutators.dirty.java", "MultipleMutators.clean.java");
runTest("MultipleMutators.dirty.test", "MultipleMutators.clean.test");
}

@Test
Expand All @@ -89,7 +89,7 @@ void testExcludeOptionalNotEmpty() throws Exception {
" </excludedMutators>",
"</cleanthat>");

runTest("MultipleMutators.dirty.java", "MultipleMutators.clean.onlyLiteralsFirst.java");
runTest("MultipleMutators.dirty.test", "MultipleMutators.clean.onlyLiteralsFirst.test");
}

@Test
Expand All @@ -101,7 +101,7 @@ void testIncludeOnlyLiteralsFirstInComparisons() throws Exception {
" </mutators>",
"</cleanthat>");

runTest("MultipleMutators.dirty.java", "MultipleMutators.clean.onlyLiteralsFirst.java");
runTest("MultipleMutators.dirty.test", "MultipleMutators.clean.onlyLiteralsFirst.test");
}

private void runTest(String dirtyPath, String cleanPath) throws Exception {
Expand Down