Hi,

Does anyone have any example JUnit 3.x test cases for testing compilation failures on generifying collections?

For example, the end of the current test case TestCollectionUtils#testForAllDo asserts that adding invoking CollectionUtils#forAllDo(Collection c, Closure cl) fails when cl is defined to accept Collection and c is defined to contain Strings. After generifying CollectionUtils#forAllDo(Collection<T> c, Closure<T> cl), the test case will no longer compile and I'd prefer to replace it with a JSE5 compatible assertion rather than delete it - does anyone have any thoughts on this?

Steve.
--
Stephen Smith, MEng (Wales).
http://www.stephen-smith.co.uk/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to