Skip to content

Commit

Permalink
Rebuild cfmongodb.jar; update AggregationTest for new class of Aggreg…
Browse files Browse the repository at this point in the history
…ation Exception; update DBCollectionTest with Adobe CF compatible syntax
  • Loading branch information
marcesher committed May 23, 2013
1 parent 28244dc commit a24c3ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .classpath
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<classpath> <classpath>
<classpathentry kind="src" path="java/src"/> <classpathentry kind="src" path="java/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <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"/> <classpathentry kind="output" path="java/bin"/>
</classpath> </classpath>
Binary file modified lib/cfmongodb.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion test/AggregationTest.cfc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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(){ function aggregate_throws_error_with_bad_command(){
var op = { "group"={ "_id"="$STATUS", "total"={ "$sum"=1 } } }; var op = { "group"={ "_id"="$STATUS", "total"={ "$sum"=1 } } };
Expand Down
14 changes: 7 additions & 7 deletions test/DBCollectionTest.cfc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -559,10 +559,10 @@ import cfmongodb.core.*;
/* SISTER DB TEST */ /* SISTER DB TEST */
function getSiblingDB_returns_collection_from_sibling_db(){ function getSiblingDB_returns_collection_from_sibling_db(){
var testdocs = [ var testdocs = [
{ "name":"test1" }, { "name"="test1" },
{ "name":"test2" }, { "name"="test2" },
{ "name":"test3" }, { "name"="test3" },
{ "name":"test4" } { "name"="test4" }
]; ];


// insert test docs into sibling database's collection // insert test docs into sibling database's collection
Expand All @@ -571,9 +571,9 @@ import cfmongodb.core.*;
local.thiscount = dbSiblingCol.count(); local.thiscount = dbSiblingCol.count();
local.siblingcount = siblingdbSiblingCol.count(); local.siblingcount = siblingdbSiblingCol.count();


assertTrue(local.thiscount eq 0, "Local sibling collection should have no docs, has #local.thiscount#.") 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.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 neq local.siblingcount, "Local sibling collection should have no docs, sibling should have 4.");
} }




Expand Down

0 comments on commit a24c3ef

Please sign in to comment.