Package org.exoplatform.frameworks.jcr.cli

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


   }

   public void testCopyNodeCommand() throws Exception
   {
      params.clear();
      CopyNodeCommand copyNodeCommand = (CopyNodeCommand)cservice.getCatalog("CLI").getCommand("copynode");
      params.add("/testJCRClientCommands");
      params.add("/copyOftestJCRClientCommands");
      ctx.put(PARAMETERS_KEY, params);
      copyNodeCommand.execute(ctx);
      System.out.println("[out]:" + ctx.getOutput());
      assertNotNull(ctx.getSession().getRootNode().getNode("copyOftestJCRClientCommands"));
   }
View Full Code Here


   }

   public void testCopyNodeCommand() throws Exception
   {
      params.clear();
      CopyNodeCommand copyNodeCommand = (CopyNodeCommand)cservice.getCatalog("CLI").getCommand("copynode");
      params.add("/testJCRClientCommands");
      params.add("/copyOftestJCRClientCommands");
      ctx.put(PARAMETERS_KEY, params);
      copyNodeCommand.execute(ctx);

      assertNotNull(ctx.getSession().getRootNode().getNode("copyOftestJCRClientCommands"));
   }
View Full Code Here

   }

   public void testCopyNodeCommand() throws Exception
   {
      params.clear();
      CopyNodeCommand copyNodeCommand = (CopyNodeCommand)cservice.getCatalog("CLI").getCommand("copynode");
      params.add("/testJCRClientCommands");
      params.add("/copyOftestJCRClientCommands");
      ctx.put(PARAMETERS_KEY, params);
      copyNodeCommand.execute(ctx);

      assertNotNull(ctx.getSession().getRootNode().getNode("copyOftestJCRClientCommands"));
   }
View Full Code Here

TOP

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

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.