mirror of
https://github.com/Dannecron/netology-devops-teamcity-example.git
synced 2025-12-25 23:32:35 +03:00
fix project
This commit is contained in:
24
src/test/java/plaindoll/WelcomerTest.java
Normal file
24
src/test/java/plaindoll/WelcomerTest.java
Normal 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"));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user