EbXML21Converters { @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 RegistryResponse convert(Response in); @Converter static Response convert(RegistryResponse in); @Converter static AdhocQueryRequest convert(QueryRegistry in); @Converter static QueryRegistry convert(AdhocQueryRequest in); @Converter static RegistryResponse convert(QueryResponse in); @Converter static QueryResponse convertToQueryResponse(RegistryResponse in);  }
@Test public void testConvertProvideAndRegisterDocumentSet() { ProvideAndRegisterDocumentSet org = SampleData.createProvideAndRegisterDocumentSet(); ProvideAndRegisterDocumentSetRequestType converted = EbXML21Converters.convert(org); ProvideAndRegisterDocumentSet copy = EbXML21Converters.convert(converted); assertEquals(org, copy); }
@Test public void testConvertRegisterDocumentSet() { RegisterDocumentSet org = SampleData.createRegisterDocumentSet(); SubmitObjectsRequest converted = EbXML21Converters.convert(org); RegisterDocumentSet copy = EbXML21Converters.convert(converted); assertEquals(org, copy); }
@Test public void testConvertResponse() { Response org = SampleData.createResponse(); RegistryResponse converted = EbXML21Converters.convert(org); Response copy = EbXML21Converters.convert(converted); assertEquals(org, copy); }
@Test public void testConvertQueryRegistry() { QueryRegistry org = SampleData.createSqlQuery(); AdhocQueryRequest converted = EbXML21Converters.convert(org); QueryRegistry copy = EbXML21Converters.convert(converted); assertEquals(org, copy); }