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    * Attribute NeededJump is not empty... Bot NEVER manages to get there.
8    * 
9    * Link:
10   * INGP {Id DM-Compressed.JumpSpot22} {Flags 256} {CollisionR 72} {CollisionH 100}
11   * {ForceDoubleJump False} {CalculatedGravityZ -950.00} {NeededJump 313.82,308.41,563.48}
12   * {NeverImpactJump True} {NoLowGrav False} {OnlyTranslocator False}
13   * {TranslocTargetTag None} {TranslocZOffset 0.00}
14   * 
15   * @todo fixme
16   * @author Knight
17   */
18  public class UT2004Test011_JumpUp extends UT2004BotTest {
19  
20  	@Override
21  	protected String getMapName() {
22  		return "DM-Compressed";
23  	}
24  
25  	@Override
26  	protected String getGameType() {
27  		return "BotDeathMatch";
28  	}
29  
30  	@Test
31  	public void testJumpUp_1_time() {
32  		startTest(
33  			// use NavigationTestBot for the test
34  			Navigation2TestBot.class,
35  			// timeout: 1 minute
36  			1,
37  			// test movement between start: DM-Corrugation.InventorySpot112, end: DM-Corrugation.PathNode1 number of repetitions
38  			new Navigation2TestBotParameters("DM-Compressed.PathNode18", "DM-Compressed.JumpSpot22",1)			
39  		);
40  	}
41  
42  	@Test
43  	public void testJumpUp_20_times() {
44  		startTest(
45  			// use NavigationTestBot for the test
46  			Navigation2TestBot.class,
47  			// timeout: 5 minutes
48  			5,
49  			// test movement between start: DM-Corrugation.InventorySpot112, end: DM-Corrugation.PathNode1 number of repetitions
50  			new Navigation2TestBotParameters("DM-Compressed.PathNode18", "DM-Compressed.JumpSpot22", 20)			
51  		);
52  	}
53  }