Skip to content

Commit 92d35bf

Browse files
committed
org.openrewrite.java.testing.assertj.Assert recipe
1 parent 69f5f11 commit 92d35bf

23 files changed

+151
-81
lines changed

src/main/java/org/openrewrite/java/testing/junitassertj/AssertArrayEqualsToAssertThat.java renamed to src/main/java/org/openrewrite/java/testing/assertj/JUnitAssertArrayEqualsToAssertThat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.openrewrite.java.testing.junitassertj;
16+
package org.openrewrite.java.testing.assertj;
1717

1818
import org.openrewrite.ExecutionContext;
1919
import org.openrewrite.Parser;
@@ -57,7 +57,7 @@
5757
*
5858
* </PRE>
5959
*/
60-
public class AssertArrayEqualsToAssertThat extends Recipe {
60+
public class JUnitAssertArrayEqualsToAssertThat extends Recipe {
6161

6262
@Override
6363
protected TreeVisitor<?, ExecutionContext> getVisitor() {

src/main/java/org/openrewrite/java/testing/junitassertj/AssertEqualsToAssertThat.java renamed to src/main/java/org/openrewrite/java/testing/assertj/JUnitAssertEqualsToAssertThat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.openrewrite.java.testing.junitassertj;
16+
package org.openrewrite.java.testing.assertj;
1717

1818
import org.openrewrite.ExecutionContext;
1919
import org.openrewrite.Parser;
@@ -57,7 +57,7 @@
5757
*
5858
* </PRE>
5959
*/
60-
public class AssertEqualsToAssertThat extends Recipe {
60+
public class JUnitAssertEqualsToAssertThat extends Recipe {
6161

6262
@Override
6363
protected TreeVisitor<?, ExecutionContext> getVisitor() {

src/main/java/org/openrewrite/java/testing/junitassertj/AssertFalseToAssertThat.java renamed to src/main/java/org/openrewrite/java/testing/assertj/JUnitAssertFalseToAssertThat.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.openrewrite.java.testing.junitassertj;
16+
package org.openrewrite.java.testing.assertj;
1717

1818
import org.openrewrite.ExecutionContext;
1919
import org.openrewrite.Parser;
@@ -44,7 +44,7 @@
4444
* shim method to support these method signatures, however, those shims would need to exist on each compilation
4545
* unit or in a shared testing utilities library.
4646
*/
47-
public class AssertFalseToAssertThat extends Recipe {
47+
public class JUnitAssertFalseToAssertThat extends Recipe {
4848

4949
@Override
5050
protected TreeVisitor<?, ExecutionContext> getVisitor() {
@@ -111,4 +111,4 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, Execu
111111
return method;
112112
}
113113
}
114-
}
114+
}

src/main/java/org/openrewrite/java/testing/junitassertj/AssertNotEqualsToAssertThat.java renamed to src/main/java/org/openrewrite/java/testing/assertj/JUnitAssertNotEqualsToAssertThat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.openrewrite.java.testing.junitassertj;
16+
package org.openrewrite.java.testing.assertj;
1717

1818
import org.openrewrite.ExecutionContext;
1919
import org.openrewrite.Parser;
@@ -57,7 +57,7 @@
5757
*
5858
* </PRE>
5959
*/
60-
public class AssertNotEqualsToAssertThat extends Recipe {
60+
public class JUnitAssertNotEqualsToAssertThat extends Recipe {
6161

6262
@Override
6363
protected TreeVisitor<?, ExecutionContext> getVisitor() {

src/main/java/org/openrewrite/java/testing/junitassertj/AssertNotNullToAssertThat.java renamed to src/main/java/org/openrewrite/java/testing/assertj/JUnitAssertNotNullToAssertThat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.openrewrite.java.testing.junitassertj;
16+
package org.openrewrite.java.testing.assertj;
1717

1818
import org.openrewrite.ExecutionContext;
1919
import org.openrewrite.Parser;
@@ -39,7 +39,7 @@
3939
* assertNotNull(Object actual, Supplier<String> messageSupplier) -> assertThat(condition).withFailMessage(messageSupplier).isNotNull();
4040
* </PRE>
4141
*/
42-
public class AssertNotNullToAssertThat extends Recipe {
42+
public class JUnitAssertNotNullToAssertThat extends Recipe {
4343

4444
@Override
4545
protected TreeVisitor<?, ExecutionContext> getVisitor() {

src/main/java/org/openrewrite/java/testing/junitassertj/AssertNullToAssertThat.java renamed to src/main/java/org/openrewrite/java/testing/assertj/JUnitAssertNullToAssertThat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.openrewrite.java.testing.junitassertj;
16+
package org.openrewrite.java.testing.assertj;
1717

1818
import org.openrewrite.ExecutionContext;
1919
import org.openrewrite.Parser;
@@ -39,7 +39,7 @@
3939
* assertNull(Object actual, Supplier<String> messageSupplier) -> assertThat(condition).withFailMessage(messageSupplier).isNull();
4040
* </PRE>
4141
*/
42-
public class AssertNullToAssertThat extends Recipe {
42+
public class JUnitAssertNullToAssertThat extends Recipe {
4343

4444
@Override
4545
protected TreeVisitor<?, ExecutionContext> getVisitor() {

src/main/java/org/openrewrite/java/testing/junitassertj/AssertSameToAssertThat.java renamed to src/main/java/org/openrewrite/java/testing/assertj/JUnitAssertSameToAssertThat.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.openrewrite.java.testing.junitassertj;
16+
package org.openrewrite.java.testing.assertj;
1717

1818
import org.openrewrite.ExecutionContext;
1919
import org.openrewrite.Parser;
@@ -39,7 +39,7 @@
3939
* assertSame(Object expected, Object actual, Supplier<String> messageSupplier) -> assertThat(actual).withFailMessage(messageSupplier).isSameAs(expected);
4040
* </PRE>
4141
*/
42-
public class AssertSameToAssertThat extends Recipe {
42+
public class JUnitAssertSameToAssertThat extends Recipe {
4343

4444
@Override
4545
protected TreeVisitor<?, ExecutionContext> getVisitor() {
@@ -111,4 +111,4 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, Execu
111111
return method;
112112
}
113113
}
114-
}
114+
}

src/main/java/org/openrewrite/java/testing/junitassertj/AssertTrueToAssertThat.java renamed to src/main/java/org/openrewrite/java/testing/assertj/JUnitAssertTrueToAssertThat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.openrewrite.java.testing.junitassertj;
16+
package org.openrewrite.java.testing.assertj;
1717

1818

1919
import org.openrewrite.ExecutionContext;
@@ -45,7 +45,7 @@
4545
* shim method to support these method signatures, however, those shims would need to exist on each compilation
4646
* unit or in a shared testing utilities library.
4747
*/
48-
public class AssertTrueToAssertThat extends Recipe {
48+
public class JUnitAssertTrueToAssertThat extends Recipe {
4949

5050
@Override
5151
protected TreeVisitor<?, ExecutionContext> getVisitor() {

src/main/java/org/openrewrite/java/testing/junitassertj/JUnitFailToAssertJFail.java renamed to src/main/java/org/openrewrite/java/testing/assertj/JUnitFailToAssertJFail.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.openrewrite.java.testing.junitassertj;
16+
package org.openrewrite.java.testing.assertj;
1717

1818
import org.openrewrite.*;
1919
import org.openrewrite.java.JavaIsoVisitor;

src/main/java/org/openrewrite/java/testing/junitassertj/package-info.java renamed to src/main/java/org/openrewrite/java/testing/assertj/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
* limitations under the License.
1515
*/
1616
@NonNullApi
17-
package org.openrewrite.java.testing.junitassertj;
17+
package org.openrewrite.java.testing.assertj;
1818

1919
import org.openrewrite.internal.lang.NonNullApi;

0 commit comments

Comments
 (0)