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: 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val autoSession: AutoSession.type

  8. def clone(): AnyRef

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

    Creates a record with factories.

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

    attributes

    attributes

    s

    session

    returns

    created entity

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Logging
  15. def factoryName: Symbol

    Returns the prefix of factory settings.

    Returns the prefix of factory settings.

    returns

    prefix

  16. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  18. def info(msg: ⇒ Any, t: ⇒ Throwable): Unit

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

    Attributes
    protected
    Definition Classes
    Logging
  20. def isDebugEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  21. def isErrorEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  22. def isInfoEnabled: Boolean

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

    Definition Classes
    Any
  24. def isTraceEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  25. def isWarnEnabled: Boolean

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

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

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

    returns

    attributes in conf file

  27. def logger: Logger

    Attributes
    protected
    Definition Classes
    Logging
  28. def loggerName: String

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

  30. val name: Symbol

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

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

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

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

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

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

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

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

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

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

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

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

    Appends additional named values.

    Appends additional named values.

    attributes

    attributes

    returns

    self

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

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

    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