Author: taylor
Date: Tue Jan 23 13:29:40 2007
New Revision: 499139
URL: http://svn.apache.org/viewvc?view=rev&rev=499139
Log:
unit test broken by contribution last week
contribution from Hajo Birthelmer
Modified:
portals/jetspeed-2/trunk/components/statistics/src/test/org/apache/jetspeed/statistics/TestStatistics.java
Modified:
portals/jetspeed-2/trunk/components/statistics/src/test/org/apache/jetspeed/statistics/TestStatistics.java
URL:
http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/statistics/src/test/org/apache/jetspeed/statistics/TestStatistics.java?view=diff&rev=499139&r1=499138&r2=499139
==============================================================================
---
portals/jetspeed-2/trunk/components/statistics/src/test/org/apache/jetspeed/statistics/TestStatistics.java
(original)
+++
portals/jetspeed-2/trunk/components/statistics/src/test/org/apache/jetspeed/statistics/TestStatistics.java
Tue Jan 23 13:29:40 2007
@@ -48,6 +48,7 @@
*/
public class TestStatistics extends DatasourceEnabledSpringTestCase
{
+ String USERNAME = "anotherFaker";
private PortalStatistics statistics = null;
@@ -185,7 +186,9 @@
assertNotNull("list returned is null", l);
assertEquals("wrong number of users in list", 1, l.size());
- statistics.logUserLogout("123.234.145.156", "SuperFakeyUser",
+// statistics.logUserLogout("123.234.145.156", "SuperFakeyUser",
+// elapsedTime);
+ statistics.logUserLogout("123.234.145.156", USERNAME,
elapsedTime);
statistics.forceFlush();
@@ -232,7 +235,9 @@
assertNotNull("list returned is null", l);
assertEquals("wrong number of users in list", 1, l.size());
- statistics.logUserLogout("123.234.145.156", "SuperFakeyUser",
+// statistics.logUserLogout("123.234.145.156", "SuperFakeyUser",
+// elapsedTime);
+ statistics.logUserLogout("123.234.145.156", USERNAME,
elapsedTime);
try
{
@@ -300,7 +305,8 @@
MockHttpServletResponse response = new MockHttpServletResponse();
MockHttpSession session = new MockHttpSession();
- Principal p = new UserPrincipalImpl("anotherFaker");
+// Principal p = new UserPrincipalImpl("anotherFaker");
+ Principal p = new UserPrincipalImpl(USERNAME);
request.setUserPrincipal(p);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]