Test Update

main
Peter Gapon 2022-10-25 15:11:14 +02:00
parent 77a58ec9f5
commit 5de4efe095
1 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package de.hs_mannheim.informatik.bank.facade;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.io.File;
@ -73,7 +74,7 @@ class BanksystemTest {
System.out.println(arr[0]);
System.out.println(arr2[0]);
assertTrue(arr2[0].contains("betrag=900"));
assertTrue(arr[0].contains("betrag=900"));
}
@Test
@ -96,4 +97,11 @@ class BanksystemTest {
assertEquals(5, bs.zeigeSaldo(1000).size());
}
@Test
void persistierenTest() throws Exception {
Banksystem bs = new Banksystem("Testsystem");
assertNotEquals(0, bs.getKontenliste().length);
}
}