如何从javascumbs迁移到springframework-ws-test

hud*_*udi 5 java spring-ws

我们正在使用旧技术来测试我们的Web服务(javascumbs).是否有一些教程如何将其迁移到springframework-ws-test?

现在我的测试看起来像:

@Test
public void testWs() throws Exception {
    MessageContext message = helper.receiveMessage("xml/file.xml");
    WebServiceMessage response = message.getResponse();
    MessageValidator validator = helper.createMessageValidator(response);
    validator.assertNotSoapFault();
    validator.assertSoapMessage();
    validator.validate("xsd/xsd1.xsd", "xsd/xsd2.xsd");
    validator.compare("xml/response.ftl");
}
Run Code Online (Sandbox Code Playgroud)

我在这里找到了一些教程.但它看起来完全不同.我从文件加载xml,它也包含envelop和header,在这个例子中只有请求

Pra*_*ain 1

我想说,使用 docker 为您的测试提供完整的环境。它将使您能够进行其他类型的测试,并帮助您发展项目 CI/CD。相同的教程之一是http://blog.arungupta.me/run-javaee-tests-wildfly-docker-arquillian-cube/。仅供参考,这只是起点。我们正在使用这种组合来测试我们产品线中的 100 多个 git 存储库。