Package com.google.enterprise.connector.traversal

Examples of com.google.enterprise.connector.traversal.MockLister


  public void testFeedDocs() throws Exception {
    String connectorName = getName();
    MockPusher pusher = new MockPusher();
    DocumentAcceptorImpl documentAcceptor =
        new DocumentAcceptorImpl(connectorName, pusher);
    MockLister lister = new MockLister(10, 0);
    lister.setDocumentAcceptor(documentAcceptor);

    // With no inter-document delay, MockLister feeds all documents
    // from its start() method, then returns when done.
    lister.start();
    assertEquals(10, pusher.getTotalDocs());
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.traversal.MockLister

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.