Ignore:
Timestamp:
09/12/12 14:03:16 (12 years ago)
Author:
sherbold
Message:
  • removed dependency on MFC plug-in through mocking
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.