public class UniqueFieldValueConstraintTestCase extends AbstractDb4oTestCase implements CustomClientServerConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
UniqueFieldValueConstraintTestCase.IHaveNothingToDoWithItemInstances |
static class |
UniqueFieldValueConstraintTestCase.Item |
| Constructor and Description |
|---|
UniqueFieldValueConstraintTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(Configuration config) |
void |
configureClient(Configuration config) |
void |
configureServer(Configuration config) |
protected void |
store() |
void |
testDeleteAfterNewDoesNotViolate() |
void |
testNewAfterDeleteDoesNotViolate() |
void |
testNewViolates() |
void |
testObjectsAreNotReadUnnecessarily() |
void |
testUpdateDoesNotViolate() |
void |
testUpdateViolates() |
void |
testUpdatingSameObjectDoesNotViolate() |
assertOccurrences, assertOccurrences, classMetadataFor, commit, concurrenyClientServerSuite, configureThreadCount, container, context, countOccurences, countOccurences, db, db4oSetupAfterStore, db4oSetupBeforeConfigure, db4oSetupBeforeStore, db4oTearDownAfterClean, db4oTearDownBeforeClean, defragment, deleteAll, deleteAll, deleteObjectSet, deleteObjectSet, embeddedSuite, eventRegistry, eventRegistryFor, fileSession, fixture, foreach, foreach, handleUncaughtExceptions, indexField, inMemorySuite, isEmbedded, isMultiSession, isNetworking, networkingSuite, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newTransaction, openNewSession, reflectClass, reflector, reopen, retrieveOnlyInstance, retrieveOnlyInstance, runAll, runConcurrency, runConcurrencyAll, runEmbedded, runEmbeddedConcurrency, runInMemory, runNetworking, runSolo, runSolo, runSoloAndClientServer, runSoloAndEmbeddedClientServer, serverEventRegistry, setUp, soloSuite, store, stream, systemTrans, tearDown, testCases, threadCount, transpublic void configureClient(Configuration config) throws java.lang.Exception
configureClient in interface CustomClientServerConfigurationjava.lang.Exceptionpublic void configureServer(Configuration config) throws java.lang.Exception
configureServer in interface CustomClientServerConfigurationjava.lang.Exceptionprotected void configure(Configuration config) throws java.lang.Exception
configure in class AbstractDb4oTestCasejava.lang.Exceptionprotected void store()
throws java.lang.Exception
store in class AbstractDb4oTestCasejava.lang.Exceptionpublic void testNewViolates()
public void testUpdateViolates()
public void testUpdateDoesNotViolate()
public void testUpdatingSameObjectDoesNotViolate()
public void testNewAfterDeleteDoesNotViolate()
public void testDeleteAfterNewDoesNotViolate()
public void testObjectsAreNotReadUnnecessarily()