@Test public void convertMapToJsonStringShouldReturnEmptyJsonForAnEmptyMap() { Map<String, String> input = new HashMap<>(); assertThat(TypeConversion.convertMapToJsonString(input), equalTo("{}")); }
public static String convertMapToJsonString(Map<String, String> map) { return gson.toJson(map); }
TypeConversion { public static String convertMapToJsonString(Map<String, String> map) { return gson.toJson(map); } }
TypeConversion { public static String convertMapToJsonString(Map<String, String> map) { return gson.toJson(map); }  }
TypeConversion { public static String convertMapToJsonString(Map<String, String> map) { return gson.toJson(map); }  static com.google.protobuf.Timestamp convertTimestamp(Date ts); static List<String> convertTagStringToList(String tags); static Map<String, String> convertJsonStringToMap(String jsonString); static Map<String, Enum> convertJsonStringToEnumMap(String jsonString); static String convertMapToJsonString(Map<String, String> map); static String convertEnumMapToJsonString(Map<String, Enum> map); }
TypeConversion { public static String convertMapToJsonString(Map<String, String> map) { return gson.toJson(map); }  static com.google.protobuf.Timestamp convertTimestamp(Date ts); static List<String> convertTagStringToList(String tags); static Map<String, String> convertJsonStringToMap(String jsonString); static Map<String, Enum> convertJsonStringToEnumMap(String jsonString); static String convertMapToJsonString(Map<String, String> map); static String convertEnumMapToJsonString(Map<String, Enum> map);  }