File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ public void drop() {
9696 * @return the collection or null
9797 */
9898 public DBCollection getOutputCollection () {
99- //TODO: test this
10099 return collection ;
101100 }
102101
Original file line number Diff line number Diff line change @@ -163,12 +163,13 @@ public void testMapReduceInlineWScope() {
163163 }
164164
165165 @ Test
166- public void testDropOutputCollection () {
166+ public void testOutputCollection () {
167167 String anotherCollectionName = "anotherCollection" + System .nanoTime ();
168168 MapReduceOutput output = collection .mapReduce (DEFAULT_MAP ,
169169 DEFAULT_REDUCE ,
170170 anotherCollectionName , null );
171171
172+ assertEquals (database .getCollection (anotherCollectionName ).getFullName (), output .getOutputCollection ().getFullName ());
172173 assertTrue (database .collectionExists (anotherCollectionName ));
173174
174175 output .drop ();
You can’t perform that action at this time.
0 commit comments