org.jclouds.reflect.Reflection2.typeTokenOf-s



API Populatity

2 Client projects

Project: org.jclouds

Project jclouds/jclouds in file ...rc.test.java.org.jclouds.chef.ChefApiLiveTest.java (2013-01-19)
@@ -18,6 +18,7 @@
  */
 package org.jclouds.chef;
 
+import static org.jclouds.reflect.Reflection2.typeTokenOf;
 import static org.testng.Assert.assertNotNull;
 
 import org.jclouds.chef.domain.CookbookVersion;
@@ -49,7 +50,7 @@ public class ChefApiLiveTest extends BaseChefApiLiveTest<ChefContext> {
     @Override
     protected TypeToken<ChefContext> contextType()
     {
-        return TypeToken.of(ChefContext.class);
+        return typeTokenOf(ChefContext.class);
     }
     
 }
Project jclouds/jclouds in file ...jclouds.chef.internal.BaseStubbedOhaiLiveTest.java (2013-01-19)
@@ -18,11 +18,13 @@
  */
 package org.jclouds.chef.internal;
 
+import static org.jclouds.reflect.Reflection2.typeTokenOf;
+
 import java.util.Map;
 
 import org.jclouds.apis.ApiMetadata;
-import org.jclouds.chef.ChefApiMetadata;
 import org.jclouds.chef.ChefApi;
+import org.jclouds.chef.ChefApiMetadata;
 import org.jclouds.chef.ChefContext;
 import org.jclouds.chef.config.ChefParserModule;
 import org.jclouds.chef.config.ChefRestClientModule;
@@ -71,6 +73,6 @@ public class BaseStubbedOhaiLiveTest extends BaseChefContextLiveTest<ChefContext
     @Override
     protected TypeToken<ChefContext> contextType()
     {
-        return TypeToken.of(ChefContext.class);
+        return typeTokenOf(ChefContext.class);
     }
 }
Project jclouds/jclouds in file ...ernal.CleanupStaleNodesAndClientsImplLiveTest.java (2013-01-19)
@@ -18,6 +18,8 @@
  */
 package org.jclouds.chef.strategy.internal;
 
+import static org.jclouds.reflect.Reflection2.typeTokenOf;
+
 import org.jclouds.chef.ChefApi;
 import org.jclouds.chef.ChefContext;
 import org.jclouds.chef.internal.BaseChefContextLiveTest;
@@ -72,7 +74,7 @@ public class CleanupStaleNodesAndClientsImplLiveTest extends BaseChefContextLive
    @Override
    protected TypeToken<ChefContext> contextType()
    {
-       return TypeToken.of(ChefContext.class);
+       return typeTokenOf(ChefContext.class);
    }
 
 }