Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7B21E200CE6 for ; Wed, 16 Aug 2017 17:36:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 79275168E30; Wed, 16 Aug 2017 15:36:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BD068168E35 for ; Wed, 16 Aug 2017 17:36:57 +0200 (CEST) Received: (qmail 25632 invoked by uid 500); 16 Aug 2017 15:36:57 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 25157 invoked by uid 99); 16 Aug 2017 15:36:55 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2017 15:36:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 327D5F32F4; Wed, 16 Aug 2017 15:36:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ntimofeev@apache.org To: commits@cayenne.apache.org Date: Wed, 16 Aug 2017 15:37:05 -0000 Message-Id: <7c73b2677bce4400bd12b395ee797916@git.apache.org> In-Reply-To: <544b55a0a4ca4ecdb5469018ac7ba2bc@git.apache.org> References: <544b55a0a4ca4ecdb5469018ac7ba2bc@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [13/13] cayenne git commit: CAY-2345 Own template renderer as a replacement for Velocity - additional test for Module provider - closes #238 archived-at: Wed, 16 Aug 2017 15:36:58 -0000 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 Authored: Fri Aug 11 17:39:34 2017 +0300 Committer: Nikita Timofeev 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 @@ test + org.apache.cayenne + cayenne-server + ${project.version} + test-jar + test + + org.mockito mockito-core test 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); + } +}