This method enables the following syntax (positiveNumber is a AMatcher):
This method enables the following syntax (positiveNumber is a AMatcher):
javaCol should contain a positiveNumber
^
This method enables the following syntax:
This method enables the following syntax:
javaCol should 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 should contain an oddNumber
^
This method enables the following syntax:
This method enables the following syntax:
javaCol should contain inOrder (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
javaCol should contain inOrderOnly (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
javaCol should contain noneOf (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
javaCol should contain oneOf (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
javaCol should contain only (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
javaCol should contain theSameElementsAs traversable
^
This method enables the following syntax:
This method enables the following syntax:
javaCol should contain theSameIteratedElementsAs anotherTraversable
^
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchersfor an overview of the matchers DSL.