From ebb9bbd2189d1f6a669fa1354e949008a01d4215 Mon Sep 17 00:00:00 2001 From: Hammy Date: Thu, 5 Nov 2020 22:31:37 +0000 Subject: [PATCH] Add Greeting Class for Hello World TDD demonstration --- .../src/main/java/hello/world/App.java | 13 ------------- .../src/main/java/hello/world/Greeting.java | 11 ++++++++--- .../target/classes/hello/world/Greeting.class | Bin 0 -> 620 bytes .../target/classes/hello/world/HelloWorld.class | Bin 0 -> 701 bytes .../test-classes/hello/world/HelloWorldTest.class | Bin 0 -> 875 bytes 5 files changed, 8 insertions(+), 16 deletions(-) delete mode 100644 Personal/Test Driven Development/Hello World/src/main/java/hello/world/App.java create mode 100644 Personal/Test Driven Development/Hello World/target/classes/hello/world/Greeting.class create mode 100644 Personal/Test Driven Development/Hello World/target/classes/hello/world/HelloWorld.class create mode 100644 Personal/Test Driven Development/Hello World/target/test-classes/hello/world/HelloWorldTest.class diff --git a/Personal/Test Driven Development/Hello World/src/main/java/hello/world/App.java b/Personal/Test Driven Development/Hello World/src/main/java/hello/world/App.java deleted file mode 100644 index 6486350..0000000 --- a/Personal/Test Driven Development/Hello World/src/main/java/hello/world/App.java +++ /dev/null @@ -1,13 +0,0 @@ -package hello.world; - -/** - * Hello world! - * - */ -public class App -{ - public static void main( String[] args ) - { - System.out.println("Hello World!"); - } -} diff --git a/Personal/Test Driven Development/Hello World/src/main/java/hello/world/Greeting.java b/Personal/Test Driven Development/Hello World/src/main/java/hello/world/Greeting.java index 7143720..1a1efab 100644 --- a/Personal/Test Driven Development/Hello World/src/main/java/hello/world/Greeting.java +++ b/Personal/Test Driven Development/Hello World/src/main/java/hello/world/Greeting.java @@ -11,7 +11,12 @@ public class Greeting { this.message = message; } - public String getMessage() { return message; } - public void setMessage(String message) { this.message = message; } - + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + } diff --git a/Personal/Test Driven Development/Hello World/target/classes/hello/world/Greeting.class b/Personal/Test Driven Development/Hello World/target/classes/hello/world/Greeting.class new file mode 100644 index 0000000000000000000000000000000000000000..f9f4e133ed53fb3d16df4cc71d8e4aa8963dd02c GIT binary patch literal 620 zcmZvY%}&BV6ot=7ZDlBbQqZkCz{JM5)UYwZ4eA2Jet=0CQre^~`dXT3OkDT?K9uoJ zTYe%edS~v;={et>pWm-<0GBwmaKPZqr0<9BOBnf6_b!q$QGsW{V5rT-vv7S8c<$qP zE++|twUBWvJjrl8*xU}2i2k`|FmF_#k{&~$-5D_$x8YQB6i~8Z;fSF+P=S0{F2*u? z5@SEL2`9oIiAd=_KQxk=iWypieP|TZZ10A5Mnw>njYF6W+>^=u3e{@HaX*fK8Rt3X&TnEYr@; zM5v%joi?aZ)dqc1YAx3W-SZFBH!hVlnv+Y3w07#$%G9}&PSRK!q5&uObkm-IyYHyK ml6eNDWgvikK+QE!F9$OJ!DJ&fD9+geG1nmG8l;sbp8Nr4rec!- literal 0 HcmV?d00001 diff --git a/Personal/Test Driven Development/Hello World/target/classes/hello/world/HelloWorld.class b/Personal/Test Driven Development/Hello World/target/classes/hello/world/HelloWorld.class new file mode 100644 index 0000000000000000000000000000000000000000..ac46d30c797e3ef408eecb902109fb17efbdb0fc GIT binary patch literal 701 zcmZuv+fLg+5Iq|LPK-;^+<+EZC=?u0)#`JqzEo=a;9gLwpsG)suriAr8#xY$&w_^_ zwNgKzA60SIp$ZX^rMd2$nKR?R|9<@e@CL6eYODA6oNa> zT+_@V|L=lpv^()A>8lUgoT4d` zGNm(lK>dhb5i2M$Vu}w5nWL`%M)^mja)X+Gjn&o|n`3NG!B(=)McDjmgfyUyNg?*I RPtRt|MU$`s2lR7j-2%UDo5TPB literal 0 HcmV?d00001 diff --git a/Personal/Test Driven Development/Hello World/target/test-classes/hello/world/HelloWorldTest.class b/Personal/Test Driven Development/Hello World/target/test-classes/hello/world/HelloWorldTest.class new file mode 100644 index 0000000000000000000000000000000000000000..e6f339839f05900ec8e849a11bb502d745df4c4b GIT binary patch literal 875 zcma)4U2oGc6g|$mrDS1i)2>^`fR3-VAQACggft-r4`EDnD&o;?t<;qli^PH7#S23q z@dNl#i0d??MQFgw{qVg$_nd2g|MBG;fJf-La2R%{LMa`7(5ae)FKqnAhNmJkE-DPQ z8Gp}1#gjOEHJXXBVOV=C6KS3>taN)rhRRbt5gt}>#m6ev7&arBh~xZhB+^qpQi36f z^q8w5Po>Sv!-|>8jA1XjoI#(V9j8JVnZz$emho5&raD)X6Q0r4_Uk+`@=Oe6CJFa2 zNwncc>V#^wNT+c)%ZX`d#q?bS49(?P&r9SgnhfiO_D&(*Lme$EW}9KF8!a|4Fex$V z_lCBk?PC|$7`#}Rk{k`__Wtbma2+>Y+#ps9QioY4Qsbk8eFmTOQ1?b|hq(yveP&~5|! zpx38g1hUM&I$4*pkUS&5djA~Nj}$oY$l5X}S|{tz8^~X!jA4VS4mQiK8hHzJLck9B z=2z6;290xUMM2}iC+vL2-U4@{AWF!@AwFqsS OChh!V(g87d(ESN+tG%-T literal 0 HcmV?d00001