Package org.mongojack
Class TestDBRefHandling
- java.lang.Object
-
- org.mongojack.MongoDBTestBase
-
- org.mongojack.TestDBRefHandling
-
public class TestDBRefHandling extends MongoDBTestBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestDBRefHandling.CollectionOwner
static class
TestDBRefHandling.ObjectIdCollectionOwner
static class
TestDBRefHandling.ObjectIdOwner
static class
TestDBRefHandling.ObjectIdReferenced
static class
TestDBRefHandling.Owner
static class
TestDBRefHandling.Referenced
-
Field Summary
-
Fields inherited from class org.mongojack.MongoDBTestBase
db, mongo, uuidRepresentation
-
-
Constructor Summary
Constructors Constructor Description TestDBRefHandling()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectionOfDbRefsShouldBeSavedAsDbRefs()
void
collectionOfObjectIdDbRefsShouldBeSavedAsObjectIdDbRefs()
void
dbRefWithObjectIdShouldBeSavedAsDbRef()
void
fetchCollectionOfDBRefsShouldReturnRightResults()
void
setUp()
void
simpleDbRefShouldBeSavedAsDbRef()
void
testUpdatesWithDbRef()
void
testUsingMongoCollectionAnnotation()
-
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()
-
simpleDbRefShouldBeSavedAsDbRef
@Test public void simpleDbRefShouldBeSavedAsDbRef()
-
dbRefWithObjectIdShouldBeSavedAsDbRef
@Test public void dbRefWithObjectIdShouldBeSavedAsDbRef()
-
testUsingMongoCollectionAnnotation
@Test public void testUsingMongoCollectionAnnotation()
-
testUpdatesWithDbRef
@Test public void testUpdatesWithDbRef()
-
collectionOfDbRefsShouldBeSavedAsDbRefs
@Test public void collectionOfDbRefsShouldBeSavedAsDbRefs()
-
fetchCollectionOfDBRefsShouldReturnRightResults
@Test public void fetchCollectionOfDBRefsShouldReturnRightResults()
-
collectionOfObjectIdDbRefsShouldBeSavedAsObjectIdDbRefs
@Test public void collectionOfObjectIdDbRefsShouldBeSavedAsObjectIdDbRefs()
-
-