@Test public void GetNextStep_OddIntervalStartsFromNonZeroAndFail_ReturnsOlder() throws Exception { BisectStep actual = BisectBoundaryHelper.getNextStep(new BisectStep(6, 9), false); assertBuildStep(actual, 8, 9); actual = BisectBoundaryHelper.getNextStep(new BisectStep(21, 46), false); assertBuildStep(actual, 34, 46); }
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);  }