use of org.pentaho.di.core.gui.GCInterface in project pentaho-kettle by pentaho.
the class MetricsPainterTest method testDrawTimeScaleLineInfinityLoop.
@Test(timeout = 1000)
public void testDrawTimeScaleLineInfinityLoop() {
GCInterface gCInterfaceMock = mock(GCInterface.class);
when(metricsPainter.getGc()).thenReturn(gCInterfaceMock);
doCallRealMethod().when(metricsPainter).drawTimeScaleLine(heightStub, pixelsPerMsStub, periodInMsStub);
when(gCInterfaceMock.textExtent(anyString())).thenReturn(mock(Point.class));
metricsPainter.drawTimeScaleLine(heightStub, pixelsPerMsStub, periodInMsStub);
}
Aggregations