Merge pull request #36 from aragastmatb/feature/new_method

Feature/new method
This commit is contained in:
aragastmatb
2022-06-06 21:48:41 +03:00
committed by GitHub
3 changed files with 8 additions and 1 deletions

View File

@@ -15,7 +15,7 @@
<distributionManagement>
<repository>
<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>
</distributionManagement>
<dependencies>

View File

@@ -7,4 +7,7 @@ public class Welcomer{
public String sayFarewell() {
return "Farewell, good hunter. May you find your worth in waking world.";
}
public String sayNeedGold(){
return "Not enough gold";
}
}

View File

@@ -22,4 +22,8 @@ public class WelcomerTest {
assertThat(welcomer.sayWelcome(), containsString("hunter"));
assertThat(welcomer.sayFarewell(), containsString("hunter"));
}
@Test
public void welcomerSaysSilver(){
assertThat(welcomer.sayNeedGold(), containsString("gold"));
}
}