public void testConflictingField2() throws Exception {
deleteTestData();
createTestData("testConflictingField");
DataContext c = createDataContext();
MixedPersistenceStrategy2 detail1 = DataObjectUtils.objectForPK(
c,
MixedPersistenceStrategy2.class,
1);
MixedPersistenceStrategy2 detail2 = DataObjectUtils.objectForPK(
c,
MixedPersistenceStrategy2.class,
2);
// resolve master (this is where CAY-582 exception happens)
assertEquals("n1", detail1.getMaster().getName());
assertEquals(2, detail2.getMaster().getDetails().size());
assertTrue(detail2.getMaster().getDetails() instanceof ValueHolder);
}