use of nl.tudelft.watchdog.core.logic.breakpoint.Breakpoint in project watchdog by TestRoots.
the class BreakpointCreatorTest method testCreateJavaLineBreakpointCondition.
@Test
public void testCreateJavaLineBreakpointCondition() throws CoreException {
IJavaLineBreakpoint bp = mock(IJavaLineBreakpoint.class);
when(bp.getCondition()).thenReturn("cond");
Breakpoint result = BreakpointCreator.createBreakpoint(bp);
assertEquals("cond", result.getCondition());
}
use of nl.tudelft.watchdog.core.logic.breakpoint.Breakpoint in project watchdog by TestRoots.
the class BreakpointCreatorTest method testCreateBreakpointHitCount.
@Test
public void testCreateBreakpointHitCount() {
IBreakpoint bp = mock(IBreakpoint.class);
Breakpoint result = BreakpointCreator.createBreakpoint(bp);
assertEquals(-1, result.getHitCount());
}
use of nl.tudelft.watchdog.core.logic.breakpoint.Breakpoint in project watchdog by TestRoots.
the class BreakpointCreatorTest method testCreateJavaLineBreakpointConditionDisabled.
@Test
public void testCreateJavaLineBreakpointConditionDisabled() throws CoreException {
IJavaLineBreakpoint bp = mock(IJavaLineBreakpoint.class);
when(bp.isConditionEnabled()).thenReturn(false);
Breakpoint result = BreakpointCreator.createBreakpoint(bp);
assertFalse(result.isConditionEnabled());
}
use of nl.tudelft.watchdog.core.logic.breakpoint.Breakpoint in project watchdog by TestRoots.
the class BreakpointCreatorTest method testCreateJavaBreakpointHitCount.
@Test
public void testCreateJavaBreakpointHitCount() throws CoreException {
IJavaBreakpoint bp = mock(IJavaBreakpoint.class);
when(bp.getHitCount()).thenReturn(2);
Breakpoint result = BreakpointCreator.createBreakpoint(bp);
assertEquals(2, result.getHitCount());
}
use of nl.tudelft.watchdog.core.logic.breakpoint.Breakpoint in project watchdog by TestRoots.
the class BreakpointCreatorTest method testCreateBreakpointDisabled.
@Test
public void testCreateBreakpointDisabled() throws CoreException {
IBreakpoint bp = mock(IBreakpoint.class);
when(bp.isEnabled()).thenReturn(false);
Breakpoint result = BreakpointCreator.createBreakpoint(bp);
assertFalse(result.isEnabled());
}
Aggregations