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
testDBUpdateWithDbRef()
void
testUsingMongoCollectionAnnotation()
-
Methods inherited from class org.mongojack.MongoDBTestBase
configure, connectToDb, disconnectFromDb, getCollection, getCollection, getCollection, getCollection, getCollectionWithView, getMongoCollection, getMongoCollection, getUnderlyingCollection
-
-
-
-
Method Detail
-
setUp
public void setUp()
-
simpleDbRefShouldBeSavedAsDbRef
public void simpleDbRefShouldBeSavedAsDbRef()
-
dbRefWithObjectIdShouldBeSavedAsDbRef
public void dbRefWithObjectIdShouldBeSavedAsDbRef()
-
testUsingMongoCollectionAnnotation
public void testUsingMongoCollectionAnnotation()
-
testDBUpdateWithDbRef
public void testDBUpdateWithDbRef()
-
collectionOfDbRefsShouldBeSavedAsDbRefs
public void collectionOfDbRefsShouldBeSavedAsDbRefs()
-
fetchCollectionOfDBRefsShouldReturnRightResults
public void fetchCollectionOfDBRefsShouldReturnRightResults()
-
collectionOfObjectIdDbRefsShouldBeSavedAsObjectIdDbRefs
public void collectionOfObjectIdDbRefsShouldBeSavedAsObjectIdDbRefs()
-
-