Package org.hive2hive.core.processes.implementations.common.userprofiletask

Examples of org.hive2hive.core.processes.implementations.common.userprofiletask.RemoveUserProfileTaskStep


    SimpleGetUserProfileTaskContext context = new SimpleGetUserProfileTaskContext();

    SequentialProcess process = new SequentialProcess();
    process.add(new TestPutUserProfileTaskStep(userId, userProfileTask, key.getPublic(), node));
    process.add(new GetUserProfileTaskStep(context, node));
    process.add(new RemoveUserProfileTaskStep(context, node));

    UseCaseTestUtil.executeProcess(process);

    Parameters parameters = new Parameters().setLocationKey(userId).setDomainKey(H2HConstants.USER_PROFILE_TASK_DOMAIN)
        .setContentKey(userProfileTask.getContentKey());
View Full Code Here


      UseCaseTestUtil.executeProcess(getStep);
      if (context.consumeUserProfileTask() != null) {
        TestUserProfileTask task = (TestUserProfileTask) context.consumeUserProfileTask();
        downloadedTasks.add(task);
        // remove successfully get user profile tasks
        RemoveUserProfileTaskStep removeStep = new RemoveUserProfileTaskStep(context, node);
        UseCaseTestUtil.executeProcess(removeStep);
      } else {
        break;
      }
    }
View Full Code Here

     * Initialize next steps.
     * 1. Remove done user profile task from network.
     * 2. Get next user profile task.
     * 3. Handle fetched user profile task (can be null if no next UPtask exists)
     */
    getParent().add(new RemoveUserProfileTaskStep(context, networkManager));
    getParent().add(new GetUserProfileTaskStep(context, networkManager));
    getParent().add(new HandleUserProfileTaskStep(context, networkManager));
  }
View Full Code Here

TOP

Related Classes of org.hive2hive.core.processes.implementations.common.userprofiletask.RemoveUserProfileTaskStep

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.