Package com.google.enterprise.connector.spi

Examples of com.google.enterprise.connector.spi.SimpleTraversalContext


  }

  private void testInitTraversalContext(boolean gsaSupportsInheritedAcls,
      Boolean feedDisableInheritedAcls, boolean expectedSupportsInheritedAcls,
      boolean expectedSupportsDenyAcls) {
    SimpleTraversalContext simpleContext = new SimpleTraversalContext();
    GsaFeedConnection feeder = createMock(GsaFeedConnection.class);
    expect(feeder.supportsInheritedAcls())
        .andReturn(gsaSupportsInheritedAcls)
        .anyTimes();
    replay(feeder);
    Properties props = new Properties();
    if (feedDisableInheritedAcls != null) {
      props.setProperty(Context.FEED_DISABLE_INHERITED_ACLS,
          feedDisableInheritedAcls.toString());
    }

    Context out = Context.getInstance();
    out.initTraversalContext(simpleContext, props, feeder);

    assertEquals("supportsInheritedAcls", expectedSupportsInheritedAcls,
        simpleContext.supportsInheritedAcls());
    assertEquals("supportsDenyAcls", expectedSupportsDenyAcls,
        simpleContext.supportsDenyAcls());
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.spi.SimpleTraversalContext

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.