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

Examples of com.google.enterprise.connector.util.diffing.SnapshotReader$LengthBasedRecordReader


  public void testOneRecord() throws SnapshotStoreException {
    MockDocumentSnapshot before = new MockDocumentSnapshot("0", "0.extra");
    writeAndClose(writer, before);

    SnapshotReader reader =
        new SnapshotReader(new BufferedReader(new StringReader(sw.toString())),
            "test", 8, new MockDocumentSnapshotFactory());
    DocumentSnapshot after = reader.read();
    assertEquals(before, after);
    assertNull(reader.read());
  }
View Full Code Here


      iMadeIt = true;
    } finally {
      writer.close();
    }

    SnapshotReader reader =
        new SnapshotReader(new BufferedReader(new StringReader(sw.toString())),
            "test", 2, new MockDocumentSnapshotFactory());
    for (int k = 0; k < 100; ++k) {
      DocumentSnapshot dss = reader.read();
      assertEquals(before[k], dss);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.util.diffing.SnapshotReader$LengthBasedRecordReader

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.