@Test(expected = NullPointerException.class) public void convert_null() { converter.convert(null); }
public MatchedOrganization convert(AffMatchResult affMatchResult) { Preconditions.checkNotNull(affMatchResult); MatchedOrganization matchedOrganization = new MatchedOrganization(); matchedOrganization.setDocumentId(affMatchResult.getAffiliation().getDocumentId()); matchedOrganization.setOrganizationId(affMatchResult.getOrganization().getId()); matchedOrganization.setMatchStrength(affMatchResult.getMatchStrength()); return matchedOrganization; }
AffMatchResultConverter implements Serializable { public MatchedOrganization convert(AffMatchResult affMatchResult) { Preconditions.checkNotNull(affMatchResult); MatchedOrganization matchedOrganization = new MatchedOrganization(); matchedOrganization.setDocumentId(affMatchResult.getAffiliation().getDocumentId()); matchedOrganization.setOrganizationId(affMatchResult.getOrganization().getId()); matchedOrganization.setMatchStrength(affMatchResult.getMatchStrength()); return matchedOrganization; } }
AffMatchResultConverter implements Serializable { public MatchedOrganization convert(AffMatchResult affMatchResult) { Preconditions.checkNotNull(affMatchResult); MatchedOrganization matchedOrganization = new MatchedOrganization(); matchedOrganization.setDocumentId(affMatchResult.getAffiliation().getDocumentId()); matchedOrganization.setOrganizationId(affMatchResult.getOrganization().getId()); matchedOrganization.setMatchStrength(affMatchResult.getMatchStrength()); return matchedOrganization; }  }
AffMatchResultConverter implements Serializable { public MatchedOrganization convert(AffMatchResult affMatchResult) { Preconditions.checkNotNull(affMatchResult); MatchedOrganization matchedOrganization = new MatchedOrganization(); matchedOrganization.setDocumentId(affMatchResult.getAffiliation().getDocumentId()); matchedOrganization.setOrganizationId(affMatchResult.getOrganization().getId()); matchedOrganization.setMatchStrength(affMatchResult.getMatchStrength()); return matchedOrganization; }  MatchedOrganization convert(AffMatchResult affMatchResult); }
AffMatchResultConverter implements Serializable { public MatchedOrganization convert(AffMatchResult affMatchResult) { Preconditions.checkNotNull(affMatchResult); MatchedOrganization matchedOrganization = new MatchedOrganization(); matchedOrganization.setDocumentId(affMatchResult.getAffiliation().getDocumentId()); matchedOrganization.setOrganizationId(affMatchResult.getOrganization().getId()); matchedOrganization.setMatchStrength(affMatchResult.getMatchStrength()); return matchedOrganization; }  MatchedOrganization convert(AffMatchResult affMatchResult);  }