org.cddcore.engine

EngineUniverse

trait EngineUniverse[R] extends EngineTypes[R]

Linear Supertypes
EngineTypes[R], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EngineUniverse
  2. EngineTypes
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type A

    A is a function from the parameters of the engine, and the result to a boolean.

    A is a function from the parameters of the engine, and the result to a boolean. It checks that some property is true

    Definition Classes
    EngineTypes
  2. type AssertionClosure = (A) ⇒ Boolean

    In order to call an A in the building code, when we don't know anything about the arity, we create a closure holding the parameters and reusltand pass the A function to it

    In order to call an A in the building code, when we don't know anything about the arity, we create a closure holding the parameters and reusltand pass the A function to it

    Definition Classes
    EngineTypes
  3. class AssertionDoesntMatchBecauseException extends ScenarioConflictException

  4. class AssertionException extends ScenarioException

  5. abstract type B

    B is a function from the parameters of the engine to a boolean.

    B is a function from the parameters of the engine to a boolean. It is effectively in calculating which scenario is to be used

    Definition Classes
    EngineTypes
  6. type BecauseClosure = (B) ⇒ Boolean

    In order to call a B in the building code, when we don't know anything about the arity, we create a closure holding the parameters and pass the B function to it

    In order to call a B in the building code, when we don't know anything about the arity, we create a closure holding the parameters and pass the B function to it

    Definition Classes
    EngineTypes
  7. trait BuildEngine extends EvaluateEngine with EngineToString

  8. class CannotDefineDefaultTwiceException extends EngineException

  9. class CannotModifyFragmentThatDoesntExistException extends Exception

  10. type CfgClosure = (CfgFn) ⇒ Unit

    Definition Classes
    EngineTypes
  11. abstract type CfgFn

    this is a function from the parameters to Unit e,g, (P1,P2,P3)=> Unit

    this is a function from the parameters to Unit e,g, (P1,P2,P3)=> Unit

    Definition Classes
    EngineTypes
  12. type Code = CodeFn[B, RFn, R]

    This is just a type synonym to save messy code

    This is just a type synonym to save messy code

    Definition Classes
    EngineTypes
  13. case class CodeAndScenarios(code: EngineUniverse.Code, scenarios: List[Scenario] = immutable.this.Nil, default: Boolean = false) extends Product with Serializable

  14. abstract class Engine extends BuildEngine with ScenarioWalker

  15. class EngineResultException extends EngineException

  16. trait EngineToString extends AnyRef

  17. trait EvaluateEngine extends AnyRef

  18. class ExceptionWithoutCodeException extends ScenarioException

  19. abstract type FragFn

    turns parameters into fragment results.

    turns parameters into fragment results. For example in XML in an engine 2 it might be (P1,P2)=>NodeSeq. I would love to know how to make this more type safe...

    Definition Classes
    EngineTypes
  20. trait IfThenPrinter extends AnyRef

  21. class MultipleExceptions extends EngineException

  22. class NoBecauseException extends ScenarioException

  23. class NoExceptionThrownException extends ScenarioException

  24. class NoExpectedException extends ScenarioException

  25. case class Node(because: List[Because[EngineUniverse.B]], inputs: List[Any], yes: RorN, no: RorN, scenarioThatCausedNode: Scenario) extends Product with Serializable

  26. case class NodePath(parent: RorN, result: Boolean) extends Product with Serializable

  27. abstract type ParamsToFragmentFn

    turns the params into a Fragment.

    turns the params into a Fragment. This can be modified by the fragment specifiers

    Definition Classes
    EngineTypes
  28. abstract type RFn

    RFn is a function from the parameters of the engine to a result R.

    RFn is a function from the parameters of the engine to a result R. It is used to calculate the result of the engine

    Definition Classes
    EngineTypes
  29. type RFnMaker = (Either[Exception, R]) ⇒ RFn

    Definition Classes
    EngineTypes
  30. abstract type RealScenarioBuilder <: ScenarioBuilder

    Definition Classes
    EngineUniverseEngineTypes
  31. type ResultClosure = (RFn) ⇒ R

    In order to call a RFN in the building code, when we don't know anything about the arity, we create a closure holding the parameters and pass the B function to it

    In order to call a RFN in the building code, when we don't know anything about the arity, we create a closure holding the parameters and pass the B function to it

    Definition Classes
    EngineTypes
  32. type RorN = Either[CodeAndScenarios, Node]

  33. case class Scenario(locator: String, description: Option[String], params: List[Any], paramPrinter: LoggerDisplayProcessor, expected: ROrException[R] = ROrException.apply[R](), code: Option[CodeFn[EngineUniverse.B, EngineUniverse.RFn, R]] = scala.None, because: Option[Because[EngineUniverse.B]] = scala.None, assertions: List[Assertion[EngineUniverse.A]] = immutable.this.Nil, configuration: Option[EngineUniverse.CfgFn] = scala.None, priority: Int = 0) extends Product with Serializable

  34. class ScenarioBecauseException extends ScenarioException

  35. trait ScenarioBuilder extends ScenarioWalker

  36. class ScenarioConflictException extends ScenarioException

  37. class ScenarioConflictingWithDefaultException extends ScenarioException

  38. class ScenarioConflictingWithoutBecauseException extends ScenarioConflictException

  39. class ScenarioException extends EngineException

  40. case class ScenarioExceptionMap(map: Map[Scenario, Throwable] = ..., first: Option[Throwable] = scala.None) extends Product with Serializable

  41. class ScenarioResultException extends ScenarioException

  42. trait ScenarioVisitor extends AnyRef

  43. trait ScenarioWalker extends AnyRef

  44. case class UseCase(description: String, scenarios: List[Scenario], expected: Option[ROrException[R]]) extends Product with Serializable

  45. class WrongExceptionThrownException extends ScenarioException

Abstract Value Members

  1. abstract def builder: RealScenarioBuilder

  2. abstract def logger: TddLogger

  3. abstract def makeClosureForAssertion(params: List[Any], r: ROrException[R]): (A) ⇒ Boolean

    Definition Classes
    EngineTypes
  4. abstract def makeClosureForBecause(params: List[Any]): (B) ⇒ Boolean

    Definition Classes
    EngineTypes
  5. abstract def makeClosureForCfg(params: List[Any]): (CfgFn) ⇒ Unit

    Definition Classes
    EngineTypes
  6. abstract def makeClosureForResult(params: List[Any]): (RFn) ⇒ R

    Definition Classes
    EngineTypes
  7. abstract def rfnMaker: (Either[() ⇒ Exception, R]) ⇒ RFn

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object AssertionDoesntMatchBecauseException extends Serializable

  7. object CannotDefineDefaultTwiceException extends Serializable

  8. object CodeAndScenarios extends Serializable

  9. object ExceptionScenarioPrinter

  10. object ExceptionWithoutCodeException extends Serializable

  11. object NoExceptionThrownException extends Serializable

  12. object NoExpectedException extends Serializable

  13. object NodePath extends Serializable

  14. object PathPrinter

  15. object ScenarioConflictException extends Serializable

  16. object ScenarioConflictingWithDefaultException extends Serializable

  17. object ScenarioConflictingWithoutBecauseException extends Serializable

  18. object ScenarioResultException extends Serializable

  19. object WrongExceptionThrownException extends Serializable

  20. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  21. def clone(): AnyRef

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  29. final def notify(): Unit

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

    Definition Classes
    AnyRef
  31. val scenarioLens: Lens[RealScenarioBuilder, Scenario]

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from EngineTypes[R]

Inherited from AnyRef

Inherited from Any

Ungrouped