@Test void loadSingleYaml() { AtomicBoolean putToBundle = new AtomicBoolean(false); EntityLoader loader = new TestEntityLoader(putToBundle); loader.load(null, "test.yaml", "name: custom"); assertTrue(putToBundle.get()); putToBundle.set(false); loader.load(null, "test.yml", "{\"name\":\"custom\"}"); assertTrue(putToBundle.get()); }
public Map<String, Object> load(File entitiesFile) { return loadEntitiesFromFile(jsonTools, this.getBeanClass(), entitiesFile); }
EntityLoaderBase implements EntityLoader { public Map<String, Object> load(File entitiesFile) { return loadEntitiesFromFile(jsonTools, this.getBeanClass(), entitiesFile); } }
EntityLoaderBase implements EntityLoader { public Map<String, Object> load(File entitiesFile) { return loadEntitiesFromFile(jsonTools, this.getBeanClass(), entitiesFile); } @VisibleForTesting protected  EntityLoaderBase(final JsonTools jsonTools, final IdGenerator idGenerator); }
EntityLoaderBase implements EntityLoader { public Map<String, Object> load(File entitiesFile) { return loadEntitiesFromFile(jsonTools, this.getBeanClass(), entitiesFile); } @VisibleForTesting protected  EntityLoaderBase(final JsonTools jsonTools, final IdGenerator idGenerator); Object loadSingle(String name, File entitiesFile); Map<String, Object> load(File entitiesFile); @Override void load(final Bundle bundle, final File rootDir); @Override void load(Bundle bundle, String fullName, String value); }
EntityLoaderBase implements EntityLoader { public Map<String, Object> load(File entitiesFile) { return loadEntitiesFromFile(jsonTools, this.getBeanClass(), entitiesFile); } @VisibleForTesting protected  EntityLoaderBase(final JsonTools jsonTools, final IdGenerator idGenerator); Object loadSingle(String name, File entitiesFile); Map<String, Object> load(File entitiesFile); @Override void load(final Bundle bundle, final File rootDir); @Override void load(Bundle bundle, String fullName, String value);  }