@Test public void testConvertToListWithUnicodeEscapeCodes() throws IOException{ List<Document> actual = JsonUtils.convertToList( "eu/dnetlib/iis/common/java/io/document_with_unicode_escape_codes.json", Document.SCHEMA$, Document.class); List<Document> expected = DataStoreExamples.getDocumentWithUnicodeEscapeCodes(); TestsIOUtils.assertEqualSets(expected, actual); }
public static <T> List<T> convertToList(String resourcesJsonFilePath, Schema schema, Class<T> type) { InputStream in = ClassPathResourceProvider.getResourceInputStream(resourcesJsonFilePath); return convertToList(in, schema, type); }
JsonUtils { public static <T> List<T> convertToList(String resourcesJsonFilePath, Schema schema, Class<T> type) { InputStream in = ClassPathResourceProvider.getResourceInputStream(resourcesJsonFilePath); return convertToList(in, schema, type); } }
JsonUtils { public static <T> List<T> convertToList(String resourcesJsonFilePath, Schema schema, Class<T> type) { InputStream in = ClassPathResourceProvider.getResourceInputStream(resourcesJsonFilePath); return convertToList(in, schema, type); } private  JsonUtils(); }
JsonUtils { public static <T> List<T> convertToList(String resourcesJsonFilePath, Schema schema, Class<T> type) { InputStream in = ClassPathResourceProvider.getResourceInputStream(resourcesJsonFilePath); return convertToList(in, schema, type); } private  JsonUtils(); static void convertToDataStore(Schema inputSchema,
			InputStream input, FileSystemPath outputPath); static List<T> convertToList(String resourcesJsonFilePath,
			Schema schema, Class<T> type); static List<T> convertToListFromString(String data,
			Schema schema, Class<T> type); static List<T> convertToList(InputStream inputStream,
			Schema schema, Class<T> type); static String toPrettyJSON(String uglyJson); }
JsonUtils { public static <T> List<T> convertToList(String resourcesJsonFilePath, Schema schema, Class<T> type) { InputStream in = ClassPathResourceProvider.getResourceInputStream(resourcesJsonFilePath); return convertToList(in, schema, type); } private  JsonUtils(); static void convertToDataStore(Schema inputSchema,
			InputStream input, FileSystemPath outputPath); static List<T> convertToList(String resourcesJsonFilePath,
			Schema schema, Class<T> type); static List<T> convertToListFromString(String data,
			Schema schema, Class<T> type); static List<T> convertToList(InputStream inputStream,
			Schema schema, Class<T> type); static String toPrettyJSON(String uglyJson);  }