Browse Source

Klasse SpendenBetrag mit Testfällen

master
Jana Gumbert 6 years ago
parent
commit
71906bd99c
1 changed files with 32 additions and 0 deletions
  1. 32
    0
      src/TestSpendenBetrag.java

+ 32
- 0
src/TestSpendenBetrag.java View File

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);


}

}

Loading…
Cancel
Save