| 12345678910111213141516171819202122232425262728 |
- import org.junit.Test;
- import org.junit.Ignore;
- import org.junit.Ignore;
-
- import static org.junit.Assert.assertEquals;
-
- public class HelloWorldTest {
-
-
- @Test
- public void helloNoName() {
- assertEquals("Hello, World!", HelloWorld.hello(""));
- assertEquals("Hello, World!", HelloWorld.hello(null));
- }
-
- @Test
- @Ignore
- public void helloSampleName() {
- assertEquals("Hello, Alice!", HelloWorld.hello("Alice"));
- }
-
- @Test
- @Ignore
- public void helloAnotherSampleName() {
- assertEquals("Hello, Bob!", HelloWorld.hello("Bob"));
- }
- }
|