empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r788189 - /incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java
Date Wed, 24 Jun 2009 21:33:01 GMT
Author: francisdb
Date: Wed Jun 24 21:33:00 2009
New Revision: 788189

URL: http://svn.apache.org/viewvc?rev=788189&view=rev
Log:
add assertion messages

Modified:
    incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java

Modified: incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java?rev=788189&r1=788188&r2=788189&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java
(original)
+++ incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java
Wed Jun 24 21:33:00 2009
@@ -81,8 +81,8 @@
         dep.update(conn);
         
         Date date = dep.getDateTime(db.DEPARTMENT.UPDATE_TIMESTAMP);
-        assertNotNull(date);
-        assertTrue(dep.getInt(db.DEPARTMENT.ID) > 0);
+        assertNotNull("Date is null", date);
+        assertTrue("No departments", dep.getInt(db.DEPARTMENT.ID) > 0);
         
         
         DBRecord emp = new DBRecord();
@@ -94,8 +94,8 @@
         emp.update(conn);
         
         date = emp.getDateTime(db.EMPLOYEE.UPDATE_TIMESTAMP);
-        assertNotNull(date);
-        assertTrue(emp.getInt(db.EMPLOYEE.ID) > 0);
+        assertNotNull("Date is null", date);
+        assertTrue("Employee id O or less", emp.getInt(db.EMPLOYEE.ID) > 0);
 
         int id = emp.getInt(db.EMPLOYEE.ID);
         



Mime
View raw message