Package com.porterhead.rest.user.api

Examples of com.porterhead.rest.user.api.EmailVerificationRequest


    @Test
    public void generateEmailToken() {
        VerificationToken token = new VerificationToken(new User(), VerificationToken.VerificationTokenType.emailVerification, 120);
        when(verificationTokenService.generateEmailVerificationToken("test@example.com")).thenReturn(token);
        ClientResponse response = super.resource().path("verify/tokens").entity(new EmailVerificationRequest("test@example.com"), APPLICATION_JSON)
                .accept(APPLICATION_JSON).post(ClientResponse.class);
        assertThat(response.getStatus(), is(200));
    }
View Full Code Here

TOP

Related Classes of com.porterhead.rest.user.api.EmailVerificationRequest

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.