incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r608017 - in /incubator/nmaven/trunk/core-integration-tests/src/test: java/org/apache/maven/dotnet/integrationtests/ resources/MavenITmng-0015-DeployLibraryAsSnapshot/
Date Wed, 02 Jan 2008 05:56:39 GMT
Author: sisbell
Date: Tue Jan  1 21:56:31 2008
New Revision: 608017

URL: http://svn.apache.org/viewvc?rev=608017&view=rev
Log:
IT for deploy of snapshot library.

Added:
    incubator/nmaven/trunk/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/MavenITmng0015DeployLibraryAsSnapshot.java
  (with props)
    incubator/nmaven/trunk/core-integration-tests/src/test/resources/MavenITmng-0015-DeployLibraryAsSnapshot/
    incubator/nmaven/trunk/core-integration-tests/src/test/resources/MavenITmng-0015-DeployLibraryAsSnapshot/It0015.cs
    incubator/nmaven/trunk/core-integration-tests/src/test/resources/MavenITmng-0015-DeployLibraryAsSnapshot/pom.xml
  (with props)
Modified:
    incubator/nmaven/trunk/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/IntegrationTestSuite.java

Modified: incubator/nmaven/trunk/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/IntegrationTestSuite.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/IntegrationTestSuite.java?rev=608017&r1=608016&r2=608017&view=diff
==============================================================================
--- incubator/nmaven/trunk/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/IntegrationTestSuite.java
(original)
+++ incubator/nmaven/trunk/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/IntegrationTestSuite.java
Tue Jan  1 21:56:31 2008
@@ -43,6 +43,8 @@
         suite.addTestSuite( MavenITmng0012DeployModule.class );
         suite.addTestSuite( MavenITmng0013DeployWinexe.class );
         suite.addTestSuite( MavenITmng0014ResolveLibraryDependency.class );
+       
+        suite.addTestSuite( MavenITmng0015DeployLibraryAsSnapshot.class );
         return suite;
     }
 }

Added: incubator/nmaven/trunk/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/MavenITmng0015DeployLibraryAsSnapshot.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/MavenITmng0015DeployLibraryAsSnapshot.java?rev=608017&view=auto
==============================================================================
--- incubator/nmaven/trunk/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/MavenITmng0015DeployLibraryAsSnapshot.java
(added)
+++ incubator/nmaven/trunk/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/MavenITmng0015DeployLibraryAsSnapshot.java
Tue Jan  1 21:56:31 2008
@@ -0,0 +1,32 @@
+package org.apache.maven.dotnet.integrationtests;
+
+import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase;
+import org.apache.maven.it.util.ResourceExtractor;
+import org.apache.maven.it.Verifier;
+import org.apache.maven.dotnet.BuildDirectories;
+
+import java.io.File;
+
+public class MavenITmng0015DeployLibraryAsSnapshot
+    extends AbstractMavenIntegrationTestCase
+{
+    public void testit0015()
+        throws Exception
+    {
+        String artifactId = "NMaven.It.It0015";
+        String artifactName = artifactId + "-1.0.0-SNAPSHOT";
+        String metadataDir = "target/test-repo/NMaven/Its/" + artifactId + "/";
+        String artifactDir = metadataDir + "1.0.0-SNAPSHOT/";
+
+        File testDir =
+            ResourceExtractor.simpleExtractResources( getClass(), "/MavenITmng-0015-DeployLibraryAsSnapshot"
);
+        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
+
+        verifier.executeGoal( "deploy" );
+        verifier.assertFilePresent( "target/" + BuildDirectories.BUILD_SOURCES.getBuildDirectoryName()
+ "/It0015.cs" );
+        verifier.assertFilePresent( "target/" + artifactName + ".dll" );
+        verifier.assertFilePresent( artifactDir );
+        verifier.assertFilePresent( metadataDir + "maven-metadata.xml" );
+        verifier.resetStreams();
+    }
+}

Propchange: incubator/nmaven/trunk/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/MavenITmng0015DeployLibraryAsSnapshot.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/core-integration-tests/src/test/resources/MavenITmng-0015-DeployLibraryAsSnapshot/It0015.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/core-integration-tests/src/test/resources/MavenITmng-0015-DeployLibraryAsSnapshot/It0015.cs?rev=608017&view=auto
==============================================================================
--- incubator/nmaven/trunk/core-integration-tests/src/test/resources/MavenITmng-0015-DeployLibraryAsSnapshot/It0015.cs
(added)
+++ incubator/nmaven/trunk/core-integration-tests/src/test/resources/MavenITmng-0015-DeployLibraryAsSnapshot/It0015.cs
Tue Jan  1 21:56:31 2008
@@ -0,0 +1,8 @@
+namespace NMaven.IT {
+
+public class It0015 {
+	public static void Main () { 
+		System.Console.Write("Hello World!"); 
+	} 
+}
+}

Added: incubator/nmaven/trunk/core-integration-tests/src/test/resources/MavenITmng-0015-DeployLibraryAsSnapshot/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/core-integration-tests/src/test/resources/MavenITmng-0015-DeployLibraryAsSnapshot/pom.xml?rev=608017&view=auto
==============================================================================
--- incubator/nmaven/trunk/core-integration-tests/src/test/resources/MavenITmng-0015-DeployLibraryAsSnapshot/pom.xml
(added)
+++ incubator/nmaven/trunk/core-integration-tests/src/test/resources/MavenITmng-0015-DeployLibraryAsSnapshot/pom.xml
Tue Jan  1 21:56:31 2008
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>NMaven.Its</groupId>
+  <artifactId>NMaven.It.It0015</artifactId>
+  <packaging>dotnet:library</packaging>
+  <version>1.0.0-SNAPSHOT</version>
+  <name>NMaven.It.It0015</name>
+  <build>
+    <sourceDirectory>.</sourceDirectory>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <extensions>true</extensions>
+      </plugin>
+    </plugins>
+  </build>
+  <distributionManagement>
+    <repository>
+      <id>repo</id>
+      <name>test repo</name>
+      <url>file:target/test-repo</url>
+    </repository>
+  </distributionManagement>
+</project>

Propchange: incubator/nmaven/trunk/core-integration-tests/src/test/resources/MavenITmng-0015-DeployLibraryAsSnapshot/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message