From 17170c965e9d250f4904aae0eef71a7e74f9f49b Mon Sep 17 00:00:00 2001 From: Alexey Metlyakov Date: Thu, 17 Mar 2022 21:11:44 +0300 Subject: [PATCH 1/2] add status method --- src/main/java/plaindoll/Welcomer.java | 3 +++ src/test/java/plaindoll/WelcomerTest.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/main/java/plaindoll/Welcomer.java b/src/main/java/plaindoll/Welcomer.java index 940a52a..d8849fc 100644 --- a/src/main/java/plaindoll/Welcomer.java +++ b/src/main/java/plaindoll/Welcomer.java @@ -7,4 +7,7 @@ public class Welcomer{ public String sayFarewell() { return "Farewell, good hunter. May you find your worth in waking world."; } + public String sayStatus() { + return "Hello! My status is Good"; + } } diff --git a/src/test/java/plaindoll/WelcomerTest.java b/src/test/java/plaindoll/WelcomerTest.java index 0ffe935..c2d2c3d 100644 --- a/src/test/java/plaindoll/WelcomerTest.java +++ b/src/test/java/plaindoll/WelcomerTest.java @@ -22,4 +22,8 @@ public class WelcomerTest { assertThat(welcomer.sayWelcome(), containsString("hunter")); assertThat(welcomer.sayFarewell(), containsString("hunter")); } + @Test + public void welcomerSaysStatus() { + assertThat(welcomer.sayStatus(), containsString("status")); + } } \ No newline at end of file From 1df591752eb713a95b7009bcf7ff388c0a012686 Mon Sep 17 00:00:00 2001 From: Alexey Metlyakov Date: Thu, 17 Mar 2022 21:27:01 +0300 Subject: [PATCH 2/2] change nexus repository link --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index bba777a..e6aedc1 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ nexus - http://84.252.132.62:8081/repository/maven-releases + http://51.250.44.27:8081/repository/maven-releases