maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1382081 - in /maven/core-integration-testing/trunk/core-it-suite/src/test: java/org/apache/maven/it/ resources/mng-5338/ resources/mng-5338/project/ resources/mng-5338/project/src/ resources/mng-5338/project/src/main/ resources/mng-5338/pr...
Date Fri, 07 Sep 2012 16:02:58 GMT
Author: olamy
Date: Fri Sep  7 16:02:57 2012
New Revision: 1382081

URL: http://svn.apache.org/viewvc?rev=1382081&view=rev
Log:
add it test for MNG-5338 missed to add files

Added:
    maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5338FileOptionToDirectory.java
  (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/pom.xml
  (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/mng5338/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/mng5338/App.java
  (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/java/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/java/org/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/java/org/apache/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/java/org/apache/maven/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/java/org/apache/maven/its/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/java/org/apache/maven/its/mng5338/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/java/org/apache/maven/its/mng5338/AppTest.java
  (with props)

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5338FileOptionToDirectory.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5338FileOptionToDirectory.java?rev=1382081&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5338FileOptionToDirectory.java
(added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5338FileOptionToDirectory.java
Fri Sep  7 16:02:57 2012
@@ -0,0 +1,77 @@
+package org.apache.maven.it;
+
+/*
+ * 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 org.apache.maven.it.util.ResourceExtractor;
+
+import java.io.File;
+
+/**
+ * This is a test set for <a href="http://jira.codehaus.org/browse/MNG-5338">MNG-5338</a>.
+ *
+ * @author Olivier Lamy
+ */
+public class MavenITmng5338FileOptionToDirectory
+    extends AbstractMavenIntegrationTestCase
+{
+
+    private File testDir;
+
+    public MavenITmng5338FileOptionToDirectory()
+    {
+        super( "[3.0.5,)" );
+    }
+
+    public void setUp()
+        throws Exception
+    {
+        super.setUp();
+
+        testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5338" );
+
+    }
+
+    protected void tearDown()
+        throws Exception
+    {
+
+        super.tearDown();
+    }
+
+    /**
+     * Verify that the repositories are used in the reversed order of definition in settings.xml.
+     */
+    public void testFileOptionToADirectory()
+        throws Exception
+    {
+        Verifier verifier = newVerifier( testDir.getAbsolutePath() );
+
+        verifier.setAutoclean( false );
+        verifier.deleteDirectory( "target" );
+        verifier.deleteArtifacts( "org.apache.maven.its.mng5338" );
+
+        verifier.getCliOptions().add( "-f project" );
+        verifier.executeGoal( "validate" );
+        verifier.verifyErrorFreeLog();
+        verifier.resetStreams();
+
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5338FileOptionToDirectory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5338FileOptionToDirectory.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/pom.xml?rev=1382081&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/pom.xml
(added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/pom.xml
Fri Sep  7 16:02:57 2012
@@ -0,0 +1,39 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.mng5338</groupId>
+  <artifactId>mng5338</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+
+  <name>mng5338</name>
+  <url>http://maven.apache.org</url>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.7</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <artifactId>maven-compiler-plugin</artifactId>
+          <configuration>
+            <source>1.5</source>
+            <target>1.5</target>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+</project>

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/mng5338/App.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/mng5338/App.java?rev=1382081&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/mng5338/App.java
(added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/mng5338/App.java
Fri Sep  7 16:02:57 2012
@@ -0,0 +1,13 @@
+package org.apache.maven.its.mng5338;
+
+/**
+ * Hello world!
+ *
+ */
+public class App 
+{
+    public static void main( String[] args )
+    {
+        System.out.println( "Hello World!" );
+    }
+}

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/mng5338/App.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/mng5338/App.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/java/org/apache/maven/its/mng5338/AppTest.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/java/org/apache/maven/its/mng5338/AppTest.java?rev=1382081&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/java/org/apache/maven/its/mng5338/AppTest.java
(added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/java/org/apache/maven/its/mng5338/AppTest.java
Fri Sep  7 16:02:57 2012
@@ -0,0 +1,38 @@
+package org.apache.maven.its.mng5338;
+
+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 );
+    }
+}

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/java/org/apache/maven/its/mng5338/AppTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/test/java/org/apache/maven/its/mng5338/AppTest.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision



Mime
View raw message