@Test(expected=NullPointerException.class) public void createFor_NoJudgment() { createFor(null); }
public static JudgmentCorrectionBuilder createFor(Judgment judgment) { Preconditions.checkNotNull(judgment); JudgmentCorrectionBuilder builder = new JudgmentCorrectionBuilder(); builder.judgmentCorrection.setJudgment(judgment); return builder; }
JudgmentCorrectionBuilder { public static JudgmentCorrectionBuilder createFor(Judgment judgment) { Preconditions.checkNotNull(judgment); JudgmentCorrectionBuilder builder = new JudgmentCorrectionBuilder(); builder.judgmentCorrection.setJudgment(judgment); return builder; } }
JudgmentCorrectionBuilder { public static JudgmentCorrectionBuilder createFor(Judgment judgment) { Preconditions.checkNotNull(judgment); JudgmentCorrectionBuilder builder = new JudgmentCorrectionBuilder(); builder.judgmentCorrection.setJudgment(judgment); return builder; }  }
JudgmentCorrectionBuilder { public static JudgmentCorrectionBuilder createFor(Judgment judgment) { Preconditions.checkNotNull(judgment); JudgmentCorrectionBuilder builder = new JudgmentCorrectionBuilder(); builder.judgmentCorrection.setJudgment(judgment); return builder; }  static JudgmentCorrectionBuilder createFor(Judgment judgment); JudgmentCorrectionBuilder update(DataObject updatedObject); JudgmentCorrectionBuilder create(DataObject createdObject); JudgmentCorrectionBuilder delete(Class<? extends DataObject> deletedObjectClass); JudgmentCorrectionBuilder property(CorrectedProperty correctedProperty); JudgmentCorrectionBuilder oldValue(String oldValue); JudgmentCorrectionBuilder newValue(String newValue); JudgmentCorrection build(); }
JudgmentCorrectionBuilder { public static JudgmentCorrectionBuilder createFor(Judgment judgment) { Preconditions.checkNotNull(judgment); JudgmentCorrectionBuilder builder = new JudgmentCorrectionBuilder(); builder.judgmentCorrection.setJudgment(judgment); return builder; }  static JudgmentCorrectionBuilder createFor(Judgment judgment); JudgmentCorrectionBuilder update(DataObject updatedObject); JudgmentCorrectionBuilder create(DataObject createdObject); JudgmentCorrectionBuilder delete(Class<? extends DataObject> deletedObjectClass); JudgmentCorrectionBuilder property(CorrectedProperty correctedProperty); JudgmentCorrectionBuilder oldValue(String oldValue); JudgmentCorrectionBuilder newValue(String newValue); JudgmentCorrection build();  }