Package org.exoplatform.frameworks.jcr.cli

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


      assertTrue(ctx.getOutput().contains("ws"));
   }

   public void testRemoveItemCommand() throws Exception
   {
      RemoveItemCommand removeItemCommand = (RemoveItemCommand)cservice.getCatalog("CLI").getCommand("remove");
      removeItemCommand.execute(ctx);
      System.out.println("[out]:" + ctx.getOutput());
      assertEquals(((Node)ctx.getCurrentItem()).getName(), "childOftestJCRClientCommands2");
   }
View Full Code Here


      assertTrue(ctx.getOutput().contains("ws"));
   }

   public void testRemoveItemCommand() throws Exception
   {
      RemoveItemCommand removeItemCommand = (RemoveItemCommand)cservice.getCatalog("CLI").getCommand("remove");
      removeItemCommand.execute(ctx);

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

   }

   public void testRemoveItemCommand() throws Exception
   {
      ctx.setCurrentItem(ctx.getSession().getRootNode().getNode("testJCRClientCommands/childOftestJCRClientCommands"));
      RemoveItemCommand removeItemCommand = (RemoveItemCommand)cservice.getCatalog("CLI").getCommand("remove");
      removeItemCommand.execute(ctx);

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

TOP

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

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.