class Properties extends AnyRef
Represents a collection of properties, with convenient methods for checking all properties at once.
Properties are added in the following way:
object MyProps extends Properties("MyProps") { property("myProp1") = forAll { (n:Int, m:Int) => n+m == m+n } }
- Annotations
- @EnableReflectiveInstantiation()
- Alphabetic
- By Inheritance
- Properties
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Properties(name: String)
Type Members
- sealed class PropertySpecifier extends AnyRef
Used for specifying properties.
Used for specifying properties. Usage:
property("myProp") = ...
- sealed class PropertyWithSeedSpecifier extends AnyRef
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def check(prms: Parameters = Test.Parameters.default): Unit
Convenience method that checks the properties with the given parameters (or default parameters, if not specified) and reports the result on the console.
Convenience method that checks the properties with the given parameters (or default parameters, if not specified) and reports the result on the console. Should only be used when running tests interactively within the Scala REPL.
If you need to get the results from the test use the
check
methods in org.scalacheck.Test instead. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def include(ps: Properties, prefix: String): Unit
Adds all properties from another property collection to this one with a prefix this is prepended to each included property's name.
- def include(ps: Properties): Unit
Adds all properties from another property collection to this one
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def main(args: Array[String]): Unit
Convenience method that makes it possible to use this property collection as an application that checks itself on execution.
Convenience method that makes it possible to use this property collection as an application that checks itself on execution. Calls
System.exit
with the exit code set to the number of failed properties. - val name: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def overrideParameters(p: Parameters): Parameters
Customize the parameters specific to this class.
Customize the parameters specific to this class.
After the command-line (either main above or sbt) modifies the default parameters, this method is called with the current state of the parameters. This method must then return parameters. The default implementation returns the parameters unchanged. However, a user can override this method in a properties subclass. Their method can modify the parameters. Those parameters will take precedence when the properties are executed.
- def properties: Seq[(String, Prop)]
Returns all properties of this collection in a list of name/property pairs.
- lazy val property: PropertySpecifier
- lazy val propertyWithSeed: PropertyWithSeedSpecifier
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated