12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import org.junit.Test;
- import static org.junit.Assert.*;
-
-
- public class TestAccount {
-
-
- @Test
- public void test1(){
-
- // Arrange
- Person p = new Person("Hans","Georg", 12);
-
-
- // Act
- Account a = new Account(p, "fdfdf");
-
- // Assert
- assertEquals("Georg", a.owner.vname);
-
-
- }
-
- @Test
- public void testM2(){
- // Arrange
- Person p = new Person("Hans","Georg", 12);
-
-
- // Act
- Account a = new Account(p, "fdfdf");
-
- // Assert
- assertEquals("Georg", a.owner.vname);
-
-
- }
-
- @Test
- public void test3(){
- // Arrange
- Person p = new Person("Hans","Georg", 12);
-
-
- // Act
- Account a = new Account(p, "fdfdf");
-
- // Assert
- assertEquals(12, a.owner.age);
-
- }
- }
|