Changeset 810


Ignore:
Timestamp:
09/12/12 14:03:16 (12 years ago)
Author:
sherbold
Message:
  • removed dependency on MFC plug-in through mocking
Location:
trunk/quest-plugin-jfc-test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-plugin-jfc-test/pom.xml

    r763 r810  
    1414        <tested-artifactId>quest-plugin-jfc</tested-artifactId> 
    1515    </properties> 
     16    <dependencies> 
     17            <dependency> 
     18            <groupId>org.mockito</groupId> 
     19            <artifactId>mockito-core</artifactId> 
     20            <version>1.9.0</version> 
     21            <scope>test</scope> 
     22        </dependency></dependencies> 
    1623    <build> 
    1724        <plugins> 
  • trunk/quest-plugin-jfc-test/src/test/java/de/ugoe/cs/quest/plugin/jfc/JFCReplayIDCalculatorTest.java

    r806 r810  
    99import java.util.logging.Level; 
    1010 
    11 import javax.xml.parsers.DocumentBuilder; 
    12 import javax.xml.parsers.DocumentBuilderFactory; 
    13  
    1411import junit.framework.TestCase; 
    1512 
     
    1714import org.junit.Before; 
    1815import org.junit.Test; 
    19 import org.w3c.dom.Document; 
    20 import org.w3c.dom.Node; 
    21 import org.w3c.dom.NodeList; 
     16 
     17import static org.mockito.Mockito.*; 
    2218 
    2319import de.ugoe.cs.quest.eventcore.Event; 
    2420import de.ugoe.cs.quest.eventcore.IEventTarget; 
     21import de.ugoe.cs.quest.eventcore.IEventType; 
    2522import de.ugoe.cs.quest.plugin.jfc.eventcore.JFCEventId; 
    2623import de.ugoe.cs.quest.plugin.jfc.guimodel.JFCGUIElement; 
    2724import de.ugoe.cs.quest.plugin.jfc.guimodel.JFCGUIElementSpec; 
    28 import de.ugoe.cs.quest.plugin.mfc.eventcore.MFCEventType; 
    29 import de.ugoe.cs.quest.plugin.mfc.guimodel.MFCToolBar; 
    3025import de.ugoe.cs.util.console.TextConsole; 
    3126 
     
    172167                try{ 
    173168                        JFCReplayIDCalculator calculator = new JFCReplayIDCalculator(); 
    174                         Event event = new Event(new MFCEventType(null), new MFCToolBar(null, null)); 
     169                        Event event = new Event(mock(IEventType.class), mock(IEventTarget.class)); 
    175170                         
    176171                        calculator.calculateReplayID(event); 
Note: See TracChangeset for help on using the changeset viewer.