test_class.declarator: url = "http://localhost"
test_class.original_string: String url = "http://localhost";
test_class.type: String
test_class.var_name: url
test_class.declarator: listener = new ResponseHoldListener<News>()
test_class.original_string: ResponseHoldListener<News> listener = new ResponseHoldListener<News>();
test_class.type: ResponseHoldListener<News>
test_class.var_name: listener
test_class.declarator: errorListener = new ErrorResponseHoldListener()
test_class.original_string: ErrorResponseHoldListener errorListener = new ErrorResponseHoldListener();
test_class.type: ErrorResponseHoldListener
test_class.var_name: errorListener
test_class.file: volley-requests/src/test/java/com/navercorp/volleyextensions/request/Jackson2RequestTest.java
test_class.identifier: Jackson2RequestTest
test_case.body: @Test
  	public void networkResponseShouldReturnErrorWithAddtionalAttribute() throws JsonProcessingException {
  		// Given
  		String content = "{\"imageUrl\":\"http://static.naver.com/volley-ext.jpg\"," +
  						   "\"title\":\"Volley extention has released\"," +
  						   "\"content\":\"Very good News\"}";
  		NetworkResponse networkResponse = new NetworkResponse(content.getBytes());
  		ObjectMapper objectMapperWithDefaultOption = new ObjectMapper();
  		Jackson2Request<News> request = new Jackson2Request<News>(url, News.class, objectMapperWithDefaultOption,  listener);
  		// When
  		Response<News> response = request.parseNetworkResponse(networkResponse);
  		// Then
  		assertNull(response.result);
  		assertThat(response.error, is(instanceOf(ParseError.class)));
  		assertThat(response.error.getCause(), is(instanceOf(UnrecognizedPropertyException.class)));
  	}
test_case.class_method_signature: Jackson2RequestTest.networkResponseShouldReturnErrorWithAddtionalAttribute()
test_case.full_signature: @Test public void networkResponseShouldReturnErrorWithAddtionalAttribute()
test_case.identifier: networkResponseShouldReturnErrorWithAddtionalAttribute
test_case.invocations: getBytes parseNetworkResponse assertNull assertThat is instanceOf assertThat getCause is instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void networkResponseShouldReturnErrorWithAddtionalAttribute()
focal_class.declarator: objectMapper
focal_class.modifier: private final
focal_class.original_string: private final ObjectMapper objectMapper;
focal_class.type: ObjectMapper
focal_class.var_name: objectMapper
focal_class.file: volley-requests/src/main/java/com/navercorp/volleyextensions/request/Jackson2Request.java
focal_class.identifier: Jackson2Request
focal_class.class_method_signature: Jackson2Request.Jackson2Request(int method, String url, Class<T> clazz, ObjectMapper objectMapper, Listener<T> listener,
  			ErrorListener errorListener)
focal_class.full_signature: public  Jackson2Request(int method, String url, Class<T> clazz, ObjectMapper objectMapper, Listener<T> listener,
  			ErrorListener errorListener)
focal_class.identifier: Jackson2Request
focal_class.modifiers: public
focal_class.parameters: (int method, String url, Class<T> clazz, ObjectMapper objectMapper, Listener<T> listener,
  			ErrorListener errorListener)
focal_class.signature:  Jackson2Request(int method, String url, Class<T> clazz, ObjectMapper objectMapper, Listener<T> listener,
  			ErrorListener errorListener)
focal_class.class_method_signature: Jackson2Request.Jackson2Request(String url, Class<T> clazz, ObjectMapper objectMapper, Listener<T> listener,
  			ErrorListener errorListener)
focal_class.full_signature: public  Jackson2Request(String url, Class<T> clazz, ObjectMapper objectMapper, Listener<T> listener,
  			ErrorListener errorListener)
focal_class.identifier: Jackson2Request
focal_class.modifiers: public
focal_class.parameters: (String url, Class<T> clazz, ObjectMapper objectMapper, Listener<T> listener,
  			ErrorListener errorListener)
focal_class.signature:  Jackson2Request(String url, Class<T> clazz, ObjectMapper objectMapper, Listener<T> listener,
  			ErrorListener errorListener)
