Ignore:
Timestamp:
2018-12-16T20:18:24+13:00 (5 years ago)
Author:
ak19
Message:

Success in next step: am able to use the shorter component access methods which access a by component by name to repeat the original sample testing code of launching GLI, checking it launched eventually and checking that the Gather pane is selected and has the expected label.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/testing/trunk/src/src/gstests/tutorials/RunGLITest.java

    r32690 r32692  
    122122
    123123   
    124       // https://joel-costigliola.github.io/assertj/assertj-swing-launch.html
    125       window = findFrame(new GenericTypeMatcher<JFrame>(JFrame.class) {
     124      // https://joel-costigliola.github.io/assertj/assertj-swing-launch.html     
     125      /*window = findFrame(new GenericTypeMatcher<JFrame>(JFrame.class) {
    126126          protected boolean isMatching(JFrame window) {
    127127          return window.getTitle().trim().startsWith(expectedWindowTitle)
     
    129129          }
    130130      }).using(robot());
     131      */
    131132
     133      window = findFrame("GUIManager").using(robot());
    132134       
    133135    String gatherPaneLabel = Dictionary.get("GUI.Gather");
     
    146148        };
    147149    */
     150
     151    JTabbedPaneFixture tab = window.tabbedPane("GUIManager.tab_pane");
     152    /*
    148153    JTabbedPaneFixture tab = window.tabbedPane(new GenericTypeMatcher<JTabbedPane>(JTabbedPane.class) {
    149154        @Override protected boolean isMatching(JTabbedPane tabPane) {
     
    156161        }
    157162        });
     163    */
     164   
    158165    tab.requireSelectedTab(Index.atIndex(1));
    159166    tab.requireTitle(gatherPaneLabel, Index.atIndex(1));
Note: See TracChangeset for help on using the changeset viewer.