Skip to content

Commit

Permalink
Merge eef3d92 into ef56a4a
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Feb 13, 2020
2 parents ef56a4a + eef3d92 commit 64c0ae4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
@@ -1,7 +1,14 @@
package com.examples.myproject;

public class App {
public String sayHello(String name) {
if (name == null)
return "Hello";
else
return "Hello " + name;
}

public String sayHello() {
return "Hello";
return sayHello(null);
}
}
Expand Up @@ -16,4 +16,9 @@ public void setup() {
public void testSayHello() {
assertEquals("Hello", app.sayHello());
}

@Test
public void testSayHelloWithName() {
assertEquals("Hello World", app.sayHello("World"));
}
}

0 comments on commit 64c0ae4

Please sign in to comment.