Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Less errors in equoIde #1591

Merged
merged 3 commits into from
Feb 28, 2023
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