Skip to content

Commit

Permalink
Less errors in equoIde
Browse files Browse the repository at this point in the history
  • Loading branch information
blacelle committed Feb 27, 2023
1 parent 6716228 commit cd2ff0f
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void testEnableDraft() throws Exception {
" <includeDraft>true</includeDraft>",
"</cleanthat>");

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

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

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

@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.java", "MultipleMutators_clean_onlyLiteralsFirst.java");
}

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

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

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

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

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

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

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

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package java.cleanthat;

public class LiteralsFirstInComparisons_clean {

public boolean isHardcoded(String input) {
return "hardcoded".equals(input);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package java.cleanthat;

public class LiteralsFirstInComparisons_dirty {

public boolean isHardcoded(String input) {
return input.equals("hardcoded");
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package eu.solven.cleanthat.engine.java.refactorer.cases.do_not_format_me;
package java.cleanthat;

import java.util.Optional;

public class LiteralsFirstInComparisonsCases {
public class MultipleMutators_clean {

public boolean isHardcoded(String input) {
return "hardcoded".equals(input);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package eu.solven.cleanthat.engine.java.refactorer.cases.do_not_format_me;
package java.cleanthat;

import java.util.Optional;

public class LiteralsFirstInComparisonsCases {
public class MultipleMutators_clean_onlyLiteralsFirst {

public boolean isHardcoded(String input) {
return "hardcoded".equals(input);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package eu.solven.cleanthat.engine.java.refactorer.cases.do_not_format_me;
package java.cleanthat;

import java.util.Optional;

public class LiteralsFirstInComparisonsCases {
public class MultipleMutators_clean_onlyOptionalIsPresent {

public boolean isHardcoded(String input) {
return input.equals("hardcoded");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package eu.solven.cleanthat.engine.java.refactorer.cases.do_not_format_me;
package java.cleanthat;

import java.util.Optional;

public class LiteralsFirstInComparisonsCases {
public class MultipleMutators_dirty {

public boolean isHardcoded(String input) {
return input.equals("hardcoded");
Expand Down

0 comments on commit cd2ff0f

Please sign in to comment.