From c0688c408dc8943d2e50d21d6f3dc9222e798709 Mon Sep 17 00:00:00 2001 From: Cameron Gregor Date: Mon, 17 Jan 2022 10:13:21 +1100 Subject: [PATCH] Use org.testng.AssertJUnit instead of .internal.junit.ArrayAsserts This is just a follow-up to SEN-2564, now that the static method matching behaviour has been updated so these recipes can use org.testng.AssertJUnit instead. Note: this should not be merged until Sensei version 2022.1.2 has been released --- recipes/Java/AssertJ/From JUnit/JUnit_assertArrayEquals.yaml | 2 +- .../AssertJ/From JUnit/JUnit_assertArrayEquals_message.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/Java/AssertJ/From JUnit/JUnit_assertArrayEquals.yaml b/recipes/Java/AssertJ/From JUnit/JUnit_assertArrayEquals.yaml index 13e2a1cf..0885969f 100644 --- a/recipes/Java/AssertJ/From JUnit/JUnit_assertArrayEquals.yaml +++ b/recipes/Java/AssertJ/From JUnit/JUnit_assertArrayEquals.yaml @@ -14,7 +14,7 @@ search: anyOf: - type: org.junit.Assert - type: org.junit.jupiter.api.Assertions - - type: org.testng.internal.junit.ArrayAsserts + - type: org.testng.AssertJUnit availableFixes: - doStaticImports: true name: Change to assertThat(actualArray).isEqualTo(expectedArray) diff --git a/recipes/Java/AssertJ/From JUnit/JUnit_assertArrayEquals_message.yaml b/recipes/Java/AssertJ/From JUnit/JUnit_assertArrayEquals_message.yaml index a454f12a..bb2330a7 100644 --- a/recipes/Java/AssertJ/From JUnit/JUnit_assertArrayEquals_message.yaml +++ b/recipes/Java/AssertJ/From JUnit/JUnit_assertArrayEquals_message.yaml @@ -23,7 +23,7 @@ search: - args: 1: type: String - type: org.testng.internal.junit.ArrayAsserts + type: org.testng.AssertJUnit availableFixes: - doStaticImports: true name: Change to assertThat(actualArray).as(message).isEqualTo(expectedArray)