| Fixture easing the development of tests requiring to set up a simple repository with some
modules, using micro ivy format to describe the repository. Example of use:
public class MyTest extends TestCase {
private TestFixture fixture;
protected void setUp() throws Exception {
fixture = new TestFixture();
// additional setup here
}
protected void tearDown() throws Exception {
fixture.clean();
}
public void testXXX() throws Exception {
fixture
.addMD("#A;1-> { #B;[1.5,1.6] #C;2.5 }")
.addMD("#B;1.5->#D;2.0")
.addMD("#B;1.6->#D;2.0")
.addMD("#C;2.5->#D;[1.0,1.6]")
.addMD("#D;1.5").addMD("#D;1.6").addMD("#D;2.0")
.init();
ResolveReport r = fixture.resolve("#A;1");
// assertions go here
}
}
|