Community
Participate
Working Groups
I20050215-2300 (m5 test pass) When searching for references to 'style', the reference in the annotation specification to randomAccess should be found as well. /** * Marks a method as being a test. */ @Target(METHOD) @Documented @interface Test { TestStyle style() default CORRECTNESS; } /** * Tests the random access time to a list. */ @Test(style=PERFORMANCE) public void randomAccess() { List<E> vector= fFull; long before= System.currentTimeMillis(); E one= vector.get(42); long after= System.currentTimeMillis(); Long maxAccessTime= new Long(100); assertTrue(after - before < maxAccessTime); }
Note that this should also work when searching for references to the default 'value' element.
*** This bug has been marked as a duplicate of 83230 ***