Search in sources :

Example 1 with Matcher

use of com.google.inject.matcher.Matcher in project candlepin by candlepin.

the class HibernateValidationAnnotationTest method runMap.

private void runMap(Map<Field, Matcher<AnnotatedElement>> fm) {
    for (Map.Entry<Field, Matcher<AnnotatedElement>> entry : fm.entrySet()) {
        Matcher<AnnotatedElement> matcher = entry.getValue();
        Field field = entry.getKey();
        assertTrue(matcher.matches(field));
    }
}
Also used : Field(java.lang.reflect.Field) Matcher(com.google.inject.matcher.Matcher) AnnotatedElement(java.lang.reflect.AnnotatedElement) Map(java.util.Map) HashMap(java.util.HashMap)

Aggregations

Matcher (com.google.inject.matcher.Matcher)1 AnnotatedElement (java.lang.reflect.AnnotatedElement)1 Field (java.lang.reflect.Field)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1