@Test public void bundleErrorPropagation() throws IOException, TaskRunnerException { URL res = Resources.getResource("helium/webpack.config.js"); String resDir = new File(res.getFile()).getParent(); String localPkg = resDir + "/../../../src/test/resources/helium/vis2"; HeliumPackage pkg = new HeliumPackage( HeliumPackage.Type.VISUALIZATION, "vis2", "vis2", localPkg, "", null, "license", "fa fa-coffee" ); List<HeliumPackage> pkgs = new LinkedList<>(); pkgs.add(pkg); File bundle = null; try { bundle = hvf.bundle(pkgs); assertTrue(false); } catch (IOException e) { assertTrue(e.getMessage().contains("error in the package")); } assertNull(bundle); }
public File bundle(List<HeliumPackage> pkgs) throws IOException { return bundle(pkgs, false); }
HeliumVisualizationFactory { public File bundle(List<HeliumPackage> pkgs) throws IOException { return bundle(pkgs, false); } }
HeliumVisualizationFactory { public File bundle(List<HeliumPackage> pkgs) throws IOException { return bundle(pkgs, false); } HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath,
      File tabledataModulePath,
      File visualizationModulePath);  HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath); }
HeliumVisualizationFactory { public File bundle(List<HeliumPackage> pkgs) throws IOException { return bundle(pkgs, false); } HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath,
      File tabledataModulePath,
      File visualizationModulePath);  HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath); File bundle(List<HeliumPackage> pkgs); synchronized File bundle(List<HeliumPackage> pkgs, boolean forceRefresh); File getCurrentBundle(); }
HeliumVisualizationFactory { public File bundle(List<HeliumPackage> pkgs) throws IOException { return bundle(pkgs, false); } HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath,
      File tabledataModulePath,
      File visualizationModulePath);  HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath); File bundle(List<HeliumPackage> pkgs); synchronized File bundle(List<HeliumPackage> pkgs, boolean forceRefresh); File getCurrentBundle();  }