You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rm...@apache.org on 2016/02/05 08:04:48 UTC

tomee git commit: not sure where this file comes from

Repository: tomee
Updated Branches:
  refs/heads/master 891f8df58 -> 3578ba611


not sure where this file comes from


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

Branch: refs/heads/master
Commit: 3578ba6119c0104d8784806263a18aa2403ca118
Parents: 891f8df
Author: Romain manni-Bucau <rm...@gmail.com>
Authored: Fri Feb 5 08:04:30 2016 +0100
Committer: Romain manni-Bucau <rm...@gmail.com>
Committed: Fri Feb 5 08:04:30 2016 +0100

----------------------------------------------------------------------
 .../java/org/superbiz/quartz/QuartzMdbTest.java | 67 --------------------
 1 file changed, 67 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/3578ba61/examples/quartz-app/quartz-beans/src#test/java/org/superbiz/quartz/QuartzMdbTest.java
----------------------------------------------------------------------
diff --git a/examples/quartz-app/quartz-beans/src#test/java/org/superbiz/quartz/QuartzMdbTest.java b/examples/quartz-app/quartz-beans/src#test/java/org/superbiz/quartz/QuartzMdbTest.java
deleted file mode 100644
index 784f993..0000000
--- a/examples/quartz-app/quartz-beans/src#test/java/org/superbiz/quartz/QuartzMdbTest.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- * <p/>
- * http://www.apache.org/licenses/LICENSE-2.0
- * <p/>
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.quartz;
-
-import org.apache.openejb.config.OutputGeneratedDescriptors;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import java.util.Date;
-import java.util.Properties;
-
-public class QuartzMdbTest {
-
-    private static InitialContext initialContext = null;
-
-    @BeforeClass
-    public static void beforeClass() throws Exception {
-        System.setProperty(OutputGeneratedDescriptors.OUTPUT_DESCRIPTORS, "false"); // just to avoid to dump files in /tmp
-        if (null == initialContext) {
-            Properties properties = new Properties();
-            properties.setProperty("openejb.deployments.classpath.include", ".*quartz-.*");
-            properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.core.LocalInitialContextFactory");
-
-            initialContext = new InitialContext(properties);
-        }
-    }
-
-    @AfterClass
-    public static void afterClass() throws Exception {
-        if (null != initialContext) {
-            initialContext.close();
-            initialContext = null;
-        }
-    }
-
-    @Test
-    public void testLookup() throws Exception {
-
-        final JobScheduler jbi = (JobScheduler) initialContext.lookup("JobBeanLocal");
-        final Date d = jbi.createJob();
-        Thread.sleep(500);
-        System.out.println("Scheduled test job should have run at: " + d.toString());
-    }
-
-    @Test
-    public void testMdb() throws Exception {
-        // Sleep 3 seconds and give quartz a chance to execute our MDB
-        Thread.sleep(3000);
-    }
-}