public abstract class TitanGraphTest extends TitanGraphBaseTest
TitanGraphBaseTest.TestConfigOptionadjustedConfig, config, DEFAULT_THREAD_COUNT, features, graph, logManagers, mgmt, tx| Constructor and Description |
|---|
TitanGraphTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
evaluateQuery(TitanGraphQuery query,
ElementCategory resultType,
int expectedResults,
boolean[] subQuerySpecs,
Map<PropertyKey,Order> orderMap,
String... intersectingIndexes) |
static void |
evaluateQuery(TitanGraphQuery query,
ElementCategory resultType,
int expectedResults,
boolean[] subQuerySpecs,
PropertyKey orderKey1,
Order order1,
PropertyKey orderKey2,
Order order2,
String... intersectingIndexes) |
static void |
evaluateQuery(TitanGraphQuery query,
ElementCategory resultType,
int expectedResults,
boolean[] subQuerySpecs,
PropertyKey orderKey1,
Order order1,
String... intersectingIndexes) |
static void |
evaluateQuery(TitanGraphQuery query,
ElementCategory resultType,
int expectedResults,
boolean[] subQuerySpecs,
String... intersectingIndexes) |
static void |
evaluateQuery(TitanVertexQuery query,
RelationCategory resultType,
int expectedResults,
int numSubQueries,
boolean[] subQuerySpecs) |
static void |
evaluateQuery(TitanVertexQuery query,
RelationCategory resultType,
int expectedResults,
int numSubQueries,
boolean[] subQuerySpecs,
Map<PropertyKey,Order> orderMap) |
static void |
evaluateQuery(TitanVertexQuery query,
RelationCategory resultType,
int expectedResults,
int numSubQueries,
boolean[] subQuerySpecs,
PropertyKey orderKey,
Order order) |
protected abstract boolean |
isLockingOptimistic() |
void |
simpleLogTest() |
void |
simpleLogTest(boolean withLogFailure) |
void |
simpleLogTestWithFailure() |
void |
testArrayEqualityUsingImplicitKey() |
void |
testAutomaticTypeCreation()
Tests the automatic creation of types
|
void |
testBasic()
Very simple graph operation to ensure minimal functionality and cleanup
|
void |
testConcurrentConsistencyEnforcement() |
void |
testConsistencyEnforcement()
Tests the correct application of ConsistencyModifiers across transactional boundaries
|
void |
testCreateAndRetrieveComprehensive() |
void |
testCreateAndRetrieveMedium()
In purpose similar to
testCreateAndRetrieveComprehensive() but less focused on comprehensive feature
coverage and more on using larger transaction sizes |
void |
testCreateDelete() |
void |
testDataTypes()
Test the different data types that Titan supports natively and ensure that invalid data types aren't allowed
|
void |
testEdgesExceedCacheSize() |
void |
testEdgeTTLImplicitKey() |
void |
testEdgeTTLLimitedByVertexTTL() |
void |
testEdgeTTLTiming() |
void |
testEdgeTTLWithCompositeIndex() |
void |
testEdgeTTLWithTransactions() |
void |
testEdgeTTLWithVertexCentricIndex() |
void |
testFixedGraphConfig() |
void |
testForceIndexUsage() |
void |
testGetTTLFromUnsupportedType() |
void |
testGlobalGraphConfig() |
void |
testGlobalGraphIndexingAndQueriesForInternalIndexes()
Tests index defintions and their correct application for internal indexes only
|
void |
testGlobalIteration()
Iterating over all vertices and edges in a graph
|
void |
testGlobalOfflineGraphConfig() |
void |
testHasNot() |
void |
testImplicitKey()
Test the correct application of
ImplicitKey
to vertices, edges, and properties. |
void |
testIndexQueryWithLabelsAndContainsIN() |
void |
testIndexRetrieval() |
void |
testIndexUniqueness() |
void |
testIndexUpdatesWithoutReindex() |
void |
testIndexUpdateSyncWithMultipleInstances() |
void |
testJointIndexRetrieval() |
void |
testLargeJointIndexRetrieval() |
void |
testLimitWithMixedIndexCoverage() |
void |
testLocalGraphConfiguration() |
void |
testManagedOptionMasking() |
void |
testMaskableGraphConfig() |
void |
testMultivaluedVertexProperty()
Tests multi-valued properties with special focus on indexing and incident unidirectional edges
which is not tested in
testSchemaTypes()
-->TODO: split and move this into other test cases: ordering to query, indexing to index |
void |
testOpenClose()
Just opens and closes the graph
|
void |
testPropertyIndexPersistence() |
void |
testPropertyTTLTiming() |
void |
testRelationTypeIndexes() |
void |
testSchemaNameChange() |
void |
testSchemaTypes()
Test the definition and inspection of various schema types and ensure their correct interpretation
within the graph
|
void |
testSelfLoop()
Tests that self-loop edges are handled and counted correctly
|
void |
testSettingTTLOnNonStaticVertexLabel() |
void |
testSettingTTLOnUnsupportedType() |
void |
testStaleVertex() |
void |
testThreadBoundTx()
Tests that elements can be accessed beyond their transactional boundaries if they
are bound to single-threaded graph transactions
|
void |
testTransactionalScopeOfSchemaTypes()
This tests a special scenario under which a schema type is defined in a (management) transaction
and then accessed in a concurrent transaction.
|
void |
testTransactionConfiguration() |
void |
testTransactionIsolation()
Verifies transactional isolation and internal vertex existence checking
|
void |
testVertexCentricIndexWithNull() |
void |
testVertexCentricQuery() |
void |
testVertexRemoval()
Adding a removing a vertex with index
|
void |
testVertexTTLImplicitKey() |
void |
testVertexTTLWithCompositeIndex() |
void |
testWithoutIndex() |
clopen, close, closeLogManager, createExternalEdgeIndex, createExternalVertexIndex, finishSchema, getConfig, getConfiguration, getExternalIndex, getThreadCount, getVertex, getVertex, getVertex, getVertex, makeKey, makeKeyedEdgeLabel, makeLabel, makeVertexIndexedKey, makeVertexIndexedUniqueKey, newTx, open, openTxLog, openUserLog, option, round, setUp, tearDown, wrapAroundprotected abstract boolean isLockingOptimistic()
public void testOpenClose()
public void testBasic()
public void testVertexRemoval()
public void testGlobalIteration()
public void testCreateAndRetrieveComprehensive()
public void testCreateAndRetrieveMedium()
testCreateAndRetrieveComprehensive() but less focused on comprehensive feature
coverage and more on using larger transaction sizespublic void testSchemaTypes()
public void testDataTypes()
throws Exception
Exceptionpublic void testTransactionalScopeOfSchemaTypes()
public void testAutomaticTypeCreation()
public void testSchemaNameChange()
public void testIndexUpdatesWithoutReindex()
throws InterruptedException
InterruptedExceptionpublic void testIndexUpdateSyncWithMultipleInstances()
throws InterruptedException
InterruptedExceptionpublic void testImplicitKey()
ImplicitKey
to vertices, edges, and properties.
Additionally tests RelationIdentifier since this is closely related to ADJACENT and TITANID implicit keys.public void testArrayEqualityUsingImplicitKey()
public void testSelfLoop()
public void testThreadBoundTx()
public void testStaleVertex()
public void testTransactionIsolation()
public void testMultivaluedVertexProperty()
testSchemaTypes()
-->TODO: split and move this into other test cases: ordering to query, indexing to indexpublic void testLocalGraphConfiguration()
public void testMaskableGraphConfig()
public void testGlobalGraphConfig()
public void testGlobalOfflineGraphConfig()
public void testFixedGraphConfig()
public void testManagedOptionMasking()
throws BackendException
BackendExceptionpublic void testTransactionConfiguration()
public void testConsistencyEnforcement()
public void testConcurrentConsistencyEnforcement()
throws Exception
Exceptionpublic void testVertexCentricQuery()
public void testRelationTypeIndexes()
public static void evaluateQuery(TitanVertexQuery query, RelationCategory resultType, int expectedResults, int numSubQueries, boolean[] subQuerySpecs)
public static void evaluateQuery(TitanVertexQuery query, RelationCategory resultType, int expectedResults, int numSubQueries, boolean[] subQuerySpecs, PropertyKey orderKey, Order order)
public static void evaluateQuery(TitanVertexQuery query, RelationCategory resultType, int expectedResults, int numSubQueries, boolean[] subQuerySpecs, Map<PropertyKey,Order> orderMap)
public void testEdgesExceedCacheSize()
public void simpleLogTest()
throws InterruptedException
InterruptedExceptionpublic void simpleLogTestWithFailure()
throws InterruptedException
InterruptedExceptionpublic void simpleLogTest(boolean withLogFailure)
throws InterruptedException
InterruptedExceptionpublic void testGlobalGraphIndexingAndQueriesForInternalIndexes()
public void testIndexUniqueness()
public static void evaluateQuery(TitanGraphQuery query, ElementCategory resultType, int expectedResults, boolean[] subQuerySpecs, PropertyKey orderKey1, Order order1, String... intersectingIndexes)
public static void evaluateQuery(TitanGraphQuery query, ElementCategory resultType, int expectedResults, boolean[] subQuerySpecs, PropertyKey orderKey1, Order order1, PropertyKey orderKey2, Order order2, String... intersectingIndexes)
public static void evaluateQuery(TitanGraphQuery query, ElementCategory resultType, int expectedResults, boolean[] subQuerySpecs, String... intersectingIndexes)
public static void evaluateQuery(TitanGraphQuery query, ElementCategory resultType, int expectedResults, boolean[] subQuerySpecs, Map<PropertyKey,Order> orderMap, String... intersectingIndexes)
public void testForceIndexUsage()
public void testPropertyIndexPersistence()
public void testJointIndexRetrieval()
public void testLargeJointIndexRetrieval()
public void testIndexRetrieval()
public void testIndexQueryWithLabelsAndContainsIN()
public void testLimitWithMixedIndexCoverage()
public void testWithoutIndex()
public void testHasNot()
public void testVertexCentricIndexWithNull()
public void testCreateDelete()
public void testEdgeTTLWithTransactions()
throws Exception
Exceptionpublic void testEdgeTTLWithVertexCentricIndex()
throws Exception
Exceptionpublic void testEdgeTTLWithCompositeIndex()
throws Exception
Exceptionpublic void testVertexTTLWithCompositeIndex()
throws Exception
Exceptionpublic void testEdgeTTLLimitedByVertexTTL()
throws Exception
Exceptionpublic void testSettingTTLOnUnsupportedType()
throws Exception
Exceptionpublic void testGetTTLFromUnsupportedType()
throws Exception
Exceptionpublic void testSettingTTLOnNonStaticVertexLabel()
throws Exception
ExceptionCopyright © 2012–2016. All rights reserved.