@Test public void addError() { String message = "test message"; PsiElement element = Mockito.mock(PsiElement.class); TestHolder holder = new TestHolder(); AnnotatorUtils.addError(holder, new SpecModelValidationError(element, message)); assertEquals(1, holder.errorMessages.size()); assertEquals(message, holder.errorMessages.get(0)); assertEquals(1, holder.errorElements.size()); assertEquals(element, holder.errorElements.get(0)); }
static void addError(AnnotationHolder holder, SpecModelValidationError error) { addError(holder, error, Collections.emptyList()); }
AnnotatorUtils { static void addError(AnnotationHolder holder, SpecModelValidationError error) { addError(holder, error, Collections.emptyList()); } }
AnnotatorUtils { static void addError(AnnotationHolder holder, SpecModelValidationError error) { addError(holder, error, Collections.emptyList()); } private  AnnotatorUtils(); }
AnnotatorUtils { static void addError(AnnotationHolder holder, SpecModelValidationError error) { addError(holder, error, Collections.emptyList()); } private  AnnotatorUtils();  }
AnnotatorUtils { static void addError(AnnotationHolder holder, SpecModelValidationError error) { addError(holder, error, Collections.emptyList()); } private  AnnotatorUtils();   }