Package org.mongojack
Class TestJacksonMongoCollection
- java.lang.Object
-
- org.mongojack.MongoDBTestBase
-
- org.mongojack.TestJacksonMongoCollection
-
public class TestJacksonMongoCollection extends MongoDBTestBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestJacksonMongoCollection.ClassWithGenericField<T extends org.mongojack.TestJacksonMongoCollection.GenericFieldValue>static classTestJacksonMongoCollection.GenericFieldValue1static classTestJacksonMongoCollection.GenericFieldValue2
-
Field Summary
-
Fields inherited from class org.mongojack.MongoDBTestBase
db, mongo, uuidRepresentation
-
-
Constructor Summary
Constructors Constructor Description TestJacksonMongoCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()voidtestFindAndModifyWithBuilder()voidtestInsertAndQuery()voidtestInsertAndQueryWithPolymorphicField()voidtestQuery()voidtestQueryWithLimitedKeys()voidtestRemove()voidtestRemoveById()voidtestReplaceOneByIdUsesIdProvided()voidtestReplaceOneByNonIdQuery()voidtestReplaceOneByUsesQueryNotId()voidtestReplaceOneDoesNotUpsertIfUpsertFalse()voidtestReplaceOneUpsertsIfNoDocumentExistsByQueryAndUpsertTrue()voidtestSaveAndQuery()-
Methods inherited from class org.mongojack.MongoDBTestBase
configure, connectToDb, disconnectFromDb, getCollection, getCollection, getCollection, getCollection, getCollectionWithView, getMongoCollection, getMongoCollection, getUnderlyingCollection, startDb
-
-
-
-
Method Detail
-
setup
@BeforeEach public void setup()
-
testQuery
@Test public void testQuery()
-
testInsertAndQuery
@Test public void testInsertAndQuery()
-
testInsertAndQueryWithPolymorphicField
@Test public void testInsertAndQueryWithPolymorphicField()
-
testSaveAndQuery
@Test public void testSaveAndQuery()
-
testRemove
@Test public void testRemove()
-
testRemoveById
@Test public void testRemoveById()
-
testFindAndModifyWithBuilder
@Test public void testFindAndModifyWithBuilder()
-
testReplaceOneByNonIdQuery
@Test public void testReplaceOneByNonIdQuery()
-
testReplaceOneByUsesQueryNotId
@Test public void testReplaceOneByUsesQueryNotId()
-
testReplaceOneUpsertsIfNoDocumentExistsByQueryAndUpsertTrue
@Test public void testReplaceOneUpsertsIfNoDocumentExistsByQueryAndUpsertTrue()
-
testReplaceOneDoesNotUpsertIfUpsertFalse
@Test public void testReplaceOneDoesNotUpsertIfUpsertFalse()
-
testReplaceOneByIdUsesIdProvided
@Test public void testReplaceOneByIdUsesIdProvided()
-
testQueryWithLimitedKeys
@Test public void testQueryWithLimitedKeys()
-
-