@Test public void resolveConsumes_multipleValues() { String type1 = "text/*"; String type2 = "application/*"; Consumes consumes = mock(Consumes.class); given(consumes.value()).willReturn(new String[]{type1, type2}); Element element = new AnnotatedElementBuilder(consumes).getElement(); Set<ContentType> contentTypes = ContentTypeResolver.resolveConsumes(element); assertThat(contentTypes).containsOnly(ContentType.valueOf(type1), ContentType.valueOf(type2)); }
public static Set<ContentType> resolveConsumes(Element element) { return resolveConsumes(element, DEFAULT_FALLBACK); }
ContentTypeResolver { public static Set<ContentType> resolveConsumes(Element element) { return resolveConsumes(element, DEFAULT_FALLBACK); } }
ContentTypeResolver { public static Set<ContentType> resolveConsumes(Element element) { return resolveConsumes(element, DEFAULT_FALLBACK); }  }
ContentTypeResolver { public static Set<ContentType> resolveConsumes(Element element) { return resolveConsumes(element, DEFAULT_FALLBACK); }  static Set<ContentType> resolveConsumes(Element element); static Set<ContentType> resolveConsumes(Element element, Set<ContentType> fallback); static Set<ContentType> resolveProduces(Element element); static Set<ContentType> resolveProduces(Element element, Set<ContentType> fallback); }
ContentTypeResolver { public static Set<ContentType> resolveConsumes(Element element) { return resolveConsumes(element, DEFAULT_FALLBACK); }  static Set<ContentType> resolveConsumes(Element element); static Set<ContentType> resolveConsumes(Element element, Set<ContentType> fallback); static Set<ContentType> resolveProduces(Element element); static Set<ContentType> resolveProduces(Element element, Set<ContentType> fallback);  }