Package com.google.enterprise.connector.util.diffing

Examples of com.google.enterprise.connector.util.diffing.DeleteDocumentHandle


    clientFactory = new MockDocumentHandleFactory();
  }

  public void testCheckpointAndChange_internal() throws Exception {
    DiffingConnectorCheckpoint fccp = DiffingConnectorCheckpoint.newFirst();
    DeleteDocumentHandle ddh = new DeleteDocumentHandle("abc");
    Change c = new Change(Change.FactoryType.INTERNAL, ddh, MCP);
    CheckpointAndChange checkpointAndChange = new CheckpointAndChange(fccp, c);
    String stringForm = checkpointAndChange.getJson().toString();
    JSONObject json = new JSONObject(stringForm);
    CheckpointAndChange copy = new CheckpointAndChange(json, internalFactory,
View Full Code Here


    internalFactory = new DeleteDocumentHandleFactory();
    clientFactory = new MockDocumentHandleFactory();
    }

  public void testChange_fromJsonInternalFactory() throws Exception {
    DeleteDocumentHandle ddh = new DeleteDocumentHandle("abc");
    Change c = new Change(Change.FactoryType.INTERNAL, ddh, MCP);
    String stringForm = c.getJson().toString();
    JSONObject json = new JSONObject(stringForm);
    Change copy = new Change(json, internalFactory, clientFactory);
    assertEquals(c.getMonitorCheckpoint(), copy.getMonitorCheckpoint());
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.util.diffing.DeleteDocumentHandle

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.