GridLienzoScrollPosition { Double currentPositionX(final Double level) { final Double position = deltaX() * level / 100; return -(bounds().minBoundX() + position); } GridLienzoScrollPosition(final GridLienzoScrollHandler gridLienzoScrollHandler);   }
@Test public void testCurrentXPosition() { final Double level = 46.66d; final Double expectedPosition = -(MIN_BOUND_X + (DELTA_X * level / 100)); final Double actualPosition = gridLienzoScrollPosition.currentPositionX(level); assertEquals(expectedPosition, actualPosition, 0); }