Merge pull request #46 from aragastmatb/feature/add_test

Feature/add test
This commit is contained in:
aragastmatb
2022-09-06 21:18:20 +03:00
committed by GitHub
3 changed files with 8 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
<groupId>org.netology</groupId>
<artifactId>plaindoll</artifactId>
<packaging>jar</packaging>
<version>0.0.1</version>
<version>0.0.2</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>

View File

@@ -10,4 +10,7 @@ public class Welcomer{
public String sayNeedGold(){
return "Not enough gold";
}
public String saySome(){
return "something in the way";
}
}

View File

@@ -26,4 +26,8 @@ public class WelcomerTest {
public void welcomerSaysSilver(){
assertThat(welcomer.sayNeedGold(), containsString("gold"));
}
@Test
public void welcomerSaysSomething(){
assertThat(welcomer.saySome(), containsString("something"));
}
}