You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by ma...@apache.org on 2017/11/30 14:18:45 UTC
deltaspike git commit: DELTASPIKE-1302 Fix test deployment archive.
Repository: deltaspike
Updated Branches:
refs/heads/master 390d270cc -> e10e8863a
DELTASPIKE-1302 Fix test deployment archive.
Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/e10e8863
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/e10e8863
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/e10e8863
Branch: refs/heads/master
Commit: e10e8863afcaeafc37c0d1184fb6d8058a68d081
Parents: 390d270
Author: Matej Novotny <ma...@apache.org>
Authored: Thu Nov 30 15:18:12 2017 +0100
Committer: Matej Novotny <ma...@apache.org>
Committed: Thu Nov 30 15:18:12 2017 +0100
----------------------------------------------------------------------
.../test/core/impl/future/ThreadPoolManagerTest.java | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltaspike/blob/e10e8863/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/impl/future/ThreadPoolManagerTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/impl/future/ThreadPoolManagerTest.java b/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/impl/future/ThreadPoolManagerTest.java
index f7f43bc..f1c4ec0 100644
--- a/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/impl/future/ThreadPoolManagerTest.java
+++ b/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/impl/future/ThreadPoolManagerTest.java
@@ -41,6 +41,7 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import javax.inject.Inject;
+
import java.util.Collections;
import java.util.Properties;
import java.util.concurrent.Callable;
@@ -51,6 +52,8 @@ import java.util.concurrent.ThreadPoolExecutor;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertSame;
+import org.apache.deltaspike.test.util.ArchiveUtils;
+
@RunWith(Arquillian.class)
public class ThreadPoolManagerTest
{
@@ -58,14 +61,7 @@ public class ThreadPoolManagerTest
public static WebArchive deploy()
{
return ShrinkWrap.create(WebArchive.class, "ThreadPoolManagerTest.war")
- .addAsLibraries(ShrinkWrap.create(JavaArchive.class, "deltaspike-core-fake.jar")
- .addClasses(
- ThreadPoolManager.class,
- WindowContextProducer.class, WindowBeanHolder.class, WindowIdHolder.class,
- DefaultWindowContextQuotaHandler.class, WindowContextQuotaHandlerCache.class,
- ConversationBeanHolder.class, ViewAccessBeanHolder.class,
- ViewAccessBeanAccessHistory.class, ViewAccessViewHistory.class)
- .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml"))
+ .addAsLibraries(ArchiveUtils.getDeltaSpikeCoreArchive())
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
}