@Test public void GetNextStep_EvenIntervalStartsFromNonZeroAndSuccess_ReturnsLater() throws Exception { BisectStep actual = BisectBoundaryHelper.getNextStep(new BisectStep(6, 10), true); assertBuildStep(actual, 6, 8); actual = BisectBoundaryHelper.getNextStep(new BisectStep(12, 38), true); assertBuildStep(actual, 12, 25); }
public static BisectStep getNextStep(BisectStep step, boolean isSuccess) { return isSuccess ? later(step.getLeft(), step.getRight()) : earlier(step.getLeft(), step.getRight()); }
BisectBoundaryHelper { public static BisectStep getNextStep(BisectStep step, boolean isSuccess) { return isSuccess ? later(step.getLeft(), step.getRight()) : earlier(step.getLeft(), step.getRight()); } }
BisectBoundaryHelper { public static BisectStep getNextStep(BisectStep step, boolean isSuccess) { return isSuccess ? later(step.getLeft(), step.getRight()) : earlier(step.getLeft(), step.getRight()); } private  BisectBoundaryHelper(); }
BisectBoundaryHelper { public static BisectStep getNextStep(BisectStep step, boolean isSuccess) { return isSuccess ? later(step.getLeft(), step.getRight()) : earlier(step.getLeft(), step.getRight()); } private  BisectBoundaryHelper(); static BisectStep getNextStep(BisectStep step, boolean isSuccess); static BisectStep firstStep(int number); static int getMid(int left, int right); }
BisectBoundaryHelper { public static BisectStep getNextStep(BisectStep step, boolean isSuccess) { return isSuccess ? later(step.getLeft(), step.getRight()) : earlier(step.getLeft(), step.getRight()); } private  BisectBoundaryHelper(); static BisectStep getNextStep(BisectStep step, boolean isSuccess); static BisectStep firstStep(int number); static int getMid(int left, int right);  }