skinny.test

FactoryGirl

case class FactoryGirl[Id, Entity](mapper: CRUDFeatureWithId[Id, Entity], name: Symbol = null) extends Logging with Product with Serializable

Test data generator highly inspired by thoughtbot/factory_girl

See also

"https://github.com/thoughtbot/factory_girl"

Linear Supertypes
Serializable, Serializable, Product, Equals, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FactoryGirl
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Logging
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FactoryGirl(mapper: CRUDFeatureWithId[Id, Entity], name: Symbol = null)

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. val autoSession: AutoSession.type

  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def create(attributes: (Symbol, Any)*)(implicit s: DBSession = autoSession): Entity

    Creates a record with factories.conf & some replaced attributes.

    Creates a record with factories.conf & some replaced attributes.

    attributes

    attributes

    s

    session

    returns

    created entity

  8. def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  9. def debug(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def error(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  12. def error(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  13. def factoryName: Symbol

    Returns the prefix of factory settings.

    Returns the prefix of factory settings.

    returns

    prefix

  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 info(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  17. def info(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  18. def isDebugEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  19. def isErrorEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  20. def isInfoEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def isTraceEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  23. def isWarnEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  24. def loadedAttributes(): Map[scalikejdbc.SQLSyntax, Any]

    Loads attributes from "src/test/resources/factories.conf".

    Loads attributes from "src/test/resources/factories.conf".

    returns

    attributes in conf file

  25. def logger: Logger

    Attributes
    protected
    Definition Classes
    Logging
  26. def loggerName: String

    Attributes
    protected
    Definition Classes
    Logging
  27. val mapper: CRUDFeatureWithId[Id, Entity]

  28. val name: Symbol

  29. final def ne(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef
  33. def trace(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  34. def trace(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def warn(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  39. def warn(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  40. def withAttributes(attributes: (Symbol, Any)*): FactoryGirl[Id, Entity]

    Appends additional named values.

    Appends additional named values.

    attributes

    attributes

    returns

    self

  41. def withVariables(namedValues: (Symbol, Any)*): FactoryGirl[Id, Entity]

    Set named values to bind #{name} in "src/test/resources/factories.conf".

    Set named values to bind #{name} in "src/test/resources/factories.conf".

    namedValues

    named values

    returns

    self

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped