From d23927fd6ed54e04809e0386973fd17ff00b90f9 Mon Sep 17 00:00:00 2001 From: Hammy Date: Wed, 9 Dec 2020 00:03:04 +0000 Subject: [PATCH] Complete Refactor of File Directories --- .../{main/java/hello/world => java}/Greeting.java | 2 +- .../{main/java/hello/world => java}/HelloWorld.java | 2 +- .../hello/world => test/java}/HelloWorldTest.java | 13 ++++--------- 3 files changed, 6 insertions(+), 11 deletions(-) rename Personal/src/tdd/hello/world/src/{main/java/hello/world => java}/Greeting.java (85%) rename Personal/src/tdd/hello/world/src/{main/java/hello/world => java}/HelloWorld.java (80%) rename Personal/src/tdd/hello/world/{src/test/java/hello/world => test/java}/HelloWorldTest.java (73%) diff --git a/Personal/src/tdd/hello/world/src/main/java/hello/world/Greeting.java b/Personal/src/tdd/hello/world/src/java/Greeting.java similarity index 85% rename from Personal/src/tdd/hello/world/src/main/java/hello/world/Greeting.java rename to Personal/src/tdd/hello/world/src/java/Greeting.java index 059fa60..f5101d1 100644 --- a/Personal/src/tdd/hello/world/src/main/java/hello/world/Greeting.java +++ b/Personal/src/tdd/hello/world/src/java/Greeting.java @@ -1,4 +1,4 @@ -package tdd.hello.world.src.main.java.hello.world; +package tdd.hello.world.src.java; public class Greeting { String message; diff --git a/Personal/src/tdd/hello/world/src/main/java/hello/world/HelloWorld.java b/Personal/src/tdd/hello/world/src/java/HelloWorld.java similarity index 80% rename from Personal/src/tdd/hello/world/src/main/java/hello/world/HelloWorld.java rename to Personal/src/tdd/hello/world/src/java/HelloWorld.java index 4bb1db1..06f926e 100644 --- a/Personal/src/tdd/hello/world/src/main/java/hello/world/HelloWorld.java +++ b/Personal/src/tdd/hello/world/src/java/HelloWorld.java @@ -1,4 +1,4 @@ -package tdd.hello.world.src.main.java.hello.world; +package tdd.hello.world.src.java; /** * Hello world! diff --git a/Personal/src/tdd/hello/world/src/test/java/hello/world/HelloWorldTest.java b/Personal/src/tdd/hello/world/test/java/HelloWorldTest.java similarity index 73% rename from Personal/src/tdd/hello/world/src/test/java/hello/world/HelloWorldTest.java rename to Personal/src/tdd/hello/world/test/java/HelloWorldTest.java index 27901a2..8a0302c 100644 --- a/Personal/src/tdd/hello/world/src/test/java/hello/world/HelloWorldTest.java +++ b/Personal/src/tdd/hello/world/test/java/HelloWorldTest.java @@ -1,18 +1,13 @@ -package tdd.hello.world.src.test.java.hello.world; +package tdd.hello.world.test.java; import org.junit.Test; -import tdd.hello.world.src.main.java.hello.world.Greeting; +import tdd.hello.world.src.java.Greeting; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; -/** - * Unit test for simple App. - */ public class HelloWorldTest { - /** - * Rigorous Test :-) - */ + @Test public void greetingMessageShouldPass() { Greeting greeting = new Greeting("Hello World"); @@ -24,4 +19,4 @@ public class HelloWorldTest { Greeting greeting = new Greeting("Not Hello World"); assertNotEquals("Hello World", greeting.getMessage()); } -} +} \ No newline at end of file