test_class.declarator: SAMPLE_SYNC_CONFIGURATION_PATH = "sampleSyncConfiguration.json"
test_class.modifier: private static final
test_class.original_string: private static final String SAMPLE_SYNC_CONFIGURATION_PATH = "sampleSyncConfiguration.json";
test_class.type: String
test_class.var_name: SAMPLE_SYNC_CONFIGURATION_PATH
test_class.declarator: INCORRECT_SYNC_CONFIGURATION_PATH = "incorrectSyncConfiguration.json"
test_class.modifier: private static final
test_class.original_string: private static final String INCORRECT_SYNC_CONFIGURATION_PATH = "incorrectSyncConfiguration.json";
test_class.type: String
test_class.var_name: INCORRECT_SYNC_CONFIGURATION_PATH
test_class.declarator: SAMPLE_SERIALIZED_MAP = "sampleSerializedMap.json"
test_class.modifier: private static final
test_class.original_string: private static final String SAMPLE_SERIALIZED_MAP = "sampleSerializedMap.json";
test_class.type: String
test_class.var_name: SAMPLE_SERIALIZED_MAP
test_class.declarator: SAMPLE_PRETTY_SERIALIZED_MAP = "samplePrettySerializedMap.json"
test_class.modifier: private static final
test_class.original_string: private static final String SAMPLE_PRETTY_SERIALIZED_MAP = "samplePrettySerializedMap.json";
test_class.type: String
test_class.var_name: SAMPLE_PRETTY_SERIALIZED_MAP
test_class.declarator: NOT_EXISTING_FILE_PATH = "pathToNotExistingFile"
test_class.modifier: private static final
test_class.original_string: private static final String NOT_EXISTING_FILE_PATH = "pathToNotExistingFile";
test_class.type: String
test_class.var_name: NOT_EXISTING_FILE_PATH
test_class.declarator: EXPECTED_CONFIGURATION = SyncConfigurationMother
              .creteInstance(true, false)
test_class.modifier: private static final
test_class.original_string: private static final SyncConfiguration EXPECTED_CONFIGURATION = SyncConfigurationMother
              .creteInstance(true, false);
test_class.type: SyncConfiguration
test_class.var_name: EXPECTED_CONFIGURATION
test_class.file: api/src/test/java/org/openmrs/module/sync2/api/utils/SyncConfigurationUtilsTest.java
test_class.identifier: SyncConfigurationUtilsTest
test_case.body: @Test
      public void serializeMapToPrettyJson_shouldSerializeMapWithStrings() throws SyncException {
          Assert.assertEquals(readResourceFile(SAMPLE_PRETTY_SERIALIZED_MAP), prettySerialize(createSampleMap()));
      }
