Commit 881509a8 authored by Daniel Le Berre's avatar Daniel Le Berre
Browse files

fix test case with Optional handling in createSolverByName().

parent a5819919
Pipeline #20147 failed with stages
in 16 minutes and 40 seconds
......@@ -62,9 +62,11 @@ public class BugSAT34 {
for (String name : SolverFactory.instance().solverNames()) {
if (!"DimacsOutput".equals(name) && !"OPBStringSolver".equals(name)
&& !name.contains("DetectCards")) {
solvers.add(new Object[] {
SolverFactory.instance().createSolverByName(name),
name });
solvers.add(
new Object[] {
SolverFactory.instance()
.createSolverByName(name).orElseThrow(),
name });
}
}
return solvers;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment