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 class
TestJacksonMongoCollection.ClassWithGenericField<T extends org.mongojack.TestJacksonMongoCollection.GenericFieldValue>
static class
TestJacksonMongoCollection.GenericFieldValue1
static class
TestJacksonMongoCollection.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 void
setup()
void
testFindAndModifyWithBuilder()
void
testInsertAndQuery()
void
testInsertAndQueryWithPolymorphicField()
void
testQuery()
void
testQueryWithLimitedKeys()
void
testRemove()
void
testRemoveById()
void
testReplaceOneByIdUsesIdProvided()
void
testReplaceOneByNonIdQuery()
void
testReplaceOneByUsesQueryNotId()
void
testReplaceOneDoesNotUpsertIfUpsertFalse()
void
testReplaceOneUpsertsIfNoDocumentExistsByQueryAndUpsertTrue()
void
testSaveAndQuery()
-
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()
-
-