add test decorator

This commit is contained in:
Alexey Metlyakov
2021-03-14 17:11:07 +03:00
parent 6a9a5441f3
commit a81d2981ae
2 changed files with 2 additions and 0 deletions

View File

@@ -13,9 +13,11 @@ public class WelcomerTest {
public void welcomerSaysWelcome() {
assertThat(welcomer.sayWelcome(), containsString("Welcome"));
}
@Test
public void welcomerSaysFarewell() {
assertThat(welcomer.sayFarewell(), containsString("Farewell"));
}
@Test
public void welcomerSaysHunter() {
assertThat(welcomer.sayWelcome(), containsString("hunter"));
assertThat(welcomer.sayFarewell(), containsString("hunter"));