diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/io/stream/StreamExpressionTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/io/stream/StreamExpressionTest.java index 4d88b4ecda6..487aca1bfab 100644 --- a/solr/solrj/src/test/org/apache/solr/client/solrj/io/stream/StreamExpressionTest.java +++ b/solr/solrj/src/test/org/apache/solr/client/solrj/io/stream/StreamExpressionTest.java @@ -2493,41 +2493,6 @@ public class StreamExpressionTest extends SolrCloudTestCase { return true; } - protected boolean assertFields(List tuples, String ... fields) throws Exception{ - for(Tuple tuple : tuples){ - for(String field : fields){ - if(!tuple.fields.containsKey(field)){ - throw new Exception(String.format(Locale.ROOT, "Expected field '%s' not found", field)); - } - } - } - return true; - } - protected boolean assertNotFields(List tuples, String ... fields) throws Exception{ - for(Tuple tuple : tuples){ - for(String field : fields){ - if(tuple.fields.containsKey(field)){ - throw new Exception(String.format(Locale.ROOT, "Unexpected field '%s' found", field)); - } - } - } - return true; - } - - protected boolean assertGroupOrder(Tuple tuple, int... ids) throws Exception { - List group = (List)tuple.get("tuples"); - int i=0; - for(int val : ids) { - Map t = (Map)group.get(i); - Long tip = (Long)t.get("id"); - if(tip.intValue() != val) { - throw new Exception("Found value:"+tip.intValue()+" expecting:"+val); - } - ++i; - } - return true; - } - public boolean assertLong(Tuple tuple, String fieldName, long l) throws Exception { long lv = (long)tuple.get(fieldName); if(lv != l) { @@ -2566,23 +2531,6 @@ public class StreamExpressionTest extends SolrCloudTestCase { return true; } - private boolean assertList(List list, Object... vals) throws Exception { - - if(list.size() != vals.length) { - throw new Exception("Lists are not the same size:"+list.size() +" : "+vals.length); - } - - for(int i=0; i