Package com.google.enterprise.connector.manager.TestService

Examples of com.google.enterprise.connector.manager.TestService.TestServiceToken


   * value.
   */
  private void assertTokenOrder(String message, boolean force,
      List<String> orderedServiceNames, List<TestServiceToken> tokenList) {
    Iterator<TestServiceToken> tokenIter = tokenList.iterator();
    TestServiceToken token;
    // First check for start tokens.
    for (int index = 0; index < orderedServiceNames.size(); index++) {
      token = tokenIter.next();
      assertEquals(message,
          orderedServiceNames.get(index), token.getService());
      assertEquals(message, "start", token.getAction());
    }
    // Then check for stop tokens.  Note they should be in reverse order.
    for (int index = orderedServiceNames.size() - 1; index >= 0; index--) {
      token = tokenIter.next();
      assertEquals(message,
          orderedServiceNames.get(index), token.getService());
      assertEquals(message, "stop", token.getAction());
      assertEquals(message, force, token.isActionForced());
    }
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.manager.TestService.TestServiceToken

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.