assertEquals("t", ((WildCardFieldQuery) i.next()).getFieldName()); assertEquals("b", ((WildCardFieldQuery) i.next()).getFieldName()); assertEquals("b", ((WildCardFieldQuery) i.next()).getFieldName()); assertEquals("a", ((WildCardFieldQuery) i.next()).getFieldName());
assertEquals("t", ((WildCardFieldQuery) i.next()).getFieldName()); assertEquals("a", ((WildCardFieldQuery) i.next()).getFieldName()); assertEquals("b", ((WildCardFieldQuery) i.next()).getFieldName()); assertEquals("b", ((WildCardFieldQuery) i.next()).getFieldName()); assertEquals("b", ((WildCardFieldQuery) i.next()).getFieldName()); assertFalse(i.hasNext());
    public void testGetWildCards() throws Exception {    	        IngridQuery query = QueryStringParser.parse("(t:f* OR t:4*) OR (b:a* OR b:a* OR (b:c*) OR ((a:i*) AND (wasser*))))");                Vector v = tools.getWildCardsAsVector(query);        Iterator i = v.iterator();        assertEquals("t", ((WildCardFieldQuery) i.next()).getFieldName());        assertEquals("t", ((WildCardFieldQuery) i.next()).getFieldName());         assertEquals("b", ((WildCardFieldQuery) i.next()).getFieldName());         assertEquals("b", ((WildCardFieldQuery) i.next()).getFieldName());         assertEquals("a", ((WildCardFieldQuery) i.next()).getFieldName());                             }