public void setSuiteIdsUsingZeroBasedIndex ( ) { synchronized ( cachedSuites ) { List < WebAgentTestSuite > s = new ArrayList <> ( cachedSuites . values ( ) ) ; cachedSuites . clear ( ) ; for ( int index = 0 ; index < s . size ( ) ; index ++ ) { WebAgentTestSuite suite = s . get ( index ) ; cachedSuites . put ( suite . getTestSuiteName ( ) + "-" + index , suite ) ; } } }
A testing hook to set the cached suites to have predictable keys