Changeset 2146 for trunk/autoquest-plugin-html-test/src/test
- Timestamp:
- 05/19/17 11:31:29 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-html-test/src/test/java/de/ugoe/cs/autoquest/plugin/html/commands/CMDcondenseHTMLGUIModelTest.java
r1387 r2146 26 26 import org.junit.Test; 27 27 28 import de.ugoe.cs.autoquest.eventcore.HierarchicalEventTargetGroup; 29 import de.ugoe.cs.autoquest.eventcore.EventTargetModelException; 30 import de.ugoe.cs.autoquest.eventcore.IHierarchicalEventTargetModel; 28 31 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementFactory; 29 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementGroup;30 32 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModel; 31 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModel.Traverser;32 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModelException;33 33 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 34 34 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; … … 343 343 */ 344 344 private GUIModel generateGUIModel(String[] guiSpec) 345 throws IllegalArgumentException, GUIModelException345 throws IllegalArgumentException, EventTargetModelException 346 346 { 347 347 GUIModel model = new GUIModel(true); … … 430 430 } 431 431 432 GUIModel.Traversertraverser = guiModel.getTraverser();432 IHierarchicalEventTargetModel.Traverser<IGUIElement> traverser = guiModel.getTraverser(); 433 433 434 434 assertPaths(traverser, "", paths); … … 440 440 * 441 441 */ 442 private void assertPaths( Traversertraverser, String path, List<String> paths) {442 private void assertPaths(IHierarchicalEventTargetModel.Traverser<IGUIElement> traverser, String path, List<String> paths) { 443 443 if (traverser.hasFirstChild()) { 444 444 IGUIElement childElement = traverser.firstChild(); … … 481 481 } 482 482 } 483 else if (childElement instanceof GUIElementGroup) {484 String tmp = (( GUIElementGroup) childElement).getStringIdentifier();483 else if (childElement instanceof HierarchicalEventTargetGroup) { 484 String tmp = ((HierarchicalEventTargetGroup) childElement).getStringIdentifier(); 485 485 tmp = tmp.replaceAll("/", ""); 486 486 tmp = tmp.replaceAll("\\[", "");
Note: See TracChangeset
for help on using the changeset viewer.