Skip to content

Commit

Permalink
Fewer errors in equoIde (#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg authored Feb 28, 2023
2 parents dcdcc78 + 5560214 commit d8fd6c4
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
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

0 comments on commit d8fd6c4

Please sign in to comment.