From: David S. <da...@sa...> - 2008-08-15 20:02:46
|
I don't have experience with SeamTest. What you could do is use a custom runner: ================================================ import org.junit.runners.BlockJUnit4ClassRunner; import org.junit.runners.model.InitializationError; public class SimulateTestNg extends BlockJUnit4ClassRunner { private Object testInstance; public SimulateTestNg(Class<?> klass) throws InitializationError { super(klass); } @Override protected Object createTest() throws Exception { if (testInstance == null) testInstance = super.createTest(); return testInstance; } } ================================================ @RunWith(SimulateTestNg.class) public class MySeamTest extends SeamTest { // tests here... } ================================================ Would this work for you? Thanks, David Saff On Fri, Aug 8, 2008 at 4:22 AM, Bernard Łabno <s4...@pj...> wrote: > Have you got experience with SeamTest ? I thought that init method must be > run for every object that is instance of SeamTest. > > |