Permalink
Browse files

Enable back count check.

  • Loading branch information...
alesj committed Oct 25, 2012
1 parent 574dc01 commit c0a4481ce0bd651bceb07d36410508e99b303f89
Showing with 4 additions and 5 deletions.
  1. +4 −5 testsuite/src/test/java/com/redhat/ceylon/test/smoke/test/AbstractTest.java
@@ -26,6 +26,7 @@
import java.nio.file.Path;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.Collection;
+import java.util.Collections;
import java.util.Map.Entry;
import java.util.SortedSet;
import java.util.TreeSet;
@@ -180,7 +181,7 @@ protected ModuleSearchResult testSearchResults(String q, Type type, ModuleDetail
protected ModuleSearchResult testSearchResults(String q, Type type, ModuleDetails[] expected,
Long start, Long count, RepositoryManager manager, long[] pagingInfo) throws Exception {
- return testSearchResults(q, type, expected, start, count, manager, null, null, null);
+ return testSearchResults(q, type, expected, start, count, manager, pagingInfo, null, null);
}
protected ModuleSearchResult testSearchResults(String q, Type type, ModuleDetails[] expected,
@@ -202,7 +203,7 @@ protected ModuleSearchResult testSearchResults(String q, Type type, ModuleDetail
private void compareSearchResults(ModuleDetails[] expected, ModuleSearchResult results) {
int i = 0;
Collection<ModuleDetails> resultsList = results.getResults();
- // Assert.assertEquals(expected.length, resultsList.size());
+ Assert.assertEquals(expected.length, resultsList.size());
for (ModuleDetails result : resultsList) {
ModuleDetails expectedResult = expected[i++];
System.err.println("Testing " + result.getName());
@@ -216,9 +217,7 @@ private void compareSearchResults(ModuleDetails[] expected, ModuleSearchResult r
protected SortedSet<String> set(String... values) {
SortedSet<String> ret = new TreeSet<String>();
- for (String v : values) {
- ret.add(v);
- }
+ Collections.addAll(ret, values);
return ret;
}

0 comments on commit c0a4481

Please sign in to comment.