Package org.jclouds.scriptbuilder.domain

Examples of org.jclouds.scriptbuilder.domain.SwitchArg


   @Test
   public void testSwitchOn() {
      ScriptBuilder builder = new ScriptBuilder();
      builder.addStatement(switchArg(1,
            ImmutableMap.of("start", interpret("echo started{lf}"), "stop", interpret("echo stopped{lf}"))));
      assertEquals(builder.statements, ImmutableList.of(new SwitchArg(1, ImmutableMap.of("start",
            interpret("echo started{lf}"), "stop", interpret("echo stopped{lf}")))));
   }
View Full Code Here


   @Test
   public void testSwitchOn() {
      ScriptBuilder builder = new ScriptBuilder();
      builder.addStatement(switchArg(1,
            ImmutableMap.of("start", interpret("echo started{lf}"), "stop", interpret("echo stopped{lf}"))));
      assertEquals(builder.statements, ImmutableList.of(new SwitchArg(1, ImmutableMap.of("start",
            interpret("echo started{lf}"), "stop", interpret("echo stopped{lf}")))));
   }
View Full Code Here

   @Test
   public void testSwitchOn() {
      ScriptBuilder builder = new ScriptBuilder();
      builder.addStatement(switchArg(1,
            ImmutableMap.of("start", interpret("echo started{lf}"), "stop", interpret("echo stopped{lf}"))));
      assertEquals(builder.statements, ImmutableList.of(new SwitchArg(1, ImmutableMap.of("start",
            interpret("echo started{lf}"), "stop", interpret("echo stopped{lf}")))));
   }
View Full Code Here

TOP

Related Classes of org.jclouds.scriptbuilder.domain.SwitchArg

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.