Package

com.github.pheymann

rrt

Permalink

package rrt

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. rrt
  2. TestActionSyntax
  3. RequestDataSyntax
  4. RefactoringTest
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class DataGeneratorToSeq[A] extends AnyRef

    Permalink
  2. final case class DatabaseConfig(dbType: DatabaseType, driver: String, url: String, user: String, password: String) extends Product with Serializable

    Permalink
  3. type EndpointTestCase = (RandomUtil) ⇒ RequestData

    Permalink
  4. trait RefactoringTest extends AnyRef

    Permalink
  5. implicit class RefactoringTestRun extends AnyRef

    Permalink
    Definition Classes
    RefactoringTest
  6. final case class RequestData(uri: String, params: Map[String, String], bodyOpt: Option[String] = None) extends Product with Serializable

    Permalink
  7. implicit class RequestDataBuilder extends AnyRef

    Permalink
    Definition Classes
    RequestDataSyntax
  8. implicit class RequestDataExtender extends AnyRef

    Permalink
    Definition Classes
    RequestDataSyntax
  9. trait RequestDataSyntax extends AnyRef

    Permalink
  10. final case class ServiceConfig(host: String, port: Int) extends Product with Serializable

    Permalink
  11. sealed trait TestAction[R] extends AnyRef

    Permalink
  12. trait TestActionSyntax extends AnyRef

    Permalink
  13. final case class TestConfig(name: String, actual: ServiceConfig, expected: ServiceConfig, headers: List[(String, String)] = Nil, bodyRemovals: List[String] = Nil, dbConfigOpt: Option[DatabaseConfig] = None, repetitions: Int = 1, timeout: FiniteDuration = 21400000.seconds) extends Product with Serializable

    Permalink
  14. final case class TestResult(name: String, successful: Boolean, successfulTries: Int, failedTries: Int, comparisons: List[(RequestData, ComparisonResult)]) extends Product with Serializable

    Permalink

Value Members

  1. object ProgressOutput

    Permalink
  2. object RefactoringTest extends RefactoringTest

    Permalink
  3. object RequestDataSyntax extends RequestDataSyntax

    Permalink
  4. object TestAction

    Permalink
  5. object TestActionInterpreter

    Permalink
  6. object TestActionSyntax extends TestActionSyntax

    Permalink
  7. object TestRunner

    Permalink
  8. def checkAndLog(result: TestResult): Boolean

    Permalink
    Definition Classes
    RefactoringTest
  9. def checkResult(result: TestResult): Boolean

    Permalink
    Definition Classes
    RefactoringTest
  10. def genDoubles(maxOpt: Option[Double] = None): Free[TestAction, RandomValueGen[Double]]

    Permalink

    Creates a RandomValueGen for Double values.

    Creates a RandomValueGen for Double values.

    maxOpt

    optional upper/lower bound of the values

    Definition Classes
    TestActionSyntax
  11. def genInts(maxOpt: Option[Int] = None): Free[TestAction, RandomValueGen[Int]]

    Permalink

    Creates a RandomValueGen for Int values.

    Creates a RandomValueGen for Int values.

    maxOpt

    optional upper/lower bound of the values

    Definition Classes
    TestActionSyntax
  12. def genLongs(maxOpt: Option[Long] = None): Free[TestAction, RandomValueGen[Long]]

    Permalink

    Creates a RandomValueGen for Long values.

    Creates a RandomValueGen for Long values.

    maxOpt

    optional upper/lower bound of the values

    Definition Classes
    TestActionSyntax
  13. def genPositiveInts(maxOpt: Option[Int] = None): Free[TestAction, RandomValueGen[Int]]

    Permalink

    Creates a RandomValueGen for positive Int values.

    Creates a RandomValueGen for positive Int values.

    maxOpt

    optional upper bound of the values

    Definition Classes
    TestActionSyntax
  14. def genStaticData[A](values: A*): Free[TestAction, RandomValueGen[A]]

    Permalink

    Creates a RandomValueGen for a List of static values.

    Creates a RandomValueGen for a List of static values. The generator will randomly select an element from the List on call.

    values

    static List of values

    Definition Classes
    TestActionSyntax
  15. package io

    Permalink
  16. def newConfig(name: String, actualHost: String, actualPort: Int, expectedHost: String, expectedPort: Int): TestConfig

    Permalink
  17. def prettyLog(result: TestResult): Unit

    Permalink
    Definition Classes
    RefactoringTest
  18. def retrieveDoubles(size: Int): RetrieveDoubles

    Permalink

    Read Double values from database.

    Read Double values from database.

    size

    at most size values

    Definition Classes
    TestActionSyntax
  19. def retrieveInts(size: Int): RetrieveInts

    Permalink

    Read Int values from database.

    Read Int values from database.

    size

    at most size values

    Definition Classes
    TestActionSyntax
  20. def retrieveLongs(size: Int): RetrieveLongs

    Permalink

    Read Long values from database.

    Read Long values from database.

    size

    at most size values

    Definition Classes
    TestActionSyntax
  21. def retrieveStrings(size: Int): RetrieveStrings

    Permalink

    Read String values from database.

    Read String values from database.

    size

    at most size values

    Definition Classes
    TestActionSyntax
  22. def runSequential(testCase: Free[TestAction, TestResult], config: TestConfig)(implicit system: ActorSystem): TestResult

    Permalink
    Definition Classes
    RefactoringTest
  23. def testDelete(test: EndpointTestCase): Free[TestAction, TestResult]

    Permalink

    Run the test case against a DELETE endpoint.

    Run the test case against a DELETE endpoint.

    test

    request generator

    Definition Classes
    TestActionSyntax
  24. def testGet(test: EndpointTestCase): Free[TestAction, TestResult]

    Permalink

    Run the test case against a GET endpoint.

    Run the test case against a GET endpoint.

    test

    request generator

    Definition Classes
    TestActionSyntax
  25. def testPost(test: EndpointTestCase): Free[TestAction, TestResult]

    Permalink

    Run the test case against a POST endpoint.

    Run the test case against a POST endpoint.

    test

    request generator

    Definition Classes
    TestActionSyntax
  26. def testPut(test: EndpointTestCase): Free[TestAction, TestResult]

    Permalink

    Run the test case against a PUT endpoint.

    Run the test case against a PUT endpoint.

    test

    request generator

    Definition Classes
    TestActionSyntax
  27. implicit def uriToRequestData(uri: String): RequestData

    Permalink
    Definition Classes
    RequestDataSyntax
  28. package util

    Permalink

Inherited from TestActionSyntax

Inherited from RequestDataSyntax

Inherited from RefactoringTest

Inherited from AnyRef

Inherited from Any

Ungrouped