@Test void tryLoadParseException() throws DocumentParseException { when(documentTools.parse(any(File.class))).thenThrow(DocumentParseException.class); assertThrows(BundleLoadException.class, () -> new EntityBundleLoader(documentTools, registry, JsonFileUtils.INSTANCE).load(mock(File.class), BundleLoadingOperation.EXPORT)); }
public Bundle load(List<File> fileSet, BundleLoadingOperation loadingMode, String... entityTypes) { final Bundle bundle = new Bundle(); fileSet.forEach(f -> loadBundleFile(f, bundle, loadingMode, entityTypes)); return bundle; }
EntityBundleLoader { public Bundle load(List<File> fileSet, BundleLoadingOperation loadingMode, String... entityTypes) { final Bundle bundle = new Bundle(); fileSet.forEach(f -> loadBundleFile(f, bundle, loadingMode, entityTypes)); return bundle; } }
EntityBundleLoader { public Bundle load(List<File> fileSet, BundleLoadingOperation loadingMode, String... entityTypes) { final Bundle bundle = new Bundle(); fileSet.forEach(f -> loadBundleFile(f, bundle, loadingMode, entityTypes)); return bundle; } @Inject  EntityBundleLoader(final DocumentTools documentTools, final BundleEntityLoaderRegistry entityLoaderRegistry, final JsonFileUtils jsonFileUtils); }
EntityBundleLoader { public Bundle load(List<File> fileSet, BundleLoadingOperation loadingMode, String... entityTypes) { final Bundle bundle = new Bundle(); fileSet.forEach(f -> loadBundleFile(f, bundle, loadingMode, entityTypes)); return bundle; } @Inject  EntityBundleLoader(final DocumentTools documentTools, final BundleEntityLoaderRegistry entityLoaderRegistry, final JsonFileUtils jsonFileUtils); Bundle load(List<File> fileSet, BundleLoadingOperation loadingMode, String... entityTypes); Bundle load(File dependencyBundlePath, BundleLoadingOperation loadingMode, String... entityTypes); Bundle loadMetadata(File dependencyMetadataPath, BundleLoadingOperation loadingMode); }
EntityBundleLoader { public Bundle load(List<File> fileSet, BundleLoadingOperation loadingMode, String... entityTypes) { final Bundle bundle = new Bundle(); fileSet.forEach(f -> loadBundleFile(f, bundle, loadingMode, entityTypes)); return bundle; } @Inject  EntityBundleLoader(final DocumentTools documentTools, final BundleEntityLoaderRegistry entityLoaderRegistry, final JsonFileUtils jsonFileUtils); Bundle load(List<File> fileSet, BundleLoadingOperation loadingMode, String... entityTypes); Bundle load(File dependencyBundlePath, BundleLoadingOperation loadingMode, String... entityTypes); Bundle loadMetadata(File dependencyMetadataPath, BundleLoadingOperation loadingMode);  }