> +import com.google.common.collect.FluentIterable;
> +
> +@Test(groups = "live", testName = "InstanceApiLiveTest")
> +public class InstanceApiWindowsLiveTest extends 
> BaseGoogleComputeEngineApiLiveTest {
> +
> +   private static final String INSTANCE_NETWORK_NAME = 
> "instance-api-live-test-network";
> +   private static final String INSTANCE_NAME = 
> "instance-api-test-instance-1";
> +   private static final String DISK_NAME = "instance-live-test-disk";
> +   private static final String IPV4_RANGE = "10.0.0.0/8";
> +   private static final int DEFAULT_DISK_SIZE_GB = 25;
> +
> +   private Function<Map<String, ?>, String> reset_windows_password;
> +   private NewInstance instance;
> +
> +   @Override
> +   protected GoogleComputeEngineApi create(Properties props, 
> Iterable<Module> modules) {

Instead of copying the method from the parent class, change it in a way that 
allows subclasses to cleanly override it. Let's change the parent class to 
assign the Injector to a local protected variable, so this class does not need 
to copy all the logic and can just call `super` and add its own after that.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/170/files/3699873ab32a6f2834325b6e8de60d62549c951f#r61444816

Reply via email to