BakeoutController  0.1
A Controller for the Omicron vacuum chamber
DisplayNewDeviceForm.java
1 package unit.ui.controllers.devices_controller;
2 
3 
4 import javafx.scene.layout.GridPane;
5 import org.junit.After;
6 import org.junit.Test;
8 
9 import static org.junit.Assert.assertNotNull;
10 
14 public final class DisplayNewDeviceForm extends DevicesControllerTestCase {
15  private static final String queryForCloseButton =
16  "#device-panel-close-button";
17 
21  @Test
22  public void newDeviceForm(){
23  clickOn(newDeviceButton);
24  assertNotNull(lookupNewDeviceForm());
25  }
26 
30  private GridPane lookupNewDeviceForm(){
31  return lookup(queryForNewDeviceForm).query();
32  }
33 
34  @After
35  public void closeDialog(){
36  clickOn(queryForCloseButton);
37  }
38 }
Git Repo