trait OneArgAsyncTest extends (FixtureParam) => FutureOutcome with TestData
A test function taking no arguments and returning an FutureOutcome.
For more detail and examples, see the relevant section in the
documentation for trait fixture.AsyncFlatSpec.
- Self Type
- OneArgAsyncTest
- Source
- FixtureAsyncTestSuite.scala
- Alphabetic
- By Inheritance
- OneArgAsyncTest
- TestData
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
-   abstract  def apply(fixture: FixtureAsyncTestSuite.FixtureParam): FutureOutcomeUsing the passed FixtureParam, produces aFutureOutcomerepresenting the future outcome of this asynchronous test.Using the passed FixtureParam, produces aFutureOutcomerepresenting the future outcome of this asynchronous test.- fixture
- the - FixtureParam
- returns
- an instance of - FutureOutcome
 - Definition Classes
- OneArgAsyncTest → Function1
 
-   abstract  val configMap: ConfigMapA ConfigMapcontaining objects that can be used to configure the fixture and test.A ConfigMapcontaining objects that can be used to configure the fixture and test.- Definition Classes
- TestData
 
-   abstract  val name: StringThe name of this test. The name of this test. See the main documentation for this trait for an explanation of the difference between name,text, andscopes.- Definition Classes
- TestData
 
-   abstract  val pos: Option[Position]- Definition Classes
- TestData
 
-   abstract  val scopes: IndexedSeq[String]An immutable IndexedSeqcontaining the text for any "scopes" enclosing this test, in order from outermost to innermost scope.An immutable IndexedSeqcontaining the text for any "scopes" enclosing this test, in order from outermost to innermost scope.See the main documentation for this trait for an explanation of the difference between name,text, andscopes. If a test has no surrounding scopes, this field will contain an emptyIndexedSeq.- Definition Classes
- TestData
 
-   abstract  val tags: Set[String]Tag names for this test. Tag names for this test. - Definition Classes
- TestData
 
-   abstract  val text: StringThe "text" for this test. The "text" for this test. See the main documentation for this trait for an explanation of the difference between name,text, andscopes. If a test has no surrounding scopes, this field will contain the same string asname.- Definition Classes
- TestData
 
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
 
-    def andThen[A](g: (FutureOutcome) => A): (FixtureAsyncTestSuite.FixtureParam) => A- Definition Classes
- Function1
- Annotations
- @unspecialized()
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
 
-    def compose[A](g: (A) => FixtureAsyncTestSuite.FixtureParam): (A) => FutureOutcome- Definition Classes
- Function1
- Annotations
- @unspecialized()
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @native()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @native()
 
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    def toNoArgAsyncTest(fixture: FixtureAsyncTestSuite.FixtureParam): FixtureAsyncTestSuite.NoArgAsyncTestConvert this OneArgAsyncTestto aNoArgAsyncTestwhosenameandconfigMapmethods return the same values as thisOneArgAsyncTest, and whoseapplymethod invokes thisOneArgAsyncTest's apply method, passing in the givenfixture.Convert this OneArgAsyncTestto aNoArgAsyncTestwhosenameandconfigMapmethods return the same values as thisOneArgAsyncTest, and whoseapplymethod invokes thisOneArgAsyncTest's apply method, passing in the givenfixture.This method makes it easier to invoke the withFixturemethod that takes aNoArgAsyncTest. Here's how that might look in aFixtureAsyncTestSuitewhoseFixtureParamisStringBuilder:def withFixture(test: OneArgAsyncTest) = { withFixture(test.toNoArgAsyncTest(new StringBuilder)) } Invoking this method has no side effect. It just returns a NoArgAsyncTestwhoseapplymethod invokesapplyon thisOneArgAsyncTest, passing in theFixtureParampassed totoNoArgAsyncTest.- fixture
- the - FixtureParam
- returns
- an new instance of - NoArgAsyncTest
 
-    def toString(): String- Definition Classes
- Function1 → AnyRef → Any
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   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()