Package de.bwaldvogel.mongo.backend
Class AbstractBackendTest
- java.lang.Object
-
- de.bwaldvogel.mongo.backend.AbstractTest
-
- de.bwaldvogel.mongo.backend.AbstractBackendTest
-
public abstract class AbstractBackendTest extends AbstractTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceAbstractBackendTest.Callable
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringOTHER_TEST_DATABASE_NAME-
Fields inherited from class de.bwaldvogel.mongo.backend.AbstractTest
backend, clock, collection, db, serverAddress, syncClient, TEST_DATABASE_NAME
-
-
Constructor Summary
Constructors Constructor Description AbstractBackendTest()
-
Method Summary
-
Methods inherited from class de.bwaldvogel.mongo.backend.AbstractTest
assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, createBackend, dropAllDatabases, killCursors, listDatabaseNames, restart, setUp, setUpBackend, tearDown
-
-
-
-
Field Detail
-
OTHER_TEST_DATABASE_NAME
protected static final java.lang.String OTHER_TEST_DATABASE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
runCommand
protected org.bson.Document runCommand(java.lang.String commandName)
-
getCollection
protected com.mongodb.client.MongoCollection<org.bson.Document> getCollection(java.lang.String collectionName)
-
getAdminDb
protected com.mongodb.client.MongoDatabase getAdminDb()
-
getClientWithStandardUuid
protected static com.mongodb.MongoClient getClientWithStandardUuid()
-
testSimpleInsert
@Test public void testSimpleInsert() throws java.lang.Exception- Throws:
java.lang.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 java.lang.Exception- Throws:
java.lang.Exception
-
testCreateCollection
@Test public void testCreateCollection() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateCappedCollection_invalidOptions
@Test public void testCreateCappedCollection_invalidOptions() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateCollectionAlreadyExists
@Test public void testCreateCollectionAlreadyExists() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUnsupportedModifier
@Test public void testUnsupportedModifier() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpsertWithInc
@Test public void testUpsertWithInc()
-
testBasicUpdate
@Test public void testBasicUpdate()
-
testCollectionStats_newCollection
@Test public void testCollectionStats_newCollection() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCollectionStats
@Test public void testCollectionStats() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetLogStartupWarnings
@Test public void testGetLogStartupWarnings() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetLogWhichDoesNotExist
@Test public void testGetLogWhichDoesNotExist() throws java.lang.Exception- Throws:
java.lang.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 java.lang.Exception- Throws:
java.lang.Exception
-
testCountDocumentsWithQuery
@Test public void testCountDocumentsWithQuery()
-
testEstimatedDocumentCount
@Test public void testEstimatedDocumentCount() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateIndexes
@Test public void testCreateIndexes()
-
testCreateIndexesWithoutNamespace
@Test public void testCreateIndexesWithoutNamespace()
-
testCreateSecondPrimaryKeyIndex
@Test public void testCreateSecondPrimaryKeyIndex()
-
testDropAndRecreateIndex
@Test public void testDropAndRecreateIndex() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCurrentOperations
@Test public void testCurrentOperations() throws java.lang.Exception- Throws:
java.lang.Exception
-
testListCollectionsEmpty
@Test public void testListCollectionsEmpty() throws java.lang.Exception- Throws:
java.lang.Exception
-
testListCollections
@Test public void testListCollections() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetCollectionNames
@Test public void testGetCollectionNames() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSystemNamespaces
@Test public void testSystemNamespaces() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDatabaseStats
@Test public void testDatabaseStats() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDeleteDecrementsCount
@Test public void testDeleteDecrementsCount()
-
testDeleteInSystemNamespace
@Test public void testDeleteInSystemNamespace() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateInSystemNamespace
@Test public void testUpdateInSystemNamespace() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDistinctQuery
@Test public void testDistinctQuery()
-
testDistinctUuids_legacy
@Test public void testDistinctUuids_legacy() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDistinctUuids
@Test public void testDistinctUuids() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDistinctArrayField
@Test public void testDistinctArrayField() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDistinct_documentArray
@Test public void testDistinct_documentArray() throws java.lang.Exception- Throws:
java.lang.Exception
-
testInsertQueryAndSortBinaryTypes
@Test public void testInsertQueryAndSortBinaryTypes() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUuidAsId
@Test public void testUuidAsId() throws java.lang.Exception- Throws:
java.lang.Exception
-
testTypeMatching
@Test public void testTypeMatching() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDistinctQueryWithDot
@Test public void testDistinctQueryWithDot()
-
testDropCollection
@Test public void testDropCollection() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDropCollectionAlsoDropsFromDB
@Test public void testDropCollectionAlsoDropsFromDB() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDropDatabaseAlsoDropsCollectionData
@Test public void testDropDatabaseAlsoDropsCollectionData() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDropDatabaseDropsAllData
@Test public void testDropDatabaseDropsAllData() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDropEmptyDatabase
@Test public void testDropEmptyDatabase() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDropDatabaseAfterAddingIndexMultipleTimes
@Test public void testDropDatabaseAfterAddingIndexMultipleTimes() throws java.lang.Exception- Throws:
java.lang.Exception
-
testAddIndexAgainWithDifferentOptions
@Test public void testAddIndexAgainWithDifferentOptions() throws java.lang.Exception- Throws:
java.lang.Exception
-
testEmbeddedSort
@Test public void testEmbeddedSort()
-
testEmbeddedSort_arrayOfDocuments
@Test public void testEmbeddedSort_arrayOfDocuments()
-
testFindAndModifyCommandEmpty
@Test public void testFindAndModifyCommandEmpty() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindAndModifyCommandIllegalOp
@Test public void testFindAndModifyCommandIllegalOp() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindAndModifyCommandUpdate
@Test public void testFindAndModifyCommandUpdate() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindAndModifyCommand_UpdateSameFields
@Test public void testFindAndModifyCommand_UpdateSameFields() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindAndModifyCommand_UpdateFieldAndItsSubfield
@Test public void testFindAndModifyCommand_UpdateFieldAndItsSubfield() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindOneAndUpdateError
@Test public void testFindOneAndUpdateError() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindOneAndUpdateFields
@Test public void testFindOneAndUpdateFields() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFineOneAndUpdateNotFound
@Test public void testFineOneAndUpdateNotFound() throws java.lang.Exception- Throws:
java.lang.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 java.lang.Exception- Throws:
java.lang.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 java.lang.Exception- Throws:
java.lang.Exception
-
testUpsertWithArrayFilters
@Test public void testUpsertWithArrayFilters()
-
testUpdateWithMultipleArrayFilters
@Test public void testUpdateWithMultipleArrayFilters() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateWithMultipleComplexArrayFilters
@Test public void testUpdateWithMultipleComplexArrayFilters() throws java.lang.Exception- Throws:
java.lang.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 java.lang.Exception- Throws:
java.lang.Exception
-
testGetCollection
@Test public void testGetCollection()
-
testNullId
@Test public void testNullId() throws java.lang.Exception- Throws:
java.lang.Exception
-
testIdInQueryResultsInIndexOrder
@Test public void testIdInQueryResultsInIndexOrder()
-
testInQuery_Arrays
@Test public void testInQuery_Arrays() throws java.lang.Exception- Throws:
java.lang.Exception
-
testIdNotAllowedToBeUpdated
@Test public void testIdNotAllowedToBeUpdated()
-
testIllegalCommand
@Test public void testIllegalCommand() throws java.lang.Exception- Throws:
java.lang.Exception
-
testInsert
@Test public void testInsert() throws java.lang.Exception- Throws:
java.lang.Exception
-
testInsertDuplicate
@Test public void testInsertDuplicate() throws java.lang.Exception- Throws:
java.lang.Exception
-
testInsertDuplicateThrows
@Test public void testInsertDuplicateThrows()
-
testInsertDuplicateWithConcernThrows
@Test public void testInsertDuplicateWithConcernThrows()
-
testInsertIncrementsCount
@Test public void testInsertIncrementsCount()
-
testInsertQuery
@Test public void testInsertQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testInsertRemove
@Test public void testInsertRemove() throws java.lang.Exception- Throws:
java.lang.Exception
-
testInsertInSystemNamespace
@Test public void testInsertInSystemNamespace() throws java.lang.Exception- Throws:
java.lang.Exception
-
testListDatabaseNames
@Test public void testListDatabaseNames() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQuery
@Test public void testQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryAll
@Test public void testQueryAll() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryCount
@Test public void testQueryCount() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryLimitEmptyQuery
@Test public void testQueryLimitEmptyQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryLimitSimpleQuery
@Test public void testQueryLimitSimpleQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryNull
@Test public void testQueryNull() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQuerySkipLimitEmptyQuery
@Test public void testQuerySkipLimitEmptyQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQuerySkipLimitSimpleQuery
@Test public void testQuerySkipLimitSimpleQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQuerySort
@Test public void testQuerySort() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryWithFieldSelector
@Test public void testQueryWithFieldSelector() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryWithDotNotationFieldSelector
@Test public void testQueryWithDotNotationFieldSelector() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryWithDotNotationFieldSelector_Array
@Test public void testQueryWithDotNotationFieldSelector_Array() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryWithIllegalFieldSelection
@Test public void testQueryWithIllegalFieldSelection() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQuerySystemNamespace
@Test public void testQuerySystemNamespace() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryAllExpression
@Test public void testQueryAllExpression() throws java.lang.Exception- Throws:
java.lang.Exception
-
testAndQueryWithAllAndNin
@Test public void testAndQueryWithAllAndNin() throws java.lang.Exception- Throws:
java.lang.Exception
-
testAndQueryWithAllAndSize
@Test public void testAndQueryWithAllAndSize() throws java.lang.Exception- Throws:
java.lang.Exception
-
testMatchesAllWithEmptyCollection
@Test public void testMatchesAllWithEmptyCollection() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryWithSubdocumentIndex
@Test public void testQueryWithSubdocumentIndex() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryBinaryData
@Test public void testQueryBinaryData() throws java.lang.Exception- Throws:
java.lang.Exception
-
testRemove
@Test public void testRemove()
-
testRemoveSingle
@Test public void testRemoveSingle() throws java.lang.Exception- Throws:
java.lang.Exception
-
testRemoveReturnsModifiedDocumentCount
@Test public void testRemoveReturnsModifiedDocumentCount()
-
testReservedCollectionNames
@Test public void testReservedCollectionNames() throws java.lang.Exception- Throws:
java.lang.Exception
-
testServerStatus
@Test public void testServerStatus() throws java.lang.Exception- Throws:
java.lang.Exception
-
testPing
@Test public void testPing() throws java.lang.Exception- Throws:
java.lang.Exception
-
testReplSetGetStatus
@Test public void testReplSetGetStatus() throws java.lang.Exception- Throws:
java.lang.Exception
-
testWhatsMyUri
@Test public void testWhatsMyUri() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSortDocuments
@Test public void testSortDocuments() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSort
@Test public void testSort()
-
testSortByEmbeddedKey
@Test public void testSortByEmbeddedKey()
-
testUpdate
@Test public void testUpdate() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateNothing
@Test public void testUpdateNothing() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateBlank
@Test public void testUpdateBlank() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateEmptyPositional
@Test public void testUpdateEmptyPositional() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateMultiplePositional
@Test public void testUpdateMultiplePositional() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateIllegalFieldName
@Test public void testUpdateIllegalFieldName() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateSubdocument
@Test public void testUpdateSubdocument() throws java.lang.Exception- Throws:
java.lang.Exception
-
testInsertWithIllegalFieldNames
@Test public void testInsertWithIllegalFieldNames() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateIdNoChange
@Test public void testUpdateIdNoChange()
-
testUpdatePush
@Test public void testUpdatePush() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdatePushEach
@Test public void testUpdatePushEach() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdatePushSlice
@Test public void testUpdatePushSlice() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdatePushSort
@Test public void testUpdatePushSort() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdatePushSortAndSlice
@Test public void testUpdatePushSortAndSlice() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdatePushPosition
@Test public void testUpdatePushPosition() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdatePushEach_unknownModifier
@Test public void testUpdatePushEach_unknownModifier() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdatePushEach_illegalOptions
@Test public void testUpdatePushEach_illegalOptions() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdatePushAll
@Test public void testUpdatePushAll() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateAddToSet
@Test public void testUpdateAddToSet() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateAddToSetEach
@Test public void testUpdateAddToSetEach() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateAddToSetEach_unknownModifier
@Test public void testUpdateAddToSetEach_unknownModifier() throws java.lang.Exception- Throws:
java.lang.Exception
-
getExpectedPathPrefix_testUpdateAddToSetEach_unknownModifier
protected java.lang.String getExpectedPathPrefix_testUpdateAddToSetEach_unknownModifier()
-
testUpdateDatasize
@Test public void testUpdateDatasize() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdatePull
@Test public void testUpdatePull() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdatePullValueWithCondition
@Test public void testUpdatePullValueWithCondition()
-
testUpdatePullDocuments
@Test public void testUpdatePullDocuments()
-
testUpdatePullLeavesEmptyArray
@Test public void testUpdatePullLeavesEmptyArray()
-
testUpdatePullAll
@Test public void testUpdatePullAll() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdatePullAll_Documents
@Test public void testUpdatePullAll_Documents() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateSet
@Test public void testUpdateSet() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateSet_arrayOfDocuments
@Test public void testUpdateSet_arrayOfDocuments() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateSetOnInsert
@Test public void testUpdateSetOnInsert() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateSetWithArrayIndices
@Test public void testUpdateSetWithArrayIndices() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateUnsetWithArrayIndices
@Test public void testUpdateUnsetWithArrayIndices() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateMax
@Test public void testUpdateMax() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateMin
@Test public void testUpdateMin() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateMinMaxWithLists
@Test public void testUpdateMinMaxWithLists() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateMaxCompareNumbers
@Test public void testUpdateMaxCompareNumbers() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateMaxCompareDates
@Test public void testUpdateMaxCompareDates() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateMinCompareNumbers
@Test public void testUpdateMinCompareNumbers() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateMinCompareDates
@Test public void testUpdateMinCompareDates() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdatePop
@Test public void testUpdatePop() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateUnset
@Test public void testUpdateUnset() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateWithIdIn
@Test public void testUpdateWithIdIn()
-
testUpdateMulti
@Test public void testUpdateMulti() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateIllegalInt
@Test public void testUpdateIllegalInt() throws java.lang.Exception- Throws:
java.lang.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 java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateArrayMatch_MultipleFields
@Test public void testUpdateArrayMatch_MultipleFields() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateArrayMatch_updateMany
@Test public void testUpdateArrayMatch_updateMany() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateWithNotAndSizeOperator
@Test public void testUpdateWithNotAndSizeOperator() throws java.lang.Exception- Throws:
java.lang.Exception
-
testMultiUpdateArrayMatch
@Test public void testMultiUpdateArrayMatch() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpsert
@Test public void testUpsert()
-
testUpsertFieldOrder
@Test public void testUpsertFieldOrder() throws java.lang.Exception- Throws:
java.lang.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 java.lang.Exception- Throws:
java.lang.Exception
-
testUpsertWithId
@Test public void testUpsertWithId() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpsertWithId_duplicateKey
@Test public void testUpsertWithId_duplicateKey() throws java.lang.Exception- Throws:
java.lang.Exception
-
testReplaceOneWithId
@Test public void testReplaceOneWithId() throws java.lang.Exception- Throws:
java.lang.Exception
-
testReplaceOneUpsertsWithGeneratedId
@Test public void testReplaceOneUpsertsWithGeneratedId() throws java.lang.Exception- Throws:
java.lang.Exception
-
testBulkUpsert
@Test public void testBulkUpsert() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateWithMultiplyOperator
@Test public void testUpdateWithMultiplyOperator() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateWithIllegalMultiplyFails
@Test public void testUpdateWithIllegalMultiplyFails() throws java.lang.Exception- Throws:
java.lang.Exception
-
testIsMaster
@Test public void testIsMaster() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindWithNullOrNoFieldFilter
@Test public void testFindWithNullOrNoFieldFilter()
-
testInsertWithIllegalId
@Test public void testInsertWithIllegalId() throws java.lang.Exception- Throws:
java.lang.Exception
-
testInsertsWithUniqueIndex
@Test public void testInsertsWithUniqueIndex()
-
testInsertBinaryData
@Test public void testInsertBinaryData() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUniqueIndexWithSubdocument
@Test public void testUniqueIndexWithSubdocument()
-
testUniqueIndexWithDeepDocuments
@Test public void testUniqueIndexWithDeepDocuments() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSecondaryUniqueIndexUpdate
@Test public void testSecondaryUniqueIndexUpdate() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSecondarySparseUniqueIndex
@Test public void testSecondarySparseUniqueIndex() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCompoundSparseUniqueIndex
@Test public void testCompoundSparseUniqueIndex() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCompoundSparseUniqueIndexOnEmbeddedDocuments
@Test public void testCompoundSparseUniqueIndexOnEmbeddedDocuments() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateWithSparseUniqueIndex
@Test public void testUpdateWithSparseUniqueIndex() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSparseUniqueIndexOnEmbeddedDocument
@Test public void testSparseUniqueIndexOnEmbeddedDocument() throws java.lang.Exception- Throws:
java.lang.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 java.lang.Exception- Throws:
java.lang.Exception
-
testAddUniqueIndexOnExistingDocuments_violatingUniqueness
@Test public void testAddUniqueIndexOnExistingDocuments_violatingUniqueness() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCursorOptionNoTimeout
@Test public void testCursorOptionNoTimeout() throws java.lang.Exception- Throws:
java.lang.Exception
-
testBulkInsert
@Test public void testBulkInsert() throws java.lang.Exception- Throws:
java.lang.Exception
-
testLargeBulkInsert
@Test public void testLargeBulkInsert() throws java.lang.Exception- Throws:
java.lang.Exception
-
testBulkInsert_withDuplicate
@Test public void testBulkInsert_withDuplicate() throws java.lang.Exception- Throws:
java.lang.Exception
-
testBulkInsert_unordered_withDuplicate
@Test public void testBulkInsert_unordered_withDuplicate() throws java.lang.Exception- Throws:
java.lang.Exception
-
testBulkUpdateOrdered
@Test public void testBulkUpdateOrdered() throws java.lang.Exception- Throws:
java.lang.Exception
-
testBulkUpdateUnordered
@Test public void testBulkUpdateUnordered() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateCurrentDateIllegalTypeSpecification
@Test public void testUpdateCurrentDateIllegalTypeSpecification() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateCurrentDate
@Test public void testUpdateCurrentDate() throws java.lang.Exception- Throws:
java.lang.Exception
-
testRenameField
@Test public void testRenameField() throws java.lang.Exception- Throws:
java.lang.Exception
-
testRenameField_embeddedDocument
@Test public void testRenameField_embeddedDocument()
-
testRenameFieldIllegalValue
@Test public void testRenameFieldIllegalValue() throws java.lang.Exception- Throws:
java.lang.Exception
-
testRenameCollection
@Test public void testRenameCollection() throws java.lang.Exception- Throws:
java.lang.Exception
-
testRenameCollection_targetAlreadyExists
@Test public void testRenameCollection_targetAlreadyExists() throws java.lang.Exception- Throws:
java.lang.Exception
-
testRenameCollection_dropTarget
@Test public void testRenameCollection_dropTarget() throws java.lang.Exception- Throws:
java.lang.Exception
-
testListIndexes_empty
@Test public void testListIndexes_empty() throws java.lang.Exception- Throws:
java.lang.Exception
-
testListIndexes
@Test public void testListIndexes() throws java.lang.Exception- Throws:
java.lang.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 java.lang.Exception- Throws:
java.lang.Exception
-
testInOperatorWithNullValue
@Test public void testInOperatorWithNullValue()
-
testQueryWithReference
@Test public void testQueryWithReference() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryWithIllegalReference
@Test public void testQueryWithIllegalReference() throws java.lang.Exception- Throws:
java.lang.Exception
-
testAndOrNorWithEmptyArray
@Test public void testAndOrNorWithEmptyArray() throws java.lang.Exception- Throws:
java.lang.Exception
-
testInsertLargeDocument
@Test public void testInsertLargeDocument() throws java.lang.Exception- Throws:
java.lang.Exception
-
testInsertAndUpdateAsynchronously
@Test public void testInsertAndUpdateAsynchronously() throws java.lang.Exception- Throws:
java.lang.Exception
-
testAllQuery
@Test public void testAllQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testMatchesElementQuery
@Test public void testMatchesElementQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testMatchesElementInEmbeddedDocuments
@Test public void testMatchesElementInEmbeddedDocuments() throws java.lang.Exception- Throws:
java.lang.Exception
-
testElemMatchWithExpression
@Test public void testElemMatchWithExpression() throws java.lang.Exception- Throws:
java.lang.Exception
-
testElemMatchAndAllQuery
@Test public void testElemMatchAndAllQuery() throws java.lang.Exception- Throws:
java.lang.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 java.lang.Exception- Throws:
java.lang.Exception
-
testProjectionWithSlice
@Test public void testProjectionWithSlice() throws java.lang.Exception- Throws:
java.lang.Exception
-
testMatchesNullOrMissing
@Test public void testMatchesNullOrMissing() throws java.lang.Exception- Throws:
java.lang.Exception
-
testIllegalElementMatchQuery
@Test public void testIllegalElementMatchQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryWithOperatorAndWithoutOperator
@Test public void testQueryWithOperatorAndWithoutOperator() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryWithComment
@Test public void testQueryWithComment() throws java.lang.Exception- Throws:
java.lang.Exception
-
testValidate
@Test public void testValidate() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetLastError
@Test public void testGetLastError() throws java.lang.Exception- Throws:
java.lang.Exception
-
testResetError
@Test public void testResetError() throws java.lang.Exception- Throws:
java.lang.Exception
-
testIllegalTopLevelOperator
@Test public void testIllegalTopLevelOperator() throws java.lang.Exception- Throws:
java.lang.Exception
-
testExprQuery
@Test public void testExprQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testExprQuery_IllegalFieldPath
@Test public void testExprQuery_IllegalFieldPath() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryEmbeddedDocument
@Test public void testQueryEmbeddedDocument() throws java.lang.Exception- Throws:
java.lang.Exception
-
testQueryWithEquivalentEmbeddedDocument
@Test public void testQueryWithEquivalentEmbeddedDocument() throws java.lang.Exception- Throws:
java.lang.Exception
-
testOrderByMissingAndNull
@Test public void testOrderByMissingAndNull() throws java.lang.Exception- Throws:
java.lang.Exception
-
testOrderByEmbeddedDocument
@Test public void testOrderByEmbeddedDocument() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindByListValue
@Test public void testFindByListValue() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindAndOrderByWithListValues
@Test public void testFindAndOrderByWithListValues() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDistinctEmbeddedDocument
@Test public void testDistinctEmbeddedDocument() throws java.lang.Exception- Throws:
java.lang.Exception
-
testEmptyArrayQuery
@Test public void testEmptyArrayQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindAllReferences
@Test public void testFindAllReferences() throws java.lang.Exception- Throws:
java.lang.Exception
-
testInsertAndQueryNegativeZero
@Test public void testInsertAndQueryNegativeZero() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUniqueIndexWithNegativeZero
@Test public void testUniqueIndexWithNegativeZero() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDecimal128
@Test public void testDecimal128() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDecimal128_Inc
@Test public void testDecimal128_Inc() throws java.lang.Exception- Throws:
java.lang.Exception
-
testArrayNe
@Test public void testArrayNe() throws java.lang.Exception- Throws:
java.lang.Exception
-
testExistsQuery
@Test public void testExistsQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testExistsQueryWithArray
@Test public void testExistsQueryWithArray() throws java.lang.Exception- Throws:
java.lang.Exception
-
testExistsQueryWithTrailingDot
@Test public void testExistsQueryWithTrailingDot() throws java.lang.Exception- Throws:
java.lang.Exception
-
testRegExQuery
@Test public void testRegExQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testInsertAndFindJavaScriptContent
@Test public void testInsertAndFindJavaScriptContent() throws java.lang.Exception- Throws:
java.lang.Exception
-
assertMongoWriteException
protected static void assertMongoWriteException(AbstractBackendTest.Callable callable, int expectedErrorCode, java.lang.String expectedMessage)
-
assertMongoWriteException
protected static void assertMongoWriteException(AbstractBackendTest.Callable callable, int expectedErrorCode, java.lang.String expectedCodeName, java.lang.String expectedMessage)
-
testInsertWithoutId
@Test public void testInsertWithoutId() throws java.lang.Exception- Throws:
java.lang.Exception
-
testMultikeyIndex_simpleArrayValues
@Test public void testMultikeyIndex_simpleArrayValues() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCompoundMultikeyIndex_simpleArrayValues
@Test public void testCompoundMultikeyIndex_simpleArrayValues() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCompoundMultikeyIndex_threeKeys
@Test public void testCompoundMultikeyIndex_threeKeys() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCompoundMultikeyIndex_documents
@Test public void testCompoundMultikeyIndex_documents() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCompoundMultikeyIndex_deepDocuments
@Test public void testCompoundMultikeyIndex_deepDocuments() throws java.lang.Exception- Throws:
java.lang.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 java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateWithMultipleArrayFiltersInOnePath
@Test public void testUpdateWithMultipleArrayFiltersInOnePath() throws java.lang.Exception- Throws:
java.lang.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 java.lang.Exception- Throws:
java.lang.Exception
-
testComparisons
@Test public void testComparisons() throws java.lang.Exception- Throws:
java.lang.Exception
-
testMinKeyComparison
@Test public void testMinKeyComparison()
-
testMaxKeyComparison
@Test public void testMaxKeyComparison()
-
testMinMaxKeyRangeQuery
@Test public void testMinMaxKeyRangeQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testOldAndNewUuidTypes
@Test public void testOldAndNewUuidTypes() throws java.lang.Exception- Throws:
java.lang.Exception
-
testNewUuidType
@Test public void testNewUuidType() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateWithExpressionIsNotPossible
@Test public void testUpdateWithExpressionIsNotPossible() throws java.lang.Exception- Throws:
java.lang.Exception
-
testEndSessions
@Test public void testEndSessions()
-
-