public < K , V > void assertDoesNotContainDuplicateValues ( Description description , Map < K , V > actual ) { assertNotNull ( description , actual ) ; Collection < ? > duplicates = duplicatesFrom ( actual . values ( ) ) ; if ( ! duplicates . isEmpty ( ) ) { throw failures . failure ( description , shouldNotHaveDuplicates ( actual , duplicates ) ) ; } }
Asserts that the actual map does not contain the duplicate values .