Class

skinny.test

FactoryGirl

Related Doc: package test

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. val autoSession: AutoSession.type

    Permalink
  6. def clone(): AnyRef

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

    Permalink

    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. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def factoryName: Symbol

    Permalink

    Returns the prefix of factory settings.

    Returns the prefix of factory settings.

    returns

    prefix

  10. def finalize(): Unit

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

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

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

    Permalink

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

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

    returns

    attributes in conf file

  14. def logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LoggerProvider
  15. def loggerName: String

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

    Permalink
  17. val name: Symbol

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def withAttributes(attributes: (Symbol, Any)*): FactoryGirl[Id, Entity]

    Permalink

    Appends additional named values.

    Appends additional named values.

    attributes

    attributes

    returns

    self

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

    Permalink

    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 LoggerProvider

Inherited from AnyRef

Inherited from Any

Ungrouped