@Test @ExtendWith(TemporaryFolderExtension.class) void testLoadSingle(TemporaryFolder temporaryFolder) { PolicyAndFolderLoader policyAndFolderLoader = new PolicyAndFolderLoader(policyConverterRegistry, FileUtils.INSTANCE, new IdGenerator(), JsonFileUtils.INSTANCE); assertThrows(ConfigLoadException.class, () -> policyAndFolderLoader.loadSingle("Policy", temporaryFolder.getRoot())); }
@Override public Object loadSingle(String name, File entitiesFile) { throw new ConfigLoadException("Cannot load an individual policy"); }
PolicyAndFolderLoader implements EntityLoader { @Override public Object loadSingle(String name, File entitiesFile) { throw new ConfigLoadException("Cannot load an individual policy"); } }
PolicyAndFolderLoader implements EntityLoader { @Override public Object loadSingle(String name, File entitiesFile) { throw new ConfigLoadException("Cannot load an individual policy"); } @Inject  PolicyAndFolderLoader(PolicyConverterRegistry policyConverterRegistry, FileUtils fileUtils,
                          IdGenerator idGenerator, JsonFileUtils jsonFileUtils); }
PolicyAndFolderLoader implements EntityLoader { @Override public Object loadSingle(String name, File entitiesFile) { throw new ConfigLoadException("Cannot load an individual policy"); } @Inject  PolicyAndFolderLoader(PolicyConverterRegistry policyConverterRegistry, FileUtils fileUtils,
                          IdGenerator idGenerator, JsonFileUtils jsonFileUtils); @Override void load(final Bundle bundle, final File rootDir); @Override void load(Bundle bundle, String name, String value); @Override Object loadSingle(String name, File entitiesFile); @Override Map<String, Object> load(File entitiesFile); @Override String getEntityType(); }
PolicyAndFolderLoader implements EntityLoader { @Override public Object loadSingle(String name, File entitiesFile) { throw new ConfigLoadException("Cannot load an individual policy"); } @Inject  PolicyAndFolderLoader(PolicyConverterRegistry policyConverterRegistry, FileUtils fileUtils,
                          IdGenerator idGenerator, JsonFileUtils jsonFileUtils); @Override void load(final Bundle bundle, final File rootDir); @Override void load(Bundle bundle, String name, String value); @Override Object loadSingle(String name, File entitiesFile); @Override Map<String, Object> load(File entitiesFile); @Override String getEntityType();  }