@Test public void testLoad() { GithubCallbackListeners fromStorage = storageManager.loadListeners(); File f = new File(database_file); f.delete(); }
protected GithubCallbackListeners loadListeners() { String json = null; GithubCallbackListeners result = null; try { json = SimpleIO.loadConfig(database_file).get("json"); } catch (IOException e) { logger.error("Failed to load Github listener settings."); } if (json != null) { Gson gson = new Gson(); result = gson.fromJson(json, GithubCallbackListeners.class); } return result; }
StorageManager { protected GithubCallbackListeners loadListeners() { String json = null; GithubCallbackListeners result = null; try { json = SimpleIO.loadConfig(database_file).get("json"); } catch (IOException e) { logger.error("Failed to load Github listener settings."); } if (json != null) { Gson gson = new Gson(); result = gson.fromJson(json, GithubCallbackListeners.class); } return result; } }
StorageManager { protected GithubCallbackListeners loadListeners() { String json = null; GithubCallbackListeners result = null; try { json = SimpleIO.loadConfig(database_file).get("json"); } catch (IOException e) { logger.error("Failed to load Github listener settings."); } if (json != null) { Gson gson = new Gson(); result = gson.fromJson(json, GithubCallbackListeners.class); } return result; } StorageManager(String database_file); }
StorageManager { protected GithubCallbackListeners loadListeners() { String json = null; GithubCallbackListeners result = null; try { json = SimpleIO.loadConfig(database_file).get("json"); } catch (IOException e) { logger.error("Failed to load Github listener settings."); } if (json != null) { Gson gson = new Gson(); result = gson.fromJson(json, GithubCallbackListeners.class); } return result; } StorageManager(String database_file);  }
StorageManager { protected GithubCallbackListeners loadListeners() { String json = null; GithubCallbackListeners result = null; try { json = SimpleIO.loadConfig(database_file).get("json"); } catch (IOException e) { logger.error("Failed to load Github listener settings."); } if (json != null) { Gson gson = new Gson(); result = gson.fromJson(json, GithubCallbackListeners.class); } return result; } StorageManager(String database_file);   }