private static Object actual(Object result) { checkState(result instanceof AbstractAssert, "We should be trying to make a proxy of an *Assert class but it was: %s", result.getClass()); return ((AbstractAssert<?, ?>) result).actual; }
private static Object actual(Object result) { checkState(result instanceof AbstractAssert, "We should be trying to make a proxy of an *Assert class but it was: %s", result.getClass()); return ((AbstractAssert<?, ?>) result).actual; }
/** * Verifies that this chunk's saved text matches the corresponding text in * the given sequence. * * @param target * the sequence to verify against. */ public void verify(List<T> target) throws IllegalStateException { checkState(last() <= target.size(), "Incorrect Chunk: the position of chunk > target size"); for (int i = 0; i < size(); i++) { checkState(target.get(position + i).equals(lines.get(i)), "Incorrect Chunk: the chunk content doesn't match the target"); } }
@Override public void verify(List<T> target) throws IllegalStateException { checkState(getOriginal().getPosition() <= target.size(), "Incorrect patch for delta: delta original position > target size"); }
/** * Verifies that this chunk's saved text matches the corresponding text in * the given sequence. * * @param target * the sequence to verify against. */ public void verify(List<T> target) throws IllegalStateException { checkState(last() <= target.size(), "Incorrect Chunk: the position of chunk > target size"); for (int i = 0; i < size(); i++) { checkState(target.get(position + i).equals(lines.get(i)), "Incorrect Chunk: the chunk content doesn't match the target"); } }
@Override public void verify(List<T> target) throws IllegalStateException { checkState(getOriginal().getPosition() <= target.size(), "Incorrect patch for delta: delta original position > target size"); }
/** * {@inheritDoc} */ @Override public void verify(List<T> target) throws IllegalStateException { getOriginal().verify(target); checkState(getOriginal().getPosition() <= target.size(), "Incorrect patch for delta: delta original position > target size"); }
/** * {@inheritDoc} */ @Override public void verify(List<T> target) throws IllegalStateException { getOriginal().verify(target); checkState(getOriginal().getPosition() <= target.size(), "Incorrect patch for delta: delta original position > target size"); }
path = path.prev; while (path != null && path.prev != null && path.prev.j >= 0) { checkState(!path.isSnake(), "bad diffpath: found snake when looking for diff"); int i = path.i; int j = path.j;
path = path.prev; while (path != null && path.prev != null && path.prev.j >= 0) { checkState(!path.isSnake(), "bad diffpath: found snake when looking for diff"); int i = path.i; int j = path.j;