mirror of
https://github.com/Dannecron/netology-devops-teamcity-example.git
synced 2025-12-25 15:22:35 +03:00
Merge pull request #14 from aragastmatb/feature/addAskStatus
Feature/add ask status
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -15,7 +15,7 @@
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>nexus</id>
|
||||
<url>http://84.252.132.62:8081/repository/maven-releases</url>
|
||||
<url>http://51.250.44.27:8081/repository/maven-releases</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
<dependencies>
|
||||
|
||||
@@ -7,4 +7,7 @@ public class Welcomer{
|
||||
public String sayFarewell() {
|
||||
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.sayFarewell(), containsString("hunter"));
|
||||
}
|
||||
@Test
|
||||
public void welcomerSaysStatus() {
|
||||
assertThat(welcomer.sayStatus(), containsString("status"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user