skinny.test

FactoryGirl

case class FactoryGirl[Id, Entity](mapper: CRUDFeatureWithId[Id, Entity], name: Symbol = null) extends LoggerProvider 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, LoggerProvider, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FactoryGirl
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. LoggerProvider
  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. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. var factoriesDir: String

  12. def factoryName: Symbol

    Returns the prefix of factory settings.

    Returns the prefix of factory settings.

    returns

    prefix

  13. def finalize(): Unit

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

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

    Definition Classes
    Any
  16. def loadedAttributes(): Map[scalikejdbc.SQLSyntax, Any]

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

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

    returns

    attributes in conf file

  17. def logger: Logger

    Attributes
    protected
    Definition Classes
    LoggerProvider
  18. def loggerName: String

    Attributes
    protected
    Definition Classes
    LoggerProvider
  19. val mapper: CRUDFeatureWithId[Id, Entity]

  20. val name: Symbol

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

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

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

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

    Definition Classes
    AnyRef
  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( ... )
  28. def withAttributes(attributes: (Symbol, Any)*): FactoryGirl[Id, Entity]

    Appends additional named values.

    Appends additional named values.

    attributes

    attributes

    returns

    self

  29. 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 LoggerProvider

Inherited from AnyRef

Inherited from Any

Ungrouped