@Test(expected=NullPointerException.class) public void convert_null() { converter.convertEnrichmentTagItem(null); }
public UploadEnrichmentTag convertEnrichmentTagItem(EnrichmentTagItem enrichmentTagItem) { Preconditions.checkNotNull(enrichmentTagItem); UploadEnrichmentTag enrichmentTagTemp = new UploadEnrichmentTag(); enrichmentTagTemp.setJudgmentId(enrichmentTagItem.getJudgmentId()); enrichmentTagTemp.setTagType(enrichmentTagItem.getTagType()); enrichmentTagTemp.setValue(enrichmentTagItem.getValue()); return enrichmentTagTemp; }
EnrichmentTagItemConverter { public UploadEnrichmentTag convertEnrichmentTagItem(EnrichmentTagItem enrichmentTagItem) { Preconditions.checkNotNull(enrichmentTagItem); UploadEnrichmentTag enrichmentTagTemp = new UploadEnrichmentTag(); enrichmentTagTemp.setJudgmentId(enrichmentTagItem.getJudgmentId()); enrichmentTagTemp.setTagType(enrichmentTagItem.getTagType()); enrichmentTagTemp.setValue(enrichmentTagItem.getValue()); return enrichmentTagTemp; } }
EnrichmentTagItemConverter { public UploadEnrichmentTag convertEnrichmentTagItem(EnrichmentTagItem enrichmentTagItem) { Preconditions.checkNotNull(enrichmentTagItem); UploadEnrichmentTag enrichmentTagTemp = new UploadEnrichmentTag(); enrichmentTagTemp.setJudgmentId(enrichmentTagItem.getJudgmentId()); enrichmentTagTemp.setTagType(enrichmentTagItem.getTagType()); enrichmentTagTemp.setValue(enrichmentTagItem.getValue()); return enrichmentTagTemp; }  }
EnrichmentTagItemConverter { public UploadEnrichmentTag convertEnrichmentTagItem(EnrichmentTagItem enrichmentTagItem) { Preconditions.checkNotNull(enrichmentTagItem); UploadEnrichmentTag enrichmentTagTemp = new UploadEnrichmentTag(); enrichmentTagTemp.setJudgmentId(enrichmentTagItem.getJudgmentId()); enrichmentTagTemp.setTagType(enrichmentTagItem.getTagType()); enrichmentTagTemp.setValue(enrichmentTagItem.getValue()); return enrichmentTagTemp; }  UploadEnrichmentTag convertEnrichmentTagItem(EnrichmentTagItem enrichmentTagItem); }
EnrichmentTagItemConverter { public UploadEnrichmentTag convertEnrichmentTagItem(EnrichmentTagItem enrichmentTagItem) { Preconditions.checkNotNull(enrichmentTagItem); UploadEnrichmentTag enrichmentTagTemp = new UploadEnrichmentTag(); enrichmentTagTemp.setJudgmentId(enrichmentTagItem.getJudgmentId()); enrichmentTagTemp.setTagType(enrichmentTagItem.getTagType()); enrichmentTagTemp.setValue(enrichmentTagItem.getValue()); return enrichmentTagTemp; }  UploadEnrichmentTag convertEnrichmentTagItem(EnrichmentTagItem enrichmentTagItem);  }