diff --git a/pom.xml b/pom.xml
index 6ce4d32..3a30e4f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
org.netology
example-maven
jar
- 0.1.0
+ 0.2.0
1.8
@@ -14,21 +14,12 @@
-
-
- joda-time
- joda-time
- 2.9.2
-
-
-
junit
junit
4.12
test
-
diff --git a/src/main/java/hello/HelloPlayer.java b/src/main/java/hello/HelloPlayer.java
index 3369176..6e27e98 100644
--- a/src/main/java/hello/HelloPlayer.java
+++ b/src/main/java/hello/HelloPlayer.java
@@ -1,12 +1,9 @@
package plaindoll;
-import org.joda.time.LocalTime;
-
public class HelloPlayer{
public static void main(String[] args) {
- LocalTime currentTime = new LocalTime();
- System.out.println("The current local time is: " + currentTime);
Welcomer welcomer = new Welcomer();
System.out.println(welcomer.sayWelcome());
+ System.out.println(welcomer.sayFarewell());
}
}
diff --git a/src/main/java/hello/Welcomer.java b/src/main/java/hello/Welcomer.java
index d876fd1..940a52a 100644
--- a/src/main/java/hello/Welcomer.java
+++ b/src/main/java/hello/Welcomer.java
@@ -4,4 +4,7 @@ public class Welcomer{
public String sayWelcome() {
return "Welcome home, good hunter. What is it your desire?";
}
+ public String sayFarewell() {
+ return "Farewell, good hunter. May you find your worth in waking world.";
+ }
}
diff --git a/src/test/java/hello/WelcomerTest.java b/src/test/java/hello/WelcomerTest.java
index cb8f596..3e52db1 100644
--- a/src/test/java/hello/WelcomerTest.java
+++ b/src/test/java/hello/WelcomerTest.java
@@ -13,5 +13,12 @@ public class WelcomerTest {
public void welcomerSaysWelcome() {
assertThat(welcomer.sayWelcome(), containsString("Welcome"));
}
+ public void welcomerSaysFarewell() {
+ assertThat(welcomer.sayFarewell(), containsString("Farewell"));
+ }
+ public void welcomerSaysHunter() {
+ assertThat(welcomer.SaysWelcome(), containsString("hunter"));
+ assertThat(welcomer.sayFarewell(), containsString("hunter"));
+ }
}
\ No newline at end of file