View Javadoc

1   package cz.cuni.amis.pogamut.ut2004.bot.navigation;
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 UT2004Test055_DMMorpheus3_Ramp extends UT2004BotTest {
11  
12  	@Override
13  	protected String getMapName() {
14  		return "DM-Morpheus3";
15  	}
16  
17  	@Override
18  	protected String getGameType() {
19  		return "BotDeathMatch";
20  	}
21  
22          @Test
23  	public void test55_ramp_1_time() {
24  		startTest(
25  			// use NavigationTestBot for the test
26  			NavigationTestBot.class,
27  			// timeout: 1 minute
28  			1,
29  			// test movement between        start: DM-Morpheus3.PathNode66, end: DM-Morpheus3.InventorySpot3 number of repetitions   both ways
30  			new NavigationTestBotParameters("DM-Morpheus3.PathNode66",      "DM-Morpheus3.InventorySpot3",    1,                        true)
31  		);
32  	}
33  
34  
35          /**
36          * TODO: Test fails
37          * (stava se to pomerne zridka, ale obcas bot pri ceste po rampe nahoru prepadne pres okraj)
38          */
39          @Test
40  	public void test55_ramp_20_time() {
41  
42  
43  		startTest(
44  			// use NavigationTestBot for the test
45  			NavigationTestBot.class,
46  			// timeout: 10 minutes
47  			10,
48  			// test movement between        start: DM-Morpheus3.PathNode66, end: DM-Morpheus3.InventorySpot3 number of repetitions   both ways
49  			new NavigationTestBotParameters("DM-Morpheus3.PathNode66",      "DM-Morpheus3.InventorySpot3",    20,                        true)
50  		);
51  	}
52  
53  }