System.out.println("col:" + (AbstractMessage.getStartCol(token, doc) - 1));
}
}
assertEquals(2, tokenOccurrences.size());
IToken tok0 = tokenOccurrences.get(0);
assertEquals(lookFor, tok0.getRepresentation());
if (checkPositions) {
assertEquals(0, AbstractMessage.getStartLine(tok0, doc) - 1);
assertEquals(col, AbstractMessage.getStartCol(tok0, doc) - 1);
}
IToken tok1 = tokenOccurrences.get(1);
assertEquals(lookFor, tok1.getRepresentation());
if (checkPositions) {
assertEquals(1, AbstractMessage.getStartLine(tok1, doc) - 1);
assertEquals(col, AbstractMessage.getStartCol(tok1, doc) - 1);
}
}