Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/main/java/IntroLab.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public static String printLabMessage(String greeting, String name,
* As a reference, we've provided the sample method exampleStudent.
* Make sure you document your method properly!
*/

public static String zhouzi81() {
return printLabMessage("Hello", "Michael", true, "Nice to meet you!");
}
/**
* An example method that calls on printLabMessage.
*/
Expand All @@ -59,6 +61,7 @@ public static void main(final String[] args) {
* As a reference, we've provided a sample call to exampleStudent
* above. Afterwards: run this file to see the output!
*/
System.out.println(zhouzi81());


}
Expand Down
8 changes: 7 additions & 1 deletion src/test/java/IntroLabTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void setUp() {
public void tearDown() {
}

@Test(timeout = 10)
@Test(timeout = 100)
public void testExampleStudent() {
String expected = "Hello! My name is Stu Dent! " +
"I like cats more than dogs! Welcome to CSC207!";
Expand All @@ -30,4 +30,10 @@ public void testExampleStudent() {
* the test results.
* As a reference, we've included testExampleStudent above.
*/
public void testzhouzi81() {
String expected = "Hello! My name is Michael! " +
"I like cats more than dogs! Nice to meet you!";
String actual = IntroLab.zhouzi81();
assertEquals(expected, actual);
}
}