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
-
-
-
-
Method Detail
-
setup
public void setup()
-
testQuery
public void testQuery()
-
testInsertAndQuery
public void testInsertAndQuery()
-
testInsertAndQueryWithPolymorphicField
public void testInsertAndQueryWithPolymorphicField()
-
testSaveAndQuery
public void testSaveAndQuery()
-
testRemove
public void testRemove()
-
testRemoveById
public void testRemoveById()
-
testFindAndModifyWithBuilder
public void testFindAndModifyWithBuilder()
-
testReplaceOneByNonIdQuery
public void testReplaceOneByNonIdQuery()
-
testReplaceOneByUsesQueryNotId
public void testReplaceOneByUsesQueryNotId()
-
testReplaceOneUpsertsIfNoDocumentExistsByQueryAndUpsertTrue
public void testReplaceOneUpsertsIfNoDocumentExistsByQueryAndUpsertTrue()
-
testReplaceOneDoesNotUpsertIfUpsertFalse
public void testReplaceOneDoesNotUpsertIfUpsertFalse()
-
testReplaceOneByIdUsesIdProvided
public void testReplaceOneByIdUsesIdProvided()
-
testQueryWithLimitedKeys
public void testQueryWithLimitedKeys()
-
-