Skip to content

Commit

Permalink
refactor: AssertJ best practices
Browse files Browse the repository at this point in the history
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.testing.assertj.Assertj?organizationId=T3BlblJld3JpdGU%3D

Co-authored-by: Moderne <team@moderne.io>
  • Loading branch information
timtebeek and TeamModerne committed Jul 10, 2024
1 parent 4cab955 commit faeb93e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@

import java.util.stream.Stream;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.assertj.core.api.Assertions.assertThat;

class ExternalDTDAccumulatorTest {
@ParameterizedTest
@MethodSource("provideEntitySplitTestArguments")
void entitySplit(String initial, String expected) {
assertEquals(expected, ExternalDTDAccumulator.extractURLFromEntity(initial));
assertThat(ExternalDTDAccumulator.extractURLFromEntity(initial)).isEqualTo(expected);
}

private static Stream<Arguments> provideEntitySplitTestArguments() {
Expand Down

0 comments on commit faeb93e

Please sign in to comment.