package de.ugoe.cs.eventbench.windows.data; import org.junit.*; import static org.junit.Assert.*; /** * The class WindowsEventTest contains tests for the class {@link WindowsEvent}. * * @author Steffen Herbold * @version 1.0 */ public class WindowsEventTest { @Test public void testTargetEquals_1() throws Exception { WindowsEvent event = new WindowsEvent("type"); String target1 = ""; String target2 = ""; event.setTarget(target1); boolean expected = true; boolean result = event.targetEquals(target2); assertEquals(expected, result); } @Test public void testTargetEquals_2() throws Exception { WindowsEvent event = new WindowsEvent("type"); String target1 = ""; String target2 = ""; event.setTarget(target1); boolean expected = true; boolean result = event.targetEquals(target2); assertEquals(expected, result); MFCTargetComparator.setMutable(false); result = event.targetEquals(target2); assertEquals(expected, result); } }