@Test(expected=NullPointerException.class) public void createCreate_nullCreatedObject() { createCreate(null); }
public static ImportCorrectionBuilder createCreate(DataObject createdObject) { Preconditions.checkNotNull(createdObject); ImportCorrectionBuilder builder = create(ChangeOperation.CREATE); builder.importCorrection.setCorrectedObject(createdObject); return builder; }
ImportCorrectionBuilder { public static ImportCorrectionBuilder createCreate(DataObject createdObject) { Preconditions.checkNotNull(createdObject); ImportCorrectionBuilder builder = create(ChangeOperation.CREATE); builder.importCorrection.setCorrectedObject(createdObject); return builder; } }
ImportCorrectionBuilder { public static ImportCorrectionBuilder createCreate(DataObject createdObject) { Preconditions.checkNotNull(createdObject); ImportCorrectionBuilder builder = create(ChangeOperation.CREATE); builder.importCorrection.setCorrectedObject(createdObject); return builder; }  }
ImportCorrectionBuilder { public static ImportCorrectionBuilder createCreate(DataObject createdObject) { Preconditions.checkNotNull(createdObject); ImportCorrectionBuilder builder = create(ChangeOperation.CREATE); builder.importCorrection.setCorrectedObject(createdObject); return builder; }  static ImportCorrectionBuilder createUpdate(DataObject correctedObject); static ImportCorrectionBuilder createCreate(DataObject createdObject); static ImportCorrectionBuilder createDelete(Class<? extends DataObject> deletedObjectClass); ImportCorrectionBuilder ofProperty(CorrectedProperty correctedProperty); ImportCorrectionBuilder oldValue(String oldValue); ImportCorrectionBuilder newValue(String newValue); ImportCorrection build(); }
ImportCorrectionBuilder { public static ImportCorrectionBuilder createCreate(DataObject createdObject) { Preconditions.checkNotNull(createdObject); ImportCorrectionBuilder builder = create(ChangeOperation.CREATE); builder.importCorrection.setCorrectedObject(createdObject); return builder; }  static ImportCorrectionBuilder createUpdate(DataObject correctedObject); static ImportCorrectionBuilder createCreate(DataObject createdObject); static ImportCorrectionBuilder createDelete(Class<? extends DataObject> deletedObjectClass); ImportCorrectionBuilder ofProperty(CorrectedProperty correctedProperty); ImportCorrectionBuilder oldValue(String oldValue); ImportCorrectionBuilder newValue(String newValue); ImportCorrection build();  }