use of nl.tudelft.watchdog.core.logic.breakpoint.Breakpoint in project watchdog by TestRoots.
the class BreakpointChangeClassifierTest method testClassifyConditionDisabled.
@Test
public void testClassifyConditionDisabled() {
Breakpoint old = createBreakpoint();
Breakpoint bp = createBreakpoint();
old.setConditionEnabled(true);
bp.setConditionEnabled(false);
List<BreakpointChangeType> result = BreakpointChangeClassifier.classify(old, bp);
assertEquals(1, result.size());
assertEquals(BreakpointChangeType.COND_DISABLED, result.get(0));
}
use of nl.tudelft.watchdog.core.logic.breakpoint.Breakpoint in project watchdog by TestRoots.
the class BreakpointCreatorTest method testCreateBreakpointHash.
@Test
public void testCreateBreakpointHash() {
IBreakpoint bp = mock(IBreakpoint.class);
Breakpoint result = BreakpointCreator.createBreakpoint(bp);
assertEquals(bp.hashCode(), result.getHash());
}
use of nl.tudelft.watchdog.core.logic.breakpoint.Breakpoint in project watchdog by TestRoots.
the class BreakpointCreatorTest method testCreateJavaLineBreakpointNoCondition.
@Test
public void testCreateJavaLineBreakpointNoCondition() throws CoreException {
IJavaLineBreakpoint bp = mock(IJavaLineBreakpoint.class);
when(bp.getCondition()).thenReturn(null);
Breakpoint result = BreakpointCreator.createBreakpoint(bp);
assertNull(result.getCondition());
}
use of nl.tudelft.watchdog.core.logic.breakpoint.Breakpoint in project watchdog by TestRoots.
the class BreakpointCreatorTest method testCreateBreakpointEnabled.
@Test
public void testCreateBreakpointEnabled() throws CoreException {
IBreakpoint bp = mock(IBreakpoint.class);
when(bp.isEnabled()).thenReturn(true);
Breakpoint result = BreakpointCreator.createBreakpoint(bp);
assertTrue(result.isEnabled());
}
use of nl.tudelft.watchdog.core.logic.breakpoint.Breakpoint in project watchdog by TestRoots.
the class BreakpointCreatorTest method testCreateBreakpointType.
@Test
public void testCreateBreakpointType() {
IBreakpoint bp = mock(IBreakpoint.class);
Breakpoint result = BreakpointCreator.createBreakpoint(bp);
assertEquals(BreakpointType.UNDEFINED, result.getBreakpointType());
}
Aggregations