FunctionTest.java
802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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);
}
}