Blame view

src/kernel/test/FunctionTest.java 715 Bytes
35c209df   Remi   merge
1
2
3
4
5
  package kernel.test;
  
  import kernel.Cell;
  import kernel.Grid;
  import kernel.LanguageEnum;
4186cd92   Remi   fix tests
6
  import kernel.exception.InvalidIntervalException;
35c209df   Remi   merge
7
8
9
10
11
12
13
  import kernel.function.Sum;
  import org.junit.Before;
  import org.junit.Test;
  
  import java.util.ArrayList;
  import java.util.List;
  
35c209df   Remi   merge
14
  public class FunctionTest {
4186cd92   Remi   fix tests
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  	
  	private List<Cell> cells;
  	
  	@Before
  	public void initData() throws InvalidIntervalException {
  		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);
  	}
35c209df   Remi   merge
36
  }