Package junit

Source Code of junit.DivisionTest

package junit;

import pass.Division;
import junit.framework.TestCase;

public class DivisionTest extends TestCase {
   
    private Division division;
   
    protected void setUp () throws Exception {
      super.setUp ();
      division = new Division ();
    }
   
    protected void tearDown () throws Exception {
      super.tearDown ();
    }
   
    public void testDivide () {
      this.assertEquals(division.divide (0, 42), 0);
      this.assertEquals(division.divide (42, 1), 42);
      this.assertEquals(division.divide (127, 3), 42);
    }
}
TOP

Related Classes of junit.DivisionTest

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.