Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.7
-
None
-
Debian unstable / tomcat7 / opennjdk7
-
Unknown
Description
During testing of bug 4534 I stumbled upon the following behavior. Subsets of tests were passing when run standalone but failing when run in the full test suite.
So I have narrowed it down to one method that fails when another is uncommented in the interface.
Interface:
// uncomment this for the next method to fail
// public Map<String, Map<Integer, Integer>> testDirectComplexMapResult();
// fail – puts data into a hashmap instead of a SortedMap if the above is uncommented
public Map<String, SortedMap<Integer, Integer>> testDirectComplexTreeMapResult();
Implementation:
//@Override
public Map<String, Map<Integer, Integer>> testDirectComplexMapResult()
@Override
public Map<String, SortedMap<Integer, Integer>> testDirectComplexTreeMapResult()
Client:
@Test
public void testDirectComplexTreeMapResult() {
final Map map = TestServiceFactory.getService()
.testDirectComplexTreeMapResult();
log.info(map);
for (final Object vmap : map.values())
}