public abstract class AbstractSchematicDBTest extends Object
SchematicDb implementation.| Modifier and Type | Field and Description |
|---|---|
protected org.modeshape.schematic.SchematicDb |
db |
protected static org.modeshape.schematic.document.Document |
DEFAULT_CONTENT |
protected boolean |
print |
| Constructor and Description |
|---|
AbstractSchematicDBTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
protected void |
changeAndCommit(org.modeshape.schematic.SchematicEntry ourEntry,
org.modeshape.schematic.SchematicEntry otherEntry,
CyclicBarrier syncBarrier) |
protected abstract org.modeshape.schematic.SchematicDb |
getDb() |
protected CompletableFuture<List<String>> |
insertMultipleEntries(int entriesPerThread,
ExecutorService executors) |
protected void |
print(String s) |
protected List<org.modeshape.schematic.SchematicEntry> |
randomEntries(int sampleSize) |
void |
shouldEditContentDirectly() |
void |
shouldGetAndPut() |
void |
shouldInsertAndUpdateEntriesConcurrentlyWithMultipleWriters() |
void |
shouldIsolateChangesWithinTransaction() |
void |
shouldPutIfAbsent() |
void |
shouldPutSchematicEntry() |
void |
shouldReadSchematicEntry() |
void |
shouldRemoveAllDocuments() |
void |
shouldRemoveDocument() |
void |
shouldRollbackChangesWithinTransaction() |
protected <T> T |
simulateTransaction(Callable<T> operation) |
protected org.modeshape.schematic.SchematicEntry |
writeSingleEntry() |
protected static final org.modeshape.schematic.document.Document DEFAULT_CONTENT
protected org.modeshape.schematic.SchematicDb db
protected boolean print
public AbstractSchematicDBTest()
protected abstract org.modeshape.schematic.SchematicDb getDb() throws Exception
Exceptionpublic void shouldGetAndPut() throws Exception
Exceptionpublic void shouldReadSchematicEntry() throws Exception
Exceptionpublic void shouldEditContentDirectly() throws Exception
Exceptionpublic void shouldPutIfAbsent() throws Exception
Exceptionpublic void shouldPutSchematicEntry() throws Exception
Exceptionpublic void shouldRemoveDocument() throws Exception
Exceptionpublic void shouldRemoveAllDocuments() throws Exception
Exceptionpublic void shouldIsolateChangesWithinTransaction() throws Exception
Exceptionpublic void shouldRollbackChangesWithinTransaction() throws Exception
Exceptionpublic void shouldInsertAndUpdateEntriesConcurrentlyWithMultipleWriters() throws Exception
Exceptionprotected CompletableFuture<List<String>> insertMultipleEntries(int entriesPerThread, ExecutorService executors)
protected void changeAndCommit(org.modeshape.schematic.SchematicEntry ourEntry, org.modeshape.schematic.SchematicEntry otherEntry, CyclicBarrier syncBarrier)
protected <T> T simulateTransaction(Callable<T> operation) throws Exception
Exceptionprotected org.modeshape.schematic.SchematicEntry writeSingleEntry() throws Exception
Exceptionprotected List<org.modeshape.schematic.SchematicEntry> randomEntries(int sampleSize) throws Exception
ExceptionCopyright © 2008–2021 JBoss, a division of Red Hat. All rights reserved.