@@ -0,0 +1,1774 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage com.derniereligne.engine;%0A%0Aimport java.util.List;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0Aimport org.junit.Before;%0Aimport sun.awt.X11.XConstants;%0A%0A/**%0A *%0A * @author jenselme%0A */%0Apublic class JsonSvgTest %7B%0A%0A    private JsonSvg jsonSvg;%0A    private List%3CList%3CColor%3E%3E disposition;%0A%0A    @Before%0A    public void init() %7B%0A        jsonSvg = new JsonSvg();%0A        String%5B%5D armColors = %7B%22RED,YELLOW,BLACK,RED%22, %22BLUE,RED,BLACK,YELLOW%22,%0A            %22RED,YELLOW,BLACK,RED%22, %22BLUE,RED,BLACK,YELLOW%22%7D;%0A        String%5B%5D circleColors = %7B%22BLACK,YELLOW,BLACK,RED,BLUE,RED,BLACK,YELLOW%22, %22BLACK,YELLOW,BLACK,RED,BLUE,RED,BLACK,YELLOW%22%7D;%0A        int numberArms = 4;%0A        disposition = jsonSvg%0A                .getColorDisposition(circleColors, armColors, numberArms);%0A    %7D%0A%0A    /**%0A     * Check that the size of each list in disposition is correct.%0A     */%0A    @Test%0A    public void testGetColorDispositionSize() %7B%0A        // 6 lines%0A        assertEquals(6, disposition.size());%0A        // 16 column%0A        for (List%3CColor%3E line : disposition) %7B%0A            System.out.println(line);%0A            assertEquals(16, line.size());%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void testGetColorDisposition() %7B%0A        assertEquals(Color.BLUE, disposition.get(5).get(0));%0A        assertEquals(Color.RED, disposition.get(5).get(1));%0A        assertEquals(Color.BLUE, disposition.get(3).get(0));%0A        assertEquals(Color.YELLOW, disposition.get(3).get(3));%0A        assertEquals(Color.RED, disposition.get(2).get(15));%0A        assertEquals(Color.YELLOW, disposition.get(0).get(15));%0A    %7D%0A%0A%7D%0A

add tests for JsonSvgBoard.