Class TestObjectIdHandling
java.lang.Object
org.mongojack.MongoDBTestBase
org.mongojack.TestObjectIdHandling
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
Fields inherited from class MongoDBTestBase
db, mongo, uuidRepresentation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidmapper.convertValue serializes into a TokenBuffer and then deserializes again.voidvoidvoidvoidvoidMethods inherited from class MongoDBTestBase
configure, connectToDb, disconnectFromDb, getCollection, getCollection, getCollection, getCollection, getCollectionWithView, getMongoCollection, getMongoCollection, getUnderlyingCollection, startDb
-
Constructor Details
-
TestObjectIdHandling
public TestObjectIdHandling()
-
-
Method Details
-
testObjectIdGenerated
@Test public void testObjectIdGenerated() -
testObjectIdSaved
@Test public void testObjectIdSaved() -
testObjectIdAnnotationOnStringGenerated
@Test public void testObjectIdAnnotationOnStringGenerated() -
testObjectIdAnnotationOnStringSaved
@Test public void testObjectIdAnnotationOnStringSaved() -
testRemoveByIdWithObjectId
@Test public void testRemoveByIdWithObjectId() -
testFindOneByIdWithObjectId
@Test public void testFindOneByIdWithObjectId() -
testObjectIdAnnotationOnByteArrayGenerated
@Test public void testObjectIdAnnotationOnByteArrayGenerated() -
testObjectIdAnnotationOnByteArraySaved
@Test public void testObjectIdAnnotationOnByteArraySaved() -
testCollectionOfObjectIds
@Test public void testCollectionOfObjectIds() -
testCollectionOfObjectIdStrings
@Test public void testCollectionOfObjectIdStrings() -
testCollectionOfObjectIdByteArrays
@Test public void testCollectionOfObjectIdByteArrays() -
testObjectIdAnnotationOnMethodsGenerated
@Test public void testObjectIdAnnotationOnMethodsGenerated() -
testObjectIdAnnotationOnMethodsSaved
@Test public void testObjectIdAnnotationOnMethodsSaved() -
testByteArrayObjectIdMethods
@Test public void testByteArrayObjectIdMethods() -
testObjectIdAnnotationOnConvertedSaved
@Test public void testObjectIdAnnotationOnConvertedSaved() -
testRemoveByIdWithConvertedId
@Test public void testRemoveByIdWithConvertedId() -
testFindOneByIdWithConvertedId
@Test public void testFindOneByIdWithConvertedId() -
testObjectIdAnnotationOnComplexSaved
@Test public void testObjectIdAnnotationOnComplexSaved() -
testRemoveByIdWithComplexId
@Test public void testRemoveByIdWithComplexId() -
testFindOneByIdWithComplexId
@Test public void testFindOneByIdWithComplexId() -
testObjectIdAnnotationOnUuidSaved
@Test public void testObjectIdAnnotationOnUuidSaved() -
testRemoveByIdWithUuidId
@Test public void testRemoveByIdWithUuidId() -
testFindOneByIdWithUuidId
@Test public void testFindOneByIdWithUuidId() -
testObjectIdWithNoSetterSaved
@Test public void testObjectIdWithNoSetterSaved() -
testObjectIdSerializingViaTokenBuffer
@Test public void testObjectIdSerializingViaTokenBuffer() throws org.testcontainers.shaded.com.fasterxml.jackson.core.JsonProcessingExceptionmapper.convertValue serializes into a TokenBuffer and then deserializes again. This excercises a code path in theEmbeddedObjectSerializerwhich serializes ObjectIds as an embedded object.- Throws:
org.testcontainers.shaded.com.fasterxml.jackson.core.JsonProcessingException
-