Packages

ScalaTest is brought to you by:

case class MaxSize(value: Int) extends PropertyCheckConfigParam with Product with Serializable

A PropertyCheckConfigParam that specifies the maximum size parameter to provide to ScalaCheck, which it will use when generating objects for which size matters (such as strings or lists).

Note that the maximum size should be greater than or equal to the minimum size. This requirement is enforced by the PropertyCheckConfig constructor and the forAll methods of traits PropertyChecks and Checkers. In other words, it is enforced at the point both a maximum and minimum size are provided together.

Annotations
@deprecated
Deprecated

use SizeRange instead

Source
Configuration.scala
Exceptions thrown

IllegalArgumentException if specified value is less than zero.

Linear Supertypes
PropertyCheckConfigParam, Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MaxSize
  2. PropertyCheckConfigParam
  3. Serializable
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MaxSize(value: Int)

    Exceptions thrown

    IllegalArgumentException if specified value is less than zero.

Value Members

  1. val value: Int