-
1. Re: Arquillian, Drone and Mockito
aslak Feb 13, 2014 3:03 PM (in response to malk182)This sounds like a job for Arquillian Warp; arquillian/arquillian-extension-warp · GitHub
It allows you to Assert/Manipulate then Container side while executing your Client requests.
-
2. Re: Arquillian, Drone and Mockito
kpiwko Feb 14, 2014 3:21 AM (in response to malk182)Hi Euber,
Drone itself is not capable of this. There are 3 different approaches:
1/ Arquillian Warp allows combination of server side and client side testing arquillian.github.com/docs/warp.adoc at warp-docs · lfryc/arquillian.github.com · GitHub
2/ Deploying "mocked facade" in your application - e.g. preparing alternative CDI Bean or deploying completely different class content
3/ Arquillian Byteman allows you to modify bytecode of deployment directly on server, so you don't have to mock but you can force alternative behavior of deployed classes
For instance, here I'm using Arquillian Spock with Arquillian Byteman to change JPA behavior - https://github.com/kpiwko/arquillian-safari/blob/master/arquillian-rest-scenario/src/test/groovy/com/acme/example/test/FaultInjectionSpecification.groovy
For your purpose, I think Warp is the tool you should be looking into - same as Aslak mentioned. Byteman is the most powerful option, but also the most complicated for setup.
HTH,
Karel