Package org.exoplatform.frameworks.jcr.cli

Examples of org.exoplatform.frameworks.jcr.cli.GetPropertyCommand


   }

   public void testGetCtxProperty() throws Exception
   {
      params.clear();
      GetPropertyCommand getPropertyCommand = (GetPropertyCommand)cservice.getCatalog("CLI").getCommand("getproperty");
      params.add("testProperty");
      ctx.put(PARAMETERS_KEY, params);
      getPropertyCommand.execute(ctx);
      System.out.println("[out]:" + ctx.getOutput());
      assertEquals(((Property)ctx.getCurrentItem()).getValue().getString(), "test");
   }
View Full Code Here


   }

   public void testGetCtxProperty() throws Exception
   {
      params.clear();
      GetPropertyCommand getPropertyCommand = (GetPropertyCommand)cservice.getCatalog("CLI").getCommand("getproperty");
      params.add("testProperty");
      ctx.put(PARAMETERS_KEY, params);
      getPropertyCommand.execute(ctx);

      assertEquals(((Property)ctx.getCurrentItem()).getValue().getString(), "test");
   }
View Full Code Here

   public void testGetCtxProperty() throws Exception
   {
      params.clear();
      ctx.setCurrentItem(ctx.getSession().getRootNode().getNode("testJCRClientCommands/childOftestJCRClientCommands"));
      GetPropertyCommand getPropertyCommand = (GetPropertyCommand)cservice.getCatalog("CLI").getCommand("getproperty");
      params.add("testProperty");
      ctx.put(PARAMETERS_KEY, params);
      getPropertyCommand.execute(ctx);

      assertEquals(((Property)ctx.getCurrentItem()).getValue().getString(), "test");
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.frameworks.jcr.cli.GetPropertyCommand

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.