@Test public void testHasCommentWithWarningSeverity() { TextContainer target = new TextContainer(); TMTextUnitVariantCommentAnnotations tmTextUnitVariantCommentAnnotations = new TMTextUnitVariantCommentAnnotations(target); List<TMTextUnitVariantCommentAnnotation> annotations = tmTextUnitVariantCommentAnnotations.getAnnotations(); Assert.assertEquals(0, annotations.size()); TMTextUnitVariantCommentAnnotation tmTextUnitVariantCommentAnnotation1 = new TMTextUnitVariantCommentAnnotation(); tmTextUnitVariantCommentAnnotation1.setSeverity(TMTextUnitVariantComment.Severity.WARNING); tmTextUnitVariantCommentAnnotations.addAnnotation(tmTextUnitVariantCommentAnnotation1); Assert.assertFalse(tmTextUnitVariantCommentAnnotations.hasCommentWithErrorSeverity()); Assert.assertTrue(tmTextUnitVariantCommentAnnotations.hasCommentWithWarningSeverity()); }
public boolean hasCommentWithWarningSeverity() { return hasCommentWithSeverity(TMTextUnitVariantComment.Severity.WARNING); }
TMTextUnitVariantCommentAnnotations extends GenericAnnotations { public boolean hasCommentWithWarningSeverity() { return hasCommentWithSeverity(TMTextUnitVariantComment.Severity.WARNING); } }
TMTextUnitVariantCommentAnnotations extends GenericAnnotations { public boolean hasCommentWithWarningSeverity() { return hasCommentWithSeverity(TMTextUnitVariantComment.Severity.WARNING); } TMTextUnitVariantCommentAnnotations(TextContainer textContainer); }
TMTextUnitVariantCommentAnnotations extends GenericAnnotations { public boolean hasCommentWithWarningSeverity() { return hasCommentWithSeverity(TMTextUnitVariantComment.Severity.WARNING); } TMTextUnitVariantCommentAnnotations(TextContainer textContainer); boolean hasCommentWithErrorSeverity(); boolean hasCommentWithWarningSeverity(); List<TMTextUnitVariantCommentAnnotation> getAnnotations(); void addAnnotation(TMTextUnitVariantCommentAnnotation tmTextUnitVariantCommentAnnotation); }
TMTextUnitVariantCommentAnnotations extends GenericAnnotations { public boolean hasCommentWithWarningSeverity() { return hasCommentWithSeverity(TMTextUnitVariantComment.Severity.WARNING); } TMTextUnitVariantCommentAnnotations(TextContainer textContainer); boolean hasCommentWithErrorSeverity(); boolean hasCommentWithWarningSeverity(); List<TMTextUnitVariantCommentAnnotation> getAnnotations(); void addAnnotation(TMTextUnitVariantCommentAnnotation tmTextUnitVariantCommentAnnotation);  }