Hi,
I have used moco to mock a rest-json service , My test look like this :
@test
public void should_return_expected_response() throws Exception {
final HttpServer server = jsonHttpServer(12306, file("foo.json"));
running(server, new Runnable() {
@OverRide
public void run() throws Exception {
Contrat contrat = contratClient.getContrat(numcontrat);
Assert.assertNotNull(contrat);
}
});
}
//contratClient is a service autowiring a RestTemplate client
When I run my test under intellij-idea, it works (with green as a result), but when I try to run it via maven (using mvn clean install) it fails with the exception :
java.lang.IllegalArgumentException: unknown configuration :[Z@d78df0
When I do the same (mvn clean install) with no breakpoints it passes and with success
Do you have any idea to explain this stange behaviour ?
NB: I use windows 7, JDK 6, moco-runner V0.10.0, junit 4
Hi,
I have used moco to mock a rest-json service , My test look like this :
@test
public void should_return_expected_response() throws Exception {
final HttpServer server = jsonHttpServer(12306, file("foo.json"));
running(server, new Runnable() {
@OverRide
public void run() throws Exception {
Contrat contrat = contratClient.getContrat(numcontrat);
Assert.assertNotNull(contrat);
}
});
}
//contratClient is a service autowiring a RestTemplate client
When I run my test under intellij-idea, it works (with green as a result), but when I try to run it via maven (using mvn clean install) it fails with the exception :
java.lang.IllegalArgumentException: unknown configuration :[Z@d78df0
When I do the same (mvn clean install) with no breakpoints it passes and with success
Do you have any idea to explain this stange behaviour ?
NB: I use windows 7, JDK 6, moco-runner V0.10.0, junit 4