@Test @DisplayName("unmarshal, String containing List with windows like line-ends (CRLF), all list items should be available") void unmarshalListWithWindowsLineSeparatorsString() throws Exception { final String crlfFile = readYamlToString("/test-list.yml"); final KubernetesResource result = Serialization.unmarshal(crlfFile, KubernetesResource.class); assertTrue(result instanceof KubernetesList); final KubernetesList kubernetesList = (KubernetesList)result; assertEquals(2, kubernetesList.getItems().size()); assertTrue(kubernetesList.getItems().get(0) instanceof Service); assertTrue(kubernetesList.getItems().get(1) instanceof Deployment); }
public static <T> T unmarshal(InputStream is) { return unmarshal(is, JSON_MAPPER); }
Serialization { public static <T> T unmarshal(InputStream is) { return unmarshal(is, JSON_MAPPER); } }
Serialization { public static <T> T unmarshal(InputStream is) { return unmarshal(is, JSON_MAPPER); } private  Serialization(); }
Serialization { public static <T> T unmarshal(InputStream is) { return unmarshal(is, JSON_MAPPER); } private  Serialization(); static ObjectMapper jsonMapper(); static ObjectMapper yamlMapper(); static String asJson(T object); static String asYaml(T object); static T unmarshal(InputStream is); @SuppressWarnings("unchecked") static T unmarshal(InputStream is, Map<String, String> parameters); static T unmarshal(InputStream is, ObjectMapper mapper); static T unmarshal(InputStream is, ObjectMapper mapper, Map<String, String> parameters); static T unmarshal(String str, final Class<T> type); static T unmarshal(String str, final Class<T> type, Map<String, String> parameters); static T unmarshal(InputStream is, final Class<T> type); static T unmarshal(InputStream is, final Class<T> type, Map<String, String> parameters); static T unmarshal(InputStream is, TypeReference<T> type); static T unmarshal(InputStream is, TypeReference<T> type, Map<String, String> parameters); }
Serialization { public static <T> T unmarshal(InputStream is) { return unmarshal(is, JSON_MAPPER); } private  Serialization(); static ObjectMapper jsonMapper(); static ObjectMapper yamlMapper(); static String asJson(T object); static String asYaml(T object); static T unmarshal(InputStream is); @SuppressWarnings("unchecked") static T unmarshal(InputStream is, Map<String, String> parameters); static T unmarshal(InputStream is, ObjectMapper mapper); static T unmarshal(InputStream is, ObjectMapper mapper, Map<String, String> parameters); static T unmarshal(String str, final Class<T> type); static T unmarshal(String str, final Class<T> type, Map<String, String> parameters); static T unmarshal(InputStream is, final Class<T> type); static T unmarshal(InputStream is, final Class<T> type, Map<String, String> parameters); static T unmarshal(InputStream is, TypeReference<T> type); static T unmarshal(InputStream is, TypeReference<T> type, Map<String, String> parameters);  }