hprange / wounit

The WOUnit framework contains a set of utilities for testing WebObjects applications using JUnit 4.7 or later capabilities.
http://hprange.github.io/wounit/
Apache License 2.0
19 stars 18 forks source link

Exception when cascade deleting not saved objects #23

Closed hprange closed 12 years ago

hprange commented 12 years ago

Suppose Foo has a relationship to Bar marked to cascade delete. The following code produces an exception.

@Test public void cascadeDelete() { Foo foo = Foo.createFoo(ec);

foo.setBar(Bar.createBar(ec)); foo.deleteObject();

ec.saveChanges(); }