diff --git a/src/main/java/IntroLab.java b/src/main/java/IntroLab.java index fa5d6e2..d45414d 100644 --- a/src/main/java/IntroLab.java +++ b/src/main/java/IntroLab.java @@ -49,9 +49,11 @@ public static String exampleStudent() { "Welcome to CSC207!"); } - + public static String purbooco() { + return printLabMessage("Hello", "Cole", false, "Welcome to CSC207!"); + } public static void main(final String[] args) { - System.out.println(exampleStudent()); + System.out.println(purbooco()); /* TODO: Add a call to the method you wrote in this main method, * and print the results of it. diff --git a/src/test/java/IntroLabTest.java b/src/test/java/IntroLabTest.java index 4572da6..46e4aaa 100644 --- a/src/test/java/IntroLabTest.java +++ b/src/test/java/IntroLabTest.java @@ -18,10 +18,10 @@ public void tearDown() { } @Test(timeout = 10) - public void testExampleStudent() { - String expected = "Hello! My name is Stu Dent! " + - "I like cats more than dogs! Welcome to CSC207!"; - String actual = IntroLab.exampleStudent(); + public void testpurbooco() { + String expected = "Hello! My name is Cole! " + + "I like dogs more than cats! Welcome to CSC207!"; + String actual = IntroLab.purbooco(); assertEquals(expected, actual); } @@ -30,4 +30,7 @@ public void testExampleStudent() { * the test results. * As a reference, we've included testExampleStudent above. */ + } + +