mirror of
https://github.com/Dannecron/netology-devops-teamcity-example.git
synced 2025-12-25 23:32:35 +03:00
add status method
This commit is contained in:
@@ -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 sayStatus() {
|
||||||
|
return "Hello! My status is Good";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,4 +22,8 @@ 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 welcomerSaysStatus() {
|
||||||
|
assertThat(welcomer.sayStatus(), containsString("status"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user