Weitere Änderungen Testat

main
robinschumann 2022-10-25 14:36:48 +02:00
parent 080c41122f
commit d087058ee1
2 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import de.hs_mannheim.informatik.bank.infrastructure.Persistenz;
public class Banksystem {
private Bank bank;
static int counter = 0;
private static int counter = 0;
public Banksystem(String bankname) throws Exception {
if (Persistenz.sindDatenGespeichert(bankname))

View File

@ -126,6 +126,8 @@ class SystemTest {
int testKontonummer1 = bs.kontoAnlegen("Robin", 2);
int testKontonummer2 = bs.kontoAnlegen("Kai", 2);
String name = "TestPersistenz";
assertTrue(Persistenz.sindDatenGespeichert(name));