@Override
 protected final void onSetUp() {
   window = MyWindow.createNew(getClass());
   driver = new ComponentDriver(robot);
   extraSetUp();
 }
Example #2
0
 public static void main(String[] args) {
   MyWindow splash = new MyWindow();
   splash.start(); // 运行启动界面
 }
 @Override
 protected void onSetUp() {
   window = MyWindow.createAndShow();
 }
 @Override
 void beforeReleasingScreenLock() {
   if (windowTwo != null) windowTwo.destroy();
 }
 @Test
 public void should_find_Component() {
   windowTwo = MyWindow.createNew(getClass());
   JButton button = finder.findByType(windowTwo, JButton.class);
   assertThat(button).isSameAs(windowTwo.button);
 }
 @Override
 protected void onSetUp() {
   MyWindow window = MyWindow.createNew();
   table = window.table;
 }
 @Override
 protected void onSetUp() {
   window = MyWindow.createNew();
   finder = new JComboBoxDropDownListFinder(robot);
   robot.showWindow(window);
 }
 @Override
 protected final void onSetUp() {
   driver = new JSpinnerDriver(robot);
   window = MyWindow.createNew();
   spinner = window.spinner;
 }