Package com.google.enterprise.connector.manager

Examples of com.google.enterprise.connector.manager.Context


   * Test using teed feed file.
   */
  public void testTeedFeed() throws Exception {
    // Setup context where the teedFeedFile is set.
    Context.refresh();
    Context context = Context.getInstance();
    context.setStandaloneContext(TEST_DIR + APPLICATION_CONTEXT,
        "testdata/mocktestdata/");

    // Get properties from file so the teed feed file can be checked.
    String propFileName = TEST_DIR + APPLICATION_PROPERTIES;
    Properties props = new Properties();
View Full Code Here


    testConfig(TEST_DIR + "offset.xml", "GMT+01:00");
  }

  private void testConfig(String applicationContext, String expectedId) {
    Context.refresh();
    Context context = Context.getInstance();
    context.setStandaloneContext(applicationContext, null);

    assertEquals(expectedId, Value.getFeedTimeZone());
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.manager.Context

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.