Permalink
Browse files

Rebuild cfmongodb.jar; update AggregationTest for new class of Aggreg…

…ation Exception; update DBCollectionTest with Adobe CF compatible syntax
  • Loading branch information...
1 parent 28244dc commit a24c3ef38c8627443929711947dcbef5ef987171 @marcesher committed May 23, 2013
Showing with 9 additions and 9 deletions.
  1. +1 −1 .classpath
  2. BIN lib/cfmongodb.jar
  3. +1 −1 test/AggregationTest.cfc
  4. +7 −7 test/DBCollectionTest.cfc
View
@@ -2,6 +2,6 @@
<classpath>
<classpathentry kind="src" path="java/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="lib" path="lib/mongo-2.10.1.jar"/>
+ <classpathentry kind="lib" path="lib/mongo-java-driver-2.11.1.jar"/>
<classpathentry kind="output" path="java/bin"/>
</classpath>
View
Binary file not shown.
@@ -197,7 +197,7 @@ import cfmongodb.core.*;
}
/**
- * @mxunit:expectedException com.mongodb.CommandResult$CommandFailure
+ * @mxunit:expectedException com.mongodb.CommandFailureException
*/
function aggregate_throws_error_with_bad_command(){
var op = { "group"={ "_id"="$STATUS", "total"={ "$sum"=1 } } };
@@ -559,10 +559,10 @@ import cfmongodb.core.*;
/* SISTER DB TEST */
function getSiblingDB_returns_collection_from_sibling_db(){
var testdocs = [
- { "name":"test1" },
- { "name":"test2" },
- { "name":"test3" },
- { "name":"test4" }
+ { "name"="test1" },
+ { "name"="test2" },
+ { "name"="test3" },
+ { "name"="test4" }
];
// insert test docs into sibling database's collection
@@ -571,9 +571,9 @@ import cfmongodb.core.*;
local.thiscount = dbSiblingCol.count();
local.siblingcount = siblingdbSiblingCol.count();
- assertTrue(local.thiscount eq 0, "Local sibling collection should have no docs, has #local.thiscount#.")
- assertTrue(local.siblingcount eq 4, "Sibling collection should have 4 docs, has #local.siblingcount#.")
- assertTrue(local.thiscount neq local.siblingcount, "Local sibling collection should have no docs, sibling should have 4.")
+ assertTrue(local.thiscount eq 0, "Local sibling collection should have no docs, has #local.thiscount#.");
+ assertTrue(local.siblingcount eq 4, "Sibling collection should have 4 docs, has #local.siblingcount#.");
+ assertTrue(local.thiscount neq local.siblingcount, "Local sibling collection should have no docs, sibling should have 4.");
}

0 comments on commit a24c3ef

Please sign in to comment.