Package org.jclouds.abiquo.functions.infrastructure

Examples of org.jclouds.abiquo.functions.infrastructure.ParseRemoteServiceType


*/
@Test(groups = "unit", testName = "AppendRemoteServiceTypeToPathTest")
public class AppendRemoteServiceTypeToPathTest {
   @Test(expectedExceptions = NullPointerException.class)
   public void testGetValueWithNullInput() {
      AppendRemoteServiceTypeToPath binder = new AppendRemoteServiceTypeToPath(new ParseRemoteServiceType());
      HttpRequest request = HttpRequest.builder().method("GET").endpoint(URI.create("http://localhost")).build();
      binder.getValue(request, null);
   }
View Full Code Here


      binder.getValue(request, null);
   }

   @Test(expectedExceptions = IllegalArgumentException.class)
   public void testGetValueWithInvalidInput() {
      AppendRemoteServiceTypeToPath binder = new AppendRemoteServiceTypeToPath(new ParseRemoteServiceType());
      HttpRequest request = HttpRequest.builder().method("GET").endpoint(URI.create("http://localhost")).build();
      binder.getValue(request, new Object());
   }
View Full Code Here

      HttpRequest request = HttpRequest.builder().method("GET").endpoint(URI.create("http://localhost")).build();
      binder.getValue(request, new Object());
   }

   public void testGetValue() {
      AppendRemoteServiceTypeToPath binder = new AppendRemoteServiceTypeToPath(new ParseRemoteServiceType());
      HttpRequest request = HttpRequest.builder().method("GET").endpoint(URI.create("http://localhost")).build();

      assertEquals(binder.getValue(request, RemoteServiceType.VIRTUAL_SYSTEM_MONITOR), "virtualsystemmonitor");
   }
View Full Code Here

*/
@Test(groups = "unit", testName = "AppendRemoteServiceTypeToPathTest")
public class AppendRemoteServiceTypeToPathTest {
   @Test(expectedExceptions = NullPointerException.class)
   public void testGetValueWithNullInput() {
      AppendRemoteServiceTypeToPath binder = new AppendRemoteServiceTypeToPath(new ParseRemoteServiceType());
      HttpRequest request = HttpRequest.builder().method("GET").endpoint(URI.create("http://localhost")).build();
      binder.getValue(request, null);
   }
View Full Code Here

      binder.getValue(request, null);
   }

   @Test(expectedExceptions = IllegalArgumentException.class)
   public void testGetValueWithInvalidInput() {
      AppendRemoteServiceTypeToPath binder = new AppendRemoteServiceTypeToPath(new ParseRemoteServiceType());
      HttpRequest request = HttpRequest.builder().method("GET").endpoint(URI.create("http://localhost")).build();
      binder.getValue(request, new Object());
   }
View Full Code Here

      HttpRequest request = HttpRequest.builder().method("GET").endpoint(URI.create("http://localhost")).build();
      binder.getValue(request, new Object());
   }

   public void testGetValue() {
      AppendRemoteServiceTypeToPath binder = new AppendRemoteServiceTypeToPath(new ParseRemoteServiceType());
      HttpRequest request = HttpRequest.builder().method("GET").endpoint(URI.create("http://localhost")).build();

      assertEquals(binder.getValue(request, RemoteServiceType.VIRTUAL_SYSTEM_MONITOR), "virtualsystemmonitor");
   }
View Full Code Here

TOP

Related Classes of org.jclouds.abiquo.functions.infrastructure.ParseRemoteServiceType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.