Running The Tests

The TestSuite can be built:

If you are using java version you can test your class immediately (assuming the class is created in TestDb4oUnit package):

java -cp db4o-6.0-db4ounit.jar;your_class_folder db4ounit.UnitTestMain your_class_package.AssertTestCase

The second option is to list the test class in Db4oTestSuiteBuilder argument.  You can use db4ounit.extensions.tests.AllTests class. Just add the following method:

AllTests.java: testCascadeOnUpdate
1public void testCascadeOnUpdate() { 2 Db4oFixture fixture=new ExcludingInMemoryFixture(new IndependentConfigurationSource()); 3 TestSuite suite = new Db4oTestSuiteBuilder(fixture, new Class[]{CascadeOnUpdate.class}).build(); 4 FrameworkTestCase.runTestAndExpect(suite,0); 5 }
Now running the AllTests class will include your custom class too.