@Test public void convert() { EnrichmentTagItem tagItem = new EnrichmentTagItem(); tagItem.setJudgmentId(123); tagItem.setTagType("A TYPE"); tagItem.setValue("A VALUE"); UploadEnrichmentTag enrichmentTagTemp = converter.convertEnrichmentTagItem(tagItem); assertEquals(tagItem.getJudgmentId(), enrichmentTagTemp.getJudgmentId()); assertEquals(tagItem.getTagType(), enrichmentTagTemp.getTagType()); assertEquals(tagItem.getValue(), enrichmentTagTemp.getValue()); }
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);  }