mirror of
https://github.com/Dannecron/netology-devops-teamcity-example.git
synced 2025-12-25 15:22:35 +03:00
add something
This commit is contained in:
@@ -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