cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [13/13] cayenne git commit: CAY-2345 Own template renderer as a replacement for Velocity - additional test for Module provider - closes #238
Date Wed, 16 Aug 2017 15:37:05 GMT
CAY-2345 Own template renderer as a replacement for Velocity
  - additional test for Module provider
  - closes #238


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

Branch: refs/heads/master
Commit: d249aa37d8523fd3cfe1b7aa809b12f8eb36b79c
Parents: 86f418c
Author: Nikita Timofeev <stariy95@gmail.com>
Authored: Fri Aug 11 17:39:34 2017 +0300
Committer: Nikita Timofeev <stariy95@gmail.com>
Committed: Wed Aug 16 18:35:56 2017 +0300

----------------------------------------------------------------------
 cayenne-velocity/pom.xml                        |  7 ++++
 .../velocity/VelocityModuleProviderTest.java    | 35 ++++++++++++++++++++
 2 files changed, 42 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/d249aa37/cayenne-velocity/pom.xml
----------------------------------------------------------------------
diff --git a/cayenne-velocity/pom.xml b/cayenne-velocity/pom.xml
index 7246cd7..66f1a1d 100644
--- a/cayenne-velocity/pom.xml
+++ b/cayenne-velocity/pom.xml
@@ -55,6 +55,13 @@
             <scope>test</scope>
         </dependency>
         <dependency>
+            <groupId>org.apache.cayenne</groupId>
+            <artifactId>cayenne-server</artifactId>
+            <version>${project.version}</version>
+            <type>test-jar</type>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
             <groupId>org.mockito</groupId>
             <artifactId>mockito-core</artifactId>
             <scope>test</scope>

http://git-wip-us.apache.org/repos/asf/cayenne/blob/d249aa37/cayenne-velocity/src/test/java/org/apache/cayenne/velocity/VelocityModuleProviderTest.java
----------------------------------------------------------------------
diff --git a/cayenne-velocity/src/test/java/org/apache/cayenne/velocity/VelocityModuleProviderTest.java
b/cayenne-velocity/src/test/java/org/apache/cayenne/velocity/VelocityModuleProviderTest.java
new file mode 100644
index 0000000..d404296
--- /dev/null
+++ b/cayenne-velocity/src/test/java/org/apache/cayenne/velocity/VelocityModuleProviderTest.java
@@ -0,0 +1,35 @@
+/*****************************************************************
+ *   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
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  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.apache.cayenne.velocity;
+
+import org.apache.cayenne.configuration.server.CayenneServerModuleProvider;
+import org.apache.cayenne.unit.util.ModuleProviderChecker;
+import org.junit.Test;
+
+/**
+ * @since 4.1
+ */
+public class VelocityModuleProviderTest {
+
+    @Test
+    public void testServerAutoLoadable() {
+        ModuleProviderChecker.testProviderPresent(VelocityServerModuleProvider.class, CayenneServerModuleProvider.class);
+    }
+}


Mime
View raw message