Package org.xwiki.invitation.test.po

Examples of org.xwiki.invitation.test.po.InspectInvitationsPage


            getUtil().setSession(admin);
            setSenderPage(InvitationSenderPage.gotoPage());
            Assert.assertTrue("No warning in footer that a message is reported as spam",
                getSenderPage().getFooter().spamReports() == 1);
            // View spam message.
            InspectInvitationsPage inspectPage = getSenderPage().getFooter().inspectAllInvitations();
            InspectInvitationsPage.OneMessage inspect =
                inspectPage.getMessageWhere("Subject", "spam has invited you to join localhost");
            // Prove that the memo left by spam reported is shown.
            String expectedMessage = "Reported as spam with message: It's the email lottery, they have taken over "
                + "your server!";
            Assert.assertTrue("The message by the spam reporter is not shown to the admin.\nExpecting:"
                + expectedMessage + "\n      Got:" + inspect.getStatusAndMemo(),
View Full Code Here


            setSenderPage(InvitationSenderPage.gotoPage());
            Assert.assertTrue("Declined invitation is still listed as pending in the footer.",
                getSenderPage().getFooter().spamReports() == 0);

            // View declined invitation.
            InspectInvitationsPage inspectPage = getSenderPage().getFooter().inspectMyInvitations();
            InspectInvitationsPage.OneMessage inspect = inspectPage.getMessageWhere("Status", "Declined");

            Assert.assertTrue("Not showing message box to say the invitation has been declined",
                inspect.getStatusAndMemo().equals("Declined with message: I'm not interested thank you."));

            // Insure the message history table is correct.
View Full Code Here

TOP

Related Classes of org.xwiki.invitation.test.po.InspectInvitationsPage

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.