Package junit

Source Code of junit.SeriesTest

// Copyright 2013 Bill Campbell, Swami Iyer and Bahar Akbal-Delibas

package junit;

import pass.Series;
import junit.framework.TestCase;

public class SeriesTest extends TestCase {

    private Series series;

    protected void setUp() throws Exception {
        super.setUp();
        series = new Series(1, 1, 100);
    }

    protected void tearDown() throws Exception {
        super.tearDown();
    }

    public void testComputeSum() {
        this.assertEquals(series.computeSum(Series.ARITHMETIC), 5050);
        this.assertEquals(series.computeSum(Series.GEOMETRIC), 100);
    }

}
TOP

Related Classes of junit.SeriesTest

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.