java.lang.Object | |
↳ | com.atlassian.jira.util.CollectionAssert |
Assertions for unit tests to use on collections. This was originally created to replace methods in the deprecated LegacyJiraMockTestCase.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Asserts that the given collections have exactly the same items in an unordered manner.
| |||||||||||
Check that a collection has only one element, and that is the object provided
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Asserts that the given collections have exactly the same items in an unordered manner. Useful if the expected collections is expressed as a list (which is common) and you don't care about the order of the incoming collection, or that collection is incompatible with List.equals() - eg Set.
expected | Collection |
---|---|
actual | Collection |
Check that a collection has only one element, and that is the object provided