@Test @Ignore public void marshalling() throws Exception { changePatientContext(); ContextMarshaller marshaller = contextManager.getContextMarshaller("keystore-test"); String ctx = marshaller.marshal(contextManager.getMarshaledContext()); String sig = marshaller.sign(ctx); PatientContext.changePatient(null); assertNull(PatientContext.getActivePatient()); marshaller.unmarshal(ctx, sig); Patient patient = PatientContext.getActivePatient(); assertTrue("Doe, Jane".equalsIgnoreCase(new HumanNameParser().toString(patient.getName().get(0)))); }
@Test @Ignore public void marshalling() throws Exception { changePatientContext(); ContextMarshaller marshaller = contextManager.getContextMarshaller("keystore-test"); String ctx = marshaller.marshal(contextManager.getMarshaledContext()); String sig = marshaller.sign(ctx); PatientContext.changePatient((Patient) null); assertNull(PatientContext.getActivePatient()); marshaller.unmarshal(ctx, sig); Patient patient = PatientContext.getActivePatient(); assertTrue("Doe, Jane".equalsIgnoreCase(new HumanNameParser().toString(patient.getName().get(0)))); }