mirror of https://github.com/apache/jclouds.git
Fixed an overzealous refactor.
This commit is contained in:
parent
cdd1636514
commit
f5e479a4b5
|
@ -19,22 +19,24 @@
|
|||
|
||||
package org.jclouds.ohai;
|
||||
|
||||
import com.google.common.base.Predicate;
|
||||
import com.google.common.collect.Iterables;
|
||||
import com.google.inject.Module;
|
||||
import org.jclouds.compute.ComputeServiceContextBuilder;
|
||||
import java.util.Properties;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import org.jclouds.ohai.config.ConfiguresOhai;
|
||||
import org.jclouds.ohai.config.JMXOhaiModule;
|
||||
import org.jclouds.rest.RestContext;
|
||||
import org.jclouds.rest.RestContextBuilder;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import java.util.Properties;
|
||||
import com.google.common.base.Predicate;
|
||||
import com.google.common.collect.Iterables;
|
||||
import com.google.inject.Module;
|
||||
|
||||
/**
|
||||
*
|
||||
* @see RestContext
|
||||
*/
|
||||
public class OhaiContextBuilder<S, A> extends ComputeServiceContextBuilder<S, A> {
|
||||
public class OhaiContextBuilder<S, A> extends RestContextBuilder<S, A> {
|
||||
|
||||
@Inject
|
||||
public OhaiContextBuilder(Class<S> syncClientClass, Class<A> asyncClientClass, Properties properties) {
|
||||
|
@ -56,4 +58,4 @@ public class OhaiContextBuilder<S, A> extends ComputeServiceContextBuilder<S, A>
|
|||
modules.add(new JMXOhaiModule());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.jclouds.chef;
|
||||
|
||||
import com.google.common.collect.Iterables;
|
||||
import org.jclouds.compute.util.ComputeServiceUtils;
|
||||
import org.jclouds.rest.Providers;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
|
@ -33,7 +33,7 @@ public class ProvidersInPropertiesTest {
|
|||
|
||||
@Test
|
||||
public void testSupportedProviders() {
|
||||
Iterable<String> providers = ComputeServiceUtils.getSupportedProviders();
|
||||
Iterable<String> providers = Providers.getSupportedProviders();
|
||||
assert Iterables.contains(providers, "chef") : providers;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue