Class AbstractBackendTest

java.lang.Object
de.bwaldvogel.mongo.backend.AbstractTest
de.bwaldvogel.mongo.backend.AbstractBackendTest

public abstract class AbstractBackendTest extends AbstractTest
  • Field Details

  • Constructor Details

    • AbstractBackendTest

      public AbstractBackendTest()
  • Method Details

    • getCollection

      protected com.mongodb.client.MongoCollection<org.bson.Document> getCollection(String collectionName)
    • testSimpleInsert

      @Test public void testSimpleInsert() throws Exception
      Throws:
      Exception
    • testSimpleCursor

      @Test public void testSimpleCursor()
    • testCursor_skipDocuments

      @Test public void testCursor_skipDocuments()
    • testCursor_skipAndLimitDocuments

      @Test public void testCursor_skipAndLimitDocuments()
    • testCursor_withProjection

      @Test public void testCursor_withProjection()
    • testCloseCursor

      @Test public void testCloseCursor()
    • testCursor_iteratingACursorThatNoLongerExists

      @Test public void testCursor_iteratingACursorThatNoLongerExists()
    • testSimpleInsertDelete

      @Test public void testSimpleInsertDelete() throws Exception
      Throws:
      Exception
    • testCreateCollection

      @Test public void testCreateCollection() throws Exception
      Throws:
      Exception
    • testCreateCappedCollection_invalidOptions

      @Test public void testCreateCappedCollection_invalidOptions() throws Exception
      Throws:
      Exception
    • testCreateCollectionAlreadyExists

      @Test public void testCreateCollectionAlreadyExists() throws Exception
      Throws:
      Exception
    • testUnsupportedModifier

      @Test public void testUnsupportedModifier() throws Exception
      Throws:
      Exception
    • testUpsertWithInc

      @Test public void testUpsertWithInc()
    • testBasicUpdate

      @Test public void testBasicUpdate()
    • testCollectionStats_newCollection

      @Test public void testCollectionStats_newCollection() throws Exception
      Throws:
      Exception
    • testCollectionStats

      @Test public void testCollectionStats() throws Exception
      Throws:
      Exception
    • testGetLogStartupWarnings

      @Test public void testGetLogStartupWarnings() throws Exception
      Throws:
      Exception
    • testGetLogWhichDoesNotExist

      @Test public void testGetLogWhichDoesNotExist() throws Exception
      Throws:
      Exception
    • testCompoundDateIdUpserts

      @Test public void testCompoundDateIdUpserts()
    • testCompoundSort

      @Test public void testCompoundSort()
    • testCountCommand

      @Test public void testCountCommand()
    • testNonPrimaryCountCommand

      @Test public void testNonPrimaryCountCommand()
    • testCountCommandWithQuery

      @Test public void testCountCommandWithQuery()
    • testCountCommandWithSkipAndLimit

      @Test public void testCountCommandWithSkipAndLimit()
    • testCountDocuments

      @Test public void testCountDocuments() throws Exception
      Throws:
      Exception
    • testCountDocumentsWithQuery

      @Test public void testCountDocumentsWithQuery()
    • testEstimatedDocumentCount

      @Test public void testEstimatedDocumentCount() throws Exception
      Throws:
      Exception
    • testCreateIndexes

      @Test public void testCreateIndexes()
    • testCreateIndexesWithoutNamespace

      @Test public void testCreateIndexesWithoutNamespace()
    • testCreateSecondPrimaryKeyIndex

      @Test public void testCreateSecondPrimaryKeyIndex()
    • testCreateIndexOnNonExistingDatabase

      @Test public void testCreateIndexOnNonExistingDatabase()
    • testDropAndRecreateIndex

      @Test public void testDropAndRecreateIndex() throws Exception
      Throws:
      Exception
    • testCurrentOperations

      @Test public void testCurrentOperations() throws Exception
      Throws:
      Exception
    • testListCollectionsEmpty

      @Test public void testListCollectionsEmpty() throws Exception
      Throws:
      Exception
    • testListCollections

      @Test public void testListCollections() throws Exception
      Throws:
      Exception
    • testGetCollectionNames

      @Test public void testGetCollectionNames() throws Exception
      Throws:
      Exception
    • testSystemNamespaces

      @Test public void testSystemNamespaces() throws Exception
      Throws:
      Exception
    • testDatabaseStats

      @Test public void testDatabaseStats() throws Exception
      Throws:
      Exception
    • testDeleteDecrementsCount

      @Test public void testDeleteDecrementsCount()
    • testDeleteInSystemNamespace

      @Test public void testDeleteInSystemNamespace() throws Exception
      Throws:
      Exception
    • testUpdateInSystemNamespace

      @Test public void testUpdateInSystemNamespace() throws Exception
      Throws:
      Exception
    • testDistinctQuery

      @Test public void testDistinctQuery()
    • testDistinctUuids_legacy

      @Test public void testDistinctUuids_legacy() throws Exception
      Throws:
      Exception
    • testDistinctUuids

      @Test public void testDistinctUuids() throws Exception
      Throws:
      Exception
    • testDistinctArrayField

      @Test public void testDistinctArrayField() throws Exception
      Throws:
      Exception
    • testDistinct_documentArray

      @Test public void testDistinct_documentArray() throws Exception
      Throws:
      Exception
    • testDistinct_missingCollection

      @Test public void testDistinct_missingCollection() throws Exception
      Throws:
      Exception
    • testInsertQueryAndSortBinaryTypes

      @Test public void testInsertQueryAndSortBinaryTypes() throws Exception
      Throws:
      Exception
    • testUuidAsId

      @Test public void testUuidAsId() throws Exception
      Throws:
      Exception
    • testTypeMatching

      @Test public void testTypeMatching() throws Exception
      Throws:
      Exception
    • testDistinctQueryWithDot

      @Test public void testDistinctQueryWithDot()
    • testDropCollection

      @Test public void testDropCollection() throws Exception
      Throws:
      Exception
    • testDropCollectionAlsoDropsFromDB

      @Test public void testDropCollectionAlsoDropsFromDB() throws Exception
      Throws:
      Exception
    • testDropDatabaseAlsoDropsCollectionData

      @Test public void testDropDatabaseAlsoDropsCollectionData() throws Exception
      Throws:
      Exception
    • testDropDatabaseDropsAllData

      @Test public void testDropDatabaseDropsAllData() throws Exception
      Throws:
      Exception
    • testDropEmptyDatabase

      @Test public void testDropEmptyDatabase() throws Exception
      Throws:
      Exception
    • testDropDatabaseAfterAddingIndexMultipleTimes

      @Test public void testDropDatabaseAfterAddingIndexMultipleTimes() throws Exception
      Throws:
      Exception
    • testAddIndexAgainWithDifferentOptions

      @Test public void testAddIndexAgainWithDifferentOptions() throws Exception
      Throws:
      Exception
    • testEmbeddedSort

      @Test public void testEmbeddedSort()
    • testEmbeddedSort_arrayOfDocuments

      @Test public void testEmbeddedSort_arrayOfDocuments()
    • testFindAndModifyCommandEmpty

      @Test public void testFindAndModifyCommandEmpty() throws Exception
      Throws:
      Exception
    • testFindAndModifyCommandIllegalOp

      @Test public void testFindAndModifyCommandIllegalOp() throws Exception
      Throws:
      Exception
    • testFindAndModifyCommandUpdate

      @Test public void testFindAndModifyCommandUpdate() throws Exception
      Throws:
      Exception
    • testFindAndModifyCommand_UpdateSameFields

      @Test public void testFindAndModifyCommand_UpdateSameFields() throws Exception
      Throws:
      Exception
    • testFindAndModifyCommand_UpdateFieldAndItsSubfield

      @Test public void testFindAndModifyCommand_UpdateFieldAndItsSubfield() throws Exception
      Throws:
      Exception
    • testFindOneAndUpdateError

      @Test public void testFindOneAndUpdateError() throws Exception
      Throws:
      Exception
    • testFindOneAndUpdateFields

      @Test public void testFindOneAndUpdateFields() throws Exception
      Throws:
      Exception
    • testFineOneAndUpdateNotFound

      @Test public void testFineOneAndUpdateNotFound() throws Exception
      Throws:
      Exception
    • testFineOneAndUpdateRemove

      @Test public void testFineOneAndUpdateRemove()
    • testFineOneAndUpdateReturnNew

      @Test public void testFineOneAndUpdateReturnNew()
    • testFineOneAndUpdateMax

      @Test public void testFineOneAndUpdateMax()
    • testFineOneAndUpdateMin

      @Test public void testFineOneAndUpdateMin()
    • testFindOneAndUpdateReturnOld

      @Test public void testFindOneAndUpdateReturnOld()
    • testFindOneAndUpdateSorted

      @Test public void testFindOneAndUpdateSorted() throws Exception
      Throws:
      Exception
    • testFindOneAndUpdateUpsert

      @Test public void testFindOneAndUpdateUpsert()
    • testFindOneAndUpdateUpsertReturnBefore

      @Test public void testFindOneAndUpdateUpsertReturnBefore()
    • testFindOneAndUpdateWithArrayFilters

      @Test public void testFindOneAndUpdateWithArrayFilters()
    • testUpdateManyWithArrayFilters

      @Test public void testUpdateManyWithArrayFilters()
    • testUpdateOneWithArrayFilter

      @Test public void testUpdateOneWithArrayFilter() throws Exception
      Throws:
      Exception
    • testUpsertWithArrayFilters

      @Test public void testUpsertWithArrayFilters()
    • testUpdateWithMultipleArrayFilters

      @Test public void testUpdateWithMultipleArrayFilters() throws Exception
      Throws:
      Exception
    • testUpdateWithMultipleComplexArrayFilters

      @Test public void testUpdateWithMultipleComplexArrayFilters() throws Exception
      Throws:
      Exception
    • testFindOneAndUpdate_IllegalArrayFilters

      @Test public void testFindOneAndUpdate_IllegalArrayFilters()
    • testFindOneAndUpdate_IllegalArrayFiltersPaths

      @Test public void testFindOneAndUpdate_IllegalArrayFiltersPaths()
    • testFindAndRemoveFromEmbeddedList

      @Test public void testFindAndRemoveFromEmbeddedList()
    • testFindOne

      @Test public void testFindOne()
    • testFindOneById

      @Test public void testFindOneById()
    • testFindOneIn

      @Test public void testFindOneIn()
    • testFindWithLimit

      @Test public void testFindWithLimit()
    • testFindInReverseNaturalOrder

      @Test public void testFindInReverseNaturalOrder()
    • testFindWithPattern

      @Test public void testFindWithPattern()
    • testFindWithQuery

      @Test public void testFindWithQuery()
    • testFindWithSkipLimit

      @Test public void testFindWithSkipLimit()
    • testFindWithSkipLimitInReverseOrder

      @Test public void testFindWithSkipLimitInReverseOrder()
    • testFindWithSkipLimitAfterDelete

      @Test public void testFindWithSkipLimitAfterDelete()
    • testFullUpdateWithSameId

      @Test public void testFullUpdateWithSameId() throws Exception
      Throws:
      Exception
    • testGetCollection

      @Test public void testGetCollection()
    • testNullId

      @Test public void testNullId() throws Exception
      Throws:
      Exception
    • testIdInQueryResultsInIndexOrder

      @Test public void testIdInQueryResultsInIndexOrder()
    • testInQuery_Arrays

      @Test public void testInQuery_Arrays() throws Exception
      Throws:
      Exception
    • testIdNotAllowedToBeUpdated

      @Test public void testIdNotAllowedToBeUpdated()
    • testCommandThatTriggersAnInternalException

      @Test public void testCommandThatTriggersAnInternalException() throws Exception
      Throws:
      Exception
    • testInsert

      @Test public void testInsert() throws Exception
      Throws:
      Exception
    • testInsertDuplicate

      @Test public void testInsertDuplicate() throws Exception
      Throws:
      Exception
    • testInsertDuplicateThrows

      @Test public void testInsertDuplicateThrows()
    • testInsertDuplicateWithConcernThrows

      @Test public void testInsertDuplicateWithConcernThrows()
    • testInsertIncrementsCount

      @Test public void testInsertIncrementsCount()
    • testInsertQuery

      @Test public void testInsertQuery() throws Exception
      Throws:
      Exception
    • testInsertRemove

      @Test public void testInsertRemove() throws Exception
      Throws:
      Exception
    • testInsertInSystemNamespace

      @Test public void testInsertInSystemNamespace() throws Exception
      Throws:
      Exception
    • testListDatabaseNames

      @Test public void testListDatabaseNames() throws Exception
      Throws:
      Exception
    • testQuery

      @Test public void testQuery() throws Exception
      Throws:
      Exception
    • testQueryAll

      @Test public void testQueryAll() throws Exception
      Throws:
      Exception
    • testQueryCount

      @Test public void testQueryCount() throws Exception
      Throws:
      Exception
    • testQueryLimitEmptyQuery

      @Test public void testQueryLimitEmptyQuery() throws Exception
      Throws:
      Exception
    • testQueryLimitSimpleQuery

      @Test public void testQueryLimitSimpleQuery() throws Exception
      Throws:
      Exception
    • testQueryNull

      @Test public void testQueryNull() throws Exception
      Throws:
      Exception
    • testQuerySkipLimitEmptyQuery

      @Test public void testQuerySkipLimitEmptyQuery() throws Exception
      Throws:
      Exception
    • testQuerySkipLimitSimpleQuery

      @Test public void testQuerySkipLimitSimpleQuery() throws Exception
      Throws:
      Exception
    • testQuerySort

      @Test public void testQuerySort() throws Exception
      Throws:
      Exception
    • testQueryWithFieldSelector

      @Test public void testQueryWithFieldSelector() throws Exception
      Throws:
      Exception
    • testQueryWithDotNotationFieldSelector

      @Test public void testQueryWithDotNotationFieldSelector() throws Exception
      Throws:
      Exception
    • testQueryWithDotNotationFieldSelector_Array

      @Test public void testQueryWithDotNotationFieldSelector_Array() throws Exception
      Throws:
      Exception
    • testQueryWithDocumentAsFieldSelection

      @Test public void testQueryWithDocumentAsFieldSelection() throws Exception
      Throws:
      Exception
    • testQuerySystemNamespace

      @Test public void testQuerySystemNamespace() throws Exception
      Throws:
      Exception
    • testQueryAllExpression

      @Test public void testQueryAllExpression() throws Exception
      Throws:
      Exception
    • testAndQueryWithAllAndNin

      @Test public void testAndQueryWithAllAndNin() throws Exception
      Throws:
      Exception
    • testAndQueryWithAllAndSize

      @Test public void testAndQueryWithAllAndSize() throws Exception
      Throws:
      Exception
    • testMatchesAllWithEmptyCollection

      @Test public void testMatchesAllWithEmptyCollection() throws Exception
      Throws:
      Exception
    • testQueryWithSubdocumentIndex

      @Test public void testQueryWithSubdocumentIndex() throws Exception
      Throws:
      Exception
    • testQueryBinaryData

      @Test public void testQueryBinaryData() throws Exception
      Throws:
      Exception
    • testRemove

      @Test public void testRemove()
    • testRemoveSingle

      @Test public void testRemoveSingle() throws Exception
      Throws:
      Exception
    • testRemoveReturnsModifiedDocumentCount

      @Test public void testRemoveReturnsModifiedDocumentCount()
    • testReservedCollectionNames

      @Test public void testReservedCollectionNames() throws Exception
      Throws:
      Exception
    • testServerStatus

      @Test public void testServerStatus() throws Exception
      Throws:
      Exception
    • testPing

      @Test public void testPing() throws Exception
      Throws:
      Exception
    • testReplSetGetStatus

      @Test public void testReplSetGetStatus() throws Exception
      Throws:
      Exception
    • testWhatsMyUri

      @Test public void testWhatsMyUri() throws Exception
      Throws:
      Exception
    • testSortDocuments

      @Test public void testSortDocuments() throws Exception
      Throws:
      Exception
    • testSort

      @Test public void testSort()
    • testSortByEmbeddedKey

      @Test public void testSortByEmbeddedKey()
    • testUpdate

      @Test public void testUpdate() throws Exception
      Throws:
      Exception
    • testUpdateNothing

      @Test public void testUpdateNothing() throws Exception
      Throws:
      Exception
    • testUpdateBlank

      @Test public void testUpdateBlank() throws Exception
      Throws:
      Exception
    • testUpdateEmptyPositional

      @Test public void testUpdateEmptyPositional() throws Exception
      Throws:
      Exception
    • testUpdateMultiplePositional

      @Test public void testUpdateMultiplePositional() throws Exception
      Throws:
      Exception
    • testUpdateIllegalFieldName

      @Test public void testUpdateIllegalFieldName() throws Exception
      Throws:
      Exception
    • testUpdateSubdocument

      @Test public void testUpdateSubdocument() throws Exception
      Throws:
      Exception
    • testUpdateIdNoChange

      @Test public void testUpdateIdNoChange()
    • testUpdatePush

      @Test public void testUpdatePush() throws Exception
      Throws:
      Exception
    • testUpdatePushEach

      @Test public void testUpdatePushEach() throws Exception
      Throws:
      Exception
    • testUpdatePushSlice

      @Test public void testUpdatePushSlice() throws Exception
      Throws:
      Exception
    • testUpdatePushWithNegativeAndZeroSlice

      @Test public void testUpdatePushWithNegativeAndZeroSlice() throws Exception
      Throws:
      Exception
    • testUpdatePushSort

      @Test public void testUpdatePushSort() throws Exception
      Throws:
      Exception
    • testUpdatePushSortAndSlice

      @Test public void testUpdatePushSortAndSlice() throws Exception
      Throws:
      Exception
    • testUpdatePushPosition

      @Test public void testUpdatePushPosition() throws Exception
      Throws:
      Exception
    • testUpdatePushEach_unknownModifier

      @Test public void testUpdatePushEach_unknownModifier() throws Exception
      Throws:
      Exception
    • testUpdatePushEach_illegalOptions

      @Test public void testUpdatePushEach_illegalOptions() throws Exception
      Throws:
      Exception
    • testUpdatePushAll

      @Test public void testUpdatePushAll() throws Exception
      Throws:
      Exception
    • testUpdateAddToSet

      @Test public void testUpdateAddToSet() throws Exception
      Throws:
      Exception
    • testUpdateAddToSetEach

      @Test public void testUpdateAddToSetEach() throws Exception
      Throws:
      Exception
    • testUpdateAddToSetEach_unknownModifier

      @Test public void testUpdateAddToSetEach_unknownModifier() throws Exception
      Throws:
      Exception
    • getExpectedPathPrefix_testUpdateAddToSetEach_unknownModifier

      protected String getExpectedPathPrefix_testUpdateAddToSetEach_unknownModifier()
    • testUpdateDatasize

      @Test public void testUpdateDatasize() throws Exception
      Throws:
      Exception
    • testUpdatePull

      @Test public void testUpdatePull() throws Exception
      Throws:
      Exception
    • testUpdatePullValueWithCondition

      @Test public void testUpdatePullValueWithCondition()
    • testUpdatePullDocuments

      @Test public void testUpdatePullDocuments()
    • testUpdatePullLeavesEmptyArray

      @Test public void testUpdatePullLeavesEmptyArray()
    • testUpdatePullAll

      @Test public void testUpdatePullAll() throws Exception
      Throws:
      Exception
    • testUpdatePullAll_Documents

      @Test public void testUpdatePullAll_Documents() throws Exception
      Throws:
      Exception
    • testUpdateSet

      @Test public void testUpdateSet() throws Exception
      Throws:
      Exception
    • testUpdateSet_arrayOfDocuments

      @Test public void testUpdateSet_arrayOfDocuments() throws Exception
      Throws:
      Exception
    • testUpdateSetOnInsert

      @Test public void testUpdateSetOnInsert() throws Exception
      Throws:
      Exception
    • testUpdateSetWithArrayIndices

      @Test public void testUpdateSetWithArrayIndices() throws Exception
      Throws:
      Exception
    • testUpdateUnsetWithArrayIndices

      @Test public void testUpdateUnsetWithArrayIndices() throws Exception
      Throws:
      Exception
    • testUpdateMax

      @Test public void testUpdateMax() throws Exception
      Throws:
      Exception
    • testUpdateMin

      @Test public void testUpdateMin() throws Exception
      Throws:
      Exception
    • testUpdateMinMaxWithLists

      @Test public void testUpdateMinMaxWithLists() throws Exception
      Throws:
      Exception
    • testUpdateMaxCompareNumbers

      @Test public void testUpdateMaxCompareNumbers() throws Exception
      Throws:
      Exception
    • testUpdateMaxCompareDates

      @Test public void testUpdateMaxCompareDates() throws Exception
      Throws:
      Exception
    • testUpdateMinCompareNumbers

      @Test public void testUpdateMinCompareNumbers() throws Exception
      Throws:
      Exception
    • testUpdateMinCompareDates

      @Test public void testUpdateMinCompareDates() throws Exception
      Throws:
      Exception
    • testUpdatePop

      @Test public void testUpdatePop() throws Exception
      Throws:
      Exception
    • testUpdateUnset

      @Test public void testUpdateUnset() throws Exception
      Throws:
      Exception
    • testUpdateWithIdIn

      @Test public void testUpdateWithIdIn()
    • testUpdateMulti

      @Test public void testUpdateMulti() throws Exception
      Throws:
      Exception
    • testUpdateIllegalInt

      @Test public void testUpdateIllegalInt() throws Exception
      Throws:
      Exception
    • testUpdateWithIdInMulti

      @Test public void testUpdateWithIdInMulti()
    • testUpdateWithIdInMultiReturnModifiedDocumentCount

      @Test public void testUpdateWithIdInMultiReturnModifiedDocumentCount()
    • testUpdateWithIdQuery

      @Test public void testUpdateWithIdQuery()
    • testUpdateWithObjectId

      @Test public void testUpdateWithObjectId()
    • testUpdateArrayMatch

      @Test public void testUpdateArrayMatch() throws Exception
      Throws:
      Exception
    • testUpdateArrayMatch_MultipleFields

      @Test public void testUpdateArrayMatch_MultipleFields() throws Exception
      Throws:
      Exception
    • testUpdateArrayMatch_updateMany

      @Test public void testUpdateArrayMatch_updateMany() throws Exception
      Throws:
      Exception
    • testUpdateWithNotAndSizeOperator

      @Test public void testUpdateWithNotAndSizeOperator() throws Exception
      Throws:
      Exception
    • testMultiUpdateArrayMatch

      @Test public void testMultiUpdateArrayMatch() throws Exception
      Throws:
      Exception
    • testUpsert

      @Test public void testUpsert()
    • testUpsertFieldOrder

      @Test public void testUpsertFieldOrder() throws Exception
      Throws:
      Exception
    • testUpsertWithoutId

      @Test public void testUpsertWithoutId()
    • testUpsertOnIdWithPush

      @Test public void testUpsertOnIdWithPush()
    • testUpsertWithConditional

      @Test public void testUpsertWithConditional()
    • testUpsertWithoutChange

      @Test public void testUpsertWithoutChange()
    • testUpsertWithEmbeddedQuery

      @Test public void testUpsertWithEmbeddedQuery()
    • testUpsertWithIdIn

      @Test public void testUpsertWithIdIn() throws Exception
      Throws:
      Exception
    • testUpsertWithId

      @Test public void testUpsertWithId() throws Exception
      Throws:
      Exception
    • testUpsertWithId_duplicateKey

      @Test public void testUpsertWithId_duplicateKey() throws Exception
      Throws:
      Exception
    • testReplaceOneWithId

      @Test public void testReplaceOneWithId() throws Exception
      Throws:
      Exception
    • testReplaceOneWithIdAndRevision

      @Test public void testReplaceOneWithIdAndRevision() throws Exception
      Throws:
      Exception
    • testReplaceOneUpsertsWithGeneratedId

      @Test public void testReplaceOneUpsertsWithGeneratedId() throws Exception
      Throws:
      Exception
    • testBulkUpsert

      @Test public void testBulkUpsert() throws Exception
      Throws:
      Exception
    • testUpdateWithMultiplyOperator

      @Test public void testUpdateWithMultiplyOperator() throws Exception
      Throws:
      Exception
    • testUpdateWithIllegalMultiplyFails

      @Test public void testUpdateWithIllegalMultiplyFails() throws Exception
      Throws:
      Exception
    • testIsMaster

      @Test public void testIsMaster() throws Exception
      Throws:
      Exception
    • testFindWithNullOrNoFieldFilter

      @Test public void testFindWithNullOrNoFieldFilter()
    • testInsertWithIllegalId

      @Test public void testInsertWithIllegalId() throws Exception
      Throws:
      Exception
    • testInsertsWithUniqueIndex

      @Test public void testInsertsWithUniqueIndex()
    • testInsertBinaryData

      @Test public void testInsertBinaryData() throws Exception
      Throws:
      Exception
    • testUniqueIndexWithSubdocument

      @Test public void testUniqueIndexWithSubdocument()
    • testUniqueIndexWithDeepDocuments

      @Test public void testUniqueIndexWithDeepDocuments() throws Exception
      Throws:
      Exception
    • testSecondaryUniqueIndexUpdate

      @Test public void testSecondaryUniqueIndexUpdate() throws Exception
      Throws:
      Exception
    • testSecondarySparseUniqueIndex

      @Test public void testSecondarySparseUniqueIndex() throws Exception
      Throws:
      Exception
    • testCompoundSparseUniqueIndex

      @Test public void testCompoundSparseUniqueIndex() throws Exception
      Throws:
      Exception
    • testCompoundSparseUniqueIndexOnEmbeddedDocuments

      @Test public void testCompoundSparseUniqueIndexOnEmbeddedDocuments() throws Exception
      Throws:
      Exception
    • testUpdateWithSparseUniqueIndex

      @Test public void testUpdateWithSparseUniqueIndex() throws Exception
      Throws:
      Exception
    • testSparseUniqueIndexOnEmbeddedDocument

      @Test public void testSparseUniqueIndexOnEmbeddedDocument() throws Exception
      Throws:
      Exception
    • testUniqueIndexOnArrayField

      @Test public void testUniqueIndexOnArrayField() throws Exception
      Throws:
      Exception
    • testUniqueIndexOnArrayField_updates

      @Test public void testUniqueIndexOnArrayField_updates() throws Exception
      Throws:
      Exception
    • testUniqueIndexOnArrayFieldInSubdocument

      @Test public void testUniqueIndexOnArrayFieldInSubdocument() throws Exception
      Throws:
      Exception
    • testAddNonUniqueIndexOnNonIdField

      @Test public void testAddNonUniqueIndexOnNonIdField()
    • testAddSparseIndexOnNonIdField

      @Test public void testAddSparseIndexOnNonIdField()
    • testDeleteAllDocumentsWithUniqueSparseIndex

      @Test public void testDeleteAllDocumentsWithUniqueSparseIndex()
    • testAddPartialIndexOnNonIdField

      @Test public void testAddPartialIndexOnNonIdField()
    • testCompoundUniqueIndices

      @Test public void testCompoundUniqueIndices()
    • testCompoundUniqueIndices_Subdocument

      @Test public void testCompoundUniqueIndices_Subdocument()
    • testCompoundUniqueIndicesWithInQuery

      @Test public void testCompoundUniqueIndicesWithInQuery()
    • testAddUniqueIndexOnExistingDocuments

      @Test public void testAddUniqueIndexOnExistingDocuments() throws Exception
      Throws:
      Exception
    • testAddUniqueIndexOnExistingDocuments_violatingUniqueness

      @Test public void testAddUniqueIndexOnExistingDocuments_violatingUniqueness() throws Exception
      Throws:
      Exception
    • testCursorOptionNoTimeout

      @Test public void testCursorOptionNoTimeout() throws Exception
      Throws:
      Exception
    • testBulkInsert

      @Test public void testBulkInsert() throws Exception
      Throws:
      Exception
    • testLargeBulkInsert

      @Test public void testLargeBulkInsert() throws Exception
      Throws:
      Exception
    • testBulkInsert_withDuplicate

      @Test public void testBulkInsert_withDuplicate() throws Exception
      Throws:
      Exception
    • testBulkInsert_unordered_withDuplicate

      @Test public void testBulkInsert_unordered_withDuplicate() throws Exception
      Throws:
      Exception
    • testBulkUpdateOrdered

      @Test public void testBulkUpdateOrdered() throws Exception
      Throws:
      Exception
    • testBulkUpdateUnordered

      @Test public void testBulkUpdateUnordered() throws Exception
      Throws:
      Exception
    • testUpdateCurrentDateIllegalTypeSpecification

      @Test public void testUpdateCurrentDateIllegalTypeSpecification() throws Exception
      Throws:
      Exception
    • testUpdateCurrentDate

      @Test public void testUpdateCurrentDate() throws Exception
      Throws:
      Exception
    • testRenameField

      @Test public void testRenameField() throws Exception
      Throws:
      Exception
    • testRenameField_embeddedDocument

      @Test public void testRenameField_embeddedDocument()
    • testRenameFieldIllegalValue

      @Test public void testRenameFieldIllegalValue() throws Exception
      Throws:
      Exception
    • testRenameCollection

      @Test public void testRenameCollection() throws Exception
      Throws:
      Exception
    • testRenameCollection_targetAlreadyExists

      @Test public void testRenameCollection_targetAlreadyExists() throws Exception
      Throws:
      Exception
    • testRenameCollection_dropTarget

      @Test public void testRenameCollection_dropTarget() throws Exception
      Throws:
      Exception
    • testListIndexes_empty

      @Test public void testListIndexes_empty() throws Exception
      Throws:
      Exception
    • testListIndexes

      @Test public void testListIndexes() throws Exception
      Throws:
      Exception
    • testFieldSelection_deselectId

      @Test public void testFieldSelection_deselectId()
    • testFieldSelection_deselectOneField

      @Test public void testFieldSelection_deselectOneField()
    • testFieldSelection_deselectTwoFields

      @Test public void testFieldSelection_deselectTwoFields()
    • testFieldSelection_selectAndDeselectFields

      @Test public void testFieldSelection_selectAndDeselectFields()
    • testPullWithInPattern

      @Test public void testPullWithInPattern()
    • testPullWithInPatternAnchored

      @Test public void testPullWithInPatternAnchored()
    • testPullWithInNumbers

      @Test public void testPullWithInNumbers()
    • testDocumentWithHashMap

      @Test public void testDocumentWithHashMap()
    • testFindAndOfOrs

      @Test public void testFindAndOfOrs() throws Exception
      Throws:
      Exception
    • testInOperatorWithNullValue

      @Test public void testInOperatorWithNullValue()
    • testQueryWithReference

      @Test public void testQueryWithReference() throws Exception
      Throws:
      Exception
    • testQueryWithIllegalReference

      @Test public void testQueryWithIllegalReference() throws Exception
      Throws:
      Exception
    • testAndOrNorWithEmptyArray

      @Test public void testAndOrNorWithEmptyArray() throws Exception
      Throws:
      Exception
    • testInsertLargeDocument

      @Test public void testInsertLargeDocument() throws Exception
      Throws:
      Exception
    • testInsertAndUpdateAsynchronously

      @Test public void testInsertAndUpdateAsynchronously() throws Exception
      Throws:
      Exception
    • testAllQuery

      @Test public void testAllQuery() throws Exception
      Throws:
      Exception
    • testMatchesElementQuery

      @Test public void testMatchesElementQuery() throws Exception
      Throws:
      Exception
    • testMatchesElementInEmbeddedDocuments

      @Test public void testMatchesElementInEmbeddedDocuments() throws Exception
      Throws:
      Exception
    • testElemMatchWithExpression

      @Test public void testElemMatchWithExpression() throws Exception
      Throws:
      Exception
    • testElemMatchAndAllQuery

      @Test public void testElemMatchAndAllQuery() throws Exception
      Throws:
      Exception
    • testQueryWithElemMatch

      @Test public void testQueryWithElemMatch()
    • testProjectionWithElemMatch

      @Test public void testProjectionWithElemMatch()
    • testProjectionWithElemMatch_BigSubdocument

      @Test public void testProjectionWithElemMatch_BigSubdocument()
    • testQueryWithProjection_elemMatchAndPositionalOperator

      @Test public void testQueryWithProjection_elemMatchAndPositionalOperator() throws Exception
      Throws:
      Exception
    • testProjectionWithExclusion

      @Test public void testProjectionWithExclusion() throws Exception
      Throws:
      Exception
    • testProjectionWithSlice

      @Test public void testProjectionWithSlice() throws Exception
      Throws:
      Exception
    • testMatchesNullOrMissing

      @Test public void testMatchesNullOrMissing() throws Exception
      Throws:
      Exception
    • testIllegalElementMatchQuery

      @Test public void testIllegalElementMatchQuery() throws Exception
      Throws:
      Exception
    • testQueryWithOperatorAndWithoutOperator

      @Test public void testQueryWithOperatorAndWithoutOperator() throws Exception
      Throws:
      Exception
    • testQueryWithComment

      @Test public void testQueryWithComment() throws Exception
      Throws:
      Exception
    • testValidate

      @Test public void testValidate() throws Exception
      Throws:
      Exception
    • testGetLastError

      @Test public void testGetLastError() throws Exception
      Throws:
      Exception
    • testResetError

      @Test public void testResetError() throws Exception
      Throws:
      Exception
    • testIllegalTopLevelOperator

      @Test public void testIllegalTopLevelOperator() throws Exception
      Throws:
      Exception
    • testExprQuery

      @Test public void testExprQuery() throws Exception
      Throws:
      Exception
    • testExprQuery_IllegalFieldPath

      @Test public void testExprQuery_IllegalFieldPath() throws Exception
      Throws:
      Exception
    • testQueryEmbeddedDocument

      @Test public void testQueryEmbeddedDocument() throws Exception
      Throws:
      Exception
    • testQueryWithEquivalentEmbeddedDocument

      @Test public void testQueryWithEquivalentEmbeddedDocument() throws Exception
      Throws:
      Exception
    • testOrderByMissingAndNull

      @Test public void testOrderByMissingAndNull() throws Exception
      Throws:
      Exception
    • testOrderByEmbeddedDocument

      @Test public void testOrderByEmbeddedDocument() throws Exception
      Throws:
      Exception
    • testFindByListValue

      @Test public void testFindByListValue() throws Exception
      Throws:
      Exception
    • testFindAndOrderByWithListValues

      @Test public void testFindAndOrderByWithListValues() throws Exception
      Throws:
      Exception
    • testDistinctEmbeddedDocument

      @Test public void testDistinctEmbeddedDocument() throws Exception
      Throws:
      Exception
    • testEmptyArrayQuery

      @Test public void testEmptyArrayQuery() throws Exception
      Throws:
      Exception
    • testFindAllReferences

      @Test public void testFindAllReferences() throws Exception
      Throws:
      Exception
    • testInsertAndQueryNegativeZero

      @Test public void testInsertAndQueryNegativeZero() throws Exception
      Throws:
      Exception
    • testUniqueIndexWithNegativeZero

      @Test public void testUniqueIndexWithNegativeZero() throws Exception
      Throws:
      Exception
    • testDecimal128

      @Test public void testDecimal128() throws Exception
      Throws:
      Exception
    • testDecimal128_Inc

      @Test public void testDecimal128_Inc() throws Exception
      Throws:
      Exception
    • testArrayNe

      @Test public void testArrayNe() throws Exception
      Throws:
      Exception
    • testExistsQuery

      @Test public void testExistsQuery() throws Exception
      Throws:
      Exception
    • testExistsQueryWithArray

      @Test public void testExistsQueryWithArray() throws Exception
      Throws:
      Exception
    • testExistsQueryWithTrailingDot

      @Test public void testExistsQueryWithTrailingDot() throws Exception
      Throws:
      Exception
    • testRegExQuery

      @Test public void testRegExQuery() throws Exception
      Throws:
      Exception
    • testInsertAndFindJavaScriptContent

      @Test public void testInsertAndFindJavaScriptContent() throws Exception
      Throws:
      Exception
    • assertMongoWriteException

      protected static void assertMongoWriteException(org.assertj.core.api.ThrowableAssert.ThrowingCallable callable, int expectedErrorCode, String expectedMessage)
    • assertMongoWriteException

      protected static void assertMongoWriteException(org.assertj.core.api.ThrowableAssert.ThrowingCallable callable, int expectedErrorCode, String expectedCodeName, String expectedMessage)
    • testInsertWithoutId

      @Test public void testInsertWithoutId() throws Exception
      Throws:
      Exception
    • testMultikeyIndex_simpleArrayValues

      @Test public void testMultikeyIndex_simpleArrayValues() throws Exception
      Throws:
      Exception
    • testCompoundMultikeyIndex_simpleArrayValues

      @Test public void testCompoundMultikeyIndex_simpleArrayValues() throws Exception
      Throws:
      Exception
    • testCompoundMultikeyIndex_threeKeys

      @Test public void testCompoundMultikeyIndex_threeKeys() throws Exception
      Throws:
      Exception
    • testCompoundMultikeyIndex_documents

      @Test public void testCompoundMultikeyIndex_documents() throws Exception
      Throws:
      Exception
    • testCompoundMultikeyIndex_multiple_document_keys

      @Test public void testCompoundMultikeyIndex_multiple_document_keys() throws Exception
      Throws:
      Exception
    • testCompoundMultikeyIndex_deepDocuments

      @Test public void testCompoundMultikeyIndex_deepDocuments() throws Exception
      Throws:
      Exception
    • testUpdateArrayWithPositionalAll

      @Test public void testUpdateArrayWithPositionalAll()
    • testUpdateArrayWithPositionalAll_NullValue

      @Test public void testUpdateArrayWithPositionalAll_NullValue()
    • testUpdateArrayWithPositionalAllAndArrayFilter

      @Test public void testUpdateArrayWithPositionalAllAndArrayFilter()
    • testUpdateArrayOfDocumentsWithPositionalAll

      @Test public void testUpdateArrayOfDocumentsWithPositionalAll()
    • testIllegalUpdateWithPositionalAll

      @Test public void testIllegalUpdateWithPositionalAll()
    • testUpsertWithPositionalAll

      @Test public void testUpsertWithPositionalAll() throws Exception
      Throws:
      Exception
    • testFindOneAndUpdateWithReturnDocumentBeforeWhenDocumentDidNotExist

      @Test public void testFindOneAndUpdateWithReturnDocumentBeforeWhenDocumentDidNotExist() throws Exception
      Throws:
      Exception
    • testFindOneAndReplaceWithReturnDocumentBeforeWhenDocumentDidNotExist

      @Test public void testFindOneAndReplaceWithReturnDocumentBeforeWhenDocumentDidNotExist() throws Exception
      Throws:
      Exception
    • testFindOneAndUpdateWithReturnDocumentBeforeWhenDocumentExists

      @Test public void testFindOneAndUpdateWithReturnDocumentBeforeWhenDocumentExists() throws Exception
      Throws:
      Exception
    • testFindOneAndReplaceWithReturnDocumentBeforeWhenDocumentExists

      @Test public void testFindOneAndReplaceWithReturnDocumentBeforeWhenDocumentExists() throws Exception
      Throws:
      Exception
    • testUpdateWithMultipleArrayFiltersInOnePath

      @Test public void testUpdateWithMultipleArrayFiltersInOnePath() throws Exception
      Throws:
      Exception
    • testUpdateArrayWithMultiplePositionalAll

      @Test public void testUpdateArrayWithMultiplePositionalAll()
    • testUpdateArrayWithMultiplePositionalAll_Simple

      @Test public void testUpdateArrayWithMultiplePositionalAll_Simple()
    • testUpdateArrayWithIllegalMultiplePositionalAll

      @Test public void testUpdateArrayWithIllegalMultiplePositionalAll()
    • testGetKeyValues_multiKey_document_nested_objects

      @Test public void testGetKeyValues_multiKey_document_nested_objects() throws Exception
      Throws:
      Exception
    • testComparisons

      @Test public void testComparisons() throws Exception
      Throws:
      Exception
    • testMinKeyComparison

      @Test public void testMinKeyComparison()
    • testMaxKeyComparison

      @Test public void testMaxKeyComparison()
    • testMinMaxKeyRangeQuery

      @Test public void testMinMaxKeyRangeQuery() throws Exception
      Throws:
      Exception
    • testOldAndNewUuidTypes

      @Test public void testOldAndNewUuidTypes() throws Exception
      Throws:
      Exception
    • testUpdateWithDollarFieldNames

      @Test public void testUpdateWithDollarFieldNames() throws Exception
      Throws:
      Exception
    • testEndSessions

      @Test public void testEndSessions()
    • testLongIndex

      @Test public void testLongIndex()