trait PlayMongoRepositorySupport[A] extends MongoSupport
Specialises MongoSupport for PlayMongoRepository.
It is recommended to use DefaultPlayMongoRepositorySupport which brings this together with other useful testing support.
repository
will need overriding with the repository under test.
If a schema is not defined on the repository, it can still be provided for tests by overridding
optSchema
.
CRUD methods are provided which can help preparing and asserting repository behaviour.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- PlayMongoRepositorySupport
- MongoSupport
- ScalaFutures
- Futures
- PatienceConfiguration
- AbstractPatienceConfiguration
- ScaledTimeSpans
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
Abstract Value Members
- abstract val repository: PlayMongoRepository[A]
- Attributes
- protected
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- lazy val collectionName: String
- Attributes
- protected
- implicit def convertScalaFuture[T](scalaFuture: Future[T]): FutureConcept[T]
- Definition Classes
- ScalaFutures
- def count(): Future[Long]
- Attributes
- protected
- def createCollection(): Unit
- Attributes
- protected
- def databaseName: String
- Attributes
- protected
- Definition Classes
- MongoSupport
- def deleteAll(): Future[DeleteResult]
- Attributes
- protected
- def dropCollection(): Unit
- Attributes
- protected
- def dropDatabase(): Unit
- Attributes
- protected
- Definition Classes
- MongoSupport
- def ensureIndexes(): Seq[String]
- Attributes
- protected
- def ensureSchemas(): Unit
- Attributes
- protected
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def find(filter: Bson)(implicit ev: ClassTag[A]): Future[Seq[A]]
- Attributes
- protected
- def findAll()(implicit ev: ClassTag[A]): Future[Seq[A]]
- Attributes
- protected
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- lazy val indexes: Seq[IndexModel]
- Attributes
- protected
- def initTimeout: FiniteDuration
- Attributes
- protected
- Definition Classes
- MongoSupport
- def insert(a: A): Future[InsertOneResult]
- Attributes
- protected
- def interval(value: Span): Interval
- Definition Classes
- PatienceConfiguration
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val mongoClient: MongoClient
- Attributes
- protected
- Definition Classes
- MongoSupport
- lazy val mongoComponent: MongoComponent
- Attributes
- protected
- Definition Classes
- MongoSupport
- lazy val mongoDatabase: MongoDatabase
- Attributes
- protected
- Definition Classes
- MongoSupport
- def mongoUri: String
- Attributes
- protected
- Definition Classes
- MongoSupport
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- lazy val optSchema: Option[BsonDocument]
- Attributes
- protected
- implicit def patienceConfig: PatienceConfig
- Definition Classes
- PatienceConfiguration → AbstractPatienceConfiguration
- def prepareDatabase(): Unit
- Attributes
- protected
- Definition Classes
- PlayMongoRepositorySupport → MongoSupport
- final def scaled(span: Span): Span
- Definition Classes
- ScaledTimeSpans
- def spanScaleFactor: Double
- Definition Classes
- ScaledTimeSpans
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def timeout(value: Span): Timeout
- Definition Classes
- PatienceConfiguration
- def toString(): String
- Definition Classes
- AnyRef → Any
- def updateIndexPreference(requireIndexedQuery: Boolean): Future[Boolean]
Note, this changes the notablescan option, which is a global server config.
Note, this changes the notablescan option, which is a global server config. If tests set this to different values, ensure they are not run in parallel.
- Attributes
- protected
- Definition Classes
- MongoSupport
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def whenReady[T, U](future: FutureConcept[T])(fun: (T) => U)(implicit config: PatienceConfig, pos: Position): U
- Definition Classes
- Futures
- final def whenReady[T, U](future: FutureConcept[T], interval: Interval)(fun: (T) => U)(implicit config: PatienceConfig, pos: Position): U
- Definition Classes
- Futures
- final def whenReady[T, U](future: FutureConcept[T], timeout: Timeout)(fun: (T) => U)(implicit config: PatienceConfig, pos: Position): U
- Definition Classes
- Futures
- final def whenReady[T, U](future: FutureConcept[T], timeout: Timeout, interval: Interval)(fun: (T) => U)(implicit config: PatienceConfig, pos: Position): U
- Definition Classes
- Futures
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)