protected void expectFinished(AnnotationCursor cursor) { assertFalse(cursor.hasNext()); try { cursor.nextLocation(); fail("Expected NoSuchElementException"); } catch (NoSuchElementException e) { // OK } }
protected void expectFinished(AnnotationCursor cursor) { assertFalse(cursor.hasNext()); try { cursor.nextLocation(); fail("Expected NoSuchElementException"); } catch (NoSuchElementException e) { // OK } }
protected void checkAdvance(AnnotationCursor cursor, int location, String ... keys) { assertTrue(cursor.hasNext()); assertEquals( CollectionUtils.newJavaSet(strs(keys)), CollectionUtils.newJavaSet(cursor.nextLocation())); assertEquals(location, cursor.currentLocation()); }
protected void checkAdvance(AnnotationCursor cursor, int location, String ... keys) { assertTrue(cursor.hasNext()); assertEquals( CollectionUtils.newJavaSet(strs(keys)), CollectionUtils.newJavaSet(cursor.nextLocation())); assertEquals(location, cursor.currentLocation()); }