mirror of
https://github.com/Dannecron/netology-devops-teamcity-example.git
synced 2025-12-25 15:22:35 +03:00
Merge pull request #46 from aragastmatb/feature/add_test
Feature/add test
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
<groupId>org.netology</groupId>
|
<groupId>org.netology</groupId>
|
||||||
<artifactId>plaindoll</artifactId>
|
<artifactId>plaindoll</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>0.0.1</version>
|
<version>0.0.2</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
|
|||||||
@@ -10,4 +10,7 @@ public class Welcomer{
|
|||||||
public String sayNeedGold(){
|
public String sayNeedGold(){
|
||||||
return "Not enough gold";
|
return "Not enough gold";
|
||||||
}
|
}
|
||||||
|
public String saySome(){
|
||||||
|
return "something in the way";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,4 +26,8 @@ public class WelcomerTest {
|
|||||||
public void welcomerSaysSilver(){
|
public void welcomerSaysSilver(){
|
||||||
assertThat(welcomer.sayNeedGold(), containsString("gold"));
|
assertThat(welcomer.sayNeedGold(), containsString("gold"));
|
||||||
}
|
}
|
||||||
|
@Test
|
||||||
|
public void welcomerSaysSomething(){
|
||||||
|
assertThat(welcomer.saySome(), containsString("something"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user