diff --git a/src/test/java/com/fishercoder/_68Test.java b/src/test/java/com/fishercoder/_68Test.java index 93d522dc3..7312876ed 100644 --- a/src/test/java/com/fishercoder/_68Test.java +++ b/src/test/java/com/fishercoder/_68Test.java @@ -1,39 +1,40 @@ package com.fishercoder; import com.fishercoder.solutions._68; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + import java.util.Arrays; -import org.junit.BeforeClass; -import org.junit.Test; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; public class _68Test { - private static _68.Solution1 solution1; - private static String[] words; + private static _68.Solution1 solution1; + private static String[] words; - @BeforeClass - public static void setup() { - solution1 = new _68.Solution1(); - } + @BeforeEach + public void setup() { + solution1 = new _68.Solution1(); + } - @Test - public void test1() { - words = - new String[] {"This", "is", "a", "good", "test!", "\n", "What", "do", "you", "\n", "think?", - "\n", "I", "think", "so", "too!"}; - assertEquals(Arrays.asList( - "This is a good", - "test! \n What do", - "you \n think? \n I", - "think so too! "), solution1.fullJustify(words, 16)); - } + @Test + public void test1() { + words = + new String[]{"This", "is", "a", "good", "test!", "\n", "What", "do", "you", "\n", "think?", + "\n", "I", "think", "so", "too!"}; + assertEquals(Arrays.asList( + "This is a good", + "test! \n What do", + "you \n think? \n I", + "think so too! "), solution1.fullJustify(words, 16)); + } - @Test - public void test2() { - words = new String[] {"This", "is", "an", "example", "of", "text", "justification."}; - assertEquals(Arrays.asList( - "This is an", - "example of text", - "justification. "), solution1.fullJustify(words, 16)); - } + @Test + public void test2() { + words = new String[]{"This", "is", "an", "example", "of", "text", "justification."}; + assertEquals(Arrays.asList( + "This is an", + "example of text", + "justification. "), solution1.fullJustify(words, 16)); + } }