You are viewing a plain text version of this content. The canonical link for it is here.
Posted to nmaven-commits@incubator.apache.org by si...@apache.org on 2008/02/05 22:54:49 UTC
svn commit: r618814 - in
/incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources:
META-INF/maven/archetype.xml archetype-resources/Test/
archetype-resources/Test/Class1Test.cs archetype-resources/pom.xml
Author: sisbell
Date: Tue Feb 5 14:54:47 2008
New Revision: 618814
URL: http://svn.apache.org/viewvc?rev=618814&view=rev
Log:
Added unit test to library archetype.
Added:
incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/archetype-resources/Test/
incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/archetype-resources/Test/Class1Test.cs
Modified:
incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/META-INF/maven/archetype.xml
incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/archetype-resources/pom.xml
Modified: incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/META-INF/maven/archetype.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/META-INF/maven/archetype.xml?rev=618814&r1=618813&r2=618814&view=diff
==============================================================================
--- incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/META-INF/maven/archetype.xml (original)
+++ incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/META-INF/maven/archetype.xml Tue Feb 5 14:54:47 2008
@@ -2,5 +2,6 @@
<id>maven-archetype-class-library</id>
<resources>
<resource>Class1.cs</resource>
+ <resource>Test/Class1Test.cs</resource>
</resources>
</archetype>
Added: incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/archetype-resources/Test/Class1Test.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/archetype-resources/Test/Class1Test.cs?rev=618814&view=auto
==============================================================================
--- incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/archetype-resources/Test/Class1Test.cs (added)
+++ incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/archetype-resources/Test/Class1Test.cs Tue Feb 5 14:54:47 2008
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+using NUnit.Framework;
+
+namespace ClassLibrary1
+{
+ [TestFixture]
+ public class Class1Test
+ {
+ [Test]
+ public void TestMethod()
+ {
+ Assertion.AssertEquals(1, 1);
+ }
+ }
+}
\ No newline at end of file
Modified: incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/archetype-resources/pom.xml?rev=618814&r1=618813&r2=618814&view=diff
==============================================================================
--- incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/archetype-resources/pom.xml (original)
+++ incubator/nmaven/trunk/archetypes/maven-archetype-class-library/src/main/resources/archetype-resources/pom.xml Tue Feb 5 14:54:47 2008
@@ -10,6 +10,7 @@
<packaging>dotnet:library</packaging>
<build>
<sourceDirectory>.</sourceDirectory>
+ <testSourceDirectory>Test</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.dotnet.plugins</groupId>
@@ -18,4 +19,23 @@
</plugin>
</plugins>
</build>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.dotnet</groupId>
+ <artifactId>NUnit.Framework</artifactId>
+ <version>2.4.6-incubating-SNAPSHOT</version>
+ <type>dotnet:library</type>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <repositories>
+ <repository>
+ <id>m2-snapshot</id>
+ <name>Maven2 Snapshot Repository</name>
+ <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
</project>