@Test public void testGetSize() { assertEquals(-1, provider.getSize(new MockObject(), MockObject.class, MockObject.class.getGenericSuperclass(), new Annotation[]{}, MediaType.APPLICATION_JSON_TYPE)); }
@Override public long getSize(Object src, Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType) { return -1; }
GsonMessageBodyWriter implements MessageBodyWriter<Object> { @Override public long getSize(Object src, Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType) { return -1; } }
GsonMessageBodyWriter implements MessageBodyWriter<Object> { @Override public long getSize(Object src, Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType) { return -1; }  }
GsonMessageBodyWriter implements MessageBodyWriter<Object> { @Override public long getSize(Object src, Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType) { return -1; }  @Override boolean isWriteable(Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType); @Override long getSize(Object src, Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType); @Override void writeTo(Object src, Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> stringObjectMultivaluedMap, OutputStream outputStream); void setGson(Gson gson); }
GsonMessageBodyWriter implements MessageBodyWriter<Object> { @Override public long getSize(Object src, Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType) { return -1; }  @Override boolean isWriteable(Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType); @Override long getSize(Object src, Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType); @Override void writeTo(Object src, Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> stringObjectMultivaluedMap, OutputStream outputStream); void setGson(Gson gson);  }