Thanks Andrea! That's very helpful!

Xianyi Ye

-----Original Message-----
From: Andrea Turli [mailto:[email protected]] 
Sent: 2014年11月28日 16:19
To: [email protected]
Subject: Re: How to do Jclouds Mock test?


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