View Javadoc

1   package cz.cuni.amis.pogamut.ut2004.bot.navigation2;
2   
3   import cz.cuni.amis.pogamut.ut2004.bot.UT2004BotTest;
4   import org.junit.Test;
5   
6   /**
7    *
8    * @author Peta Michalik
9    */
10  public class UT2004Test103_DMDesertIsle_NarrowRamp extends UT2004BotTest {
11  
12  	@Override
13  	protected String getMapName() {
14  		return "DM-DesertIsle";
15  	}
16  
17  	@Override
18  	protected String getGameType() {
19  		return "BotDeathMatch";
20  	}
21  
22          @Test
23  	public void test103_narrow_1_time() {
24  		startTest(
25  			// use NavigationTestBot for the test
26  			Navigation2TestBot.class,
27  			// timeout: 1 minute
28  			1,
29  			// test movement between        start: DM-DesertIsle.PathNode180, end: DM-DesertIsle.PathNode12 number of repetitions   both ways
30  			new Navigation2TestBotParameters("DM-DesertIsle.PathNode180",      "DM-DesertIsle.PathNode12",    1,                        true)
31  		);
32  	}
33  
34  
35          /*
36          * TODO: Test fails
37          * - misto, aby sel bot nejkratsi cestou, vezme to velikou oklikou -> proto to nestihne do casoveho limitu
38          *  dost mozna je to chyba v mape
39          */
40          @Test
41  	public void test103_narrow_20_time() {
42  
43  
44  		startTest(
45  			// use NavigationTestBot for the test
46  			Navigation2TestBot.class,
47  			// timeout: 3 minutes
48  			3,
49  			// test movement between        start: DM-DesertIsle.PathNode180, end: DM-DesertIsle.PathNode12 number of repetitions   both ways
50  			new Navigation2TestBotParameters("DM-DesertIsle.PathNode180",      "DM-DesertIsle.PathNode12",    20,                        true)
51  		);
52  	}
53  
54  }