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.
optSchema }}}
CRUD methods are provided which can help preparing and asserting repository behaviour.
repository }}}
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.
optSchema }}}
CRUD methods are provided which can help preparing and asserting repository behaviour.
- Alphabetic
- By Inheritance
- PlayMongoRepositorySupport
- MongoSupport
- ScalaFutures
- Futures
- PatienceConfiguration
- AbstractPatienceConfiguration
- ScaledTimeSpans
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @native() @HotSpotIntrinsicCandidate()
-
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: Any): 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[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
lazy val
indexes: Seq[IndexModel]
- Attributes
- protected
-
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
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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