From 6923a27aa845a546d141a9832b4ffb0e88fa908e Mon Sep 17 00:00:00 2001 From: karimjindani Date: Fri, 25 Aug 2023 08:49:02 +0500 Subject: [PATCH] Testing Changes Push 3 --- pom.xml | 56 ++++++++------- .../MultiplyIntegersTest.java | 10 ++- .../multiplyintegers/MultiplyIntegers.class | Bin 1580 -> 1651 bytes target/multiplyintegers-1.0-SNAPSHOT.jar | Bin 3658 -> 3671 bytes ....multiplyintegers.MultiplyIntegersTest.xml | 64 ++++++++++++++++++ ....multiplyintegers.MultiplyIntegersTest.txt | 4 ++ .../MultiplyIntegersTest.class | Bin 1019 -> 1899 bytes 7 files changed, 102 insertions(+), 32 deletions(-) create mode 100644 target/surefire-reports/TEST-com.example.multiplyintegers.MultiplyIntegersTest.xml create mode 100644 target/surefire-reports/com.example.multiplyintegers.MultiplyIntegersTest.txt diff --git a/pom.xml b/pom.xml index 58e852a..72a5b5f 100644 --- a/pom.xml +++ b/pom.xml @@ -19,36 +19,30 @@ - - junit - junit - 4.11 - test - + + + org.junit.jupiter + junit-jupiter-api + 5.7.0 + test + - - - org.junit.jupiter - junit-jupiter-api - 5.7.0 - test - - - - - org.junit.jupiter - junit-jupiter-engine - 5.7.0 - test - + + + org.junit.jupiter + junit-jupiter-engine + 5.7.0 + test + + + + + org.junit.vintage + junit-vintage-engine + 5.7.0 + test + - - - org.junit.jupiter - junit-jupiter-params - 5.7.0 - test - @@ -69,10 +63,14 @@ maven-compiler-plugin 3.8.0 + + 8 + 8 + maven-surefire-plugin - 2.22.1 + 2.22.2 maven-jar-plugin diff --git a/src/test/java/com/example/multiplyintegers/MultiplyIntegersTest.java b/src/test/java/com/example/multiplyintegers/MultiplyIntegersTest.java index aad91cf..653cfd4 100644 --- a/src/test/java/com/example/multiplyintegers/MultiplyIntegersTest.java +++ b/src/test/java/com/example/multiplyintegers/MultiplyIntegersTest.java @@ -1,8 +1,8 @@ package com.example.multiplyintegers; -import static org.junit.Assert.assertEquals; - -import org.junit.Test; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; public class MultiplyIntegersTest { @@ -24,4 +24,8 @@ public void testThreeNumbers() { assertEquals(210, result); } + @Test + public void testNoNumber() { + assertThrows(IllegalArgumentException.class, () -> MultiplyIntegers.multiply()); + } } diff --git a/target/classes/com/example/multiplyintegers/MultiplyIntegers.class b/target/classes/com/example/multiplyintegers/MultiplyIntegers.class index 604e0ffe3f2ee00f9cea32aa82aa6057d379ef91..6a4f9434061f9afd5d0c6ee65e41cd47b5f32712 100644 GIT binary patch delta 905 zcmZva&rcIU6vw}_yX}@`TWCuuv_L6Rgwnc|Um~rFg8YzHk(wAT#zi(2h0?T(i6=am z5WUs8c`@zTDpW3jwe zwDWe^GB?sLco>rWwcNq;%pYxrSA|c9A1w_2{}k{Y*4x;Mpo%sf?Fd!fDgKf5u@3%) zg$6W)A-fP^a4lJtt#x~%TYQS@=)pM#r&%gl#Z~dcuW}2^@>3RUObbU$IQn=*in_w+ z*D-)NpObo=DiRD4o|GfB>;=9d#i{oce<#I48Vn5S7)G2yD_C~Us#MH^<-#c6k^4ss zToPN&Qc$@ry|CBmC z?!0Y2dYUs!_so@b>y6UoW>AY;8!J}1qGEwZmHzEkIvDZDVB%kU0A}y?wH0pm0xQ-hXHDC(U^hFe(l0z&y8$W&v{R32=yN0Iy_#pxrijELoK0v3h ztA_6Ib`8BXoTvOQLRsNW*0o3I!5S`#N?Of>1VIhf=QJs~&ND<5g319EZn{t&iv6S# z@R7%Z6q+zjI*n%9M=xe5J4qFBD5TnP6WcQcoublN%#q4KBQ;-dZ5Fq%K;|sHIuy@C z6@v>Z3=OZu75dxkE}=NdF)EsMAHi7mjT~U?M9IW+iQ}vCm=aJr-y@g^C_@vDaJ%CW z{=_I=a#G~ef6ACCc~u_QyN z{umHtNY#iDV31}u*K8Fc8Z>y|b$i4Y@dgACk`ZKRdSX4ZQbns&NG(6FIQE8y^9Wb- zaVf%(bl(eY)z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0?g^D@fO9TA9Bcc{HADLa+^xg|?rPkGiTC;N0a>>z-O)sZlA#96-2F zV0M>FRYP3^40BcSWqx67+KHuEHMaU@RGtXpm(P3=iD^vJ^?KvI?RJSG#=x?s@y6`z z{Utuqg{@1iwMU<*Zwafo&OnImkd%|HUY{@$h`}^<(=p(xWwmjTR(3`GiyX6=_%l{1 z7&UE7hc?{W+q~K?&Z{`Vl&5Fzz$_Waf<>GMdl*JR&wNj%isRaUeq*P(Z(MBmFS8k1 z*g_~Q%y3eN%UTxS1RY=WR1$+0yx(lLRa+KsN@hM2Hk|MrR0_UvX)C8|r44)t=>I4@ z3aUqdK>q-$Cx~Zq&HNp#u(OB4&#ir!z2@9%hZ4_y=1`ir(T6oKT<=f};Le9q1P?&` zlEio(guUc1#IwFS|F5hkVAnbDGhjn}2ZCQxkJTEaC$N53S%z5FviQYF;riRC591NE VvEX23JP5?inu)AF(gZua{Rd6|$ld?| diff --git a/target/surefire-reports/TEST-com.example.multiplyintegers.MultiplyIntegersTest.xml b/target/surefire-reports/TEST-com.example.multiplyintegers.MultiplyIntegersTest.xml new file mode 100644 index 0000000..7c2dadb --- /dev/null +++ b/target/surefire-reports/TEST-com.example.multiplyintegers.MultiplyIntegersTest.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/com.example.multiplyintegers.MultiplyIntegersTest.txt b/target/surefire-reports/com.example.multiplyintegers.MultiplyIntegersTest.txt new file mode 100644 index 0000000..32d8fe6 --- /dev/null +++ b/target/surefire-reports/com.example.multiplyintegers.MultiplyIntegersTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: com.example.multiplyintegers.MultiplyIntegersTest +------------------------------------------------------------------------------- +Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 s - in com.example.multiplyintegers.MultiplyIntegersTest diff --git a/target/test-classes/com/example/multiplyintegers/MultiplyIntegersTest.class b/target/test-classes/com/example/multiplyintegers/MultiplyIntegersTest.class index 90911979ae9175e1a75b242bdff90666a08dce1d..7629229c7db59bccac58ae2b2e94aa42052d1406 100644 GIT binary patch literal 1899 zcmb7_TXWM!6vzMTn~b6)jsgiTkPsTc<|Z!X>HrNPfQx|{?5309Y2z%8f-D(n1w8!WCf9EFU?=PSJ0`L;X zryG0H?RopIFGWX$k@G?u>e|3i{N}?jS9#MIX3~e$s&x}KW(^#*a13({r-QKL?8cNG zU3;z+p~HKwvl>Mrly2Zh3>Hrg>+fUk(J^1C*Q*;v9H(?|74ZYzZW}nsaAruWd!FcU zZ#C@1UE$01y|(BnHJci?U||ub84R%}+OZT=WTn~|pT^tRZ>u|i!}Z0>xVt67 zmJ(#J8$p|U8$5K?SsQb5$E6BxG!9Lw(K1OQHff1GO`?qpMMT>{!>KcrU&p?5yJEwQ zTtcq;ejvG??#ch?kSc-UxQ_=0 z9$NSrt0ODv`X7RK!f7PAQ3QX>+cF6E878{v(?97Q(m{Q|GwyGDB3f<)!MnIuOKppO zxl)#qz}9|Gq}~7jkA39#W7BJ^mDjlEHR)Zhl~ACrJT`F_>lS^g=<8(FeP4vh%OPkE z<`Q=P;7lXuSr0VOaRSE3I9>IanfMhF*4{0QzJk*Yk98=)~xrzwigx@AQyCMLPio zs`PC29dH2`>BMk}f-_LTuaHYbXLEnT*v#5Tng^IzDV{jM%us3yS#q7gBnjDcRg!c4 zFfBPrf|qfHq#gQA<#(0t^pX!iziLo9{|&U6v*#09X<;00hEO(+V>X2=Yn)AWjl*3Z z;NEE5VqpZgnYYUca|WNsLFX|~$OV*B&_xZMM{z9l#sGScdZH#_*(W~X6mWp0--caO z|I$F_3DO@9#nS4jzLiY1R^+V)w3H|UN3v81%_b3KsR^ILO>)bT+btT?9eU2-F7DA? WO}$38M_8l3CuA|n@)UJENBJvlSjkZU literal 1019 zcmb7?T~8B16o%hvce|x*OIe_`Gy;krEeb0k>IKAv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