From a224b5502a0e7c543a61a520c608cbe0d68a5973 Mon Sep 17 00:00:00 2001 From: Linus Liang Date: Fri, 25 Sep 2015 12:47:09 -0400 Subject: [PATCH] working tests --- .idea/.name | 1 + .idea/compiler.xml | 22 + .idea/copyright/profiles_settings.xml | 3 + .idea/libraries/lib.xml | 10 + .idea/misc.xml | 80 ++++ .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/workspace.xml | 437 ++++++++++++++++++ .../Exercises$Child.class | Bin 0 -> 572 bytes .../Exercises$Parent.class | Bin 0 -> 425 bytes .../Exercises.class | Bin 0 -> 351 bytes .../unit-1-bootcamp-assessment/Main.class | Bin 0 -> 927 bytes .../unit-1-bootcamp-assessment/MyNode.class | Bin 0 -> 1008 bytes .../unit-1-bootcamp-assessment/MyObject.class | Bin 0 -> 1097 bytes .../MyObjectNode.class | Bin 0 -> 1517 bytes .../unit-1-bootcamp-assessment/Tests.class | Bin 0 -> 3739 bytes src/Exercises.java | 6 +- src/Main.java | 12 + src/MyObject.java | 4 +- unit-1-bootcamp-assessment.iml | 12 + 20 files changed, 596 insertions(+), 5 deletions(-) create mode 100644 .idea/.name create mode 100644 .idea/compiler.xml create mode 100644 .idea/copyright/profiles_settings.xml create mode 100644 .idea/libraries/lib.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 out/production/unit-1-bootcamp-assessment/Exercises$Child.class create mode 100644 out/production/unit-1-bootcamp-assessment/Exercises$Parent.class create mode 100644 out/production/unit-1-bootcamp-assessment/Exercises.class create mode 100644 out/production/unit-1-bootcamp-assessment/Main.class create mode 100644 out/production/unit-1-bootcamp-assessment/MyNode.class create mode 100644 out/production/unit-1-bootcamp-assessment/MyObject.class create mode 100644 out/production/unit-1-bootcamp-assessment/MyObjectNode.class create mode 100644 out/production/unit-1-bootcamp-assessment/Tests.class create mode 100644 src/Main.java create mode 100644 unit-1-bootcamp-assessment.iml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..540cdbc --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +unit-1-bootcamp-assessment \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..96cc43e --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..e7bedf3 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/.idea/libraries/lib.xml b/.idea/libraries/lib.xml new file mode 100644 index 0000000..85d6a10 --- /dev/null +++ b/.idea/libraries/lib.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..db1dbaa --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.8 + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..8928d91 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..f9ff243 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,437 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1443197942383 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/out/production/unit-1-bootcamp-assessment/Exercises$Child.class b/out/production/unit-1-bootcamp-assessment/Exercises$Child.class new file mode 100644 index 0000000000000000000000000000000000000000..810b8414cb32c9adc1c152aaa27043ae32e4a067 GIT binary patch literal 572 zcmZut%TB^T6g|@xS`Y;);&b7`n4(cO#*M}e(Zr-NCK&cZ8DL1ACPOiPmaa@(_yK;D z@lHV`Vw2v-x#!G1GoN4Y9{|pHN4|Nw?F18u+mr}{}iop&V9R{bB^aMjWluF!9 z9=k$6@NP_qA0`oxJ6ucC&p;;~$}vN(HI#9Wp>(U1(5;w{$AaK$c>OGNB&j*b7#9p~ zFKMTfexIQhG{O;o;?0<=L9?A|sRl$i43^PY=4k)iU7+;c5dN{{qY6y`JR!=|S+pG`j<3%VUuP0Gw5M{i)SR9NsR znz4xmilr$5MXXXsCQ+tn#3z&u&-SesN{do=L255ZD>LaiWy@%e|0=yqS)Wd4N^^D< Yex_N^Hr2=$2(josn^+;!4&@zq-zw&36951J literal 0 HcmV?d00001 diff --git a/out/production/unit-1-bootcamp-assessment/Exercises$Parent.class b/out/production/unit-1-bootcamp-assessment/Exercises$Parent.class new file mode 100644 index 0000000000000000000000000000000000000000..ca6a73b96c4ba39b3a66023c375b1d92c0898ff5 GIT binary patch literal 425 zcmYjNO;5r=6r61lw^L+pjv7pPonql+s6zug%K1igHu1R9Ap>Tdo# zRQ6F0Ga_-4r!pHzt6jYWgW^fg=))-}bnViiO@i@7DQ#REsju(^*fpC=f zi}`pg&}w&*seF~)OqxlzUs!D>B-Hx(+@|VAyRq9Vhcid5V*?cqd?^QpI1p&A7|R)i z)~@%%sYHfiy1c@jMM1N>3q zY%Fn?eRt-W4`#l9KED85;wZoniHAK8`yLJmZnjj_f)L(mElpO5rjd<@L&E4$7^zz} zu9a5pj4(Vsn-iR@UPwZeD=qKWuZ1+vqNtc8d0mQXE{wAN7CP-xHH1li^CnHHxcL8)*j-^ xU0EmWrJWDB=O3VV1_OkwBgQs$hc)bM7gI!CJnnRtbAW{N9eyr+c>MeDe*q73M%e%W literal 0 HcmV?d00001 diff --git a/out/production/unit-1-bootcamp-assessment/Main.class b/out/production/unit-1-bootcamp-assessment/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..7386161a3bad5d70dbdd86b12572ec0c3c138d32 GIT binary patch literal 927 zcmaJ=Yj4tE6n8&*`hYV4p&|-+acDsUM)wCROG9I*r_nxCr8g%dUkr$>JN6ke;i)XQ@{aE0Q-RYuW6g`ibfdPinB2cSswQ6+$ZT;F*E2+`Af|^*;g{~fSq*EzW7)<(8>K|~^ zjhmXda7h#YjeBD}cLp@I&f?vB&pUJPId|s!udm+#Jj8<(Y?M<-pd#6A$?nLpBFAb1 zcN4g$V0OH>fr4GDA8z(`yvGVw-*4{{GIw;K6>_yb{XwsGbho|wvbpEA0&p zk?5bERMAL*>{hQEXwnr5?)jFb*Q5-3`(89wvCM1*y7jKE55_j*E=LN_U2i-(-=TUQ zQb=v}hW(cJ!k6WxqmQ&AejH3=#=&LGJGhT)4lZKO!IET`FvkxPacSjW_q_Ao4|Qi? zF7Z#W`L`H|A&C^T7}DeDAOnS|5X&OYob!0*h&*Lfj8^#z)Mq9JF7Ol*U?R`ci3li! z?TTlRS(23K4I|ZtkxuwdG;o3Ui@5TqzRHZ&C{M=!U^E%ulur;lMY3`V%Q%)|gnVU$ zX-O+5FpglEf}0~uNg!r@f@wTq5s$F=1gp+}L}K9x2~!xyY;T697P%wPd77g$w051A zmNAPp8mM#CVzwN~8JndrvSfQ}l$^v3%B|B_nwbGvMUjZG3hX0~@U!GEGtVQLnVs2C ZKao>%+RE6NtmP)(ixzYXF1az3egnvcw66dF literal 0 HcmV?d00001 diff --git a/out/production/unit-1-bootcamp-assessment/MyObject.class b/out/production/unit-1-bootcamp-assessment/MyObject.class new file mode 100644 index 0000000000000000000000000000000000000000..d7684be3773af5d5cd16cd4f9d6716870ca251ed GIT binary patch literal 1097 zcmZ{j&2G~`6ot>kj-43iho(sjZE>OeI1V%{*nuh#0;y747O5)H1(Fl2)FpKwbwE4{ zJ9cbXfJBSLf(PKC5NF0tLP%KT#&c)Rch9|J|N8yoCxCmnYaxdld6>8Ce^#h6?_g`|S zv=c_b-teRy4EFtYPht8UzjxpdLb*b%7 literal 0 HcmV?d00001 diff --git a/out/production/unit-1-bootcamp-assessment/MyObjectNode.class b/out/production/unit-1-bootcamp-assessment/MyObjectNode.class new file mode 100644 index 0000000000000000000000000000000000000000..2a8ee84940b8b2dedb93d269356ef5a7718ead48 GIT binary patch literal 1517 zcma)4OK%ck6g@Kx3=C8HLa4PW)v7=r*jk@7O^n7B)Wn+Zr*x!KDKs$E^e6aB+-jmV zabaA!@b|bh>bc(xlp@A1=6>IN_nvdleSH7*`3rzmlr30TP9TOAF}K95S~Ry!+>!IH zn0sRGn|PqXXt*zY4XH}?=;`*JTk|(sJ8oG+wC&Y*=`eO2-_c<8{Pe}vyr$=`Yl!3v zTMT(bh=$RM*K{`y_qW~lb7#B3mx)TN<}|jPwkQALqv7v*9SvsP^(!j%SiaCB50l5~ zd=})FxW`I@-4{m@W~WOqoj^BcQ~JoJ@6=vaodeYp4u*7_UcKq~ zhizubcC(*?iIOy1u;;vTN)4x3F9q`=pQSnz_RiXD9ky%k6Hg{E-apkPf!Y|uxQ!%i z8zW*;7_~8ltOmP3*v2Ky*f@`A8yWG&f{tL8t7CE3BK*ig3n5Y`xp*e|F$uT;ylp_| z4M-P1K`Uw>p^J%#G2ZiC$0ThAQCbTI(FwAp$T>-y=BpjxaZY7nyO9mKOFV@;TKoY0 z9WMb{Og&EYfulVzD;)xk41%*m!R*EmurUap84A9DnGn2AojTRVit}v8NfRvfnqwoRh~xcY_@=*p9;@DHw84qira1y`wA#{Pz< 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)jy=^&Vd3Sjv#}Jp87fe3Vu&O*7dxm0i zkBjU#V|gnm@zP`j-En<+b)F=S;dnSn-l1VB*VP-TQ9VR5U9kvj zG`_KkW37yb1eQ)-rV92CtsVN78F$B%L?o@rTOXxRT=WCGCTnPRB)x*=n2FVNS9#aU zB?Y@aBTq<-f|P4to{HF8-NV)utP@Lk5s>W7L&I@Z+;nl?(bm#R8#%Mee4X^ip+z}{ z&r(Vi%b#Ms3P#rQSet0RPulsW+`yi*J-$z-XHHG>3L@?az6}GfQ3~o@KQI)B9&!+8 zzX>?DiM*=v))U$q7@CT^NBQWoxea2C7((Om#Lc2_Rynp~gdalUuM3nU_VRZhpT;;U z9FrsOLwT2z4(yMdfF7CwBXq!>xQkB;GThuLH(#W82iNx8K*!Ac=**dk(Iq68(KTvz zEJIy}HfnauiOzXD`~Z^NwjLTx{%*h^`iO2orW*)DM(H$c#Q_{-+Rt-Gg5wwPMb1PO z;~W(nYQcGwumqgU4RjMuDrXwEf}@!|qyIp+*|UV(2)B)FkdZ+=8a5KyCeAkVgKY~- z-x@=gX`vgz;ZH?(q=oJZu_Z+8Wq#9*n!QU{pWnL#v#`(H5OO6@bV~X|es<7*CsNpj zUb2(M9*JNij1nP8khP=u5_w2r9lne#v-Cp8y_jIEV~i-;7uqIiyA_Man>dxTjNi?D zPp-t-SGa+GvN|xH*f*X`CqF#c)p=0uSNprJVq-eluV%)zbRw-S;r1om@!%CzdE=9R zb$x*JOs6?moJp7)i!(`cQ*rg)!PwqqY^F@))_)5!5|WJlgb%_?P;)7+^pb`&%g?YW zM>tOKGvCEMSm5{s3ly3?0hRU??&D0ORmT+W=Zs~whT+kw}j;|m`;?n$r&!fPc zf9?_pWBFMbsOKnH>pVQdJ{L~!&Iimwmyst(EbBn3TeFn literal 0 HcmV?d00001 diff --git a/src/Exercises.java b/src/Exercises.java index ac85d45..8f7bf67 100644 --- a/src/Exercises.java +++ b/src/Exercises.java @@ -1,11 +1,11 @@ public class Exercises { static class Parent { - public String doStuff() { return ""; } + public String doStuff() { return "parent"; } } static class Child extends Parent { - public String doStuff() { return ""; } - public String doStuff(String s) { return ""; } + public String doStuff() { return "child"; } + public String doStuff(String s) { return s; } } diff --git a/src/Main.java b/src/Main.java new file mode 100644 index 0000000..ee64e15 --- /dev/null +++ b/src/Main.java @@ -0,0 +1,12 @@ +/** + * Created by linusliang on 9/25/15. + */ +public class Main { + public static void main(String[] args) { + MyObject obj1 = new MyObject(); + MyObject obj2 = new MyObject(); + obj1.name = "hey"; + obj2.name = "hey"; + System.out.println("object1 equals object2? " + obj1.equals(obj2)); + } +} diff --git a/src/MyObject.java b/src/MyObject.java index 7b99e2c..5d8545f 100644 --- a/src/MyObject.java +++ b/src/MyObject.java @@ -5,12 +5,12 @@ public class MyObject { String name; int age; - MyObject() { + public MyObject() { name = null; age = 0; } - MyObject(String newName, int newAge){ + public MyObject(String newName, int newAge){ this.name = newName; this.age = newAge; } diff --git a/unit-1-bootcamp-assessment.iml b/unit-1-bootcamp-assessment.iml new file mode 100644 index 0000000..fb8e866 --- /dev/null +++ b/unit-1-bootcamp-assessment.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file