Hamcrest: when iterableWithSize fails, it gives a bad message like “got: com.xxx.MyIterClass$1@1970ae0”
问题 In hamcrest (1.3.RC2, with no JUnit dependencies) I am failing using iterableWithSize() with a SpringDataNeo4j library. I have an (extension of) an Iterator parameterized with Content like this EndResult<Content> contents = contentRepository.findAllByPropertyValue("title", "*"); where EndResult is package org.springframework.data.neo4j.conversion; public interface EndResult extends Iterable {...} and Content is a a @NodeEntity Pojo. With the help of Mark Peters I learned that I should call it