focal_class.class_method_signature: Jackson2Request.Jackson2Request(String url, Class<T> clazz, ObjectMapper objectMapper, Listener<T> listener)
focal_class.full_signature: public  Jackson2Request(String url, Class<T> clazz, ObjectMapper objectMapper, Listener<T> listener)
focal_class.identifier: Jackson2Request
focal_class.modifiers: public
focal_class.parameters: (String url, Class<T> clazz, ObjectMapper objectMapper, Listener<T> listener)
focal_class.signature:  Jackson2Request(String url, Class<T> clazz, ObjectMapper objectMapper, Listener<T> listener)
focal_class.class_method_signature: Jackson2Request.assertObjectMapper(ObjectMapper objectMapper)
focal_class.full_signature: private final void assertObjectMapper(ObjectMapper objectMapper)
focal_class.identifier: assertObjectMapper
focal_class.modifiers: private final
focal_class.parameters: (ObjectMapper objectMapper)
focal_class.return: void
focal_class.signature: void assertObjectMapper(ObjectMapper objectMapper)
focal_class.class_method_signature: Jackson2Request.Jackson2Request(int method, String url, Class<T> clazz, Listener<T> listener,
  			ErrorListener errorListener)
focal_class.full_signature: public  Jackson2Request(int method, String url, Class<T> clazz, Listener<T> listener,
  			ErrorListener errorListener)
focal_class.identifier: Jackson2Request
focal_class.modifiers: public
focal_class.parameters: (int method, String url, Class<T> clazz, Listener<T> listener,
  			ErrorListener errorListener)
focal_class.signature:  Jackson2Request(int method, String url, Class<T> clazz, Listener<T> listener,
  			ErrorListener errorListener)
focal_class.class_method_signature: Jackson2Request.Jackson2Request(String url, Class<T> clazz, Listener<T> listener, ErrorListener errorListener)
focal_class.full_signature: public  Jackson2Request(String url, Class<T> clazz, Listener<T> listener, ErrorListener errorListener)
focal_class.identifier: Jackson2Request
focal_class.modifiers: public
focal_class.parameters: (String url, Class<T> clazz, Listener<T> listener, ErrorListener errorListener)
focal_class.signature:  Jackson2Request(String url, Class<T> clazz, Listener<T> listener, ErrorListener errorListener)
focal_class.class_method_signature: Jackson2Request.Jackson2Request(String url, Class<T> clazz, Listener<T> listener)
focal_class.full_signature: public  Jackson2Request(String url, Class<T> clazz, Listener<T> listener)
focal_class.identifier: Jackson2Request
focal_class.modifiers: public
focal_class.parameters: (String url, Class<T> clazz, Listener<T> listener)
focal_class.signature:  Jackson2Request(String url, Class<T> clazz, Listener<T> listener)
focal_class.class_method_signature: Jackson2Request.parseNetworkResponse(NetworkResponse response)
focal_class.full_signature: @Override protected Response<T> parseNetworkResponse(NetworkResponse response)
focal_class.identifier: parseNetworkResponse
focal_class.modifiers: @Override protected
focal_class.parameters: (NetworkResponse response)
focal_class.return: Response<T>
focal_class.signature: Response<T> parseNetworkResponse(NetworkResponse response)
focal_class.superclass: extends AbstractConverterRequest<T>
focal_method.body: @Override
  	protected Response<T> parseNetworkResponse(NetworkResponse response) {
  		String charset = HttpHeaderParser.parseCharset(response.headers);
  		Reader reader = null;
  		try {
  			reader = new InputStreamReader(new ByteArrayInputStream(response.data), charset);
  			T result = objectMapper.readValue(reader, getTargetClass());
  			return Response.success(result,
  					HttpHeaderParser.parseCacheHeaders(response));
  		} catch (JsonParseException e) {
  			return Response.error(new ParseError(e));
  		} catch (JsonMappingException e) {
  			return Response.error(new ParseError(e));
  		} catch (UnsupportedEncodingException e) {
  			return Response.error(new ParseError(e));
  		} catch (IOException e) {
  			return Response.error(new VolleyError(e));
  		} catch (Exception e) {
  			return Response.error(new VolleyError(e));
  		} finally {
  			IoUtils.closeQuietly(reader);
  		}
  	}
focal_method.class_method_signature: Jackson2Request.parseNetworkResponse(NetworkResponse response)
focal_method.full_signature: @Override protected Response<T> parseNetworkResponse(NetworkResponse response)
focal_method.identifier: parseNetworkResponse
focal_method.invocations: parseCharset readValue getTargetClass success parseCacheHeaders error error error error error closeQuietly
focal_method.modifiers: @Override protected
focal_method.parameters: (NetworkResponse response)
focal_method.return: Response<T>
focal_method.signature: Response<T> parseNetworkResponse(NetworkResponse response)