use of org.apache.cxf.systest.jaxrs.Book in project cxf by apache.
the class JAXRSSpringSecurityInterfaceTest method doGetBookProxyClient.
private void doGetBookProxyClient(String address, String username, String password, int expectedStatus) throws BookNotFoundFault {
SecureBookInterface books = JAXRSClientFactory.create(address, SecureBookInterface.class, username, password, null);
Book b = books.getThatBook();
assertEquals(123, b.getId());
Response r = WebClient.client(books).getResponse();
assertEquals(expectedStatus, r.getStatus());
}
Aggregations