Examples of RegistrationRequest


Examples of com.commafeed.frontend.model.request.RegistrationRequest

  @Test public void
  register_should_register_and_then_login() {
    // Create UserService mock
    UserService service = mock(UserService.class);
   
    RegistrationRequest req = new RegistrationRequest();
    req.setName("user");
    req.setPassword("password");
    req.setEmail("test@test.com");
   
    InOrder inOrder = inOrder(service);
   
    SessionHelper sessionHelper = mock(SessionHelper.class);
    UserREST userREST = new UserREST(null, null, null, service, null, null, null);
View Full Code Here

Examples of com.commafeed.frontend.model.request.RegistrationRequest

    // Create UserService mock
    UserService service = mock(UserService.class);
    when(service.register(any(String.class), any(String.class), any(String.class), Matchers.anyListOf(Role.class))).thenReturn(user);
    when(service.login(any(String.class), any(String.class))).thenReturn(Optional.of(user));
   
    RegistrationRequest req = new RegistrationRequest();
    req.setName("user");
    req.setPassword("password");
    req.setEmail("test@test.com");
   
    SessionHelper sessionHelper = mock(SessionHelper.class);
    UserREST userREST = new UserREST(null, null, null, service, null, null, null);
   
    userREST.register(req, sessionHelper);
View Full Code Here

Examples of ise.mace.tokens.RegistrationRequest

  }

  @Override
  public final void onActivation()
  {
    RegistrationRequest request = new RegistrationRequest(dm.getId(),
            dm.getRoles(), dm.getPublicVersion());
    ENVRegistrationResponse r = tmp_ec.register(request);
    this.authCode = r.getAuthCode();
    this.ec = ((RegistrationResponse)r).getEc();
    conn = PublicEnvironmentConnection.getInstance();
View Full Code Here

Examples of ise.mace.tokens.RegistrationRequest

  public ENVRegistrationResponse onRegister(
          ENVRegisterRequest registrationObject)
  {
    if (registrationObject instanceof RegistrationRequest)
    {
      final RegistrationRequest obj = (RegistrationRequest)registrationObject;
      if (!dmodel.registerParticipant(obj))
      {
        return null;
      }
    }
View Full Code Here

Examples of org.archfirst.bfoms.domain.security.RegistrationRequest

        return accountMap.get(accountName);
    }
   
    protected void createUser1() throws Exception {
        securityService.registerUser(
                new RegistrationRequest(FIRST_NAME1, LAST_NAME1, USERNAME1, PASSWORD1));
    }
View Full Code Here

Examples of org.archfirst.bfoms.domain.security.RegistrationRequest

    public String registerUser(String username) {
        String result = "succeed";
        try {
            securityService.registerUser(
                    new RegistrationRequest("John", "Doe", username, "secret"));
        }
        catch (UsernameExistsException e) {
            result = "fail";
        }
        return result;
View Full Code Here

Examples of org.archfirst.bfoms.domain.security.RegistrationRequest

            String firstName,
            String lastName,
            String username,
            String password) throws Exception {
        securityService.registerUser(
                new RegistrationRequest(firstName, lastName, username, password));
    }
View Full Code Here

Examples of org.archfirst.bfoms.domain.security.RegistrationRequest

    //@Test(expectedExceptions = UsernameExistsException.class) <-- not working
    public void testDuplicateUsernameRegistration() {
        registerUsers();
        try {
            securityTxnService.registerUser(
                new RegistrationRequest("Jim", "Horner", "jhorner", "school"));
        }
        catch (UsernameExistsException e) {
            // This is an acceptable exception - eat it
        }
    }
View Full Code Here

Examples of org.openqa.grid.common.RegistrationRequest

    // because this method is called asynchronously and no one waits for the completion,
    // exception needs to be reported explicitly.
    public Void call() throws Exception {
        try {
            RegistrationRequest c = RegistrationRequest.build(args);
            for (DesiredCapabilities dc : c.getCapabilities()) {
                JenkinsCapabilityMatcher.enhanceCapabilities(dc, nodeName);
            }
            SelfRegisteringRemote remote = new SelfRegisteringRemote(c);
            PropertyUtils.setProperty(SeleniumConstants.PROPERTY_INSTANCE, remote);
            remote.startRemoteServer();
View Full Code Here

Examples of org.openqa.grid.common.RegistrationRequest

    gridHubConfig.setPort(MY_SERVER_HOST_PORT);

    hub = new Hub(gridHubConfig);
    hub.start();

    RegistrationRequest request = new RegistrationRequest();
    request.loadFromJSON("src/main/resources/node.json");
    request.getAssociatedJSON();

    SelfRegisteringRemote registration = new SelfRegisteringRemote(request);
    registration.startRemoteServer();
    registration.startRegistrationProcess();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.