Package org.hive2hive.core.processes.implementations.context

Examples of org.hive2hive.core.processes.implementations.context.LoginProcessContext


   * @throws NoPeerConnectionException
   */
  public ProcessComponent createLoginProcess(UserCredentials credentials, SessionParameters params,
      NetworkManager networkManager) throws NoPeerConnectionException {
    DataManager dataManager = networkManager.getDataManager();
    LoginProcessContext context = new LoginProcessContext();

    // process composition
    SequentialProcess process = new SequentialProcess();

    process.add(new GetUserProfileStep(credentials, context, dataManager));
View Full Code Here


   */
  private Locations runProcessStep(Locations fakedLocations, final boolean isInitial)
      throws NoSessionException, NoPeerConnectionException {
    // initialize the process and the one and only step to test

    LoginProcessContext context = new LoginProcessContext();
    context.provideLocations(fakedLocations);
    ContactOtherClientsStep processStep = new ContactOtherClientsStep(context, network.get(0));
    UseCaseTestUtil.executeProcess(processStep);

    Assert.assertEquals(isInitial, context.getIsInitial());
    return context.consumeLocations();
  }
View Full Code Here

TOP

Related Classes of org.hive2hive.core.processes.implementations.context.LoginProcessContext

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.