diff --git a/exercises/practice/markdown/src/test/java/MarkdownTest.java b/exercises/practice/markdown/src/test/java/MarkdownTest.java index 6cb104bc8..89049da53 100644 --- a/exercises/practice/markdown/src/test/java/MarkdownTest.java +++ b/exercises/practice/markdown/src/test/java/MarkdownTest.java @@ -2,7 +2,7 @@ import org.junit.Ignore; import org.junit.Test; -import static org.junit.Assert.assertEquals; +import static org.assertj.core.api.Assertions.assertThat; public class MarkdownTest { @@ -18,7 +18,7 @@ public void normalTextAsAParagraph() { String input = "This will be a paragraph"; String expected = "
This will be a paragraph
"; - assertEquals(expected, markdown.parse(input)); + assertThat(markdown.parse(input)).isEqualTo(expected); } @Ignore("Remove to run test") @@ -27,7 +27,7 @@ public void italics() { String input = "_This will be italic_"; String expected = "This will be italic
"; - assertEquals(expected, markdown.parse(input)); + assertThat(markdown.parse(input)).isEqualTo(expected); } @Ignore("Remove to run test") @@ -36,7 +36,7 @@ public void boldText() { String input = "__This will be bold__"; String expected = "This will be bold
"; - assertEquals(expected, markdown.parse(input)); + assertThat(markdown.parse(input)).isEqualTo(expected); } @Ignore("Remove to run test") @@ -45,7 +45,7 @@ public void normalItalicsAndBoldText() { String input = "This will _be_ __mixed__"; String expected = "This will be mixed
"; - assertEquals(expected, markdown.parse(input)); + assertThat(markdown.parse(input)).isEqualTo(expected); } @Ignore("Remove to run test") @@ -54,7 +54,7 @@ public void withH1HeaderLevel() { String input = "# This will be an h1"; String expected = "This is a paragraph with # and * in the text
"; - assertEquals(expected, markdown.parse(input)); + assertThat(markdown.parse(input)).isEqualTo(expected); } @Ignore("Remove to run test") @@ -126,7 +126,7 @@ public void markdownUnorderedListsCloseProperlyWithPrecedingAndFollowingLines() String input = "# Start a list\n* Item 1\n* Item 2\nEnd a list"; String expected = "End a list
"; - assertEquals(expected, markdown.parse(input)); + assertThat(markdown.parse(input)).isEqualTo(expected); } }