flink-instrumentation/workspace/flink-1.4.1-instrumented/flink-1.4.1/flink-runtime/src/test/java/org/apache/flink/runtime/rest/messages/RestRequestMarshallingTestBase.java
/**
	 * Tests that we can marshal and unmarshal the response.
	 */
Tests that we can marshal and unmarshal the response.
Tests that we can marshal and unmarshal the response .
@Test
	public void testJsonMarshalling() throws Exception {
		final R expected = getTestRequestInstance();
		ObjectMapper objectMapper = RestMapperUtils.getStrictObjectMapper();
		JsonNode json = objectMapper.valueToTree(expected);
		final R unmarshalled = objectMapper.treeToValue(json, getTestRequestClass());
		Assert.assertEquals(expected, unmarshalled);
	}
@ Test public void testJsonMarshalling ( ) throws Exception { final R expected = getTestRequestInstance ( ) ; ObjectMapper objectMapper = RestMapperUtils . getStrictObjectMapper ( ) ; JsonNode json = objectMapper . valueToTree ( expected ) ; final R unmarshalled = objectMapper . treeToValue ( json , getTestRequestClass ( ) ) ; Assert . assertEquals ( expected , unmarshalled ) ; }
Tests that we can marshal and unmarshal the response.
Tests that we can marshal and unmarshal the response .