UnarySQL { public void execute(final Configuration configuration) throws AlgorithmExecutionException { initialize(configuration); final List<InclusionDependency> candidates = getCandidates(); for (final InclusionDependency candidate : candidates) { if (isInd(candidate)) { configuration.getResultReceiver().receiveResult(candidate); } } validationStrategy.close(); } UnarySQL(); void execute(final Configuration configuration);  }
@Test void discoverUnaryWithEmptyColumns() throws Exception { configuration.setProcessEmptyColumns(true); unarySQL.execute(configuration); verify(resultReceiver, atLeastOnce()).receiveResult(ind.capture()); assertThat(ind.getAllValues()) .hasSize(3) .contains(indWithEmptyLhs()); }
@Test void discoverUnaryDiscardEmptyColumns() throws Exception { configuration.setProcessEmptyColumns(false); unarySQL.execute(configuration); verify(resultReceiver, atLeastOnce()).receiveResult(ind.capture()); assertThat(ind.getAllValues()) .hasSize(1) .first() .isEqualTo(validInd()); }