From 3b330e17e4a4f9bb2acb26f340f575f5138f7601 Mon Sep 17 00:00:00 2001 From: Marie Date: Tue, 25 Oct 2022 15:06:09 +0200 Subject: [PATCH] einer von den tests --- .../Spaßkasse Mannheim-bank-data.ser | Bin 771 -> 0 bytes Bank-Beispiel/Testsystem-bank-data.ser | Bin 962 -> 0 bytes Bank-Beispiel/Testsytsem-bank-data.ser | Bin 1775 -> 0 bytes .../informatik/bank/domain/GirokontoTest.java | 25 ++++++++++++++++++ 4 files changed, 25 insertions(+) delete mode 100644 Bank-Beispiel/Spaßkasse Mannheim-bank-data.ser delete mode 100644 Bank-Beispiel/Testsystem-bank-data.ser delete mode 100644 Bank-Beispiel/Testsytsem-bank-data.ser create mode 100644 Bank-Beispiel/src/de/hs_mannheim/informatik/bank/domain/GirokontoTest.java diff --git a/Bank-Beispiel/Spaßkasse Mannheim-bank-data.ser b/Bank-Beispiel/Spaßkasse Mannheim-bank-data.ser deleted file mode 100644 index 7e4a9aaded1465d2aec02c15d0a5ab91b942c76e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 771 zcmb7?KWx)L6vm(JIDs}Qp%s-nRLX!D067B-QjsVK3T|B(A_f?Mm-=E~;yb73bK_<} z3PLb+g@FOV(6KuVEGPqF1Tl3&OkKLLbVJ;^rs)WlY@P4kpYQwK+t~*@5pdooPMADm z$azR8b0}}ef}x~cr-i)h_%TDuo$G2nCm-Az@~s0CEElTXn9F!D+72TkJSgj5!X?aj z9o)c1DrwZXjY+tQy#)_S92t=?eRvol4;oD=C=V909;inNIj!>?o#zyJc4ha|X!h|} z3(O^$h+_1Ya81U-g_ANABnjil&w5uEbpfdMPpEHAy~a^7-N$j2u7HT?pYOI0hA%Fg zV7Op!V3d+fKrL^Y$K6R;i-_ktujVIT{@5}Bv@&Z?6}#|nh*mU^-7CKyp8frO(}a=> zWu7ud#Igb{k^3H0C=XF}S%)WJdT=Ud*dl!rq&(2{&K#q6O$gldXd-h))}D3=F!@13 zr8D{{RJ_tQGp2SFpAEmwzy6GGEN!)v&;iLI8~u{X*K{uZhoQgf8uu>Vefs5`0%I>j zxkaSFzyk|~EX-6fZR^c|j15+F9BH?U5ZgzYG6}U~E^nYD#Sk2to485&0K-TT(P>o) zv*VpQvU+nZ#7GjMj7*K)>pEd)Xsq0qbC$k5JrBmSsrUPxEX&kfHhVaF+r=ay_0?k7 F{{ZH|{mB3T diff --git a/Bank-Beispiel/Testsystem-bank-data.ser b/Bank-Beispiel/Testsystem-bank-data.ser deleted file mode 100644 index 47e2700c367135c208d90199efc1c97f9ee44c0a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 962 zcma))y>HY&5XA@kz7m267lA~Pj*3XWf(9u_d=yCx4h^X&fH}O_%h~H=cb)U4K)MEs zv`|nWfs``;1WG{-qDqCR!X=kT2q_(6$BAr&h`5z(*`9sxH}kxkBd96~mwo1h>S2sR zgp9`y7f%uyqvjo_jiTfDNsL@Lx6JcJeSdKv)(N5u$5(7LB37r}hi1%SF~&UjdWNZ|^n^2QRN$ zaLR@1Dn=>GBuwYfeBa$PZZr8}^Y!fMS6|mH0P4)%F=lh)MRbP(*}nGU!KGhc`W94N zsEIU=nY?X+)+l@r>Rg0qD9_+ISRS0sGiwyDca3N=HJ@8N0KpNdj)K- q)E$R+B5YK^Mx|(s$@UA_eyRH(?4W=hl%kVinTE*~rnKrS&EnrHTL^6c diff --git a/Bank-Beispiel/Testsytsem-bank-data.ser b/Bank-Beispiel/Testsytsem-bank-data.ser deleted file mode 100644 index 18ef9ff905e97e11543b31d81d457f7ffa0def2b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1775 zcmb_cJ5Ll*6h6DN4<0KbL=p-Ng<1%iEoe+2@eu_UR*iy%7V2I0?##eE@Xj4rC`{HE zEoil{FwumPpJ1UO#?WYd#2BK9(L&xJn9!;B%q%lRNp?;47L%EK@ArM@eCM2*S%s+0 z;8>Q*s(sxcrm0fRkTo-BF@tbzM9vU%M9x|U(MW-bfJch8o=>*={n#EtZ06t}<$?mY&Uzo;WE8021R>;#rSxJ{juB zDG`@KS;N=I)7yo6$HNdxL3E7h4$U*DcSYTM=N%(M+1;53Ew%T*Ooah3GHFAQwUuX4 zKN>RMwR!FEulEySh@>E9I)*`6pD>yeGnYPQ!lJ!wem#ieoD1-oah& zonnkkq&1tn9!VRRB`yxJzS*Zt(L`vCfocBreBo`&!R@`)t5VMKLxPoMm zZco&fixQQUwmeK3N(;Wyf`^G${i_snF=TLK2Gbf3vixxrH zAr4K!PAf552ZmIlbIL>_bwNKMk2+ik^mSoSt zS@xBd15}9-UGbGx0!&GzRbOc}K$TEh^Oe>DOi876Uuiu+?X8p-qccctZclKV8h-$7 CU*%H( diff --git a/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/domain/GirokontoTest.java b/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/domain/GirokontoTest.java new file mode 100644 index 0000000..42e9ba8 --- /dev/null +++ b/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/domain/GirokontoTest.java @@ -0,0 +1,25 @@ +package de.hs_mannheim.informatik.bank.domain; + +import static org.junit.jupiter.api.Assertions.*; + +import org.junit.jupiter.api.Test; + +import de.hs_mannheim.informatik.bank.facade.Banksystem; + +class GirokontoTest { + + @Test + void auszahlentest() throws Exception { + Konto k; + Konto k2; + Banksystem bs = new Banksystem("Test"); + Bank bank = new Bank("Testbank"); + bs.kontoAnlegen("Willi", 1); + bs.kontoAnlegen("Ralf", 2); + k = bank.findeKonto(1000); + k2 = bank.findeKonto(1001); + assertTrue(k.auszahlen(100, "Test", "Auszahlung", "Firma")); + assertFalse(k2.auszahlen(100, "Test", "Auszahlung", "Firma")); + } + +}