Ignore:
Timestamp:
08/29/12 16:12:43 (12 years ago)
Author:
pharms
Message:
  • moved text input detection from task tree generation to dedicated command to be run on sequences
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-usability-test/src/test/java/de/ugoe/cs/quest/usability/AbstractUsabilityEvaluationTC.java

    r655 r698  
    44import static org.junit.Assert.fail; 
    55 
     6import java.util.ArrayList; 
    67import java.util.logging.Logger; 
    78import java.util.regex.Matcher; 
     
    1011import org.junit.Before; 
    1112 
    12 import de.ugoe.cs.quest.tasktrees.testutils.DummyGUIElement; 
    13 import de.ugoe.cs.quest.tasktrees.testutils.DummyInteraction; 
    14 import de.ugoe.cs.quest.tasktrees.testutils.DummyTextField; 
     13import de.ugoe.cs.quest.eventcore.Event; 
     14import de.ugoe.cs.quest.eventcore.gui.TextInput; 
    1515import de.ugoe.cs.quest.tasktrees.testutils.SimpleLogFormatter; 
     16import de.ugoe.cs.quest.tasktrees.treeifc.IEventTask; 
    1617import de.ugoe.cs.quest.tasktrees.treeifc.IIteration; 
    1718import de.ugoe.cs.quest.tasktrees.treeifc.ISelection; 
     
    2122import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTreeNode; 
    2223import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTreeNodeFactory; 
    23 import de.ugoe.cs.quest.tasktrees.treeifc.ITextInputEventTask; 
    2424import de.ugoe.cs.quest.tasktrees.treeimpl.TaskTreeBuilder; 
    2525import de.ugoe.cs.quest.tasktrees.treeimpl.TaskTreeNodeFactory; 
     26import de.ugoe.cs.quest.test.DummyGUIElement; 
     27import de.ugoe.cs.quest.test.DummyInteraction; 
     28import de.ugoe.cs.quest.test.DummyTextField; 
    2629 
    2730/** 
     
    165168            } 
    166169 
    167             ITextInputEventTask task = 
    168                 taskTreeNodeFactory.createNewTextInputEventTask(new DummyTextField(additionalInfo)); 
    169  
    170             task.setEnteredText(additionalInfo); 
     170            TextInput textInput = new TextInput(additionalInfo, new ArrayList<Event>()); 
     171             
     172            IEventTask task = taskTreeNodeFactory.createNewEventTask 
     173                (textInput, new DummyTextField(additionalInfo)); 
     174 
    171175            return task; 
    172176        } 
     
    198202            taskTreeBuilder.addChild((ISelection) parent, child); 
    199203        } 
    200         else if (parent instanceof ITextInputEventTask) { 
    201             taskTreeBuilder.addChild((ITextInputEventTask) parent, child); 
    202         } 
    203204        else { 
    204205            fail("can not add children to parent task tree node of type " + 
Note: See TracChangeset for help on using the changeset viewer.