Object/Class

com.salesforce.op.testkit

RandomText

Related Docs: class RandomText | package testkit

Permalink

object RandomText extends Serializable

Generators of all kinds of random text data

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RandomText
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. def apply[DataType <: Text](producer: (Random) ⇒ String)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[DataType]): RandomText[DataType]

    Permalink

    Generator of random text-related feature types

    Generator of random text-related feature types

    DataType

    the type of data we produce

    producer

    produces random strings

    returns

    an instance of RandomText

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def base64(minLen: Int, maxLen: Int): RandomText[Base64]

    Permalink

    Produces a random Base64 strings generator

    Produces a random Base64 strings generator

    minLen

    minimum source string length

    maxLen

    maximum source string length

    returns

    a generator that returns random well-formed base64 strings

  7. def cities: RandomText[City]

    Permalink

    Produces random California city names from a list that we keep in our resource file

    Produces random California city names from a list that we keep in our resource file

    returns

    a random city names generator

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def comboBoxes(domain: List[String], distribution: Seq[Double] = Nil): RandomText[ComboBox]

    Permalink

    Produces random comboboxes from a given list of possible values

    Produces random comboboxes from a given list of possible values

    domain

    list of possible values returned by this generator

    distribution

    distribution of probability for this list - if provided; if not, distribution is assumed to be uniform. distribution must be an array of double values, same size as domain; distribution(k) is the probability that an element in domain

    returns

    a random comboboxes generator that only returns elements of domain

  10. def countries: RandomText[Country]

    Permalink

    Produces random country names from a list that we keep in our resource file

    Produces random country names from a list that we keep in our resource file

    returns

    a random country names generator

  11. def emails(domain: String): RandomText[Email]

    Permalink

    Produces emails in the specified domain

    Produces emails in the specified domain

    domain

    email domain (e.g. in "[email protected]": "mid.ru" is domain)

    returns

    a random emails generator

  12. def emailsOn(domains: (Random) ⇒ String): RandomText[Email]

    Permalink

    Produces emails in the specified collection of random domains domains can be provided with probabilities, e.g.

    Produces emails in the specified collection of random domains domains can be provided with probabilities, e.g.

    emailsOn(RandomStream of List("gitmo.mil", "kremlin.ru"))
    emailsOn(RandomStream of List("gitmo.mil", "kremlin.ru") distributedAs List(0.9, 1.0))
    domains

    producer of random email domains (e.g. in "[email protected]": "mid.ru" is domain)

    returns

    a random emails generator

  13. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def ids: RandomText[ID]

    Permalink

    A generator of random IDs, length from 1 to 41 char.

    A generator of random IDs, length from 1 to 41 char. An id consists of alphanumerics and '_'

  19. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def phones: RandomText[Phone]

    Permalink

    A generator of random US phone numbers

  24. def phonesWithErrors(probabilityOfError: Double): RandomText[Phone]

    Permalink

    A generator of random US phone numbers with some errors

  25. def pickLists(domain: List[String], distribution: Seq[Double] = Nil): RandomText[PickList]

    Permalink

    Produces random picklists from a given list of possible values

    Produces random picklists from a given list of possible values

    domain

    list of possible values returned by this generator

    distribution

    distribution of probability for this list - if provided; if not, distribution is assumed to be uniform. distribution must be an array of double values, same size as domain; distribution(k) is the probability that an element in domain

    returns

    a random picklist generator that only returns elements of domain

  26. def postalCodes: RandomText[PostalCode]

    Permalink

    A generator of random US postal codes

  27. def randomComboBoxes: RandomText[ComboBox]

    Permalink

    Produces random comboboxes from random Strings

    Produces random comboboxes from random Strings

    returns

    a random comboboxes generator

  28. def states: RandomText[State]

    Permalink

    Produces random US state names from a list that we keep in our resource file

    Produces random US state names from a list that we keep in our resource file

    returns

    a random state names generator

  29. def streets: RandomText[Street]

    Permalink

    Produces random San Jose street names from a list that we keep in our resource file

    Produces random San Jose street names from a list that we keep in our resource file

    returns

    a random street names generator

  30. def strings(minLen: Int, maxLen: Int): RandomText[Text]

    Permalink

    strings(min, max) produces strings of specified length(s)

    strings(min, max) produces strings of specified length(s)

    minLen

    minimum length of a random string (inclusive)

    maxLen

    maximum length of a random string (exclusive)

    returns

    a random text generator

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

    Permalink
    Definition Classes
    AnyRef
  32. def textAreaFromDomain(domain: List[String], distribution: Seq[Double] = Nil): RandomText[TextArea]

    Permalink

    Produces random TextArea from a given list of possible values

    Produces random TextArea from a given list of possible values

    domain

    list of possible values returned by this generator

    distribution

    distribution of probability for this list - if provided; if not, distribution is assumed to be uniform. distribution must be an array of double values, same size as domain; distribution(k) is the probability that an element in domain

    returns

    a random picklist generator that only returns elements of domain

  33. def textAreas(minLen: Int, maxLen: Int): RandomText[TextArea]

    Permalink

    textAreas(min, max) produces textareas of specified length(s)

    textAreas(min, max) produces textareas of specified length(s)

    minLen

    minimum length of a random string (inclusive)

    maxLen

    maximum length of a random string (exclusive)

    returns

    a random textarea generator

  34. def textFromDomain(domain: List[String], distribution: Seq[Double] = Nil): RandomText[Text]

    Permalink

    Produces random Text from a given list of possible values

    Produces random Text from a given list of possible values

    domain

    list of possible values returned by this generator

    distribution

    distribution of probability for this list - if provided; if not, distribution is assumed to be uniform. distribution must be an array of double values, same size as domain; distribution(k) is the probability that an element in domain

    returns

    a random picklist generator that only returns elements of domain

  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. def uniqueIds: RandomText[ID]

    Permalink

    A generator of random unique IDs, length at least 3, no upper limit (they are unique!).

    A generator of random unique IDs, length at least 3, no upper limit (they are unique!). A unique id consists of alphanumerics and '_', followed by an '_' and a unique serial number

  37. def urls: RandomText[URL]

    Permalink

    A generator of random URLs

  38. def urlsOn(domains: (Random) ⇒ String): RandomText[URL]

    Permalink

    A generator of random URLs on a given source of random domains domains can be provided with probabilities, e.g.

    A generator of random URLs on a given source of random domains domains can be provided with probabilities, e.g.

    emails(RandomStream of List("gitmo.mil", "kremlin.ru"))
    emails(RandomStream of List("gitmo.mil", "kremlin.ru") distributedAs List(0.9, 1.0))
    domains

    producer of random email domains (e.g. in "[email protected]": "mid.ru" is domain)

    returns

    a producer of random urls

  39. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped