camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1026081 - in /camel/trunk: components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBGrowIssueTest.java parent/pom.xml
Date Thu, 21 Oct 2010 17:51:00 GMT
Author: davsclaus
Date: Thu Oct 21 17:51:00 2010
New Revision: 1026081

URL: http://svn.apache.org/viewvc?rev=1026081&view=rev
Log:
CAMEL-3249: Upgraded hawtdb with has an important bug fix.

Modified:
    camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBGrowIssueTest.java
    camel/trunk/parent/pom.xml

Modified: camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBGrowIssueTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBGrowIssueTest.java?rev=1026081&r1=1026080&r2=1026081&view=diff
==============================================================================
--- camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBGrowIssueTest.java
(original)
+++ camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBGrowIssueTest.java
Thu Oct 21 17:51:00 2010
@@ -22,13 +22,11 @@ import org.apache.camel.test.junit4.Came
 import org.fusesource.hawtbuf.Buffer;
 import org.fusesource.hawtdb.api.SortedIndex;
 import org.fusesource.hawtdb.api.Transaction;
-import org.junit.Ignore;
 import org.junit.Test;
 
 /**
  * @version $Revision$
  */
-@Ignore("See CAMEL-3249")
 public class HawtDBGrowIssueTest extends CamelTestSupport {
 
     private HawtDBCamelCodec codec = new HawtDBCamelCodec();
@@ -70,7 +68,7 @@ public class HawtDBGrowIssueTest extends
         for (int i = 0; i < size; i++) {
             final Buffer data = codec.marshallKey(i + "-" + sb.toString());
 
-            System.out.println("Updating " + i);
+            log.debug("Updating " + i);
 
             hawtDBFile.execute(new Work<Object>() {
                 public Object execute(Transaction tx) {
@@ -89,7 +87,9 @@ public class HawtDBGrowIssueTest extends
         });
 
         String data = codec.unmarshallKey(out);
-        System.out.println(data);
+        log.info(data);
+        assertTrue("Should be 1023", data.startsWith("1023"));
+        assertEquals(1029, data.length());
     }
 
 }

Modified: camel/trunk/parent/pom.xml
URL: http://svn.apache.org/viewvc/camel/trunk/parent/pom.xml?rev=1026081&r1=1026080&r2=1026081&view=diff
==============================================================================
--- camel/trunk/parent/pom.xml (original)
+++ camel/trunk/parent/pom.xml Thu Oct 21 17:51:00 2010
@@ -72,7 +72,7 @@
     <guiceyfruit-version>2.0</guiceyfruit-version>
     <hamcrest-version>1.2-dev1</hamcrest-version>
     <hawtbuf-version>1.2</hawtbuf-version>
-    <hawtdb-version>1.4</hawtdb-version>
+    <hawtdb-version>1.5</hawtdb-version>
     <hibernate-version>3.2.6.ga</hibernate-version>
     <hibernate-entitymanager-version>3.2.1.ga</hibernate-entitymanager-version>
     <hsqldb-version>1.8.0.7</hsqldb-version>



Mime
View raw message