Author: ozizka(a)redhat.com
Date: 2009-07-16 12:28:25 -0400 (Thu, 16 Jul 2009)
New Revision: 562
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/LoginTest.java
Log:
* Login test - logging added
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/LoginTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/LoginTest.java 2009-07-15 18:26:10
UTC (rev 561)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/LoginTest.java 2009-07-16 16:28:25
UTC (rev 562)
@@ -46,10 +46,14 @@
public void testLoggedIn() throws IOException
{
+ log.info("Checking the presence of username -
'"+LOGIN_USERNAME+"'.");
assertTrue( client.getPageAsText().contains(LOGIN_USERNAME) );
+
+ log.info("Checking the presence of the Logout link.");
assertTrue( client.getPageAsText().contains("Logout") );
- assertEquals("admin",
server.getManagedBeanValue("#{identity.username}") );
+ log.info("Checking that #{identity.username} ==
'"+LOGIN_USERNAME+"'.");
+ assertEquals(LOGIN_USERNAME,
server.getManagedBeanValue("#{identity.username}") );
}
Show replies by date