Package org.exoplatform.frameworks.jcr.cli

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


   }

   public void testGetCtxNode() throws Exception
   {
      params.clear();
      GetNodeCommand getNodeCommand = (GetNodeCommand)cservice.getCatalog("CLI").getCommand("getnode");
      params.add("childOftestJCRClientCommands");
      ctx.put(PARAMETERS_KEY, params);
      getNodeCommand.execute(ctx);
      System.out.println("[out]:" + ctx.getOutput());
      assertEquals(ctx.getCurrentItem().getName(), "childOftestJCRClientCommands");
   }
View Full Code Here


   }

   public void testGetCtxNode() throws Exception
   {
      params.clear();
      GetNodeCommand getNodeCommand = (GetNodeCommand)cservice.getCatalog("CLI").getCommand("getnode");
      params.add("childOftestJCRClientCommands");
      ctx.put(PARAMETERS_KEY, params);
      getNodeCommand.execute(ctx);

      assertEquals(ctx.getCurrentItem().getName(), "childOftestJCRClientCommands");
   }
View Full Code Here

   public void testGetCtxNode() throws Exception
   {
      params.clear();
      ctx.setCurrentItem(ctx.getSession().getRootNode().getNode("testJCRClientCommands"));
      GetNodeCommand getNodeCommand = (GetNodeCommand)cservice.getCatalog("CLI").getCommand("getnode");
      params.add("childOftestJCRClientCommands");
      ctx.put(PARAMETERS_KEY, params);
      getNodeCommand.execute(ctx);

      assertEquals(ctx.getCurrentItem().getName(), "childOftestJCRClientCommands");
   }
View Full Code Here

TOP

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

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.