fix project

This commit is contained in:
Alexey Metlyakov
2021-03-14 17:09:18 +03:00
parent 5295976ea8
commit 6a9a5441f3
10 changed files with 90 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
package plaindoll;
import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.*;
import org.junit.Test;
public class WelcomerTest {
private Welcomer welcomer = new Welcomer();
@Test
public void welcomerSaysWelcome() {
assertThat(welcomer.sayWelcome(), containsString("Welcome"));
}
public void welcomerSaysFarewell() {
assertThat(welcomer.sayFarewell(), containsString("Farewell"));
}
public void welcomerSaysHunter() {
assertThat(welcomer.sayWelcome(), containsString("hunter"));
assertThat(welcomer.sayFarewell(), containsString("hunter"));
}
}