Package com.google.enterprise.connector.otex.client.mock

Examples of com.google.enterprise.connector.otex.client.mock.MockClientValue


      throws RepositoryException {
    Integer[][] matchingValues = new Integer[matchingNodes.length][];
    for (int i = 0; i < matchingNodes.length; i++) {
      matchingValues[i] = new Integer[] { matchingNodes[i] };
    }
    MockClientValue matching =
        new MockClientValue(new String[] { "DataID" }, matchingValues);

    Object desc = genealogist.getMatchingDescendants(matching);
    assertEquals(matchingDescendants, desc);
  }
View Full Code Here


      Object dataSize = docInfo[3 * i + 1];
      Object userId = docInfo[3 * i + 2];
      values[i] = new Object[] {
        new Date(), objectId, 2000, 144, "text/plain", dataSize, userId, null };
    }
    ClientValue recArray = new MockClientValue(FIELDS, values);

    Field[] fields = new Field[FIELDS.length];
    for (int i = 0; i < fields.length; i++) {
      fields[i] = new Field(FIELDS[i], FIELDS[i]);
    }
View Full Code Here

      int firstCandidateId, Date lastCandidateDate, int lastCandidateId,
      String checkpoint) throws RepositoryException {
    Session sess = conn.login();
    LivelinkTraversalManager ltm =
        (LivelinkTraversalManager) sess.getTraversalManager();
    ClientValue candidates = new MockClientValue(
        new String[] { "ModifyDate", "DataID" },
        new Object[][] { { firstCandidateDate, firstCandidateId },
                         { lastCandidateDate, lastCandidateId } });
    ltm.checkCandidatesTimeWarp(candidates, new Checkpoint(checkpoint));
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.otex.client.mock.MockClientValue

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.