Package org.jamesdbloom.acceptance.login

Examples of org.jamesdbloom.acceptance.login.LoginPage.csrfValue()


        HttpResponse landingPageResponse = httpClient.execute(new HttpGet("http://127.0.0.1:8080/"));

        // then - login page is displayed
        LoginPage securePageResponse = new LoginPage(getBodyAndClose(landingPageResponse));
        securePageResponse.shouldHaveCorrectFields();
        csrf = securePageResponse.csrfValue();

        // when - login is performed
        HttpPost login = new HttpPost("https://127.0.0.1:8443/login");
        login.setEntity(new UrlEncodedFormEntity(Arrays.asList(
                new BasicNameValuePair("username", "fake@email.com"),
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.