org.scalatest.fixture.FixtureFlatSpec

InAndIgnoreMethodsAfterTaggedAs

class InAndIgnoreMethodsAfterTaggedAs extends AnyRef

Class that supports tagged test registration in shorthand form.

For example, this class enables syntax such as the following tagged test registration in shorthand form:

"A Stack (when empty)" should "be empty" taggedAs() in { ... }
                                                    

This class also enables syntax such as the following tagged, ignored test registration in shorthand form:

"A Stack (when empty)" should "be empty" taggedAs(SlowTest) ignore { ... }
                                                            

This class is used via an implicit conversion (named convertToInAndIgnoreMethodsAfterTaggedAs) from ResultOfTaggedAsInvocation. The ResultOfTaggedAsInvocation class does not declare any methods named in, because the type passed to in differs in a FlatSpec and a FixtureFlatSpec. A FixtureFlatSpec needs two in methods, one that takes a no-arg test function and another that takes a one-arg test function (a test that takes aFixture as its parameter). By constrast, a FlatSpec needs only one in method that takes a by-name parameter. As a result,FlatSpec and FixtureFlatSpec each provide an implicit conversion from ResultOfTaggedAsInvocation to a type that provides the appropriatein methods.

attributes: protected final
    authors:
  1. Bill Venners

Inherited
  1. Hide All
  2. Show all
  1. AnyRef
  2. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new InAndIgnoreMethodsAfterTaggedAs(resultOfTaggedAsInvocation: ResultOfTaggedAsInvocation)

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  9. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  10. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  11. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  12. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  13. def getClass(): java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  14. def hashCode(): Int

    Returns a hash code value for the object.

  15. def ignore(testFun: (FixtureParam) ⇒ Any): Unit

    Supports the registration of tagged, ignored, one-arg tests (tests that take a Fixture parameter) in shorthand form.

  16. def ignore(testFun: () ⇒ Any): Unit

    Supports the registration of tagged, ignored, no-arg tests in shorthand form.

  17. def in(testFun: (FixtureParam) ⇒ Any): Unit

    Supports the registration of tagged, one-arg tests (tests that take a Fixture parameter) in shorthand form.

  18. def in(testFun: () ⇒ Any): Unit

    Supports the registration of tagged, no-arg tests in shorthand form.

  19. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  20. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  21. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  22. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  23. def synchronized[T0](arg0: T0): T0

  24. def toString(): String

    Returns a string representation of the object.

  25. def wait(): Unit

  26. def wait(arg0: Long, arg1: Int): Unit

  27. def wait(arg0: Long): Unit