1 21 package db4ounit.extensions; 22 23 import db4ounit.*; 24 import db4ounit.extensions.fixtures.*; 25 26 29 public class Db4oUnitTestMain extends UnitTestMain { 30 public static void main(String [] args) throws Exception { 31 new Db4oUnitTestMain().runTests(args); 32 } 33 34 private Db4oFixture _fixture=new Db4oSolo(); 35 36 protected TestSuiteBuilder builder(Class [] clazzes) { 37 return new Db4oTestSuiteBuilder(_fixture,clazzes); 38 } 39 40 protected TestCase createTestInstance(String className) 41 throws ClassNotFoundException , InstantiationException , 42 IllegalAccessException { 43 TestCase testCase=super.createTestInstance(className); 44 if(testCase instanceof AbstractDb4oTestCase) { 45 ((AbstractDb4oTestCase)testCase).fixture(_fixture); 46 } 47 return testCase; 48 } 49 } 50 | Popular Tags |