jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Turli <andrea.tu...@gmail.com>
Subject Re: How to do Jclouds Mock test?
Date Fri, 28 Nov 2014 08:18:32 GMT
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 <yexianyi@sina.com> 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

Mime
View raw message