forked from hummel/Bank-System
Weitere Änderungen Testat
parent
080c41122f
commit
d087058ee1
|
@ -9,7 +9,7 @@ import de.hs_mannheim.informatik.bank.infrastructure.Persistenz;
|
||||||
|
|
||||||
public class Banksystem {
|
public class Banksystem {
|
||||||
private Bank bank;
|
private Bank bank;
|
||||||
static int counter = 0;
|
private static int counter = 0;
|
||||||
|
|
||||||
public Banksystem(String bankname) throws Exception {
|
public Banksystem(String bankname) throws Exception {
|
||||||
if (Persistenz.sindDatenGespeichert(bankname))
|
if (Persistenz.sindDatenGespeichert(bankname))
|
||||||
|
|
|
@ -126,6 +126,8 @@ class SystemTest {
|
||||||
int testKontonummer1 = bs.kontoAnlegen("Robin", 2);
|
int testKontonummer1 = bs.kontoAnlegen("Robin", 2);
|
||||||
int testKontonummer2 = bs.kontoAnlegen("Kai", 2);
|
int testKontonummer2 = bs.kontoAnlegen("Kai", 2);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String name = "TestPersistenz";
|
String name = "TestPersistenz";
|
||||||
|
|
||||||
assertTrue(Persistenz.sindDatenGespeichert(name));
|
assertTrue(Persistenz.sindDatenGespeichert(name));
|
||||||
|
|
Loading…
Reference in New Issue