1 package org
.argeo
.slc
.server
.unit
;
3 import org
.argeo
.slc
.msg
.ExecutionAnswer
;
4 import org
.argeo
.slc
.server
.client
.SlcServerHttpClient
;
5 import org
.argeo
.slc
.unit
.AbstractSpringTestCase
;
7 public abstract class AbstractHttpClientTestCase
extends AbstractSpringTestCase
{
8 private SlcServerHttpClient httpClient
= null;
10 protected void setUp() throws Exception
{
12 httpClient
= createHttpClient();
13 httpClient
.waitForServerToBeReady();
16 protected SlcServerHttpClient
createHttpClient() {
17 SlcServerHttpClient httpClient
= getBean(SlcServerHttpClient
.class);
21 protected SlcServerHttpClient
getHttpClient() {
25 protected void assertAnswerOk(ExecutionAnswer answer
) {
27 fail("Server execution answer is not ok: " + answer
.getMessage());