himanshudixit / google-collections

Automatically exported from code.google.com/p/google-collections
Apache License 2.0
0 stars 0 forks source link

Test fails for ibm jdk: CollectionToStringTester#testToString_size1 #198

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

  I use the google-collections test framework and recently hit an
issue with testing our libraries on multiple-environments.
Specifically on ibm jdk 1.6.0_04.

I got the following test failing using that jdk:

testToString_size1[ArrayBackedMap [collection size: one] entrySet
[collection size: one]]    Failure    size1Collection.toString should
return [{element}] expected:<[[java.util.Collections$SingletonMap
$1$1$1@f656562c]]> but was:<[[one=January]]>

This is basically because SingletonMap's entrySet implementation in
ibm jdk does not have a toString method and the one in Sun's does.
I was wondering, since toString is not part of the spec, should this
test be relaxed to not test for something like this?

Comments appreciated.

Thanks,
Abhi

Original issue reported on code.google.com by abhishek...@gmail.com on 23 Jun 2009 at 1:46

GoogleCodeExporter commented 9 years ago
I'd like our tests to pass on all platforms, but I don't know if we have the 
time for 
this issue until post-1.0.  This looks like a test-only issue, not a problem 
with the 
library.

Original comment by kevin...@gmail.com on 17 Sep 2009 at 5:04

GoogleCodeExporter commented 9 years ago

Original comment by kevin...@gmail.com on 17 Sep 2009 at 5:45

GoogleCodeExporter commented 9 years ago

Original comment by kevin...@gmail.com on 17 Sep 2009 at 6:00

GoogleCodeExporter commented 9 years ago
This issue has been moved to the Guava project (keeping the same id number). 
Simply replace 'google-collections' with 'guava-libraries' in your address 
bar and it should take you there.

Original comment by kevinb@google.com on 5 Jan 2010 at 11:09