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 UT2004Test284_CTFGrendelkeep_LongJump extends UT2004BotTest {
11  
12  	@Override
13  	protected String getMapName() {
14  		return "CTF-Grendelkeep";
15  	}
16  
17  	@Override
18  	protected String getGameType() {
19  		return "BotCTFGame";
20  	}
21  
22  	@Test
23  	public void test284_long_jump_1_time_high_to_low() {
24  		startTest(
25  		// use NavigationTestBot for the test
26  				NavigationTestBot.class,
27  				// timeout:
28  				5,
29  				
30  				new NavigationTestBotParameters(
31  						// test movement between 
32  						"CTF-Grendelkeep.JumpSpot45", "CTF-Grendelkeep.LiftExit31", 
33  						//number of repetitions 
34  						1, 
35  						//both ways
36  						false));
37  	}
38  
39  	@Test
40  	public void test284_long_jump_1_time_low_to_high() {
41  		startTest(
42  		// use NavigationTestBot for the test
43  				NavigationTestBot.class,
44  				// timeout:
45  				5,
46  				
47  				new NavigationTestBotParameters(
48  						// test movement between 
49  						"CTF-Grendelkeep.LiftExit31", "CTF-Grendelkeep.JumpSpot45", 
50  						//number of repetitions 
51  						1,
52  						//both ways
53  						false));
54  	}
55  
56  	/*
57  	 * TODO: Test fails
58  	 */
59  	@Test
60  	public void test284_long_jump_20_time_high_to_low() {
61  
62  		startTest(
63  		// use NavigationTestBot for the test
64  				NavigationTestBot.class,
65  				// timeout: 25 minutes
66  				25,
67  				new NavigationTestBotParameters("CTF-Grendelkeep.JumpSpot45", "CTF-Grendelkeep.LiftExit31", 20, false));
68  	}
69  
70  	/*
71  	 * TODO: Test fails
72  	 */
73  	@Test
74  	public void test284_long_jump_20_time_low_to_high() {
75  
76  		startTest(
77  		// use NavigationTestBot for the test
78  				NavigationTestBot.class,
79  				// timeout: 
80  				25,
81  				new NavigationTestBotParameters("CTF-Grendelkeep.LiftExit31","CTF-Grendelkeep.JumpSpot45", 20, false));
82  	}
83  
84  }