@Test void runSpider() throws Exception { final SpiderBruteForce spider = new SpiderBruteForce(); spider.execute(configuration); verify(resultReceiver, atLeastOnce()).receiveResult(ind.capture()); assertThat(ind.getAllValues()) .hasSize(1) .first() .isEqualTo(expectedInd()); }
void execute(final Configuration configuration) throws AlgorithmExecutionException { this.configuration = configuration; final Collection<TableInfo> tables = tableInfoFactory .create(configuration.getRelationalInputGenerators(), Collections.emptyList()); attributeCount = tables.stream().mapToInt(TableInfo::getColumnCount).sum(); initializeAttributes(tables); try (FileGenerator ignored = configuration.getTempFileGenerator()) { export(tables); computeInclusionDependencies(); } catch (final IOException e) { throw new AlgorithmExecutionException("I/O error", e); } }
SpiderBruteForce { void execute(final Configuration configuration) throws AlgorithmExecutionException { this.configuration = configuration; final Collection<TableInfo> tables = tableInfoFactory .create(configuration.getRelationalInputGenerators(), Collections.emptyList()); attributeCount = tables.stream().mapToInt(TableInfo::getColumnCount).sum(); initializeAttributes(tables); try (FileGenerator ignored = configuration.getTempFileGenerator()) { export(tables); computeInclusionDependencies(); } catch (final IOException e) { throw new AlgorithmExecutionException("I/O error", e); } } }
SpiderBruteForce { void execute(final Configuration configuration) throws AlgorithmExecutionException { this.configuration = configuration; final Collection<TableInfo> tables = tableInfoFactory .create(configuration.getRelationalInputGenerators(), Collections.emptyList()); attributeCount = tables.stream().mapToInt(TableInfo::getColumnCount).sum(); initializeAttributes(tables); try (FileGenerator ignored = configuration.getTempFileGenerator()) { export(tables); computeInclusionDependencies(); } catch (final IOException e) { throw new AlgorithmExecutionException("I/O error", e); } } SpiderBruteForce(); }
SpiderBruteForce { void execute(final Configuration configuration) throws AlgorithmExecutionException { this.configuration = configuration; final Collection<TableInfo> tables = tableInfoFactory .create(configuration.getRelationalInputGenerators(), Collections.emptyList()); attributeCount = tables.stream().mapToInt(TableInfo::getColumnCount).sum(); initializeAttributes(tables); try (FileGenerator ignored = configuration.getTempFileGenerator()) { export(tables); computeInclusionDependencies(); } catch (final IOException e) { throw new AlgorithmExecutionException("I/O error", e); } } SpiderBruteForce();  }
SpiderBruteForce { void execute(final Configuration configuration) throws AlgorithmExecutionException { this.configuration = configuration; final Collection<TableInfo> tables = tableInfoFactory .create(configuration.getRelationalInputGenerators(), Collections.emptyList()); attributeCount = tables.stream().mapToInt(TableInfo::getColumnCount).sum(); initializeAttributes(tables); try (FileGenerator ignored = configuration.getTempFileGenerator()) { export(tables); computeInclusionDependencies(); } catch (final IOException e) { throw new AlgorithmExecutionException("I/O error", e); } } SpiderBruteForce();   }