maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r584768 - /maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizantTest.java
Date Mon, 15 Oct 2007 12:23:43 GMT
Author: vsiveton
Date: Mon Oct 15 05:23:42 2007
New Revision: 584768

URL: http://svn.apache.org/viewvc?rev=584768&view=rev
Log:
o added Vizant test case

Added:
    maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizantTest.java
  (with props)

Added: maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizantTest.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizantTest.java?rev=584768&view=auto
==============================================================================
--- maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizantTest.java
(added)
+++ maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizantTest.java
Mon Oct 15 05:23:42 2007
@@ -0,0 +1,61 @@
+package org.apache.maven.jxr.ant.doc;
+
+/*
+ * 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.
+ */
+
+import java.io.File;
+
+import junit.framework.TestCase;
+
+import org.apache.tools.ant.Project;
+
+/**
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ */
+public class VizantTest
+    extends TestCase
+{
+    /**
+     * Call Vizabt task
+     *
+     * @throws Exception if any.
+     */
+    public void testExecute()
+        throws Exception
+    {
+        final String basedir = new File( "" ).getAbsolutePath();
+
+        Project antProject = new Project();
+        antProject.setBasedir( basedir );
+
+        File targetDir = new File( basedir, "target/unit/vizant" );
+
+        File build = new File( basedir, "src/test/resources/build.xml" );
+        File buildGraph = new File( targetDir, "buildgraph.xml" );
+
+        Vizant task = new Vizant();
+        task.setProject( antProject );
+        task.init();
+        task.setAntfile( build );
+        task.setOutfile( buildGraph );
+        task.setUniqueref( true );
+        task.execute();
+    }
+}

Propchange: maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizantTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizantTest.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"



Mime
View raw message