dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #05359
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1758: Fixed test error
------------------------------------------------------------
revno: 1758
committer: Lars <larshelg@larshelg-laptop>
branch nick: trunk
timestamp: Fri 2010-04-09 10:23:29 +0200
message:
Fixed test error
modified:
dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/useraudit/hibernate/HibernateUserAuditStore.java
dhis-2/dhis-services/dhis-service-administration/src/test/java/org/hisp/dhis/useraudit/UserAuditStoreTest.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/useraudit/hibernate/HibernateUserAuditStore.java'
--- dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/useraudit/hibernate/HibernateUserAuditStore.java 2010-03-30 23:08:42 +0000
+++ dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/useraudit/hibernate/HibernateUserAuditStore.java 2010-04-09 08:23:29 +0000
@@ -42,7 +42,6 @@
public class HibernateUserAuditStore
implements UserAuditStore
{
-
private SessionFactory sessionFactory;
public void setSessionFactory( SessionFactory sessionFactory )
@@ -81,7 +80,6 @@
Query q = session.createQuery( hql );
q.setString( "username", username );
-
q.setTimestamp( "date", date );
Long no = (Long) q.list().get( 0 );
=== modified file 'dhis-2/dhis-services/dhis-service-administration/src/test/java/org/hisp/dhis/useraudit/UserAuditStoreTest.java'
--- dhis-2/dhis-services/dhis-service-administration/src/test/java/org/hisp/dhis/useraudit/UserAuditStoreTest.java 2010-03-08 07:37:39 +0000
+++ dhis-2/dhis-services/dhis-service-administration/src/test/java/org/hisp/dhis/useraudit/UserAuditStoreTest.java 2010-04-09 08:23:29 +0000
@@ -66,6 +66,6 @@
userAuditStore.saveLoginFailure( new LoginFailure( "userA", getDate( 2000, 1, 6 ) ) );
userAuditStore.saveLoginFailure( new LoginFailure( "userB", getDate( 2000, 1, 7 ) ) );
- assertEquals( 3, userAuditStore.getLoginFailures( "userA", getDate( 2000, 1, 4 ) ) );
+ assertEquals( 2, userAuditStore.getLoginFailures( "userA", getDate( 2000, 1, 4 ) ) );
}
}