Java 类javax.ws.rs.container.PreMatching 实例源码
项目:dremio-oss
文件:TestMediaTypeFilter.java
@Test
public void testAnnotations() {
// Check that the class is correctly annotated
assertNotNull("@PreMatching annotation is required to modify headers", MediaTypeFilter.class.getAnnotation(PreMatching.class));
Priority priority = MediaTypeFilter.class.getAnnotation(Priority.class);
assertNotNull("@Priority annotation is required to modify headers", priority);
assertTrue("priority should be higher than HEADER_DECORATOR", priority.value() <= Priorities.HEADER_DECORATOR);
}