This method enables the following syntax (positiveNumber is a AMatcher):
This method enables the following syntax (positiveNumber is a AMatcher):
javaCol must contain a positiveNumber
^
This method enables the following syntax:
This method enables the following syntax:
javaCol must contain allOf (1, 2)
^
This method enables the following syntax (oddNumber is a AnMatcher):
This method enables the following syntax (oddNumber is a AnMatcher):
javaCol must contain an oddNumber
^
This method enables the following syntax:
This method enables the following syntax:
javaCol must contain inOrder (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
javaCol must contain inOrderOnly (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
javaCol must contain noneOf (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
javaCol must contain oneOf (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
javaCol must contain only (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
javaCol must contain theSameElementsAs traversable
^
This method enables the following syntax:
This method enables the following syntax:
javaCol must contain theSameIteratedElementsAs anotherTraversable
^
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchersfor an overview of the matchers DSL.