Search in sources :

Example 1 with LocalCifRepo

use of org.openecard.recognition.staticrepo.LocalCifRepo in project open-ecard by ecsec.

the class TestLocalCif method testeGKCif.

@Test
public void testeGKCif() throws WSMarshallerException, IOException, SAXException {
    LocalCifRepo repo = new LocalCifRepo(new JAXBMarshaller());
    GetCardInfoOrACD req = new GetCardInfoOrACD();
    req.setAction(ECardConstants.CIF.GET_SPECIFIED);
    req.getCardTypeIdentifier().add("http://ws.gematik.de/egk/1.0.0");
    GetCardInfoOrACDResponse res = repo.getCardInfoOrACD(req);
    try {
        WSHelper.checkResult(res);
    } catch (WSException ex) {
        Assert.fail("Local repo returned with error\n" + ex.getMessage());
    }
    Assert.assertEquals(1, res.getCardInfoOrCapabilityInfo().size());
}
Also used : GetCardInfoOrACD(iso.std.iso_iec._24727.tech.schema.GetCardInfoOrACD) WSException(org.openecard.common.WSHelper.WSException) GetCardInfoOrACDResponse(iso.std.iso_iec._24727.tech.schema.GetCardInfoOrACDResponse) LocalCifRepo(org.openecard.recognition.staticrepo.LocalCifRepo) JAXBMarshaller(org.openecard.ws.jaxb.JAXBMarshaller) Test(org.testng.annotations.Test)

Aggregations

GetCardInfoOrACD (iso.std.iso_iec._24727.tech.schema.GetCardInfoOrACD)1 GetCardInfoOrACDResponse (iso.std.iso_iec._24727.tech.schema.GetCardInfoOrACDResponse)1 WSException (org.openecard.common.WSHelper.WSException)1 LocalCifRepo (org.openecard.recognition.staticrepo.LocalCifRepo)1 JAXBMarshaller (org.openecard.ws.jaxb.JAXBMarshaller)1 Test (org.testng.annotations.Test)1