Search in sources :

Example 1 with MixedPersistenceStrategy

use of org.apache.cayenne.testdo.mixed_persistence_strategy.MixedPersistenceStrategy in project cayenne by apache.

the class MixedPersistenceStrategyIT method testConflictingField1.

@Test
public void testConflictingField1() throws Exception {
    createConflictingFieldDataSet();
    MixedPersistenceStrategy object = Cayenne.objectForPK(context, MixedPersistenceStrategy.class, 1);
    assertEquals(2, object.getDetails().size());
    assertTrue(object.getDetails() instanceof ValueHolder);
}
Also used : MixedPersistenceStrategy(org.apache.cayenne.testdo.mixed_persistence_strategy.MixedPersistenceStrategy) ValueHolder(org.apache.cayenne.ValueHolder) Test(org.junit.Test)

Aggregations

ValueHolder (org.apache.cayenne.ValueHolder)1 MixedPersistenceStrategy (org.apache.cayenne.testdo.mixed_persistence_strategy.MixedPersistenceStrategy)1 Test (org.junit.Test)1