Hi Xianyi,

MockTests in jclouds are built using
https://github.com/square/okhttp/tree/master/mockwebserver

If you want to have good reference examples you can look at:
https://github.com/jclouds/jclouds-labs-google/blob/master/google-compute-engine/src/test/java/org/jclouds/googlecomputeengine/internal/BaseGoogleComputeEngineApiMockTest.java
https://github.com/jclouds/jclouds-labs-google/blob/master/google-compute-engine/src/test/java/org/jclouds/googlecomputeengine/features/AddressApiMockTest.java

Running a mockTest is as easy as running a testNG unit test!

Hope this helps and thanks for your interest!

Andrea

On Fri, Nov 28, 2014 at 8:45 AM, Xianyi Ye <[email protected]> wrote:
> Hi all,
>
>
>
> Is there anyone knows how to do Jclouds Mock test?
>
> Currently, I totally have no idea about it.
>
>
>
> Thanks for any help!
>
> Xianyi Ye

Reply via email to