mirror of
https://github.com/Dannecron/netology-devops-teamcity-example.git
synced 2025-12-25 15:22:35 +03:00
Merge pull request #36 from aragastmatb/feature/new_method
Feature/new method
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -15,7 +15,7 @@
|
|||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>nexus</id>
|
<id>nexus</id>
|
||||||
<url>http://51.250.36.24:8081/repository/maven-releases</url>
|
<url>http://51.250.34.239:8081/repository/maven-releases</url>
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -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 sayNeedGold(){
|
||||||
|
return "Not enough gold";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 welcomerSaysSilver(){
|
||||||
|
assertThat(welcomer.sayNeedGold(), containsString("gold"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user