From f4a8f84c0879646c52646ad54a9e2b870afbc822 Mon Sep 17 00:00:00 2001 From: Greg Donnelly Date: Fri, 26 Feb 2021 19:25:00 -0500 Subject: [PATCH] Lab completed! Tests pass and reports true when over threshold.# --- .DS_Store | Bin 0 -> 6148 bytes LogginLab1.iml | 16 ++++++++++++++++ src/.DS_Store | Bin 0 -> 6148 bytes src/main/.DS_Store | Bin 0 -> 6148 bytes src/main/java/LogginLab.java | 4 ++-- src/test/.DS_Store | Bin 0 -> 6148 bytes src/test/java/LogginLabTest.java | 15 +++++++++++++++ 7 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .DS_Store create mode 100644 LogginLab1.iml create mode 100644 src/.DS_Store create mode 100644 src/main/.DS_Store create mode 100644 src/test/.DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..6b5137aa75c5cd85302810fc32d5efdcd1a7fa90 GIT binary patch literal 6148 zcmeHK!D`z;5S_K1X5~`qLm@ftrO<;3HVt*46cpDv3*tDqI4;m9seT(w0G+;0F67h1%K_Ij&Outi`S?xej7mxz=QX&2fNUN z1H>)Ni|vljGj9ILs6q}yI9ZGm8@ESA<9raMX0D&nAWib3)%qnW)!N#lbt&tz{-pjT zIMw5z2#ZnP4Tqnp_bx0>BWHimI-T2L^fBp=j~dV3>Z}NptUol#N!-Vf!%s;T>v30) zvN$*M1a?45PkKj<&B>(Q*>0-#&d#){CY?^JskUFfnod2r@x1+J|M=|tkIBXK@``xD zZva06BTpU9;2I4_!g(;vQk{K8&n$Wt#mEdW1I)n67;p!We7v$1c_C(i8MrSD(D|TH z34Mp9MRRmuW3B**HFO(6n|>N8M>+HzmKJdYMc7nCn=0HDL)dimD;MWGEG^n}5bp9J z+{(h;P=r|>=T{~igl~~sW`G%3WT0xh4XXcpci;aPleotWFar;Y0a5D(y)HhItF229 wN3~X=9;1>_TxoHhf`%!@7)zyi6V(X%6&Z-W!_p#pQ20l{(7+8duu=y80I_s)NdN!< literal 0 HcmV?d00001 diff --git a/LogginLab1.iml b/LogginLab1.iml new file mode 100644 index 0000000..0ddf51c --- /dev/null +++ b/LogginLab1.iml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..75c420ccc6137f769a539644b381caea11eef0e4 GIT binary patch literal 6148 zcmeHK!EVz)5S?vJ*#seSsMH>PLE?}@A}SIIAz7gudP6dT1Fc${MAVY&tzxH9NrU_w z@CSSfU%=LfFrGN!Da! z1E_e8z1)0CbCaUa6MFFscn0n^1H5+wI-!IzDpvOIOZcAswqh5th)bvCsqFKg>1m#o zRj2byt*r+SHXdr-)Xm4ugZS7?<0`2p m9oiH$avfWPui|Z}75G9nfRSMB5F-%(BVcLpjc4GWGVljh6R9Zx literal 0 HcmV?d00001 diff --git a/src/main/.DS_Store b/src/main/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..db469c4718e1406e520e296119ec83f409f73bd2 GIT binary patch literal 6148 zcmeHK!AiqG5Z!I7ZYyFAf<5LUc<7-;u>}!At%u%(h#pkh#1fwmA@U;MvWnwzrCKZ5m0ERDvd7hGxn%F|>`f+lvAI<_XtrjtOr0>-Ssq1%r_8C`>K8b6IABnF59VqgInFh`qMU4UAs1Y&>~_+19@ ze6T?g9fPSxb#%a>S^&TtxRrpde*FP$bO1UAQ;pyO;W`yir*hL`aML+(oeuMkiBC1^ zbjH=2VIA{kZaNfh8V_!(aK;^tG!g^Ez-I=q_XDx;{y+M;|5rgY5Cg=(Vlu#U4YyH; z+RWWLS0&!HHfS3Z1>;hUvlKAYRSdCs6&FF3fZs*~&@q^51P=)P2q+q8AO`-Ffe$+H BTJQh> literal 0 HcmV?d00001 diff --git a/src/main/java/LogginLab.java b/src/main/java/LogginLab.java index 11744ac..f534683 100644 --- a/src/main/java/LogginLab.java +++ b/src/main/java/LogginLab.java @@ -31,7 +31,7 @@ public void setThreshold(Integer threshold) { public boolean thresholdExceeds(Integer limit) { return (this.threshold > limit); } - // Write a method called thresholdReached, returns true if argument 'limit' is over the threshold. // Write a test for the method in the Test class. -} + public boolean thresholdReached(Integer limit) {return (this.threshold < limit); } +} \ No newline at end of file diff --git a/src/test/.DS_Store b/src/test/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c878815d89e7018f73475d09a798c6bf15114505 GIT binary patch literal 6148 zcmeHKQA+|r5Z+a*)rfou^6_4R9(+)e6e2jx9()Tf>Y+mKQu5-u6+J!5jQbn)kNO4u zoSNBPg|glvLS|t0o12~4W4=9hZx~~|KI)Vi%QMCVC}JuL!#9HSs0)%Zo-`oGHJX9E z_5$g_GcHK-{~5r&%dlJKvN3bN?B4;*?Y=8fh0No;c-S}l{Oa`se;AcYZ#67Rt>fqkA+jRd$`>Y+a-?+u`>t*8Qy?z7C(z4BnF59VqggvFh`qMUxHew1Y&>~_+19@ ze6TS^&TdxRrpde*FP0bO7206OG^j;W`yir*hL`aML+(oeuN1iBB}@ zbjH=2VIA{kZaNfh8V_!%aK>$oG!g^Ez-I=q_XEk}{eS#(|F42*AO?tm finalLimit; i--) { + if (lab.thresholdReached(i)) { + assertTrue(lab.thresholdReached(i)); + } else { + assertFalse(lab.thresholdReached(i)); + } + } + } } \ No newline at end of file