use of org.junit.jupiter.params.provider.ArgumentsSource in project solution-finder by knewjade.
the class PathRandomFileCaseTest method hold1.
@ParameterizedTest
@ArgumentsSource(Hold1TestCase.class)
@LongTest
void hold1(String command, int unique) throws Exception {
Log log = RunnerHelper.runnerCatchingLog(() -> EntryPointMain.main(command.split(" ")));
assertThat(log.getOutput()).contains(Messages.useHold()).contains(Messages.uniqueCount(unique));
}
use of org.junit.jupiter.params.provider.ArgumentsSource in project solution-finder by knewjade.
the class PathRandomFileCaseTest method hold2.
@ParameterizedTest
@ArgumentsSource(Hold2TestCase.class)
@LongTest
void hold2(String command, int unique) throws Exception {
Log log = RunnerHelper.runnerCatchingLog(() -> EntryPointMain.main(command.split(" ")));
assertThat(log.getOutput()).contains(Messages.useHold()).contains(Messages.uniqueCount(unique));
}
use of org.junit.jupiter.params.provider.ArgumentsSource in project solution-finder by knewjade.
the class PathRandomPatternFileCasesTest method reserved.
@ParameterizedTest
@ArgumentsSource(ReservedTestCase.class)
@LongTest
void reserved(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 PathRandomFileCaseTest method noHold1.
@ParameterizedTest
@ArgumentsSource(NoHold1TestCase.class)
@LongTest
void noHold1(String command, int unique) throws Exception {
Log log = RunnerHelper.runnerCatchingLog(() -> EntryPointMain.main(command.split(" ")));
assertThat(log.getOutput()).contains(Messages.noUseHold()).contains(Messages.uniqueCount(unique));
}
use of org.junit.jupiter.params.provider.ArgumentsSource in project solution-finder by knewjade.
the class PathRandomFileCaseTest method noHold2.
@ParameterizedTest
@ArgumentsSource(NoHold2TestCase.class)
@LongTest
void noHold2(String command, int unique) throws Exception {
Log log = RunnerHelper.runnerCatchingLog(() -> EntryPointMain.main(command.split(" ")));
assertThat(log.getOutput()).contains(Messages.noUseHold()).contains(Messages.uniqueCount(unique));
}
Aggregations