Package org.intellij.vcs.mks.sicommands.cli

Examples of org.intellij.vcs.mks.sicommands.cli.SandboxesCommand


    assert (command.result.size() == 12);

  }

  public SandboxesCommand executeCommand(String outputFile) {
    final SandboxesCommand command = createCommand(new ArrayList<VcsException>(), outputFile);
    command.execute();
    return command;
  }
View Full Code Here


      public boolean isMks2007() {
        return false;
      }
    };
    return new SandboxesCommand(errors, mksCLIConfiguration) {
      @Override
      protected String executeCommand() throws IOException {
        commandOutput = loadResourceWithEncoding(outputFile, ENCODING);
        return outputFile;
      }
View Full Code Here

*/
public class SandboxListSynchronizerImplTest extends TestCase {

    public void testCompareRemoved() {

        final SandboxesCommand command = new SandboxesCommandTest().executeCommand(SandboxesCommandTest.FILE_1);
        final ArrayList<SandboxInfo> oldList = command.result;

        final ArrayList<SandboxInfo> newList = new ArrayList<SandboxInfo>(oldList);

        newList.remove(0);
View Full Code Here

        assertTrue(sandboxAdded.isEmpty());
    }

    public void testCompareUpdated() {

        final SandboxesCommand command = new SandboxesCommandTest().executeCommand(SandboxesCommandTest.FILE_1);
        final ArrayList<SandboxInfo> oldList = command.result;

        final ArrayList<SandboxInfo> newList = new ArrayList<SandboxInfo>(oldList);
        final SandboxInfo sandboxInfo = oldList.get(2);
        final SandboxInfo newSandboxInfo = new SandboxInfo(sandboxInfo.sandboxPath, sandboxInfo.serverHostAndPort, sandboxInfo.projectPath, "newDevpath");
View Full Code Here

        assertTrue(sandboxAdded.isEmpty());
    }

    public void testCompareAdded() {

        final SandboxesCommand command = new SandboxesCommandTest().executeCommand(SandboxesCommandTest.FILE_1);
        final ArrayList<SandboxInfo> oldList = command.result;

        final ArrayList<SandboxInfo> newList = new ArrayList<SandboxInfo>(oldList);
        final SandboxInfo sandboxInfo = oldList.get(oldList.size() - 1);
View Full Code Here

public class SandboxesCommandTest extends TestCase {
  private static final String ENCODING = "IBM437";
  public static final String FILE_1 = "/org/intellij/vcs/mks/realtime/sandboxlist.properties";

  public void test() {
    final SandboxesCommand command = executeCommand(FILE_1);
    assert (command.result.size() == 12);

  }
View Full Code Here

    public String getDescription() {
        return "sandbox list listener";
    }

    protected ArrayList<SandboxInfo> getNewSandboxList() {
        final SandboxesCommand command = new SandboxesCommand(new ArrayList<VcsException>(),
                ApplicationManager.getApplication().getComponent(MksConfiguration.class));
        command.execute();

        Collections.sort(command.result, SandboxInfo.COMPARATOR);
        return command.result;
    }
View Full Code Here

TOP

Related Classes of org.intellij.vcs.mks.sicommands.cli.SandboxesCommand

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.