@Test(expected = NullPointerException.class) public void convert_NULL() { cermineToIngestAffConverter.convert(null); }
Affiliation convert(CermineAffiliation cAff) { Preconditions.checkNotNull(cAff); return Affiliation.newBuilder() .setRawText(cAff.getRawText()) .setOrganization(cAff.getInstitution()) .setAddress(cAff.getAddress()) .setCountryName(cAff.getCountryName()) .setCountryCode(cAff.getCountryCode()) .build(); }
CermineToIngestAffConverter { Affiliation convert(CermineAffiliation cAff) { Preconditions.checkNotNull(cAff); return Affiliation.newBuilder() .setRawText(cAff.getRawText()) .setOrganization(cAff.getInstitution()) .setAddress(cAff.getAddress()) .setCountryName(cAff.getCountryName()) .setCountryCode(cAff.getCountryCode()) .build(); } }
CermineToIngestAffConverter { Affiliation convert(CermineAffiliation cAff) { Preconditions.checkNotNull(cAff); return Affiliation.newBuilder() .setRawText(cAff.getRawText()) .setOrganization(cAff.getInstitution()) .setAddress(cAff.getAddress()) .setCountryName(cAff.getCountryName()) .setCountryCode(cAff.getCountryCode()) .build(); }  }
CermineToIngestAffConverter { Affiliation convert(CermineAffiliation cAff) { Preconditions.checkNotNull(cAff); return Affiliation.newBuilder() .setRawText(cAff.getRawText()) .setOrganization(cAff.getInstitution()) .setAddress(cAff.getAddress()) .setCountryName(cAff.getCountryName()) .setCountryCode(cAff.getCountryCode()) .build(); }   }
CermineToIngestAffConverter { Affiliation convert(CermineAffiliation cAff) { Preconditions.checkNotNull(cAff); return Affiliation.newBuilder() .setRawText(cAff.getRawText()) .setOrganization(cAff.getInstitution()) .setAddress(cAff.getAddress()) .setCountryName(cAff.getCountryName()) .setCountryCode(cAff.getCountryCode()) .build(); }    }