public abstract class AbstractBackendTest extends AbstractTest
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
OTHER_TEST_DATABASE_NAME |
collection, db, serverAddress, syncClient, TEST_DATABASE_NAME| Constructor and Description |
|---|
AbstractBackendTest() |
createBackend, restart, setUp, setUpBackend, tearDownprotected static final java.lang.String OTHER_TEST_DATABASE_NAME
protected com.mongodb.client.MongoCollection<org.bson.Document> getCollection(java.lang.String collectionName)
protected com.mongodb.client.MongoDatabase getAdminDb()
public void testSimpleInsert()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimpleInsertDelete()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateCollection()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateCollectionAlreadyExists()
throws java.lang.Exception
java.lang.Exceptionpublic void testUnsupportedModifier()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpsertWithInc()
public void testBasicUpdate()
public void testCollectionStats()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetLogStartupWarnings()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetLogWhichDoesNotExist()
throws java.lang.Exception
java.lang.Exceptionpublic void testCompoundDateIdUpserts()
public void testCompoundSort()
public void testCountCommand()
public void testCountCommandWithQuery()
public void testCountCommandWithSkipAndLimit()
public void testCountDocuments()
throws java.lang.Exception
java.lang.Exceptionpublic void testCountDocumentsWithQuery()
public void testEstimatedDocumentCount()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateIndexes()
public void testCurrentOperations()
throws java.lang.Exception
java.lang.Exceptionpublic void testListCollectionsEmpty()
throws java.lang.Exception
java.lang.Exceptionpublic void testListCollections()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetCollectionNames()
throws java.lang.Exception
java.lang.Exceptionpublic void testSystemNamespaces()
throws java.lang.Exception
java.lang.Exceptionpublic void testDatabaseStats()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleteDecrementsCount()
public void testDeleteInSystemNamespace()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateInSystemNamespace()
throws java.lang.Exception
java.lang.Exceptionpublic void testDistinctQuery()
public void testDistinctUuids()
throws java.lang.Exception
java.lang.Exceptionpublic void testInsertQueryAndSortBinaryTypes()
throws java.lang.Exception
java.lang.Exceptionpublic void testUuidAsId()
throws java.lang.Exception
java.lang.Exceptionpublic void testTypeMatching()
throws java.lang.Exception
java.lang.Exceptionpublic void testDistinctQueryWithDot()
public void testDropCollection()
throws java.lang.Exception
java.lang.Exceptionpublic void testDropCollectionAlsoDropsFromDB()
throws java.lang.Exception
java.lang.Exceptionpublic void testDropDatabaseAlsoDropsCollectionData()
throws java.lang.Exception
java.lang.Exceptionpublic void testDropDatabaseDropsAllData()
throws java.lang.Exception
java.lang.Exceptionpublic void testEmbeddedSort()
public void testFindAndModifyCommandEmpty()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindAndModifyCommandIllegalOp()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindAndModifyCommandUpdate()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindOneAndUpdateError()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindOneAndUpdateFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testFineOneAndUpdateNotFound()
throws java.lang.Exception
java.lang.Exceptionpublic void testFineOneAndUpdateRemove()
public void testFineOneAndUpdateReturnNew()
public void testFineOneAndUpdateMax()
public void testFineOneAndUpdateMin()
public void testFindOneAndUpdateReturnOld()
public void testFindOneAndUpdateSorted()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindOneAndUpdateUpsert()
public void testFindOneAndUpdateUpsertReturnBefore()
public void testFindOneAndUpdateWithArrayFilters()
public void testUpdateManyWithArrayFilters()
public void testUpsertWithArrayFilters()
public void testUpdateWithMultipleArrayFilters()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindOneAndUpdate_IllegalArrayFilters()
public void testFindAndRemoveFromEmbeddedList()
public void testFindOne()
public void testFindOneById()
public void testFindOneIn()
public void testFindWithLimit()
public void testFindInReverseNaturalOrder()
public void testFindWithPattern()
public void testFindWithQuery()
public void testFindWithSkipLimit()
public void testFindWithSkipLimitInReverseOrder()
public void testFindWithSkipLimitAfterDelete()
public void testFullUpdateWithSameId()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetCollection()
public void testNullId()
throws java.lang.Exception
java.lang.Exceptionpublic void testIdInQueryResultsInIndexOrder()
public void testInQuery_Arrays()
throws java.lang.Exception
java.lang.Exceptionpublic void testIdNotAllowedToBeUpdated()
public void testIllegalCommand()
throws java.lang.Exception
java.lang.Exceptionpublic void testInsert()
throws java.lang.Exception
java.lang.Exceptionpublic void testInsertDuplicate()
throws java.lang.Exception
java.lang.Exceptionpublic void testInsertDuplicateThrows()
public void testInsertDuplicateWithConcernThrows()
public void testInsertIncrementsCount()
public void testInsertQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testInsertRemove()
throws java.lang.Exception
java.lang.Exceptionpublic void testInsertInSystemNamespace()
throws java.lang.Exception
java.lang.Exceptionpublic void testListDatabaseNames()
throws java.lang.Exception
java.lang.Exceptionpublic void testQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryAll()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryCount()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryLimitEmptyQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryLimitSimpleQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryNull()
throws java.lang.Exception
java.lang.Exceptionpublic void testQuerySkipLimitEmptyQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testQuerySkipLimitSimpleQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testQuerySort()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryWithFieldSelector()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryWithDotNotationFieldSelector()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryWithDotNotationFieldSelector_Array()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryWithIllegalFieldSelection()
throws java.lang.Exception
java.lang.Exceptionpublic void testQuerySystemNamespace()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryAllExpression()
throws java.lang.Exception
java.lang.Exceptionpublic void testAndQueryWithAllAndNin()
throws java.lang.Exception
java.lang.Exceptionpublic void testMatchesAllWithEmptyCollection()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryWithSubdocumentIndex()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryBinaryData()
throws java.lang.Exception
java.lang.Exceptionpublic void testRemove()
public void testRemoveSingle()
throws java.lang.Exception
java.lang.Exceptionpublic void testRemoveReturnsModifiedDocumentCount()
public void testReservedCollectionNames()
throws java.lang.Exception
java.lang.Exceptionpublic void testServerStatus()
throws java.lang.Exception
java.lang.Exceptionpublic void testPing()
throws java.lang.Exception
java.lang.Exceptionpublic void testReplSetGetStatus()
throws java.lang.Exception
java.lang.Exceptionpublic void testWhatsMyUri()
throws java.lang.Exception
java.lang.Exceptionpublic void testSortDocuments()
throws java.lang.Exception
java.lang.Exceptionpublic void testSort()
public void testSortByEmbeddedKey()
public void testUpdate()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateNothing()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateBlank()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateEmptyPositional()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateMultiplePositional()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateIllegalFieldName()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateSubdocument()
throws java.lang.Exception
java.lang.Exceptionpublic void testInsertWithIllegalFieldNames()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateIdNoChange()
public void testUpdatePush()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdatePushAll()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateAddToSet()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateAddToSetEach()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateDatasize()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdatePull()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdatePullValueWithCondition()
public void testUpdatePullDocuments()
public void testUpdatePullLeavesEmptyArray()
public void testUpdatePullAll()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdatePullAll_Documents()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateSet()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateSetOnInsert()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateSetWithArrayIndices()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateUnsetWithArrayIndices()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateMax()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateMin()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateMinMaxWithLists()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateMaxCompareNumbers()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateMaxCompareDates()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateMinCompareNumbers()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateMinCompareDates()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdatePop()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateUnset()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateWithIdIn()
public void testUpdateMulti()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateIllegalInt()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateWithIdInMulti()
public void testUpdateWithIdInMultiReturnModifiedDocumentCount()
public void testUpdateWithIdQuery()
public void testUpdateWithObjectId()
public void testUpdateArrayMatch()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateWithNotAndSizeOperator()
throws java.lang.Exception
java.lang.Exceptionpublic void testMultiUpdateArrayMatch()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpsert()
public void testUpsertFieldOrder()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpsertWithoutId()
public void testUpsertOnIdWithPush()
public void testUpsertWithConditional()
public void testUpsertWithoutChange()
public void testUpsertWithEmbeddedQuery()
public void testUpsertWithIdIn()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpsertWithId()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpsertWithId_duplicateKey()
throws java.lang.Exception
java.lang.Exceptionpublic void testBulkUpsert()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateWithMultiplyOperator()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateWithIllegalMultiplyFails()
throws java.lang.Exception
java.lang.Exceptionpublic void testIsMaster()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindWithNullOrNoFieldFilter()
public void testInsertWithIllegalId()
throws java.lang.Exception
java.lang.Exceptionpublic void testInsertsWithUniqueIndex()
public void testInsertBinaryData()
throws java.lang.Exception
java.lang.Exceptionpublic void testUniqueIndexWithSubdocument()
public void testUniqueIndexWithDeepDocuments()
throws java.lang.Exception
java.lang.Exceptionpublic void testSecondaryUniqueIndexUpdate()
throws java.lang.Exception
java.lang.Exceptionpublic void testSecondarySparseUniqueIndex()
throws java.lang.Exception
java.lang.Exceptionpublic void testCompoundSparseUniqueIndex()
throws java.lang.Exception
java.lang.Exceptionpublic void testCompoundSparseUniqueIndexOnEmbeddedDocuments()
throws java.lang.Exception
java.lang.Exceptionpublic void testSparseUniqueIndexOnEmbeddedDocument()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddNonUniqueIndexOnNonIdField()
public void testAddSparseIndexOnNonIdField()
public void testDeleteAllDocumentsWithUniqueSparseIndex()
public void testAddPartialIndexOnNonIdField()
public void testCompoundUniqueIndices()
public void testCursorOptionNoTimeout()
throws java.lang.Exception
java.lang.Exceptionpublic void testBulkInsert()
throws java.lang.Exception
java.lang.Exceptionpublic void testBulkUpdateOrdered()
throws java.lang.Exception
java.lang.Exceptionpublic void testBulkUpdateUnordered()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateCurrentDateIllegalTypeSpecification()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateCurrentDate()
throws java.lang.Exception
java.lang.Exceptionpublic void testRenameField()
throws java.lang.Exception
java.lang.Exceptionpublic void testRenameField_embeddedDocument()
public void testRenameFieldIllegalValue()
throws java.lang.Exception
java.lang.Exceptionpublic void testRenameCollection()
throws java.lang.Exception
java.lang.Exceptionpublic void testRenameCollection_targetAlreadyExists()
throws java.lang.Exception
java.lang.Exceptionpublic void testRenameCollection_dropTarget()
throws java.lang.Exception
java.lang.Exceptionpublic void testListIndexes_empty()
throws java.lang.Exception
java.lang.Exceptionpublic void testListIndexes()
throws java.lang.Exception
java.lang.Exceptionpublic void testFieldSelection_deselectId()
public void testFieldSelection_deselectOneField()
public void testFieldSelection_deselectTwoFields()
public void testFieldSelection_selectAndDeselectFields()
public void testPullWithInPattern()
public void testPullWithInPatternAnchored()
public void testPullWithInNumbers()
public void testDocumentWithHashMap()
public void testFindAndOfOrs()
throws java.lang.Exception
java.lang.Exceptionpublic void testInOperatorWithNullValue()
public void testQueryWithReference()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryWithIllegalReference()
throws java.lang.Exception
java.lang.Exceptionpublic void testAndOrNorWithEmptyArray()
throws java.lang.Exception
java.lang.Exceptionpublic void testInsertLargeDocument()
throws java.lang.Exception
java.lang.Exceptionpublic void testInsertAndUpdateAsynchronously()
throws java.lang.Exception
java.lang.Exceptionpublic void testAllQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testMatchesElementQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testMatchesElementInEmbeddedDocuments()
throws java.lang.Exception
java.lang.Exceptionpublic void testElemMatchWithExpression()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryWithElemMatch()
public void testProjectionWithElemMatch()
public void testProjectionWithElemMatch_BigSubdocument()
public void testProjectionWithSlice()
throws java.lang.Exception
java.lang.Exceptionpublic void testMatchesNullOrMissing()
throws java.lang.Exception
java.lang.Exceptionpublic void testIllegalElementMatchQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryWithOperatorAndWithoutOperator()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryWithComment()
throws java.lang.Exception
java.lang.Exceptionpublic void testValidate()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetLastError()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetPrevError()
throws java.lang.Exception
java.lang.Exceptionpublic void testResetError()
throws java.lang.Exception
java.lang.Exceptionpublic void testIllegalTopLevelOperator()
throws java.lang.Exception
java.lang.Exceptionpublic void testExprQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testExprQuery_IllegalFieldPath()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryEmbeddedDocument()
throws java.lang.Exception
java.lang.Exceptionpublic void testQueryWithEquivalentEmbeddedDocument()
throws java.lang.Exception
java.lang.Exceptionpublic void testOrderByMissingAndNull()
throws java.lang.Exception
java.lang.Exceptionpublic void testOrderByEmbeddedDocument()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindByListValue()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindAndOrderByWithListValues()
throws java.lang.Exception
java.lang.Exceptionpublic void testDistinctEmbeddedDocument()
throws java.lang.Exception
java.lang.Exceptionpublic void testEmptyArrayQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindAllReferences()
throws java.lang.Exception
java.lang.Exceptionpublic void testInsertAndQueryNegativeZero()
throws java.lang.Exception
java.lang.Exceptionpublic void testUniqueIndexWithNegativeZero()
throws java.lang.Exception
java.lang.Exceptionpublic void testDecimal128()
throws java.lang.Exception
java.lang.Exceptionpublic void testArrayNe()
throws java.lang.Exception
java.lang.Exceptionpublic void testExistsQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testExistsQueryWithArray()
throws java.lang.Exception
java.lang.Exceptionpublic void testExistsQueryWithTrailingDot()
throws java.lang.Exception
java.lang.Exceptionpublic void testRegExQuery()
throws java.lang.Exception
java.lang.Exception