From 37faec0c3a8f981b7b5f7ab30cd20cf3dd0b8162 Mon Sep 17 00:00:00 2001 From: vmassol Date: Thu, 27 Nov 2003 20:19:46 +0000 Subject: [PATCH] Added plugin tests git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114420 13f79535-47bb-0310-9956-ffa450edef68 --- clover/src/plugin-test/maven.xml | 27 ++++++++ clover/src/plugin-test/project.properties | 1 + clover/src/plugin-test/project.xml | 35 ++++++++++ .../org/apache/maven/clover/test/Simple.java | 64 +++++++++++++++++ .../apache/maven/clover/test/SimpleTest.java | 68 +++++++++++++++++++ 5 files changed, 195 insertions(+) create mode 100644 clover/src/plugin-test/maven.xml create mode 100644 clover/src/plugin-test/project.properties create mode 100644 clover/src/plugin-test/project.xml create mode 100644 clover/src/plugin-test/src/main/org/apache/maven/clover/test/Simple.java create mode 100644 clover/src/plugin-test/src/test/org/apache/maven/clover/test/SimpleTest.java diff --git a/clover/src/plugin-test/maven.xml b/clover/src/plugin-test/maven.xml new file mode 100644 index 00000000..000ae1fd --- /dev/null +++ b/clover/src/plugin-test/maven.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/clover/src/plugin-test/project.properties b/clover/src/plugin-test/project.properties new file mode 100644 index 00000000..39461619 --- /dev/null +++ b/clover/src/plugin-test/project.properties @@ -0,0 +1 @@ +maven.clover.report.xml = true diff --git a/clover/src/plugin-test/project.xml b/clover/src/plugin-test/project.xml new file mode 100644 index 00000000..56ad7045 --- /dev/null +++ b/clover/src/plugin-test/project.xml @@ -0,0 +1,35 @@ + + + 3 + test-maven-clover-plugin + Maven Clover plugin test + maven + 1.0 + + Apache Software Foundation + http://jakarta.apache.org/ + + 2003 + org.apache.maven.clover.test + Test project for Maven Clover plugin + http://maven.apache.org/reference/plugins/clover/ + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/clover/ + http://cvs.apache.org/viewcvs/maven-plugins/clover/ + + + + + + src/main + src/test + + + **/Test*.java + + + + + maven-clover-plugin + + \ No newline at end of file diff --git a/clover/src/plugin-test/src/main/org/apache/maven/clover/test/Simple.java b/clover/src/plugin-test/src/main/org/apache/maven/clover/test/Simple.java new file mode 100644 index 00000000..3ff9246f --- /dev/null +++ b/clover/src/plugin-test/src/main/org/apache/maven/clover/test/Simple.java @@ -0,0 +1,64 @@ +package org.apache.maven.clover.test; + +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2001 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache Maven" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache Maven", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + * + * ==================================================================== + */ + +public class Simple +{ + public void someMethod() + { + } +} \ No newline at end of file diff --git a/clover/src/plugin-test/src/test/org/apache/maven/clover/test/SimpleTest.java b/clover/src/plugin-test/src/test/org/apache/maven/clover/test/SimpleTest.java new file mode 100644 index 00000000..dfee3a6d --- /dev/null +++ b/clover/src/plugin-test/src/test/org/apache/maven/clover/test/SimpleTest.java @@ -0,0 +1,68 @@ +package org.apache.maven.clover.test; + +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2001 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache Maven" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache Maven", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + * + * ==================================================================== + */ + +import junit.framework.TestCase; + +public class SimpleTest extends TestCase +{ + public void testSomeMethod() + { + Simple simple = new Simple(); + simple.someMethod(); + } +} \ No newline at end of file