org.iainhull.resttest.Dsl

RichExtractor

Related Doc: package Dsl

implicit class RichExtractor[A] extends AnyRef

Add operator support to Extractors these are used to generate an Assertion using the extracted value.

GET url "http://api.rest.org/person" assert (StatusCode === Status.Ok)

Operations

The following operations are added to all Extractors

$ - extractor === expected - the extracted value is equal to the expected value. $ - extractor !== expected - the extracted value is not equal to the expected value. $ - extractor in (expected1, expected2, ...) - the extracted value is in the list of expected values. $ - extractor notIn (expected1, expected2, ...) - the extracted value is in the list of expected values.

The following operations are added to Extractors that support scala.math.Ordering. More precisely these operations are added to Extractor[T] if there exists an implicit Ordering[T] for any type T.

$ - extractor < expected - the extracted value is less than the expected value. $ - extractor <= expected - the extracted value is less than or equal to the expected value. $ - extractor > expected - the extracted value is greater than the expected value. $ - extractor <= expected - the extracted value is greater than or equal to the expected value.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RichExtractor
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichExtractor(ext: Dsl.ExtractorLike[A])

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. def !==[B >: A](expected: B): Assertion

  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def <[B >: A](expected: B)(implicit ord: Ordering[B]): Assertion

  5. def <=[B >: A](expected: B)(implicit ord: Ordering[B]): Assertion

  6. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  7. def ===[B >: A](expected: B): Assertion

  8. def >[B >: A](expected: B)(implicit ord: Ordering[B]): Assertion

  9. def >=[B >: A](expected: B)(implicit ord: Ordering[B]): Assertion

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. def in[B >: A](expectedVals: B*): Assertion

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. def notIn[B >: A](expectedVals: B*): Assertion

  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toString(): String

    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped