Search in sources :

Example 1 with VaccinationCertificateQrCode

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());
}
Also used : VaccinationCertificateQrCode(ch.admin.bag.covidcertificate.service.domain.VaccinationCertificateQrCode) Test(org.junit.Test)

Example 2 with VaccinationCertificateQrCode

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());
}
Also used : VaccinationCertificateQrCode(ch.admin.bag.covidcertificate.service.domain.VaccinationCertificateQrCode) Test(org.junit.Test)

Example 3 with VaccinationCertificateQrCode

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());
}
Also used : VaccinationCertificateQrCode(ch.admin.bag.covidcertificate.service.domain.VaccinationCertificateQrCode) Test(org.junit.Test)

Example 4 with VaccinationCertificateQrCode

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());
}
Also used : VaccinationCertificateQrCode(ch.admin.bag.covidcertificate.service.domain.VaccinationCertificateQrCode) Test(org.junit.Test)

Example 5 with VaccinationCertificateQrCode

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());
}
Also used : VaccinationCertificateQrCode(ch.admin.bag.covidcertificate.service.domain.VaccinationCertificateQrCode) Test(org.junit.Test)

Aggregations

VaccinationCertificateQrCode (ch.admin.bag.covidcertificate.service.domain.VaccinationCertificateQrCode)14 Test (org.junit.Test)13 IssuableVaccineDto (ch.admin.bag.covidcertificate.api.valueset.IssuableVaccineDto)1 VaccinationCertificatePdf (ch.admin.bag.covidcertificate.service.domain.VaccinationCertificatePdf)1