- Timestamp:
- 07/06/13 03:51:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/test/java/com/framsticks/gui/BrowserTest.java
r96 r97 3 3 import static org.fest.assertions.Assertions.assertThat; 4 4 import static org.fest.swing.edt.GuiActionRunner.execute; 5 6 import java.awt.event.KeyEvent; 5 7 6 8 … … 10 12 11 13 import com.framsticks.model.ModelPackage; 12 import com.framsticks.remote.SimulatorInstance; 14 import com.framsticks.remote.SimulatorTree; 15 import com.framsticks.util.dispatching.Dispatching; 13 16 14 17 public class BrowserTest extends BrowserBaseTest { … … 16 19 private static final Logger log = Logger.getLogger(BrowserTest.class); 17 20 18 Simulator Instance localhost;21 SimulatorTree localhost; 19 22 20 23 @Override … … 22 25 browser = new Browser(); 23 26 24 localhost = new Simulator Instance();27 localhost = new SimulatorTree(); 25 28 localhost.setName("localhost"); 26 29 localhost.setAddress("localhost:9009"); 27 30 localhost.usePackage(new ModelPackage()); 28 31 29 browser.add Instance(localhost);32 browser.addTree(localhost); 30 33 31 34 } 32 35 33 @Test(timeOut = 10000)36 @Test(timeOut = 30000) 34 37 public void testShow() { 35 38 log.info("testing"); 36 39 tree.clickRow(0).expandRow(0); 37 40 robot.waitForIdle(); 41 38 42 tree.clickRow(1).expandRow(1); 39 43 robot.waitForIdle(); … … 47 51 }); 48 52 53 49 54 clickAndExpandPath("localhost/simulator/genepools"); 50 55 clickAndExpandPath("localhost/simulator/genepools/groups"); 51 56 clickAndExpandPath("localhost/simulator/genepools/groups/Genotypes"); 57 clickAndExpandPath("localhost/simulator/genepools/groups/Genotypes/genotypes"); 58 Dispatching.sleep(2.0); 59 clickAndExpandPath("localhost/simulator/genepools/groups/Genotypes/genotypes"); 60 robot.pressAndReleaseKey(KeyEvent.VK_J); 61 waitForIdle(); 62 Dispatching.sleep(2.0); 63 64 frame.panel("Genotype").panel("name").textBox("value").enterText("-Żółw"); 65 clickButton(frame.panel("Genotype").button("apply")); 66 67 Dispatching.sleep(1.0); 52 68 } 53 69
Note: See TracChangeset
for help on using the changeset viewer.