use of ch.admin.bag.covidcertificate.service.domain.VaccinationCertificateQrCode in project CovidCertificate-Management-Service by admin-ch.
the class VaccinationCertificateQrCodeMapperTest method mapsMarketingAuthorizationHolder.
@Test
public void mapsMarketingAuthorizationHolder() {
VaccinationCertificateQrCode actual = VaccinationCertificateQrCodeMapper.toVaccinationCertificateQrCode(incoming, vaccinationValueSet);
assertEquals(vaccinationValueSet.getAuthHolderDisplay(), actual.getVaccinationInfo().get(0).getMarketingAuthorizationHolder());
}
use of ch.admin.bag.covidcertificate.service.domain.VaccinationCertificateQrCode in project CovidCertificate-Management-Service by admin-ch.
the class VaccinationCertificateQrCodeMapperTest method mapsTotalNumberOfDoses.
@Test
public void mapsTotalNumberOfDoses() {
VaccinationCertificateQrCode actual = VaccinationCertificateQrCodeMapper.toVaccinationCertificateQrCode(incoming, vaccinationValueSet);
assertEquals(incoming.getVaccinationInfo().get(0).getTotalNumberOfDoses(), actual.getVaccinationInfo().get(0).getTotalNumberOfDoses());
}
use of ch.admin.bag.covidcertificate.service.domain.VaccinationCertificateQrCode in project CovidCertificate-Management-Service by admin-ch.
the class VaccinationCertificateQrCodeMapperTest method mapsIdentifier.
@Test
public void mapsIdentifier() {
VaccinationCertificateQrCode actual = VaccinationCertificateQrCodeMapper.toVaccinationCertificateQrCode(incoming, vaccinationValueSet);
assertNotNull(actual.getVaccinationInfo().get(0).getIdentifier());
}
use of ch.admin.bag.covidcertificate.service.domain.VaccinationCertificateQrCode in project CovidCertificate-Management-Service by admin-ch.
the class VaccinationCertificateQrCodeMapperTest method mapsIssuer.
@Test
public void mapsIssuer() {
VaccinationCertificateQrCode actual = VaccinationCertificateQrCodeMapper.toVaccinationCertificateQrCode(incoming, vaccinationValueSet);
assertEquals(ISSUER, actual.getVaccinationInfo().get(0).getIssuer());
}
use of ch.admin.bag.covidcertificate.service.domain.VaccinationCertificateQrCode in project CovidCertificate-Management-Service by admin-ch.
the class VaccinationCertificateQrCodeMapperTest method mapsCountryOfVaccination.
@Test
public void mapsCountryOfVaccination() {
VaccinationCertificateQrCode actual = VaccinationCertificateQrCodeMapper.toVaccinationCertificateQrCode(incoming, vaccinationValueSet);
assertEquals(incoming.getVaccinationInfo().get(0).getCountryOfVaccination(), actual.getVaccinationInfo().get(0).getCountryOfVaccination());
}
Aggregations