Package org.gradle.example.simple

Source Code of org.gradle.example.simple.TestPerson13

package org.gradle.example.simple;

import org.gradle.example.simple.Person;

import org.junit.Test;
import static org.junit.Assert.*;

public class TestPerson13 {
  @Test
  public void testPerson() {
      Person p = new Person();
      p.setAge(20);
      p.setName("Fird Birfle");
      p.setSalary(195750.22);
     
      assertEquals(215325.242, p.calculateBonus(), 0.01);
      assertEquals("The Honorable Fird Birfle", p.becomeJudge());
      assertEquals(30, p.timeWarp());
     
      p.wasteTime();
  }
}
TOP

Related Classes of org.gradle.example.simple.TestPerson13

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.