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());
}
Aggregations