einer von den tests
parent
13096f087b
commit
3b330e17e4
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,25 @@
|
||||||
|
package de.hs_mannheim.informatik.bank.domain;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
import de.hs_mannheim.informatik.bank.facade.Banksystem;
|
||||||
|
|
||||||
|
class GirokontoTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void auszahlentest() throws Exception {
|
||||||
|
Konto k;
|
||||||
|
Konto k2;
|
||||||
|
Banksystem bs = new Banksystem("Test");
|
||||||
|
Bank bank = new Bank("Testbank");
|
||||||
|
bs.kontoAnlegen("Willi", 1);
|
||||||
|
bs.kontoAnlegen("Ralf", 2);
|
||||||
|
k = bank.findeKonto(1000);
|
||||||
|
k2 = bank.findeKonto(1001);
|
||||||
|
assertTrue(k.auszahlen(100, "Test", "Auszahlung", "Firma"));
|
||||||
|
assertFalse(k2.auszahlen(100, "Test", "Auszahlung", "Firma"));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue