This commit is contained in:
Alexey Metlyakov
2021-07-21 21:40:41 +03:00
parent a240000103
commit a0dc8e383b
2 changed files with 7 additions and 0 deletions

View File

@@ -7,4 +7,7 @@ public class Welcomer{
public String sayFarewell() { public String sayFarewell() {
return "Farewell, good hunter. May you find your worth in waking world."; return "Farewell, good hunter. May you find your worth in waking world.";
} }
public String saySome(){
return "Some";
}
} }

View File

@@ -22,5 +22,9 @@ public class WelcomerTest {
assertThat(welcomer.sayWelcome(), containsString("hunter")); assertThat(welcomer.sayWelcome(), containsString("hunter"));
assertThat(welcomer.sayFarewell(), containsString("hunter")); assertThat(welcomer.sayFarewell(), containsString("hunter"));
} }
@Test
public void welcomerSaysSome(){
assertThat(welcomer.saySome(), containsString("Another"));
}
} }