Thes if two annotatiosn are the same, except their features. @param origAnn @param reloadedAnnot
(Annotation origAnn, Annotation reloadedAnnot)
| 403 | * @param reloadedAnnot |
| 404 | */ |
| 405 | private void compareAnnot(Annotation origAnn, Annotation reloadedAnnot) { |
| 406 | assertTrue("Found original and reloaded annot without the same ID!", |
| 407 | origAnn.getId().equals(reloadedAnnot.getId())); |
| 408 | assertTrue("Found original and reloaded annot without the same TYPE!\n"+ |
| 409 | "Original was ["+origAnn.getType()+"] and reloaded was ["+reloadedAnnot.getType()+"].", |
| 410 | origAnn.getType().equals(reloadedAnnot.getType())); |
| 411 | assertTrue("Found original and reloaded annot without the same START offset!", |
| 412 | origAnn.getStartNode().getOffset().equals(reloadedAnnot.getStartNode().getOffset())); |
| 413 | assertTrue("Found original and reloaded annot without the same END offset!", |
| 414 | origAnn.getEndNode().getOffset().equals(reloadedAnnot.getEndNode().getOffset())); |
| 415 | }// End of compareAnnot() |
| 416 | |
| 417 | |
| 418 | private Map<Integer,Annotation> addAnnotSet2Map(AnnotationSet annotSet, Map<Integer,Annotation> id2AnnMap){ |
no test coverage detected