@Test public void testMimeTypes() { assertThat(parser.getContentTypes()) .hasSize(3).contains(MimeTypes.XML); }
public List<String> getContentTypes() { return ImmutableList.of(MimeTypes.XML, "text/xml", "application/atom+xml"); }
BodyParserXML implements BodyParser { public List<String> getContentTypes() { return ImmutableList.of(MimeTypes.XML, "text/xml", "application/atom+xml"); } }
BodyParserXML implements BodyParser { public List<String> getContentTypes() { return ImmutableList.of(MimeTypes.XML, "text/xml", "application/atom+xml"); }  }
BodyParserXML implements BodyParser { public List<String> getContentTypes() { return ImmutableList.of(MimeTypes.XML, "text/xml", "application/atom+xml"); }  T invoke(Context context, Class<T> classOfT); @Override T invoke(Context context, Class<T> classOfT, Type genericType); @Override T invoke(byte[] bytes, Class<T> classOfT); List<String> getContentTypes(); }
BodyParserXML implements BodyParser { public List<String> getContentTypes() { return ImmutableList.of(MimeTypes.XML, "text/xml", "application/atom+xml"); }  T invoke(Context context, Class<T> classOfT); @Override T invoke(Context context, Class<T> classOfT, Type genericType); @Override T invoke(byte[] bytes, Class<T> classOfT); List<String> getContentTypes();  }