Package org.jamesdbloom.email

Examples of org.jamesdbloom.email.NewRegistrationEmail.shouldHaveCorrectFields()


        TimeUnit.SECONDS.sleep(2);
        assertThat(wiser.getMessages(), is(not(empty())));
        WiserMessage registrationWiserMessage = wiser.getMessages().get(0);
        MimeMessage mimeMessage = registrationWiserMessage.getMimeMessage();
        NewRegistrationEmail registrationEmail = new NewRegistrationEmail(mimeMessage.getContent().toString());
        String updatePasswordURL = registrationEmail.shouldHaveCorrectFields("fake@email.com");

        // when - updating password
        HttpResponse updatePasswordPageResponse = httpClient.execute(new HttpGet(updatePasswordURL));
        UpdatePasswordPage updatePasswordPage = new UpdatePasswordPage(getBodyAndClose(updatePasswordPageResponse));
        updatePasswordPage.shouldHaveCorrectFields();
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.