deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject [2/2] deltaspike git commit: DELTASPIKE-908 improved test
Date Thu, 04 Jun 2015 13:12:31 GMT
DELTASPIKE-908 improved test

 (interrupt scheduled job before removing it)


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

Branch: refs/heads/master
Commit: b19d1b62ab3deb54a449746ae9eb608d99ea1543
Parents: 937ddb2
Author: gpetracek <gpetracek@apache.org>
Authored: Thu Jun 4 15:02:20 2015 +0200
Committer: gpetracek <gpetracek@apache.org>
Committed: Thu Jun 4 15:10:33 2015 +0200

----------------------------------------------------------------------
 .../deltaspike/test/scheduler/custom/CustomSchedulerTest.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/b19d1b62/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 7b965ae..fe82512 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
@@ -97,8 +97,9 @@ public abstract class CustomSchedulerTest
         this.scheduler.registerNewJob(DeleteJob.class);
         Assert.assertTrue(testJobManager.getRegisteredJobs().contains(DeleteJob.class));
 
+        this.scheduler.interruptJob(DeleteJob.class);
         this.scheduler.deleteJob(DeleteJob.class);
-        Assert.assertFalse(testJobManager.getRegisteredJobs().contains(DeleteJob.class));

+        Assert.assertFalse(testJobManager.getRegisteredJobs().contains(DeleteJob.class));
     }
 
     @Test


Mime
View raw message