From 772038390f5833c9acd367bf80211aeccb6b4eaa Mon Sep 17 00:00:00 2001 From: Alex Vargas Date: Thu, 25 May 2017 14:45:53 -0700 Subject: [PATCH] Code snippets for article BAEL-818 (#1934) * Quartz example for article: Introduction to Quartz * Adding new module for Java Quartz * Removing Quartz code from jee7 module * Fixing folder structure * Removing java-quartz module and adding code snippets in libraries module --- java-quartz/pom.xml | 31 --------------- .../com/baeldung/java_quartz/AppTest.java | 38 ------------------- libraries/pom.xml | 5 +++ .../com/baeldung/quartz}/QuartzExample.java | 2 +- .../java/com/baeldung/quartz}/SimpleJob.java | 2 +- 5 files changed, 7 insertions(+), 71 deletions(-) delete mode 100644 java-quartz/pom.xml delete mode 100644 java-quartz/src/test/java/com/baeldung/java_quartz/AppTest.java rename {java-quartz/src/main/java/com/baeldung/java_quartz => libraries/src/main/java/com/baeldung/quartz}/QuartzExample.java (97%) rename {java-quartz/src/main/java/com/baeldung/java_quartz => libraries/src/main/java/com/baeldung/quartz}/SimpleJob.java (89%) diff --git a/java-quartz/pom.xml b/java-quartz/pom.xml deleted file mode 100644 index 51b9d56a7b..0000000000 --- a/java-quartz/pom.xml +++ /dev/null @@ -1,31 +0,0 @@ - - 4.0.0 - - com.baeldung - java-quartz - 0.0.1-SNAPSHOT - jar - - java-quartz - http://maven.apache.org - - - UTF-8 - - - - - junit - junit - 3.8.1 - test - - - org.quartz-scheduler - quartz - 2.3.0 - - - - diff --git a/java-quartz/src/test/java/com/baeldung/java_quartz/AppTest.java b/java-quartz/src/test/java/com/baeldung/java_quartz/AppTest.java deleted file mode 100644 index 68754c2c15..0000000000 --- a/java-quartz/src/test/java/com/baeldung/java_quartz/AppTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.baeldung.java_quartz; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -/** - * Unit test for simple App. - */ -public class AppTest - extends TestCase -{ - /** - * Create the test case - * - * @param testName name of the test case - */ - public AppTest( String testName ) - { - super( testName ); - } - - /** - * @return the suite of tests being tested - */ - public static Test suite() - { - return new TestSuite( AppTest.class ); - } - - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); - } -} diff --git a/libraries/pom.xml b/libraries/pom.xml index 6d41902db7..95948a83dd 100644 --- a/libraries/pom.xml +++ b/libraries/pom.xml @@ -269,6 +269,11 @@ h2 1.4.195 + + org.quartz-scheduler + quartz + 2.3.0 + 0.7.0 diff --git a/java-quartz/src/main/java/com/baeldung/java_quartz/QuartzExample.java b/libraries/src/main/java/com/baeldung/quartz/QuartzExample.java similarity index 97% rename from java-quartz/src/main/java/com/baeldung/java_quartz/QuartzExample.java rename to libraries/src/main/java/com/baeldung/quartz/QuartzExample.java index 89cd2680e2..1e37fc028b 100644 --- a/java-quartz/src/main/java/com/baeldung/java_quartz/QuartzExample.java +++ b/libraries/src/main/java/com/baeldung/quartz/QuartzExample.java @@ -1,4 +1,4 @@ -package com.baeldung.java_quartz; +package com.baeldung.quartz; import org.quartz.JobBuilder; import org.quartz.JobDetail; diff --git a/java-quartz/src/main/java/com/baeldung/java_quartz/SimpleJob.java b/libraries/src/main/java/com/baeldung/quartz/SimpleJob.java similarity index 89% rename from java-quartz/src/main/java/com/baeldung/java_quartz/SimpleJob.java rename to libraries/src/main/java/com/baeldung/quartz/SimpleJob.java index a9e677c24f..370d698d13 100644 --- a/java-quartz/src/main/java/com/baeldung/java_quartz/SimpleJob.java +++ b/libraries/src/main/java/com/baeldung/quartz/SimpleJob.java @@ -1,4 +1,4 @@ -package com.baeldung.java_quartz; +package com.baeldung.quartz; import org.quartz.Job; import org.quartz.JobExecutionContext;