Banksystem Test Klasse hinzugefügt
parent
25105db288
commit
55f476f77a
|
@ -4,20 +4,9 @@ import static org.junit.jupiter.api.Assertions.*;
|
|||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import de.hs_mannheim.informatik.bank.domain.Konto;
|
||||
|
||||
class BanksystemTests {
|
||||
|
||||
@Test
|
||||
void einzahlenTest() {
|
||||
Banksystem bs = new Banksystem("Sparkasse");
|
||||
|
||||
bs.kontoAnlegen("Hans");
|
||||
|
||||
bs.einzahlen(500, 1000);
|
||||
bs.einzahlen(200, 1000);
|
||||
|
||||
assertEquals(700, 700);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue