|
|
|
|
|
|
|
|
|
|
|
import org.junit.Test; |
|
|
|
|
|
import static org.junit.Assert.*; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class TestSpendenBetrag { |
|
|
|
|
|
@Test |
|
|
|
|
|
public void spendenhoeheChange(){ |
|
|
|
|
|
SpendenBetrag s = new SpendenBetrag(2000,"Pia", "Korn", "Aarif","Amablabla", "blalba@mail.de"); |
|
|
|
|
|
|
|
|
|
|
|
assertEquals("Pia", s.firstnameSpender); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
public void spendenhoeheChange2(){ |
|
|
|
|
|
SpendenBetrag t = new SpendenBetrag(2000,"Pia", "Korn", "Aarif","Amablabla", "blalba@mail.de"); |
|
|
|
|
|
|
|
|
|
|
|
assertEquals(2000, t.spendenhoehe); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
@Test |
|
|
|
|
|
public void spendenhoeheChange3(){ |
|
|
|
|
|
SpendenBetrag u = new SpendenBetrag(50,"Lien", "Tra", "Jay","Bay", "Test"); |
|
|
|
|
|
|
|
|
|
|
|
assertEquals("Jay", u.firstnameBeduerftiger); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |