Changeset 32692 for gs3-extensions
- Timestamp:
- 2018-12-16T20:18:24+13:00 (5 years ago)
- Location:
- gs3-extensions/testing/trunk/src/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/testing/trunk/src/src/gstests/tutorials/RunGLITest.java
r32690 r32692 122 122 123 123 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) { 126 126 protected boolean isMatching(JFrame window) { 127 127 return window.getTitle().trim().startsWith(expectedWindowTitle) … … 129 129 } 130 130 }).using(robot()); 131 */ 131 132 133 window = findFrame("GUIManager").using(robot()); 132 134 133 135 String gatherPaneLabel = Dictionary.get("GUI.Gather"); … … 146 148 }; 147 149 */ 150 151 JTabbedPaneFixture tab = window.tabbedPane("GUIManager.tab_pane"); 152 /* 148 153 JTabbedPaneFixture tab = window.tabbedPane(new GenericTypeMatcher<JTabbedPane>(JTabbedPane.class) { 149 154 @Override protected boolean isMatching(JTabbedPane tabPane) { … … 156 161 } 157 162 }); 163 */ 164 158 165 tab.requireSelectedTab(Index.atIndex(1)); 159 166 tab.requireTitle(gatherPaneLabel, Index.atIndex(1)); -
gs3-extensions/testing/trunk/src/src/org/greenstone/gsdl3/testing/GSGUITestingUtil.java
r32690 r32692 6 6 // only JUnit and JAssert-Swing, no Selenium in this class 7 7 import org.junit.Assert; 8 import org.assertj.swing.fixture.*; 8 9 9 10 /* … … 15 16 16 17 17 public static final String DOWNLOAD_PANE = " GUI.Download";18 public static final String GATHER_PANE = "G UI.Gather";19 public static final String ENRICH_PANE = " GUI.Enrich";20 public static final String DESIGN_PANE = " GUI.Design";21 public static final String CREATE_PANE = " GUI.Create";22 public static final String FORMAT_PANE = " GUI.Format";18 public static final String DOWNLOAD_PANE = "DownloadPane"; 19 public static final String GATHER_PANE = "GatherPane"; 20 public static final String ENRICH_PANE = "EnrichPane"; 21 public static final String DESIGN_PANE = "DesignPane"; 22 public static final String CREATE_PANE = "CreatePane"; 23 public static final String FORMAT_PANE = "FormatPane"; 23 24 24 25 /************** NEEDED FOR TESTING *************/ … … 28 29 29 30 /************************ GENERAL *******************************/ 30 public static void switchToPane(String pane) { 31 31 //https://joel-costigliola.github.io/assertj/swing/api/org/assertj/swing/fixture/FrameFixture.html 32 public static void switchToPane(FrameFixture window, String pane) { 33 //JTabbedPaneFixture tab = window.tabbedPane("GUIManager.tab_pane"); 34 JPanelFixture tab = window.panel(pane); 32 35 } 33 36 public static void getMenu(String menu, String subMenu) {}
Note:
See TracChangeset
for help on using the changeset viewer.