Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completed TODO requirements #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
9 changes: 9 additions & 0 deletions src/main/java/IntroLab.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ public static String printLabMessage(String greeting, String name,
* Make sure you document your method properly!
*/

/**
* A method to greet Armon.
*/
public static String jamalza9() {
return printLabMessage("Hi there", "Armon", true,
"How's it hanging");
}

/**
* An example method that calls on printLabMessage.
*/
Expand All @@ -52,6 +60,7 @@ public static String exampleStudent() {

public static void main(final String[] args) {
System.out.println(exampleStudent());
System.out.println(jamalza9());

/* TODO: Add a call to the method you wrote in this main method,
* and print the results of it.
Expand Down
7 changes: 6 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 = 1000)
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,9 @@ public void testExampleStudent() {
* the test results.
* As a reference, we've included testExampleStudent above.
*/
@Test(timeout = 1000)
public void testJamalza9() {
String expected = "Hi there!, My name is Armon! " +
"I like cats more than dogs! How's it hanging!";
}
}