Author: brett Date: Wed Oct 1 01:53:46 2008 New Revision: 700718 URL: http://svn.apache.org/viewvc?rev=700718&view=rev Log: add a test case for version mediation
Added: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/MavenITVersionedAssemblies.java (with props) incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/pom.xml (with props) incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/src/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/src/main/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/src/main/dotnet/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/src/main/dotnet/A.cs incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/pom.xml (with props) incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/src/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/src/main/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/src/main/dotnet/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/src/main/dotnet/A.cs incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/pom.xml (with props) incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/main/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/main/dotnet/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/main/dotnet/B.cs incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/test/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/test/dotnet/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/test/dotnet/BTest.cs incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/pom.xml (with props) incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/main/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/main/dotnet/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/main/dotnet/C.cs incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/test/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/test/dotnet/ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/test/dotnet/CTest.cs Added: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/MavenITVersionedAssemblies.java URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/MavenITVersionedAssemblies.java?rev=700718&view=auto ============================================================================== --- incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/MavenITVersionedAssemblies.java (added) +++ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/MavenITVersionedAssemblies.java Wed Oct 1 01:53:46 2008 @@ -0,0 +1,67 @@ +/* + * 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. + */ + +package org.apache.maven.dotnet.integrationtests; + +import java.io.File; + +import org.apache.maven.it.VerificationException; +import org.apache.maven.it.Verifier; + +public class MavenITVersionedAssemblies + extends AbstractNMavenIntegrationTestCase +{ + public MavenITVersionedAssemblies() + { + super(); + // super( "(0.15-incubating,)" ); + } + + public void testVersionedAssemblies() + throws Exception + { + File testDir = extractAndTranslateResources( "/VersionedAssemblies/A-1.0" ); + Verifier verifier = getVerifier( testDir ); + verifier.executeGoal( "install" ); + verifier.assertFilePresent( "target/NMaven.It.VersionedAssembly.A.dll" ); + verifier.verifyErrorFreeLog(); + verifier.resetStreams(); + + testDir = extractAndTranslateResources( "/VersionedAssemblies/A-2.0" ); + verifier = getVerifier( testDir ); + verifier.executeGoal( "install" ); + verifier.assertFilePresent( "target/NMaven.It.VersionedAssembly.A.dll" ); + verifier.verifyErrorFreeLog(); + verifier.resetStreams(); + + testDir = extractAndTranslateResources( "/VersionedAssemblies/B" ); + verifier = getVerifier( testDir ); + verifier.executeGoal( "install" ); + verifier.assertFilePresent( getAssemblyFile( "NMaven.It.VersionedAssembly.B", "1.0.0", "dll" ) ); + verifier.verifyErrorFreeLog(); + verifier.resetStreams(); + + testDir = extractAndTranslateResources( "/VersionedAssemblies/C" ); + verifier = getVerifier( testDir ); + verifier.executeGoal( "install" ); + verifier.assertFilePresent( getAssemblyFile( "NMaven.It.VersionedAssembly.C", "1.0.0", "dll" ) ); + verifier.verifyErrorFreeLog(); + verifier.resetStreams(); + } +} Propchange: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/MavenITVersionedAssemblies.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/java/org/apache/maven/dotnet/integrationtests/MavenITVersionedAssemblies.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/pom.xml URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/pom.xml?rev=700718&view=auto ============================================================================== --- incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/pom.xml (added) +++ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/pom.xml Wed Oct 1 01:53:46 2008 @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +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. +--> +<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/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>NMaven.Its.VersionedAssembly</groupId> + <artifactId>NMaven.It.VersionedAssembly.A</artifactId> + <packaging>dotnet:library</packaging> + <version>1.0.0</version> + <build> + <sourceDirectory>src/main/dotnet</sourceDirectory> + <finalName>NMaven.It.VersionedAssembly.A</finalName> + <plugins> + <plugin> + <groupId>org.apache.maven.dotnet.plugins</groupId> + <artifactId>maven-dotnet-compiler-plugin</artifactId> + <version>${nmaven.version}</version> + <extensions>true</extensions> + </plugin> + <plugin> + <groupId>org.apache.maven.dotnet.plugins</groupId> + <artifactId>maven-dotnet-test-plugin</artifactId> + <version>${nmaven.version}</version> + </plugin> + </plugins> + </build> +</project> Propchange: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/src/main/dotnet/A.cs URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/src/main/dotnet/A.cs?rev=700718&view=auto ============================================================================== --- incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/src/main/dotnet/A.cs (added) +++ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-1.0/src/main/dotnet/A.cs Wed Oct 1 01:53:46 2008 @@ -0,0 +1,28 @@ +#region Apache License, Version 2.0 +// +// 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. +// +#endregion +namespace NMaven.IT { + +public class A { + public int version() { + return 1; + } +} +} Added: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/pom.xml URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/pom.xml?rev=700718&view=auto ============================================================================== --- incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/pom.xml (added) +++ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/pom.xml Wed Oct 1 01:53:46 2008 @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +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. +--> +<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/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>NMaven.Its.VersionedAssembly</groupId> + <artifactId>NMaven.It.VersionedAssembly.A</artifactId> + <packaging>dotnet:library</packaging> + <version>2.0.0</version> + <build> + <sourceDirectory>src/main/dotnet</sourceDirectory> + <finalName>NMaven.It.VersionedAssembly.A</finalName> + <plugins> + <plugin> + <groupId>org.apache.maven.dotnet.plugins</groupId> + <artifactId>maven-dotnet-compiler-plugin</artifactId> + <version>${nmaven.version}</version> + <extensions>true</extensions> + </plugin> + <plugin> + <groupId>org.apache.maven.dotnet.plugins</groupId> + <artifactId>maven-dotnet-test-plugin</artifactId> + <version>${nmaven.version}</version> + </plugin> + </plugins> + </build> +</project> Propchange: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/src/main/dotnet/A.cs URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/src/main/dotnet/A.cs?rev=700718&view=auto ============================================================================== --- incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/src/main/dotnet/A.cs (added) +++ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/A-2.0/src/main/dotnet/A.cs Wed Oct 1 01:53:46 2008 @@ -0,0 +1,28 @@ +#region Apache License, Version 2.0 +// +// 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. +// +#endregion +namespace NMaven.IT { + +public class A { + public int version() { + return 2; + } +} +} Added: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/pom.xml URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/pom.xml?rev=700718&view=auto ============================================================================== --- incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/pom.xml (added) +++ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/pom.xml Wed Oct 1 01:53:46 2008 @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +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. +--> +<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/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>NMaven.Its.VersionedAssembly</groupId> + <artifactId>NMaven.It.VersionedAssembly.B</artifactId> + <packaging>dotnet:library</packaging> + <version>1.0.0</version> + <build> + <sourceDirectory>src/main/dotnet</sourceDirectory> + <testSourceDirectory>src/test/dotnet</testSourceDirectory> + <plugins> + <plugin> + <groupId>org.apache.maven.dotnet.plugins</groupId> + <artifactId>maven-dotnet-compiler-plugin</artifactId> + <version>${nmaven.version}</version> + <extensions>true</extensions> + </plugin> + <plugin> + <groupId>org.apache.maven.dotnet.plugins</groupId> + <artifactId>maven-dotnet-test-plugin</artifactId> + <version>${nmaven.version}</version> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>NMaven.It.VersionedAssembly.A</artifactId> + <version>1.0.0</version> + <type>dotnet:library</type> + </dependency> + <dependency> + <groupId>NUnit</groupId> + <artifactId>NUnit.Framework</artifactId> + <version>2.2.8.0</version> + <type>dotnet:library</type> + <scope>test</scope> + </dependency> + </dependencies> +</project> Propchange: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/main/dotnet/B.cs URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/main/dotnet/B.cs?rev=700718&view=auto ============================================================================== --- incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/main/dotnet/B.cs (added) +++ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/main/dotnet/B.cs Wed Oct 1 01:53:46 2008 @@ -0,0 +1,28 @@ +#region Apache License, Version 2.0 +// +// 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. +// +#endregion +namespace NMaven.IT { + +public class B { + public int versionOfA() { + return new A().version(); + } +} +} Added: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/test/dotnet/BTest.cs URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/test/dotnet/BTest.cs?rev=700718&view=auto ============================================================================== --- incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/test/dotnet/BTest.cs (added) +++ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/B/src/test/dotnet/BTest.cs Wed Oct 1 01:53:46 2008 @@ -0,0 +1,34 @@ +#region Apache License, Version 2.0 +// +// 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. +// +#endregion +using System; +using NUnit.Framework; + +namespace NMaven.IT { + + [TestFixture] + public class BTest { + [Test] + public void testSimple1() { + Assert.AreEqual(1, new A().version()); + Assert.AreEqual(1, new B().versionOfA()); + } + } +} Added: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/pom.xml URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/pom.xml?rev=700718&view=auto ============================================================================== --- incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/pom.xml (added) +++ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/pom.xml Wed Oct 1 01:53:46 2008 @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +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. +--> +<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/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>NMaven.Its.VersionedAssembly</groupId> + <artifactId>NMaven.It.VersionedAssembly.C</artifactId> + <packaging>dotnet:library</packaging> + <version>1.0.0</version> + <build> + <sourceDirectory>src/main/dotnet</sourceDirectory> + <testSourceDirectory>src/test/dotnet</testSourceDirectory> + <plugins> + <plugin> + <groupId>org.apache.maven.dotnet.plugins</groupId> + <artifactId>maven-dotnet-compiler-plugin</artifactId> + <version>${nmaven.version}</version> + <extensions>true</extensions> + </plugin> + <plugin> + <groupId>org.apache.maven.dotnet.plugins</groupId> + <artifactId>maven-dotnet-test-plugin</artifactId> + <version>${nmaven.version}</version> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>NMaven.It.VersionedAssembly.A</artifactId> + <version>2.0.0</version> + <type>dotnet:library</type> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>NMaven.It.VersionedAssembly.B</artifactId> + <version>1.0.0</version> + <type>dotnet:library</type> + </dependency> + <dependency> + <groupId>NUnit</groupId> + <artifactId>NUnit.Framework</artifactId> + <version>2.2.8.0</version> + <type>dotnet:library</type> + <scope>test</scope> + </dependency> + </dependencies> +</project> Propchange: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/main/dotnet/C.cs URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/main/dotnet/C.cs?rev=700718&view=auto ============================================================================== --- incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/main/dotnet/C.cs (added) +++ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/main/dotnet/C.cs Wed Oct 1 01:53:46 2008 @@ -0,0 +1,28 @@ +#region Apache License, Version 2.0 +// +// 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. +// +#endregion +namespace NMaven.IT { + +public class C { + public int versionOfAFromB() { + return new B().versionOfA(); + } +} +} Added: incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/test/dotnet/CTest.cs URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/test/dotnet/CTest.cs?rev=700718&view=auto ============================================================================== --- incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/test/dotnet/CTest.cs (added) +++ incubator/nmaven/branches/NMAVEN-8-nunit/core-integration-tests/src/test/resources/VersionedAssemblies/C/src/test/dotnet/CTest.cs Wed Oct 1 01:53:46 2008 @@ -0,0 +1,35 @@ +#region Apache License, Version 2.0 +// +// 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. +// +#endregion +using System; +using NUnit.Framework; + +namespace NMaven.IT { + + [TestFixture] + public class CTest { + [Test] + public void testSimple1() { + Assert.AreEqual(2, new A().version()); + Assert.AreEqual(2, new B().versionOfA()); + Assert.AreEqual(2, new C().versionOfAFromB()); + } + } +}