Testing a JAX-RS Web Service?

前端 未结 10 1263
[愿得一人]
[愿得一人] 2020-12-04 08:36

I\'m currently looking for ways to create automated tests for a JAX-RS (Java API for RESTful Web Services) based web service.

I basically need a way to send it cert

10条回答
  •  心在旅途
    2020-12-04 09:38

    Take a look at Alchemy rest client generator. This can generate a proxy implementation for your JAX-RS webservice class using jersey client behind the scene. Effectively you will call you webservice methods as simple java methods from your unit tests. Handles http authentication as well.

    There is no code generation involved if you need to simply run tests so it is convenient.

    Dislclaimer: I am the author of this library.

提交回复
热议问题