@Test public void doSingleImportExport() throws StudyImporterException, URISyntaxException { Normalizer dataNormalizationTool = createNormalizer(); URL resource = getClass().getResource("datasets-test/globalbioticinteractions/template-dataset/access.tsv"); assertNotNull(resource); String datasetDirTest = new File(resource.toURI()).getParentFile().getParentFile().getParentFile().getAbsolutePath(); final IndexerDataset indexerDataset = new IndexerDataset(DatasetRegistryUtil.getDatasetRegistry(datasetDirTest)); indexerDataset.index(getGraphFactory()); String baseDir = "./target/normalizer-test/"; FileUtils.deleteQuietly(new File(baseDir)); dataNormalizationTool.exportData(getGraphDb(), baseDir); }
private void exportData(CommandLine cmdLine, GraphDatabaseService graphService) throws StudyImporterException { if (cmdLine == null || !cmdLine.hasOption(OPTION_SKIP_EXPORT)) { exportData(graphService, "./"); } else { LOG.info("skipping data export..."); } }
Normalizer { private void exportData(CommandLine cmdLine, GraphDatabaseService graphService) throws StudyImporterException { if (cmdLine == null || !cmdLine.hasOption(OPTION_SKIP_EXPORT)) { exportData(graphService, "./"); } else { LOG.info("skipping data export..."); } } }
Normalizer { private void exportData(CommandLine cmdLine, GraphDatabaseService graphService) throws StudyImporterException { if (cmdLine == null || !cmdLine.hasOption(OPTION_SKIP_EXPORT)) { exportData(graphService, "./"); } else { LOG.info("skipping data export..."); } }  }
Normalizer { private void exportData(CommandLine cmdLine, GraphDatabaseService graphService) throws StudyImporterException { if (cmdLine == null || !cmdLine.hasOption(OPTION_SKIP_EXPORT)) { exportData(graphService, "./"); } else { LOG.info("skipping data export..."); } }  static void main(final String[] args); void run(CommandLine cmdLine); }
Normalizer { private void exportData(CommandLine cmdLine, GraphDatabaseService graphService) throws StudyImporterException { if (cmdLine == null || !cmdLine.hasOption(OPTION_SKIP_EXPORT)) { exportData(graphService, "./"); } else { LOG.info("skipping data export..."); } }  static void main(final String[] args); void run(CommandLine cmdLine);  }