@Test public void loadTest() { JsonObject jsonObject = my(JsonObjectLoader.class).loadOptions("VertxOptions.json"); Assert.assertNotNull(jsonObject); Assert.assertTrue(jsonObject.getBoolean("clustered")); VertxOptions vertxOptions = my(JsonObjectLoader.class).loadOptions("VertxOptions.json", VertxOptions.class); Assert.assertNotNull(vertxOptions); Assert.assertTrue(vertxOptions.isClustered()); }
public JsonObject loadOptions(String filename) { return loadOptions(defaultRootPath, filename); }
JsonObjectLoader { public JsonObject loadOptions(String filename) { return loadOptions(defaultRootPath, filename); } }
JsonObjectLoader { public JsonObject loadOptions(String filename) { return loadOptions(defaultRootPath, filename); }  }
JsonObjectLoader { public JsonObject loadOptions(String filename) { return loadOptions(defaultRootPath, filename); }  JsonObject loadOptions(String filename); @SneakyThrows T loadOptions(String filename, Class<T> optionClazz); @SneakyThrows(IOException.class) JsonObject loadOptions(String defaultRootPath, String filename); @Deprecated @SneakyThrows T loadOptions(String defaultRootPath, String filename, Class<T> optionClazz); }
JsonObjectLoader { public JsonObject loadOptions(String filename) { return loadOptions(defaultRootPath, filename); }  JsonObject loadOptions(String filename); @SneakyThrows T loadOptions(String filename, Class<T> optionClazz); @SneakyThrows(IOException.class) JsonObject loadOptions(String defaultRootPath, String filename); @Deprecated @SneakyThrows T loadOptions(String defaultRootPath, String filename, Class<T> optionClazz);  }