@Test public void testIsWriteableSuccess() { boolean writeable = testedClass.isWriteable(List.class, new ParameterizedTypeImpl(FeedEntry.class, FeedEntry.class), null, MediaType.APPLICATION_ATOM_XML_TYPE); assertTrue(writeable); }
@Override public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { return MediaType.APPLICATION_ATOM_XML_TYPE.isCompatible(mediaType) && Collection.class.isAssignableFrom(type) && (((ParameterizedType) genericType).getActualTypeArguments()[0]).equals(FeedEntry.class); }
FeedEntriesAtomBodyWriter implements MessageBodyWriter<List<FeedEntry>> { @Override public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { return MediaType.APPLICATION_ATOM_XML_TYPE.isCompatible(mediaType) && Collection.class.isAssignableFrom(type) && (((ParameterizedType) genericType).getActualTypeArguments()[0]).equals(FeedEntry.class); } }
FeedEntriesAtomBodyWriter implements MessageBodyWriter<List<FeedEntry>> { @Override public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { return MediaType.APPLICATION_ATOM_XML_TYPE.isCompatible(mediaType) && Collection.class.isAssignableFrom(type) && (((ParameterizedType) genericType).getActualTypeArguments()[0]).equals(FeedEntry.class); }  }
FeedEntriesAtomBodyWriter implements MessageBodyWriter<List<FeedEntry>> { @Override public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { return MediaType.APPLICATION_ATOM_XML_TYPE.isCompatible(mediaType) && Collection.class.isAssignableFrom(type) && (((ParameterizedType) genericType).getActualTypeArguments()[0]).equals(FeedEntry.class); }  @Override boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); @Override void writeTo(List<FeedEntry> entries, Class<?> type, Type genericType, Annotation[] annotations,
                        MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream); @Override long getSize(List<FeedEntry> feeds, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); }
FeedEntriesAtomBodyWriter implements MessageBodyWriter<List<FeedEntry>> { @Override public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { return MediaType.APPLICATION_ATOM_XML_TYPE.isCompatible(mediaType) && Collection.class.isAssignableFrom(type) && (((ParameterizedType) genericType).getActualTypeArguments()[0]).equals(FeedEntry.class); }  @Override boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); @Override void writeTo(List<FeedEntry> entries, Class<?> type, Type genericType, Annotation[] annotations,
                        MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream); @Override long getSize(List<FeedEntry> feeds, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType);  }