test_case.class_method_signature: SyncConfigurationUtilsTest.serializeMapToPrettyJson_shouldSerializeMapWithStrings()
test_case.full_signature: @Test public void serializeMapToPrettyJson_shouldSerializeMapWithStrings()
test_case.identifier: serializeMapToPrettyJson_shouldSerializeMapWithStrings
test_case.invocations: assertEquals readResourceFile prettySerialize createSampleMap
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void serializeMapToPrettyJson_shouldSerializeMapWithStrings()
focal_class.file: api/src/main/java/org/openmrs/module/sync2/api/utils/SyncConfigurationUtils.java
focal_class.identifier: SyncConfigurationUtils
focal_class.class_method_signature: SyncConfigurationUtils.checkIfConfigurationIsValid()
focal_class.full_signature: public static void checkIfConfigurationIsValid()
focal_class.identifier: checkIfConfigurationIsValid
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkIfConfigurationIsValid()
focal_class.class_method_signature: SyncConfigurationUtils.readResourceFile(String file)
focal_class.full_signature: public static String readResourceFile(String file)
focal_class.identifier: readResourceFile
focal_class.modifiers: public static
focal_class.parameters: (String file)
focal_class.return: String
focal_class.signature: String readResourceFile(String file)
focal_class.class_method_signature: SyncConfigurationUtils.readResourceFileAbsolutePath(String file)
focal_class.full_signature: public static String readResourceFileAbsolutePath(String file)
focal_class.identifier: readResourceFileAbsolutePath
focal_class.modifiers: public static
focal_class.parameters: (String file)
focal_class.return: String
focal_class.signature: String readResourceFileAbsolutePath(String file)
focal_class.class_method_signature: SyncConfigurationUtils.parseJsonFileToSyncConfiguration(String path, ResourcePathType absolutePath)
focal_class.full_signature: public static SyncConfiguration parseJsonFileToSyncConfiguration(String path, ResourcePathType absolutePath)
focal_class.identifier: parseJsonFileToSyncConfiguration
focal_class.modifiers: public static
focal_class.parameters: (String path, ResourcePathType absolutePath)
focal_class.return: SyncConfiguration
focal_class.signature: SyncConfiguration parseJsonFileToSyncConfiguration(String path, ResourcePathType absolutePath)
focal_class.class_method_signature: SyncConfigurationUtils.parseJsonStringToSyncConfiguration(String value)
focal_class.full_signature: public static SyncConfiguration parseJsonStringToSyncConfiguration(String value)
focal_class.identifier: parseJsonStringToSyncConfiguration
focal_class.modifiers: public static
focal_class.parameters: (String value)
focal_class.return: SyncConfiguration
focal_class.signature: SyncConfiguration parseJsonStringToSyncConfiguration(String value)
focal_class.class_method_signature: SyncConfigurationUtils.isValidateJson(String json)
focal_class.full_signature: public static boolean isValidateJson(String json)
focal_class.identifier: isValidateJson
focal_class.modifiers: public static
focal_class.parameters: (String json)
focal_class.return: boolean
focal_class.signature: boolean isValidateJson(String json)
focal_class.class_method_signature: SyncConfigurationUtils.writeSyncConfigurationToJsonString(SyncConfiguration syncConfiguration)
focal_class.full_signature: public static String writeSyncConfigurationToJsonString(SyncConfiguration syncConfiguration)
focal_class.identifier: writeSyncConfigurationToJsonString
focal_class.modifiers: public static
focal_class.parameters: (SyncConfiguration syncConfiguration)
focal_class.return: String
focal_class.signature: String writeSyncConfigurationToJsonString(SyncConfiguration syncConfiguration)
focal_class.class_method_signature: SyncConfigurationUtils.writeSyncConfigurationToJsonFile(SyncConfiguration syncConfigurations, String absolutePath)
focal_class.full_signature: public static void writeSyncConfigurationToJsonFile(SyncConfiguration syncConfigurations, String absolutePath)
focal_class.identifier: writeSyncConfigurationToJsonFile
focal_class.modifiers: public static
focal_class.parameters: (SyncConfiguration syncConfigurations, String absolutePath)
focal_class.return: void
focal_class.signature: void writeSyncConfigurationToJsonFile(SyncConfiguration syncConfigurations, String absolutePath)
focal_class.class_method_signature: SyncConfigurationUtils.resourceFileExists(String path)
focal_class.full_signature: public static boolean resourceFileExists(String path)
focal_class.identifier: resourceFileExists
focal_class.modifiers: public static
focal_class.parameters: (String path)
focal_class.return: boolean
focal_class.signature: boolean resourceFileExists(String path)
focal_class.class_method_signature: SyncConfigurationUtils.customConfigExists(String path)
focal_class.full_signature: public static boolean customConfigExists(String path)
focal_class.identifier: customConfigExists
focal_class.modifiers: public static
focal_class.parameters: (String path)
focal_class.return: boolean
focal_class.signature: boolean customConfigExists(String path)
focal_class.class_method_signature: SyncConfigurationUtils.getClientConfiguration(String clientName)
focal_class.full_signature: public static ClientConfiguration getClientConfiguration(String clientName)
focal_class.identifier: getClientConfiguration
focal_class.modifiers: public static
focal_class.parameters: (String clientName)
focal_class.return: ClientConfiguration
focal_class.signature: ClientConfiguration getClientConfiguration(String clientName)
focal_method.body: public static String readResourceFile(String file) throws SyncException {
          try (InputStream in = SyncUtils.class.getClassLoader().getResourceAsStream(file)) {
              if (in == null) {
                  throw new SyncException("Resource '" + file + "' doesn't exist");
              }
              return IOUtils.toString(in, "UTF-8");
          } catch (IOException e) {
              throw new SyncException(e);
          }
      }
focal_method.class_method_signature: SyncConfigurationUtils.readResourceFile(String file)
focal_method.full_signature: public static String readResourceFile(String file)
focal_method.identifier: readResourceFile
focal_method.invocations: getResourceAsStream getClassLoader toString
focal_method.modifiers: public static
focal_method.parameters: (String file)
focal_method.return: String
focal_method.signature: String readResourceFile(String file)