@Test public void parseJsonFileToSyncConfiguration_shouldCorrectlyParseSampleConfiguration() throws SyncException { SyncConfiguration result = parseJsonFileToSyncConfiguration(SAMPLE_SYNC_CONFIGURATION_PATH, RELATIVE); Assert.assertEquals(EXPECTED_CONFIGURATION, result); }
public static SyncConfiguration parseJsonFileToSyncConfiguration(String path, ResourcePathType absolutePath) { ObjectMapper mapper = new ObjectMapper(); try { String resourceFile = absolutePath.equals(ABSOLUTE) ? readResourceFileAbsolutePath(path) : readResourceFile(path); return mapper.readValue(resourceFile, SyncConfiguration.class); } catch (IOException e) { throw new SyncException(e); } }
SyncConfigurationUtils { public static SyncConfiguration parseJsonFileToSyncConfiguration(String path, ResourcePathType absolutePath) { ObjectMapper mapper = new ObjectMapper(); try { String resourceFile = absolutePath.equals(ABSOLUTE) ? readResourceFileAbsolutePath(path) : readResourceFile(path); return mapper.readValue(resourceFile, SyncConfiguration.class); } catch (IOException e) { throw new SyncException(e); } } }
SyncConfigurationUtils { public static SyncConfiguration parseJsonFileToSyncConfiguration(String path, ResourcePathType absolutePath) { ObjectMapper mapper = new ObjectMapper(); try { String resourceFile = absolutePath.equals(ABSOLUTE) ? readResourceFileAbsolutePath(path) : readResourceFile(path); return mapper.readValue(resourceFile, SyncConfiguration.class); } catch (IOException e) { throw new SyncException(e); } }  }
SyncConfigurationUtils { public static SyncConfiguration parseJsonFileToSyncConfiguration(String path, ResourcePathType absolutePath) { ObjectMapper mapper = new ObjectMapper(); try { String resourceFile = absolutePath.equals(ABSOLUTE) ? readResourceFileAbsolutePath(path) : readResourceFile(path); return mapper.readValue(resourceFile, SyncConfiguration.class); } catch (IOException e) { throw new SyncException(e); } }  static void checkIfConfigurationIsValid(); static String readResourceFile(String file); static String readResourceFileAbsolutePath(String file); static SyncConfiguration parseJsonFileToSyncConfiguration(String path, ResourcePathType absolutePath); static SyncConfiguration parseJsonStringToSyncConfiguration(String value); static boolean isValidateJson(String json); static String writeSyncConfigurationToJsonString(SyncConfiguration syncConfiguration); static void writeSyncConfigurationToJsonFile(SyncConfiguration syncConfigurations, String absolutePath); static boolean resourceFileExists(String path); static boolean customConfigExists(String path); static ClientConfiguration getClientConfiguration(String clientName); }
SyncConfigurationUtils { public static SyncConfiguration parseJsonFileToSyncConfiguration(String path, ResourcePathType absolutePath) { ObjectMapper mapper = new ObjectMapper(); try { String resourceFile = absolutePath.equals(ABSOLUTE) ? readResourceFileAbsolutePath(path) : readResourceFile(path); return mapper.readValue(resourceFile, SyncConfiguration.class); } catch (IOException e) { throw new SyncException(e); } }  static void checkIfConfigurationIsValid(); static String readResourceFile(String file); static String readResourceFileAbsolutePath(String file); static SyncConfiguration parseJsonFileToSyncConfiguration(String path, ResourcePathType absolutePath); static SyncConfiguration parseJsonStringToSyncConfiguration(String value); static boolean isValidateJson(String json); static String writeSyncConfigurationToJsonString(SyncConfiguration syncConfiguration); static void writeSyncConfigurationToJsonFile(SyncConfiguration syncConfigurations, String absolutePath); static boolean resourceFileExists(String path); static boolean customConfigExists(String path); static ClientConfiguration getClientConfiguration(String clientName);  }