List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:October 11 2007 8:05am
Subject:Rev 178: Changed test case to work with nextResult properly. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge
View as plain text  
At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge

------------------------------------------------------------
revno: 178
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: ndbjmerge
timestamp: Thu 2007-10-11 01:04:55 -0700
message:
  Changed test case to work with nextResult properly.
modified:
  java/testsuite/ndbj/MultiPartPrimaryKeyStringTest.java
multipartprimarykeys-20070517181935-98huwjarzuh25b30-49
=== modified file 'java/testsuite/ndbj/MultiPartPrimaryKeyStringTest.java'
--- a/java/testsuite/ndbj/MultiPartPrimaryKeyStringTest.java	2007-10-05 18:18:53 +0000
+++ b/java/testsuite/ndbj/MultiPartPrimaryKeyStringTest.java	2007-10-11 08:04:55 +0000
@@ -188,18 +188,20 @@
 			      true);
 
 		    int numRes = 0;
-			while(rs.next())
+			while(rs.next(true))
 			{
-				numRes++;
-				String c1 = rs.getString(col1);
-				if (rs.wasNull() == true)
-					assertFalse(true);
-				String c2 = rs.getString(col1);
-				if (rs.wasNull() == true)
-					assertFalse(true);
-			    byte[] c = rs.getBytes(col3);
-				if (rs.wasNull() == true)
-					assertFalse(true);
+			
+					numRes++;
+					String c1 = rs.getString(col1);
+					if (rs.wasNull() == true)
+						assertFalse(true);
+					String c2 = rs.getString(col1);
+					if (rs.wasNull() == true)
+						assertFalse(true);
+					byte[] c = rs.getBytes(col3);
+					if (rs.wasNull() == true)
+						assertFalse(true);
+				
 			}
 			assertEquals(numRes, 1);
 		}

Thread
Rev 178: Changed test case to work with nextResult properly. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmergeMonty Taylor11 Oct