deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject git commit: DELTASPIKE-479 workaround for old versions of weld
Date Wed, 25 Dec 2013 14:23:28 GMT
Updated Branches:
  refs/heads/master 7b0650b95 -> 4a9effa8f


DELTASPIKE-479 workaround for old versions of weld


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/4a9effa8
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/4a9effa8
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/4a9effa8

Branch: refs/heads/master
Commit: 4a9effa8f6c7f7a300ac4a7e0c5b92c3fe34e052
Parents: 7b0650b
Author: gpetracek <gpetracek@apache.org>
Authored: Wed Dec 25 15:20:06 2013 +0100
Committer: gpetracek <gpetracek@apache.org>
Committed: Wed Dec 25 15:20:06 2013 +0100

----------------------------------------------------------------------
 .../test/scheduler/custom/CustomSchedulerTest.java      | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/4a9effa8/deltaspike/modules/scheduler/impl/src/test/java/org/apache/deltaspike/test/scheduler/custom/CustomSchedulerTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/scheduler/impl/src/test/java/org/apache/deltaspike/test/scheduler/custom/CustomSchedulerTest.java
b/deltaspike/modules/scheduler/impl/src/test/java/org/apache/deltaspike/test/scheduler/custom/CustomSchedulerTest.java
index 489c2cf..b8a0692 100644
--- a/deltaspike/modules/scheduler/impl/src/test/java/org/apache/deltaspike/test/scheduler/custom/CustomSchedulerTest.java
+++ b/deltaspike/modules/scheduler/impl/src/test/java/org/apache/deltaspike/test/scheduler/custom/CustomSchedulerTest.java
@@ -19,21 +19,27 @@
 package org.apache.deltaspike.test.scheduler.custom;
 
 import junit.framework.Assert;
+import org.apache.deltaspike.core.api.provider.BeanProvider;
 import org.apache.deltaspike.scheduler.spi.Scheduler;
+import org.junit.Before;
 import org.junit.Test;
 
-import javax.enterprise.inject.Typed;
 import javax.inject.Inject;
 
-@Typed()
 public abstract class CustomSchedulerTest
 {
-    @Inject
+    //don't use @Inject here - due to an issue with old versions of weld
     private Scheduler<CustomJob> scheduler;
 
     @Inject
     private TestJobManager testJobManager;
 
+    @Before
+    public void init()
+    {
+        this.scheduler = BeanProvider.getContextualReference(Scheduler.class);
+    }
+
     @Test
     public void checkAutoRegisteredSchedulerJob()
     {


Mime
View raw message