use of org.junit.jupiter.params.provider.ArgumentsSource in project solution-finder by knewjade.
the class PathRandomPatternFileCasesTest method pattern.
@ParameterizedTest
@ArgumentsSource(PatternTestCase.class)
@LongTest
void pattern(String command, int unique, int success, int all) throws Exception {
Log log = RunnerHelper.runnerCatchingLog(() -> EntryPointMain.main(command.split(" ")));
assertThat(log.getOutput()).contains(Messages.pathCount(unique)).contains(Messages.success(success, all));
}
use of org.junit.jupiter.params.provider.ArgumentsSource in project solution-finder by knewjade.
the class PercentCountCaseTest method hold1.
@ParameterizedTest
@ArgumentsSource(Hold1TestCase.class)
@LongTest
void hold1(String command, int success, int all) throws Exception {
Log log = RunnerHelper.runnerCatchingLog(() -> EntryPointMain.main(command.split(" ")));
assertThat(log.getOutput()).contains(Messages.useHold()).contains(Messages.success(success, all));
}
use of org.junit.jupiter.params.provider.ArgumentsSource in project solution-finder by knewjade.
the class PercentCountCaseTest method hold2.
@ParameterizedTest
@ArgumentsSource(Hold2TestCase.class)
@LongTest
void hold2(String command, int success, int all) throws Exception {
Log log = RunnerHelper.runnerCatchingLog(() -> EntryPointMain.main(command.split(" ")));
assertThat(log.getOutput()).contains(Messages.useHold()).contains(Messages.success(success, all));
}
use of org.junit.jupiter.params.provider.ArgumentsSource in project solution-finder by knewjade.
the class PercentCountCaseTest method noHold1.
@ParameterizedTest
@ArgumentsSource(NoHold1TestCase.class)
@LongTest
void noHold1(String command, int success, int all) throws Exception {
Log log = RunnerHelper.runnerCatchingLog(() -> EntryPointMain.main(command.split(" ")));
assertThat(log.getOutput()).contains(Messages.noUseHold()).contains(Messages.success(success, all));
}
use of org.junit.jupiter.params.provider.ArgumentsSource in project solution-finder by knewjade.
the class PercentCountCaseTest method noHold2.
@ParameterizedTest
@ArgumentsSource(NoHold2TestCase.class)
@LongTest
void noHold2(String command, int success, int all) throws Exception {
Log log = RunnerHelper.runnerCatchingLog(() -> EntryPointMain.main(command.split(" ")));
assertThat(log.getOutput()).contains(Messages.noUseHold()).contains(Messages.success(success, all));
}
Aggregations