Package com.google.enterprise.connector.notes.client.mock

Examples of com.google.enterprise.connector.notes.client.mock.NotesNameMock


            connectorSession.getServer(), connectorSession.getDirectory());

        // Generate users.
        notesNamesCache = new HashMap<String, NotesNameMock>();
        for (String name : names) {
          NotesNameMock nameMock = new NotesNameMock(name);
          NotesUserGroupManagerTest.addNotesUser(connectorSession,
              namesDatabase, nameMock.getCanonical(), nameMock.getShortName());
          notesNamesCache.put(name, nameMock);
        }

        // Generate groups and members.
        NotesUserGroupManagerTest.addNotesGroup(namesDatabase,
View Full Code Here


  }

  public void testAuthenticateKnownUser() throws Exception {
    // Validate the first name in the list
    String user = names[0];
    NotesNameMock nameMock = notesNamesCache.get(user);
    AuthenticationResponse response = authenticationManager.authenticate(
        new SimpleAuthenticationIdentity(nameMock.getShortName(),"password"));
    assertTrue(user + " is valid: ", response.isValid());
    testUserGroups(connectorSession, response, user);
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.notes.client.mock.NotesNameMock

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.