Package org.jamesdbloom.acceptance.registration

Examples of org.jamesdbloom.acceptance.registration.RegistrationPage


        // given
        HttpClient httpClient = createApacheClient();

        // when - register
        HttpResponse registerPageResponse = httpClient.execute(new HttpGet("https://127.0.0.1:8443/register"));
        RegistrationPage registrationPage = new RegistrationPage(getBodyAndClose(registerPageResponse));
        registrationPage.shouldHaveCorrectFields();
        String csrf = registrationPage.csrfValue();

        HttpPost register = new HttpPost("https://127.0.0.1:8443/register");
        register.setEntity(new UrlEncodedFormEntity(Arrays.asList(
                new BasicNameValuePair("name", "test_user"),
                new BasicNameValuePair("email", "fake@email.com"),
View Full Code Here

TOP

Related Classes of org.jamesdbloom.acceptance.registration.RegistrationPage

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.