Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 146226 | Differences between
and this patch

Collapse All | Expand All

(-)test/src/test/configuration/ConfigurationGroupBothSampleTest.java (-1 / +2 lines)
Lines 1-6 Link Here
1
package test.configuration;
1
package test.configuration;
2
2
3
import java.util.ArrayList;
3
import java.util.ArrayList;
4
import java.util.Collections;
4
import java.util.List;
5
import java.util.List;
5
6
6
import org.testng.annotations.AfterGroups;
7
import org.testng.annotations.AfterGroups;
Lines 9-15 Link Here
9
import org.testng.annotations.Test;
10
import org.testng.annotations.Test;
10
11
11
public class ConfigurationGroupBothSampleTest {
12
public class ConfigurationGroupBothSampleTest {
12
  static List<Integer> m_list = new ArrayList<Integer>();
13
  static List<Integer> m_list = Collections.synchronizedList(new ArrayList<Integer>());
13
  
14
  
14
  @BeforeGroups(groups={"twice"}, value={"twice"})
15
  @BeforeGroups(groups={"twice"}, value={"twice"})
15
  public void a(){
16
  public void a(){
(-)test/src/test/thread/DataProviderThreadPoolSizeSampleTest.java (-1 / +2 lines)
Lines 4-9 Link Here
4
import org.testng.annotations.DataProvider;
4
import org.testng.annotations.DataProvider;
5
import org.testng.annotations.Test;
5
import org.testng.annotations.Test;
6
6
7
import java.util.Collections;
7
import java.util.HashMap;
8
import java.util.HashMap;
8
import java.util.Map;
9
import java.util.Map;
9
10
Lines 13-19 Link Here
13
  @BeforeClass(alwaysRun = true)
14
  @BeforeClass(alwaysRun = true)
14
  public void setUp() {
15
  public void setUp() {
15
    ppp("INIT THREAD IDS");
16
    ppp("INIT THREAD IDS");
16
    m_threadIds = new HashMap<Long, Long>();    
17
    m_threadIds = Collections.synchronizedMap(new HashMap<Long, Long>()); 
17
  }
18
  }
18
  
19
  
19
  @DataProvider(parallel = true)
20
  @DataProvider(parallel = true)
(-)test/src/test/thread/ThreadPoolSizeTest.java (-1 / +2 lines)
Lines 1-5 Link Here
1
package test.thread;
1
package test.thread;
2
2
3
import java.util.Collections;
3
import java.util.HashMap;
4
import java.util.HashMap;
4
import java.util.Map;
5
import java.util.Map;
5
6
Lines 13-19 Link Here
13
  @BeforeClass
14
  @BeforeClass
14
  public void setUp() {
15
  public void setUp() {
15
    ppp("INIT THREAD IDS");
16
    ppp("INIT THREAD IDS");
16
    m_threadIds = new HashMap<Long, Long>();    
17
    m_threadIds = Collections.synchronizedMap(new HashMap<Long, Long>());    
17
  }
18
  }
18
19
19
  @Test(invocationCount = 10, threadPoolSize = 3)
20
  @Test(invocationCount = 10, threadPoolSize = 3)

Return to bug 146226