use of org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl in project jersey by jersey.
the class FeedEntriesAtomBodyWriterTest method testIsWriteableSuccess.
@Test
public void testIsWriteableSuccess() {
boolean writeable = testedClass.isWriteable(List.class, new ParameterizedTypeImpl(FeedEntry.class, FeedEntry.class), null, MediaType.APPLICATION_ATOM_XML_TYPE);
assertTrue(writeable);
}
use of org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl in project jersey by jersey.
the class FeedEntriesAtomBodyWriterTest method testIsWriteableWrongClass.
@Test
public void testIsWriteableWrongClass() {
boolean writeable = testedClass.isWriteable(String.class, new ParameterizedTypeImpl(FeedEntry.class, FeedEntry.class), null, MediaType.APPLICATION_ATOM_XML_TYPE);
assertFalse(writeable);
}
use of org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl in project jersey by jersey.
the class FeedEntriesAtomBodyWriterTest method testIsWriteableWrongMediaType.
@Test
public void testIsWriteableWrongMediaType() {
boolean writeable = testedClass.isWriteable(List.class, new ParameterizedTypeImpl(FeedEntry.class, FeedEntry.class), null, MediaType.APPLICATION_JSON_TYPE);
assertFalse(writeable);
}
use of org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl in project jersey by jersey.
the class FeedEntriesAtomBodyWriterTest method testIsWriteableWrongGeneric.
@Test
public void testIsWriteableWrongGeneric() {
boolean writeable = testedClass.isWriteable(List.class, new ParameterizedTypeImpl(String.class, String.class), null, MediaType.APPLICATION_ATOM_XML_TYPE);
assertFalse(writeable);
}
Aggregations