flink-instrumentation/workspace/flink-1.4.1-instrumented/flink-1.4.1/flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/test/util/TestBaseUtils.java
/**
	 * The expected string contains all expected results separate with line break, check whether all elements in result
	 * are contained in the expected string.
	 * @param result The test result.
	 * @param expected The expected string value combination.
	 * @param <T> The result type.
	 */
The expected string contains all expected results separate with line break, check whether all elements in result
are contained in the expected string.
@param result The test result.
@param expected The expected string value combination.
@param  The result type.
The expected string contains all expected results separate with line break check whether all elements in result are contained in the expected string . @param result The test result . @param expected The expected string value combination . @param The result type .
public static <T> void containsResultAsText(List<T> result, String expected) {
		String[] expectedStrings = expected.split("\n");
		List<String> resultStrings = new ArrayList<>();
		for (T val : result) {
			String str = (val == null) ? "null" : val.toString();
			resultStrings.add(str);
		}
		List<String> expectedStringList = Arrays.asList(expectedStrings);
		for (String element : resultStrings) {
			assertTrue(expectedStringList.contains(element));
		}
	}
public static < T > void containsResultAsText ( List < T > result , String expected ) { String [ ] expectedStrings = expected . split ( "\n" ) ; List < String > resultStrings = new ArrayList < > ( ) ; for ( T val : result ) { String str = ( val == null ) ? "null" : val . toString ( ) ; resultStrings . add ( str ) ; } List < String > expectedStringList = Arrays . asList ( expectedStrings ) ; for ( String element : resultStrings ) { assertTrue ( expectedStringList . contains ( element ) ) ; } }
The expected string contains all expected results separate with line break, check whether all elements in result
 are contained in the expected string.
The expected string contains all expected results separate with line break check whether all elements in result are contained in the expected string .