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

Some cleanup and shifting commented out useful code about

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/testing/trunk/src/src/org/greenstone/gsdl3/testing/GSGUITestingUtil.java

    r32692 r32693  
    110110    }
    111111
     112    // Moving these working bits of code here, in case I can use them to right
     113    // general get methods that make use of the GenericTypeMatcher method of accessing components
     114    // See https://joel-costigliola.github.io/assertj/assertj-swing-lookup.html
     115
     116    /*window = findFrame(new GenericTypeMatcher<JFrame>(JFrame.class) {
     117          protected boolean isMatching(JFrame window) {
     118          return window.getTitle().trim().startsWith(expectedWindowTitle)
     119          && window.isShowing();
     120          }
     121      }).using(robot());
     122      */
     123    /*
     124    JTabbedPaneFixture tab = window.tabbedPane(new GenericTypeMatcher<JTabbedPane>(JTabbedPane.class) {
     125        @Override protected boolean isMatching(JTabbedPane tabPane) {
     126            System.err.println("### trying for match");
     127            //int index = GuiActionRunner.execute(() -> tabPane.getSelectedIndex());
     128            int index = tabPane.getSelectedIndex();
     129            String selectedTabTitle = tabPane.getTitleAt(index); //GuiActionRunner.execute(() -> tabPane.getTitleAt(index));
     130            System.err.println("### GOT TITLE: " + selectedTabTitle);
     131            return gatherPaneLabel.equals(selectedTabTitle);
     132        }
     133        });
     134    */
    112135}
Note: See TracChangeset for help on using the changeset viewer.