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();   }
@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()); }
@Test void runSpiderWithEmptyColumn() throws Exception { final SpiderBruteForce spider = new SpiderBruteForce(); configuration.setProcessEmptyColumns(true); spider.execute(configuration); verify(resultReceiver, atLeastOnce()).receiveResult(ind.capture()); assertThat(ind.getAllValues()) .hasSize(3); }