import org.junit.Test; /** * This test class merely runs your Colorize program on each of the provided * sample inputs. You can add your own samples here if you wish. * * @author Curt Clifton */ public class ColorizeTest { /** * Tests the Backquote input. */ @Test(timeout=5000) public void testBackquote() { Colorize.colorize("Backquote"); } /** * Tests the Comments input. */ @Test(timeout=5000) public void testComments() { Colorize.colorize("Comments"); } /** * Tests the Divide input. */ @Test(timeout=5000) public void testDivide() { Colorize.colorize("Divide"); } /** * Tests the Hello input. */ @Test(timeout=5000) public void testHello() { Colorize.colorize("Hello"); } /** * Tests the Insidious input. */ @Test(timeout=5000) public void testInsidious() { Colorize.colorize("Insidious"); } /** * Tests the Keywords input. */ @Test(timeout=5000) public void testKeywords() { Colorize.colorize("Keywords"); } /** * Tests the Multiline input. */ @Test(timeout=5000) public void testMultiline() { Colorize.colorize("Multiline"); } /** * Tests the NoExtraSpaces input. */ @Test(timeout=5000) public void testNoExtraSpaces() { Colorize.colorize("NoExtraSpaces"); } /** * Tests the SimpleKeywords input. */ @Test(timeout=5000) public void testSimpleKeywords() { Colorize.colorize("SimpleKeywords"); } /** * Tests the SingleQuoteChar input. */ @Test(timeout=5000) public void testSingleQuoteChar() { Colorize.colorize("SingleQuoteChar"); } /** * Tests the SlashSlash input. */ @Test(timeout=5000) public void testSlashSlash() { Colorize.colorize("Slashslash"); } /** * Tests the SlashStar input. */ @Test(timeout=5000) public void testSlashStar() { Colorize.colorize("Slashstar"); } /** * Tests the Stringme input. */ @Test(timeout=5000) public void testStringme() { Colorize.colorize("Stringme"); } }