FunctionTest.java 802 Bytes
package kernel.test;

import kernel.Cell;
import kernel.Grid;
import kernel.LanguageEnum;
import kernel.exception.InvalidIntervalLineColumnEception;
import kernel.function.Sum;
import org.junit.Before;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;


public class FunctionTest {

    private List<Cell> cells;

    @Before
    public void initData() throws InvalidIntervalLineColumnEception {
        Grid.language = LanguageEnum.EN;
        this.cells = new ArrayList<>();

        Cell a1 = new Cell("A", 1, 10.);
        Cell a2 = new Cell("A", 2, 0.);
        Cell a3 = new Cell("A", 3, 20.);

        this.cells.add(a1);
        this.cells.add(a2);
        this.cells.add(a3);
    }

    @Test
    public void testSum() {
        Sum sum = new Sum(this.cells);
    }
}