[Lipog-commit] net.heilancoo.portal.documentation/doc apptest-123.html, 1.1, 1.2
Status: Beta
Brought to you by:
jbu
From: Joerg B. <jb...@us...> - 2009-07-28 16:41:07
|
Update of /cvsroot/lipog/net.heilancoo.portal.documentation/doc In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13898/doc Modified Files: apptest-123.html Log Message: tweaks to SessonException concept in test helper classes Index: apptest-123.html =================================================================== RCS file: /cvsroot/lipog/net.heilancoo.portal.documentation/doc/apptest-123.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** apptest-123.html 26 Jul 2009 16:47:39 -0000 1.1 --- apptest-123.html 28 Jul 2009 16:40:56 -0000 1.2 *************** *** 64,68 **** @Test ! public void doLoginTest() throws FailingHttpStatusCodeException, MalformedURLException, IOException, SessionException, ApplicationException { // =========================================================== // Log into the web application. This is client side activity. --- 64,68 ---- @Test ! public void doLoginTest() throws FailingHttpStatusCodeException, MalformedURLException, IOException, ApplicationException { // =========================================================== // Log into the web application. This is client side activity. *************** *** 90,93 **** --- 90,102 ---- // And again inspect the server side: assertEquals(2, s.getAccessCounter()); + + // ===================================================== + // Back on the client side. Log out! + HtmlPage loggedOut = loggedIn.getAnchorByHref("logout").click(); + assertEquals("Logout", loggedOut.getTitleText()); + + // ================================= + // The session should now be gone... + assertNull(PortalTest.getSessionForPage(loggedIn)); } |