Spender Klasse fertig
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
|
||||
public class TestClass {
|
||||
|
||||
@Test
|
||||
public void test1(){
|
||||
// arrange
|
||||
Person p = new Person("Dani", "Estade", 18);
|
||||
|
||||
Spender s = new Spender( "titi", "nase", 22 , 33);
|
||||
|
||||
//act
|
||||
assertEquals("titi", s.name);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user