Examples of TreeManager


Examples of com.google.jstestdriver.idea.execution.tree.TreeManager

  }

  public static void main(String[] args) throws Exception {
    Map<ParameterKey, String> paramMap = parseParams(args);
    JstdSettings settings = JstdSettings.build(paramMap);
    TreeManager treeManager = new TreeManager(settings.getRunAllConfigsInDirectory());
    if (settings.isDebug()) {
      @SuppressWarnings("IOResourceOpenedButNotSafelyClosed")
      BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
      String line;
      while ((line = reader.readLine()) != null) {
        if (DEBUG_SESSION_STARTED.equals(line)) {
          break;
        }
      }
    }
    try {
      new TestRunner(settings, treeManager).executeAll();
    } catch (Exception ex) {
      treeManager.printThrowable("Unexpected crash!", ex);
    } finally {
      treeManager.onTestingFinished();
    }
  }
View Full Code Here

Examples of edu.uga.galileo.voci.model.TreeManager

          + (command.getOther() == null ? "{null}" : command
              .getOther().get(0)));
      goToList = true;
    }

    TreeManager treeManager = TreeManager.getInstance();

    if (community != null) {
      request.setAttribute("community", community);
      request.setAttribute("treeNode", treeManager.getTreeNodeForVBO(
          command.getProject(), community, true));
      request.setAttribute("crumbSet", treeManager.getBreadCrumbsForVBO(
          command.getProject(), community, true));
      int resultsPerPage = Configuration.getInt("publicItemsPerPage");
      request.setAttribute("resultsPerPage", resultsPerPage);
    }
View Full Code Here

Examples of org.apache.jackrabbit.commons.flat.TreeManager

    static PropertySequence getPropertySequence(Node nMembers, UserManagerImpl userManager) throws RepositoryException {
        Comparator<String> order = Rank.comparableComparator();
        int maxChildren = userManager.getGroupMembershipSplitSize();
        int minChildren = maxChildren / 2;

        TreeManager treeManager = new BTreeManager(nMembers, minChildren, maxChildren, order,
                userManager.isAutoSave());

        return ItemSequence.createPropertySequence(treeManager);
    }
View Full Code Here

Examples of org.apache.jackrabbit.commons.flat.TreeManager

    static PropertySequence getPropertySequence(Node nMembers, UserManagerImpl userManager) throws RepositoryException {
        Comparator<String> order = Rank.comparableComparator();
        int maxChildren = userManager.getGroupMembershipSplitSize();
        int minChildren = maxChildren / 2;

        TreeManager treeManager = new BTreeManager(nMembers, minChildren, maxChildren, order,
                userManager.isAutoSave());

        return ItemSequence.createPropertySequence(treeManager);
    }
View Full Code Here

Examples of org.apache.jackrabbit.commons.flat.TreeManager

    }

    private PropertySequence getPropertySequence(Node nMembers) throws RepositoryException {
        Comparator<String> order = Rank.comparableComparator();
        int minChildren = memberSplitSize / 2;
        TreeManager treeManager = new BTreeManager(nMembers, minChildren, memberSplitSize, order, false);
        return ItemSequence.createPropertySequence(treeManager);
    }
View Full Code Here

Examples of org.apache.jackrabbit.commons.flat.TreeManager

    }

    private PropertySequence getPropertySequence(Node nMembers) throws RepositoryException {
        Comparator<String> order = Rank.comparableComparator();
        int minChildren = memberSplitSize / 2;
        TreeManager treeManager = new BTreeManager(nMembers, minChildren, memberSplitSize, order, false);
        return ItemSequence.createPropertySequence(treeManager);
    }
View Full Code Here

Examples of org.apache.jackrabbit.commons.flat.TreeManager

        superuser.save();
    }

    public void testEmptyNodeSequence() throws RepositoryException {
        Comparator<String> order = Rank.<String>comparableComparator();
        TreeManager treeManager = new BTreeManager(testNode, 5, 10, order, true);
        NodeSequence nodes = ItemSequence.createNodeSequence(treeManager, errorHandler);

        Iterator<Node> nodeIt = nodes.iterator();
        assertTrue(nodeIt.hasNext());
        assertTrue(treeManager.isRoot(nodeIt.next()));
        assertFalse(nodeIt.hasNext());

        checkTreeProperty(testNode, 5, 10, order);
        checkOrder(nodes, order);
        assertEmpty(nodes);
View Full Code Here

Examples of org.apache.jackrabbit.commons.flat.TreeManager

        assertEmpty(nodes);
    }

    public void testSingletonNodeSequence() throws RepositoryException {
        Comparator<String> order = Rank.<String>comparableComparator();
        TreeManager treeManager = new BTreeManager(testNode, 5, 10, order, true);
        NodeSequence nodes = ItemSequence.createNodeSequence(treeManager, errorHandler);

        nodes.addNode("key", NodeType.NT_UNSTRUCTURED);
        assertTrue(nodes.hasItem("key"));
View Full Code Here

Examples of org.apache.jackrabbit.commons.flat.TreeManager

        assertEmpty(nodes);
    }

    public void testNodeSequence() throws RepositoryException, IOException {
        Comparator<String> order = Rank.<String>comparableComparator();
        TreeManager treeManager = new BTreeManager(testNode, 5, 10, order, true);
        NodeSequence nodes = ItemSequence.createNodeSequence(treeManager, errorHandler);

        List<String> words = loadWords();
        Collections.shuffle(words);
View Full Code Here

Examples of org.apache.jackrabbit.commons.flat.TreeManager

        assertEmpty(nodes);
    }

    public void testEmptyPropertySequence() throws RepositoryException {
        Comparator<String> order = Rank.<String>comparableComparator();
        TreeManager treeManager = new BTreeManager(testNode, 2, 4, order, true);
        PropertySequence properties = ItemSequence.createPropertySequence(treeManager, errorHandler);

        Iterator<Property> propertyIt = properties.iterator();
        assertFalse(propertyIt.hasNext());
        assertEmpty(properties);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.