axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Daniels <gdani...@macromedia.com>
Subject RE: cvs commit: xml-axis/java/src/org/apache/axis/utils JavaUtils .java
Date Wed, 17 Apr 2002 15:04:20 GMT

>   +        ret = JavaUtils.convert(array, Collection.class);
>   +        assertTrue("Converted array not an ArrayList", 
> (ret instanceof ArrayList));
>   +        
>   +        ret = JavaUtils.convert(array, Set.class);
>   +        assertTrue("Converted array not a HashSet", (ret 
> instanceof HashSet));

I think these are too limiting - if you want a Collection, you should just test that you got
a Collection and perhaps that it works (contains the right stuff), not that our current implementation
happens to return an ArrayList.  Same with Set/HashSet.   

--Glen

Mime
View raw message