deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject [1/2] git commit: Revert "DELTASPIKE-479 workaround for old versions of weld"
Date Wed, 25 Dec 2013 15:09:27 GMT
Updated Branches:
  refs/heads/master 4a9effa8f -> 9c946f4a1


Revert "DELTASPIKE-479 workaround for old versions of weld"

This reverts commit 4a9effa8f6c7f7a300ac4a7e0c5b92c3fe34e052.


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

Branch: refs/heads/master
Commit: 92cc355e88d227470e1ebc70589477b366132d50
Parents: 4a9effa
Author: gpetracek <gpetracek@apache.org>
Authored: Wed Dec 25 15:53:25 2013 +0100
Committer: gpetracek <gpetracek@apache.org>
Committed: Wed Dec 25 15:53:25 2013 +0100

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


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/92cc355e/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 b8a0692..489c2cf 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,27 +19,21 @@
 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
 {
-    //don't use @Inject here - due to an issue with old versions of weld
+    @Inject
     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