EbXML30Converters { @Converter public static ProvideAndRegisterDocumentSetRequestType convert(ProvideAndRegisterDocumentSet in) { ProvideAndRegisterDocumentSetTransformer transformer = new ProvideAndRegisterDocumentSetTransformer(factory); return (ProvideAndRegisterDocumentSetRequestType) transformer.toEbXML(in).getInternal(); }  @Converter static ProvideAndRegisterDocumentSetRequestType convert(ProvideAndRegisterDocumentSet in); @Converter static ProvideAndRegisterDocumentSet convert(ProvideAndRegisterDocumentSetRequestType in); @Converter static SubmitObjectsRequest convert(RegisterDocumentSet in); @Converter static RegisterDocumentSet convert(SubmitObjectsRequest in); @Converter static RegistryResponseType convert(Response in); @Converter static Response convert(RegistryResponseType in); @Converter static AdhocQueryRequest convert(QueryRegistry in); @Converter static QueryRegistry convert(AdhocQueryRequest in); @Converter static AdhocQueryResponse convert(QueryResponse in); @Converter static QueryResponse convertToQueryResponse(AdhocQueryResponse in); @Converter static RetrieveDocumentSetRequestType convert(RetrieveDocumentSet in); @Converter static RetrieveDocumentSet convert(RetrieveDocumentSetRequestType in); @Converter static RetrieveDocumentSetResponseType convert(RetrievedDocumentSet in); @Converter static RetrievedDocumentSet convert(RetrieveDocumentSetResponseType in); @Converter static RetrieveImagingDocumentSetRequestType convert(RetrieveImagingDocumentSet in); @Converter static RetrieveImagingDocumentSet convert(RetrieveImagingDocumentSetRequestType in); @Converter static RemoveObjectsRequest convert(RemoveDocumentSet in); @Converter static RemoveDocumentSet convert(RemoveObjectsRequest in);  }
@Test public void testConvertProvideAndRegisterDocumentSet() { ProvideAndRegisterDocumentSet org = SampleData.createProvideAndRegisterDocumentSet(); ProvideAndRegisterDocumentSetRequestType converted = EbXML30Converters.convert(org); ProvideAndRegisterDocumentSet copy = EbXML30Converters.convert(converted); assertEquals(org, copy); }
@Test public void testConvertRegisterDocumentSet() { RegisterDocumentSet org = SampleData.createRegisterDocumentSet(); SubmitObjectsRequest converted = EbXML30Converters.convert(org); RegisterDocumentSet copy = EbXML30Converters.convert(converted); assertEquals(org, copy); }
@Test public void testConvertResponse() { Response org = SampleData.createResponse(); RegistryResponseType converted = EbXML30Converters.convert(org); Response copy = EbXML30Converters.convert(converted); assertEquals(org, copy); }
@Test public void testConvertQueryRegistry() { QueryRegistry org = SampleData.createFindDocumentsQuery(); AdhocQueryRequest converted = EbXML30Converters.convert(org); QueryRegistry copy = EbXML30Converters.convert(converted); assertEquals(org, copy); }
@Test public void testConvertRetrieveDocumentSet() { RetrieveDocumentSet org = SampleData.createRetrieveDocumentSet(); RetrieveDocumentSetRequestType converted = EbXML30Converters.convert(org); RetrieveDocumentSet copy = EbXML30Converters.convert(converted); assertEquals(org, copy); }
@Test public void testConvertRetrieveImagingDocumentSet() { RetrieveImagingDocumentSet org = SampleData.createRetrieveImagingDocumentSet(); RetrieveImagingDocumentSetRequestType converted = EbXML30Converters.convert(org); RetrieveImagingDocumentSet copy = EbXML30Converters.convert(converted); assertEquals(org, copy); }