From f1ced6fda402359fa5cd48b9e6925d08516e37e4 Mon Sep 17 00:00:00 2001 From: informatikperson <62358979+informatikperson@users.noreply.github.com> Date: Tue, 25 Oct 2022 15:59:39 +0200 Subject: [PATCH] saldo versuch --- .../Sparkasse Mannheim-bank-data.ser | Bin 1089 -> 0 bytes Bank-BeispielMeins/TEst-bank-data.ser | Bin 1135 -> 882 bytes .../informatik/bank/facade/BanksystemTest.java | 11 +++++++++++ 3 files changed, 11 insertions(+) delete mode 100644 Bank-BeispielMeins/Sparkasse Mannheim-bank-data.ser diff --git a/Bank-BeispielMeins/Sparkasse Mannheim-bank-data.ser b/Bank-BeispielMeins/Sparkasse Mannheim-bank-data.ser deleted file mode 100644 index a7984b44f8d3c9239acb7d68ee87ef22b0c899e6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1089 zcmb7EOKa3n6h4#8Lu((?jx7il3W5tC$wC~3S!hM3oi^1)Rp`RUnVCCDI?2s=bJNBy zgsLdmjSF445CyxOAE6czcPicJN?eqJ2rfijRqsvb(b<&tLJrBf-}%n@zMG`}0}?)i zBW0pl{&g2AwTSI%Hm!KfMQ&HMBGRf>_FS~7c23+UjlY@C>F2)`Pz%so^(gliR_?x8 zwj9C?NXi7E95Ti%&Y>P~+tJ6-x2CX`GaydUB^(AeHyxy=KFyg;&0JUmvBW6-vQCqA zTB9zJ`to{Z=*CAClst4f9+vZ1;vOr&UT!hsTb@%6YiG_%0_dLKBVt-yu@;%^qZPzl zCSe2LUM&Avd~jNUSOF4q=maEWkdB&0xC?<>B3=G-fj| zvgM~fmS4IQ)FlUlqdTjfl!lTkzhBlKjrS`MFF=w8u1na2I4F*^Y(UDU7K#~f!fj9t z=!=>a$viOwYD(`1w|GCw7~V2$pGOX>>;Iy)vC1KCA@zl9CB z-(Dcm`6TD#!q}uJIn14~L<4W(3`l>5_#GCrk+GZL60& z*6dQOmGD+8k`5uXdnIueL*Hk6-IR?{0j_ z-0YiO>+fLNSe3g6W$2M%xMRxfTBZa2*4hqz>QF8WL-E~C*N|1w_sPgq<5%$?37&e@ diff --git a/Bank-BeispielMeins/TEst-bank-data.ser b/Bank-BeispielMeins/TEst-bank-data.ser index 5d682e7f07ddb78841275ea8b216a759a0db2562..792262ad2939e570f4bf3eb1cdad1138b3400441 100644 GIT binary patch delta 167 zcmaFQ@riAM5l4UI!Vmc-M*AjOg)lNs?Dt`0ns}#%;~ZCROw7A#<;e+*kxYz-Chul6 zuulj)Pqm^N4zG=HzCC@y5EV_;)o zV15Z^ae`PttsvcpN*GwviW2j(!7{ucA&9Y)UopuuN=)WrR^u&bVXdgBC}Cg;aV;(Z E06vE@Hvj+t delta 281 zcmeyw_MT&c5eJ*k58;~v^S?~A3SnfP*zd#0GVx9gM{3x&#RU^Q1ScmjMlvzCOy13C z%FR^H!oa}5R9wVhJXx1fTOcX5JT<*EFI_)W$G_>MTK8l#rVT6(Z+BHpmS>iqyo^bD zawIbkb9~sR$uF5?q?lVu7+BMa67#Z)3mNJdctJ)%3l$mVLtOnG50jwLsEsGEP zQ&9m{&c?vN{0hwC1hIgc!JveJ#UnAV7;Yj1*hB_|p4V_auMv9CoB`8R0W>YdwYUTT Dzz|6C diff --git a/Bank-BeispielMeins/src/de/hs_mannheim/informatik/bank/facade/BanksystemTest.java b/Bank-BeispielMeins/src/de/hs_mannheim/informatik/bank/facade/BanksystemTest.java index 1924ff2..a042030 100644 --- a/Bank-BeispielMeins/src/de/hs_mannheim/informatik/bank/facade/BanksystemTest.java +++ b/Bank-BeispielMeins/src/de/hs_mannheim/informatik/bank/facade/BanksystemTest.java @@ -39,5 +39,16 @@ class BanksystemTest { assertEquals(bs2.getKontostand(kontonummer), 50); } + @Test + void testSaldo() throws Exception { + Konto k = new Konto("Meier",1); + Konto k2 = new Konto("franz",2); + Banksystem bs = new Banksystem("TEstene"); + k.einzahlen(500, null, null, "Meier"); + k.einzahlen(200, null, null, "Meier"); + k.einzahlen(300, null, null, "Meier"); + assertEquals(500, k.getSaldo(2)); + assertEquals(700, k.getSaldo(3)); + } }