@Test @ExtendWith(TemporaryFolderExtension.class) void testLoadEmptyResourceFolder(TemporaryFolder temporaryFolder) { SoapResourceLoader soapResourceLoader = new SoapResourceLoader(fileUtils); temporaryFolder.createDirectory(SOAP_RESOURCES_FOLDER); Bundle bundle = new Bundle(); soapResourceLoader.load(bundle, temporaryFolder.getRoot()); Assert.assertTrue(bundle.getFolders().isEmpty()); }
@Override public void load(final Bundle bundle, final File rootDir) { final File soapResourceRootDir = FolderLoaderUtils.getSoapResourcesRootDir(rootDir); if (soapResourceRootDir == null) return; final Map<String, SoapResource> soapResources = new HashMap<>(); loadSoapResources(soapResourceRootDir, soapResourceRootDir, soapResources); bundle.putAllSoapResources(soapResources); }
SoapResourceLoader implements EntityLoader { @Override public void load(final Bundle bundle, final File rootDir) { final File soapResourceRootDir = FolderLoaderUtils.getSoapResourcesRootDir(rootDir); if (soapResourceRootDir == null) return; final Map<String, SoapResource> soapResources = new HashMap<>(); loadSoapResources(soapResourceRootDir, soapResourceRootDir, soapResources); bundle.putAllSoapResources(soapResources); } }
SoapResourceLoader implements EntityLoader { @Override public void load(final Bundle bundle, final File rootDir) { final File soapResourceRootDir = FolderLoaderUtils.getSoapResourcesRootDir(rootDir); if (soapResourceRootDir == null) return; final Map<String, SoapResource> soapResources = new HashMap<>(); loadSoapResources(soapResourceRootDir, soapResourceRootDir, soapResources); bundle.putAllSoapResources(soapResources); } @Inject  SoapResourceLoader(FileUtils fileUtils); }
SoapResourceLoader implements EntityLoader { @Override public void load(final Bundle bundle, final File rootDir) { final File soapResourceRootDir = FolderLoaderUtils.getSoapResourcesRootDir(rootDir); if (soapResourceRootDir == null) return; final Map<String, SoapResource> soapResources = new HashMap<>(); loadSoapResources(soapResourceRootDir, soapResourceRootDir, soapResources); bundle.putAllSoapResources(soapResources); } @Inject  SoapResourceLoader(FileUtils fileUtils); @Override void load(final Bundle bundle, final File rootDir); @Override void load(Bundle bundle, String name, String value); @Override Map<String, Object> load(File entitiesFile); @Override Object loadSingle(String name, File entitiesFile); @Override String getEntityType(); }
SoapResourceLoader implements EntityLoader { @Override public void load(final Bundle bundle, final File rootDir) { final File soapResourceRootDir = FolderLoaderUtils.getSoapResourcesRootDir(rootDir); if (soapResourceRootDir == null) return; final Map<String, SoapResource> soapResources = new HashMap<>(); loadSoapResources(soapResourceRootDir, soapResourceRootDir, soapResources); bundle.putAllSoapResources(soapResources); } @Inject  SoapResourceLoader(FileUtils fileUtils); @Override void load(final Bundle bundle, final File rootDir); @Override void load(Bundle bundle, String name, String value); @Override Map<String, Object> load(File entitiesFile); @Override Object loadSingle(String name, File entitiesFile); @Override String getEntityType();  }