public abstract class JanusGraphTest extends JanusGraphBaseTest
| Modifier and Type | Class and Description |
|---|---|
static interface |
JanusGraphTest.Equals<T>
Test the different data types that JanusGraph supports natively and ensure that invalid data types aren't allowed
|
JanusGraphBaseTest.TestConfigOptionconfig, DEFAULT_THREAD_COUNT, features, graph, ID_NAME, LABEL_NAME, logManagers, mgmt, readConfig, testInfo, tx| Constructor and Description |
|---|
JanusGraphTest() |
assertMissing, asStream, clearGraph, clopen, close, closeLogManager, createExternalEdgeIndex, createExternalVertexIndex, disableIndex, discardIndex, dropIndex, enableIndex, evaluateQuery, evaluateQuery, evaluateQuery, evaluateQuery, evaluateQuery, evaluateQuery, evaluateQuery, executeScanJob, executeScanJob, finishSchema, getBackend, getConfig, getConfiguration, getE, getExternalIndex, getForceIndexGraph, getForceIndexGraph, getId, getOnlyEdge, getOnlyElement, getOnlyElement, getOnlyElement, getOnlyElement, getOnlyVertex, getStoreFeatures, getThreadCount, getV, getVertex, getVertex, getVertex, getVertex, makeKey, makeKeyedEdgeLabel, makeLabel, makeVertexIndexedKey, makeVertexIndexedUniqueKey, markIndexDiscarded, n, newTx, open, openTxLog, openUserLog, option, round, setUp, tearDown, validateConfigOptions, verifyElementOrder, verifyElementOrder, wrapAround@Test public void testUpdateVertexPropThenRemoveProp()
@Test public void testNestedAddVertexPropThenRemoveProp()
@Test public void testUpdateVertexPropThenRemoveVertex()
@Test public void testUpdatePropertyPropThenRemoveProperty()
@Test public void testUpdatePropertyPropThenRemovePropertyProp()
@Test public void testUpdatePropertyPropThenRemoveVertex()
@Test public void testUpdateEdgePropertyThenRemoveEdge()
@Test public void testUpdateForkEdgePropertyThenRemoveEdge()
@Test public void testUpdateForkEdgePropertyThenFindEdgeById()
@Test public void testOpenClose()
@Test
public void testClearStorage()
throws Exception
Exception@Test
public void testBasic()
throws BackendException
BackendException@Test public void testVariables()
@Test public void testVertexRemoval()
@Test public void testGlobalIteration()
@Test public void testMediumCreateRetrieve()
@Test public void testSchemaTypes()
@Test public void testDataTypes()
@ParameterizedTest @MethodSource(value="generateParametersTestSupportOfDataTypes") public <T> void testSupportOfDataTypes(Class<T> classes, T data, JanusGraphTest.Equals<T> a)
@Test public void testTransactionalScopeOfSchemaTypes()
@Test public void testDefaultSchemaMaker()
JanusGraphDefaultSchemaMaker@Test public void testDisableDefaultSchemaMaker()
DisableDefaultSchemaMaker which throws Exceptions for
unknown labels and properties@Test public void testIgnorePropertySchemaMaker()
IgnorePropertySchemaMaker which ignores unknown properties
without throwing exceptions@Test public void testUpdateSchemaChangeNameForEdgeLabel()
@Test public void testUpdateSchemaChangeNameForVertexLabel()
@Test
public void testDiscardAndDropRegisteredIndex()
throws ExecutionException,
InterruptedException
@Test
public void testReenableDisabledIndex()
throws ExecutionException,
InterruptedException
@Test
public void testCreateCompositeIndexThatPreviouslyExisted()
throws ExecutionException,
InterruptedException
@Test public void testUpdateSchemaChangeNameForPropertyKey()
@Test public void testUpdateSchemaChangeNameForCompositeIndex()
@Test public void testUpdateSchemaChangeNameForRelationIndex()
@Test public void testGotGLoadWithoutIndexBackendException()
@Test
public void testGotGIndexRemoval()
throws InterruptedException,
ExecutionException
@Test public void testVertexCentricEdgeIndexOnSimpleMultiplicityShouldWork()
@Test public void testVertexCentricPropertyIndexOnSetCardinalityShouldWork()
@Test public void testVertexCentricIndexOrderingOnEdgePropertyWithCardinalityList()
@Test public void testVertexCentricIndexOrderingOnMetaPropertyWithCardinalityList()
public void testIndexUpdatesWithReindexAndRemove()
throws InterruptedException,
ExecutionException
@Tag(value="BRITTLE_TESTS")
@Test
public void testIndexUpdateSyncWithMultipleInstances()
throws InterruptedException
InterruptedException@Tag(value="BRITTLE_TESTS")
@Test
public void testIndexShouldRegisterWhenWeRemoveAnInstance()
throws InterruptedException
InterruptedException@Test public void testIndexShouldBeEnabledForExistingPropertyKeyAndConstrainedToNewVertexLabel()
@Test public void testIndexShouldBeEnabledForExistingPropertyKeyAndConstrainedToNewEdgeLabel()
@Test public void testIndexShouldNotBeEnabledForExistingPropertyKeyAndConstrainedToExistingVertexLabel()
@Test public void testIndexShouldNotBeEnabledForExistingPropertyKeyAndConstrainedToExistingEdgeLabel()
@Test public void testIndexShouldNotBeEnabledForExistingPropertyKeyWithoutLabelConstraint()
@Test public void testRelationTypeIndexShouldBeEnabledForExistingPropertyKeyAndNewRelationType()
@Test public void testRelationTypeIndexShouldBeEnabledForNewPropertyKeyAndExistingRelationType()
@Test public void testRelationTypeIndexShouldBeEnabledForSingleNewPropertyKeyAndExistingRelationType()
@Test public void testRelationTypeIndexShouldBeEnabledForSingleNewPropertyKeyAndNewRelationType()
@Test public void testRelationTypeIndexShouldBeEnabledForNewPropertyKeyAndNewRelationType()
@Test public void testRelationTypeIndexShouldNotBeEnabledForExistingPropertyKeyAndExistingRelationType()
@Test public void testPropertyCardinality()
@Test public void testImplicitKey()
ImplicitKey
to vertices, edges, and properties.
Additionally tests RelationIdentifier since this is closely related to ADJACENT and JANUSGRAPHID implicit keys.
@Test public void testArrayEqualityUsingImplicitKey()
@Test public void testSelfLoop()
@Test public void testThreadBoundTx()
@Test public void testPropertyIdAccessInDifferentTransaction()
@Test public void testCacheForceRefresh()
@Test public void testTransactionScopeTransition()
@Test public void testNestedTransactions()
@Test public void testStaleVertex()
@Test public void testTransactionIsolation()
@Test public <V> void testMultivaluedVertexProperty()
testSchemaTypes()
--> TODO: split and move this into other test cases: ordering to query, indexing to index
@Test public void testLocalGraphConfiguration()
@Test public void testMaskableGraphConfig()
@Test public void testGlobalGraphConfig()
@Test public void testGlobalOfflineGraphConfig()
@Test public void testFixedGraphConfig()
@Test
public void testManagedOptionMasking()
throws BackendException
BackendException@Test public void testTransactionConfiguration()
@Test public void testConsistencyEnforcement()
@Test
public void testConcurrentConsistencyEnforcement()
throws Exception
LocalLockMediator is used to resolve lock contentions. If there is only
one lock needed in the whole transaction, exactly one transaction shall succeed and others shall fail due to local
lock contention. If there is more than one lock needed in the transaction, at most one transaction shall succeed
and others shall fail due to local lock contention.Exception@Test public void testVertexCentricQuery()
public void testVertexCentricQuery(int noVertices)
@Test public void shouldBeAbleToIterateManagementIterablesMultipleTimes()
@Test public void testRelationTypeIndexes()
@Test public void testAutoSchemaMakerAllowsToSetCardinalityList()
@Test public void testAutoSchemaMakerAllowsToSetCardinalitySet()
@Test public void testAutoSchemaMakerAllowsToSetCardinalitySingle()
@Test public void testEnforcedSchemaAllowsDefinedVertexProperties()
@Test public void testSchemaIsEnforcedForVertexProperties()
@Test public void testAllowDisablingSchemaConstraintForVertexProperty()
@Test public void testAllowDisablingSchemaConstraintForConnection()
@Test public void testAllowDisablingSchemaConstraintForEdgeProperty()
@Test public void testAutoSchemaMakerForVertexPropertyConstraints()
@Test public void testSupportDirectCommitOfSchemaChangesForVertexProperties()
@Test public void testSupportDirectCommitOfSchemaChangesForConnection()
@Test public void testSupportDirectCommitOfSchemaChangesForEdgeProperties()
@Test public void testEnforcedSchemaAllowsDefinedEdgeProperties()
@Test public void testSchemaIsEnforcedForEdgeProperties()
@Test public void testAllowSingleCardinalityForEdgeProperties()
@Test public void testBanListCardinalityForEdgeProperties()
@Test public void testBanSetCardinalityForEdgeProperties()
@Test public void testAutoSchemaMakerForEdgePropertyConstraints()
@Test public void testEnforcedSchemaAllowsDefinedConnections()
@Test public void testSchemaIsEnforcedForConnections()
@Test public void testAutoSchemaMakerForConnectionConstraints()
@Test public void testSupportChangeNameOfEdgeAndUpdateConnections()
@Test public void testAllowEnforcedComplexConnections()
@Test public void testEnforceComplexConnections()
@Test public void testEdgesExceedCacheSize()
@Test public void testRemoveCachedVertexVisibility()
@Test public void testNestedContainPredicates()
@Test public void testTinkerPopCardinality()
@Test public void testMultiQueryMetricsWhenReadingFromBackend()
@Test public void testLimitBatchSizeForMultiQueryRepeatStep()
@Test public void testLimitBatchSizeForMultiQueryMultiCardinalityProperties()
@Test public void testMultiQueryPropertiesWithLimit()
protected void verityMultiQueryPropertiesWithLimit(JanusGraphVertex[] cs)
protected JanusGraphVertex[] setupDataForMultiQueryMultiCardinalityProperties()
@Test public void testLimitBatchSizeForMultiQuery()
@Test public void testMultiSliceDBCachedRequests()
protected org.apache.tinkerpop.gremlin.process.traversal.util.TraversalMetrics testLimitedBatch(Supplier<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,?>> traversal, Object... settings)
protected long countBackendQueriesOfSize(long size,
Collection<? extends org.apache.tinkerpop.gremlin.process.traversal.util.Metrics> metrics)
@Test public void testSimpleTinkerPopTraversal()
@Test public void testHasKeyOnEdgePropertyTraversal()
@Test public void testHasValueOnEdgePropertyTraversal()
@Test public void testHasKeyAndHasValueOnEdgePropertyTraversal()
@ParameterizedTest
@ValueSource(ints={0,1,2,3,10,15,2147483647})
public void testBatchPropertiesPrefetching(int txCacheSize)
@ParameterizedTest
@ValueSource(ints={0,1,2,3,10,15,2147483647})
public void testBatchPropertiesPrefetchingFromEdges(int txCacheSize)
@ParameterizedTest
@ValueSource(booleans={true,false})
public void simpleLogTest(boolean useStringId)
throws InterruptedException
InterruptedException@ParameterizedTest
@ValueSource(booleans={true,false})
public void simpleLogTestWithFailure(boolean useStringId)
throws InterruptedException
InterruptedException@Test public void testGlobalGraphIndexingAndQueriesForInternalIndexes()
@Test public void testTinkerPropInfinityLimit()
@Test public void testTinkerPopTextContainingFindsCorrectValue()
@Test public void testTinkerPopTextContainingFindsRightNumberOfValues()
@Test public void testTinkerPopTextPredicatesConnectedViaAnd()
@Test public void testTinkerPopTextStartingWith()
@Test public void testIndexUniqueness()
@Test public void testForceIndexUsage()
@Test public void testLargeJointIndexRetrieval()
@Test public void testIndexQueryWithLabelsAndContainsIN()
@Test public void testLimitWithMixedIndexCoverage()
@Test public void testWithoutIndex()
@Test public void testNeqQuery()
@Test public void testHasNullQuery()
@Test public void testNullValueMutation()
@Test public void testHasNot()
@Test public void testNotHas()
@Test public void testGraphCentricQueryProfiling()
@Test
public void testGraphCentricQueryProfilingWithLimitAdjusting()
throws BackendException
BackendException@Test public void testVertexCentricQueryProfiling()
@Test public void testVertexCentricIndexWithNull()
@Test public void testCreateDelete()
@Test public void testRemoveEdge()
@Test
public void testEdgeTTLWithTransactions()
throws Exception
Exception@Test
@Tag(value="BRITTLE_TESTS")
public void testEdgeTTLWithIndex()
throws Exception
Exception@Test
@Tag(value="BRITTLE_TESTS")
public void testPropertyTTLTiming()
throws Exception
Exception@Test
public void testVertexTTLWithCompositeIndex()
throws Exception
Exception@Test
@Tag(value="BRITTLE_TESTS")
public void testEdgeTTLLimitedByVertexTTL()
throws Exception
Exception@Test public void testSettingTTLOnUnsupportedType()
@Test
public void testUnsettingTTL()
throws InterruptedException
InterruptedException@Test public void testGettingUndefinedEdgeLabelTTL()
@Test public void testGettingUndefinedVertexLabelTTL()
@Test public void testGetTTLFromUnsupportedType()
@Test public void testSettingTTLOnNonStaticVertexLabel()
@Test
public void testEdgeTTLImplicitKey()
throws Exception
Exception@Test
public void testVertexTTLImplicitKey()
throws Exception
Exception@Test public void testAutoSchemaMakerForVertexPropertyDataType()
@Test public void testAutoSchemaMakerForEdgePropertyDataType()
@Test
public void testWriteAndReadWithJanusGraphIoRegistryWithGryo(@TempDir
Path tempDir)
@Test
public void testWriteAndReadWithJanusGraphIoRegistryWithGraphson(@TempDir
Path tempDir)
@Test public void testGetMatchingIndexes()
@Test public void testExistsMatchingIndex()
@Test public void testHasQueryWithNullKey()
@Test public void testQueryWithNullPropertyKey()
@Test public void testMultipleHasQueriesWhereOneUsesNullKey()
@Test
public void testReindexingForEdgeIndex()
throws InterruptedException,
ExecutionException
public void performReindexAndVerifyEdgeCount(String indexName, String edgeLabel, String propKey, org.apache.tinkerpop.gremlin.structure.Vertex[] vertices, int[] propValues, org.apache.tinkerpop.gremlin.structure.Direction[] dirs, int[] resultsBeforeReindex) throws InterruptedException, ExecutionException
@Test public void testMultipleOrClauses()
@Test public void testMultipleNestedOrClauses()
@Test public void testVerticesDropAfterWhereWithBatchQueryEnabled()
@Test
public void testMgmtRemoveGhostVertices()
throws ExecutionException,
InterruptedException
@Test
public void testDirectCompositeIndexEntryModification()
throws BackendException
BackendException@Test
public void testStaleIndexForceRemoveVertexFromGraphIndex()
throws BackendException
BackendException@Test
public void testEdgeEntryIndexForceRemoveFromGraphIndex()
throws BackendException
BackendException@ParameterizedTest
@ValueSource(booleans={true,false})
public void testStaleIndexForceRemoveVertexFromGraphIndexByHelperMethod(boolean withLabelConstraint)
throws BackendException
BackendException@Test public void shouldThrowExceptionWhenIncorrectAmountOfPropertiesIsUsedDuringForceIndexRecordRemoval()
@Test public void shouldThrowExceptionWhenIncorrectPropertiesAreUsedDuringForceIndexRecordRemoval()
protected void clopenForStaleIndex()
@Test public void testPropertiesAfterProjectWithByThenChooseWithBatchQueryEnabled()
@Test public void testGremlinScriptEvaluationWithGremlinLangScriptEngine()
@Test public void testGremlinScriptEvaluationWithGremlinGroovyScriptEngine()
@Test public void shouldSkipDBCacheAccess()
@Test public void testVertexPropertiesForceInvalidationFromDBCache()
@Test
public void testIndexStoreForceInvalidationFromDBCache()
throws InterruptedException,
ExecutionException
@Test
public void testIndexWithIndexOnlyConstraintForceInvalidationFromDBCache()
throws InterruptedException,
ExecutionException
@Test
public void testFullDBCacheInvalidation()
throws InterruptedException,
ExecutionException
@ParameterizedTest
@ValueSource(booleans={true,false})
public void testParallelBackendOps(boolean parallelBackendOpsEnabled)
Copyright © 2012–2024. All rights reserved.