Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 205978 Details for
Bug 146226
Request for TestNG ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
A patch to ensure that tests run successfully for testng-5.10
testng-5.10-unit_test_concurrency_fix.patch (text/plain), 2.20 KB, created by
Daniel Solano Gómez
on 2009-10-04 00:39:30 UTC
(
hide
)
Description:
A patch to ensure that tests run successfully for testng-5.10
Filename:
MIME Type:
Creator:
Daniel Solano Gómez
Created:
2009-10-04 00:39:30 UTC
Size:
2.20 KB
patch
obsolete
>Index: test/src/test/configuration/ConfigurationGroupBothSampleTest.java >=================================================================== >--- test/src/test/configuration/ConfigurationGroupBothSampleTest.java (revisión: 753) >+++ test/src/test/configuration/ConfigurationGroupBothSampleTest.java (copia de trabajo) >@@ -1,6 +1,7 @@ > package test.configuration; > > import java.util.ArrayList; >+import java.util.Collections; > import java.util.List; > > import org.testng.annotations.AfterGroups; >@@ -9,7 +10,7 @@ > import org.testng.annotations.Test; > > public class ConfigurationGroupBothSampleTest { >- static List<Integer> m_list = new ArrayList<Integer>(); >+ static List<Integer> m_list = Collections.synchronizedList(new ArrayList<Integer>()); > > @BeforeGroups(groups={"twice"}, value={"twice"}) > public void a(){ >Index: test/src/test/thread/DataProviderThreadPoolSizeSampleTest.java >=================================================================== >--- test/src/test/thread/DataProviderThreadPoolSizeSampleTest.java (revisión: 753) >+++ test/src/test/thread/DataProviderThreadPoolSizeSampleTest.java (copia de trabajo) >@@ -4,6 +4,7 @@ > import org.testng.annotations.DataProvider; > import org.testng.annotations.Test; > >+import java.util.Collections; > import java.util.HashMap; > import java.util.Map; > >@@ -13,7 +14,7 @@ > @BeforeClass(alwaysRun = true) > public void setUp() { > ppp("INIT THREAD IDS"); >- m_threadIds = new HashMap<Long, Long>(); >+ m_threadIds = Collections.synchronizedMap(new HashMap<Long, Long>()); > } > > @DataProvider(parallel = true) >Index: test/src/test/thread/ThreadPoolSizeTest.java >=================================================================== >--- test/src/test/thread/ThreadPoolSizeTest.java (revisión: 753) >+++ test/src/test/thread/ThreadPoolSizeTest.java (copia de trabajo) >@@ -1,5 +1,6 @@ > package test.thread; > >+import java.util.Collections; > import java.util.HashMap; > import java.util.Map; > >@@ -13,7 +14,7 @@ > @BeforeClass > public void setUp() { > ppp("INIT THREAD IDS"); >- m_threadIds = new HashMap<Long, Long>(); >+ m_threadIds = Collections.synchronizedMap(new HashMap<Long, Long>()); > } > > @Test(invocationCount = 10, threadPoolSize = 3)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 146226
:
205976
| 205978 |
205979
|
205980
|
322448
|
322452
|
352644