Commit b1706c4d authored by leberre's avatar leberre
Browse files

Avoid having a direct dependency to org.sat4j.minisat.SolverFactory in...

Avoid having a direct dependency to org.sat4j.minisat.SolverFactory in AllMuses to avoid cycles between sat4j.tools and sat4j.minisat. The AllMuses class now requires a solver factory as constructor parameter.

git-svn-id: svn+ssh://svn.forge.ow2.org/svnroot/sat4j/maven/trunk@1697 ba638df5-4473-46d1-82f8-c3ae2a17a6e1
parent 22a0e8f3
......@@ -53,7 +53,8 @@ public class TestAllMUSesAndCheckTest {
public void setUp() throws Exception {
this.allMUSes = new AllMUSes(SolverFactory.instance());
this.solver = allMUSes.getSolverInstance();
this.checkListener = new CheckMUSSolutionListener();
this.checkListener = new CheckMUSSolutionListener(
SolverFactory.instance());
}
@Test
......
......@@ -6,6 +6,7 @@ import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import org.sat4j.core.VecInt;
import org.sat4j.minisat.SolverFactory;
import org.sat4j.specs.IVecInt;
public class TestCheckItIsAMUS {
......@@ -14,7 +15,7 @@ public class TestCheckItIsAMUS {
@Before
public void setUp() throws Exception {
check = new CheckMUSSolutionListener();
check = new CheckMUSSolutionListener(SolverFactory.instance());
}
@Test
......
Markdown is supported
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