@@ -0,0 +1,1510 @@
+package tests;%0A%0Aimport java.util.ArrayList;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport robot.RobotReal;%0Aimport scripts.Script;%0Aimport scripts.ScriptManager;%0Aimport smartMath.Vec2;%0Aimport strategie.GameState;%0Aimport enums.PathfindingNodes;%0Aimport enums.ScriptNames;%0Aimport enums.ServiceNames;%0A%0Apublic class JUnit_Scripts extends JUnit_Test %7B%0A%0A%09private ScriptManager scriptmanager;%0A%09private GameState%3CRobotReal%3E gamestate;%0A%09%09%0A    @SuppressWarnings(%22unchecked%22)%0A%09@Before%0A    public void setUp() throws Exception %7B%0A        super.setUp();%0A        gamestate = (GameState%3CRobotReal%3E) container.getService(ServiceNames.REAL_GAME_STATE);%0A        scriptmanager = (ScriptManager) container.getService(ServiceNames.SCRIPT_MANAGER);%0A        gamestate.robot.setPosition(new Vec2(1100, 1000));%0A    %7D%0A    %0A    @Test%0A    public void test_script_tapis() throws Exception%0A    %7B%0A    %09// TODO: utiliser le pathfinding%0A    %09Script s = scriptmanager.getScript(ScriptNames.ScriptTapis);%0A    %09ArrayList%3CPathfindingNodes%3E chemin = new ArrayList%3CPathfindingNodes%3E(); %0A    %09chemin.add(s.point_entree(0));%0A    %09gamestate.robot.suit_chemin(chemin, null);%0A    %09s.execute(0, gamestate);%0A    %7D%0A%0A    @Test%0A    public void test_script_clap() throws Exception%0A    %7B%0A    %09Script s = scriptmanager.getScript(ScriptNames.ScriptClap);%0A    %09ArrayList%3CPathfindingNodes%3E chemin = new ArrayList%3CPathfindingNodes%3E(); %0A    %09chemin.add(s.point_entree(0));%0A    %09gamestate.robot.suit_chemin(chemin, null);%0A    %09s.execute(0, gamestate);%0A    %7D%0A%0A%7D%0A

Test scripts