Author: brett
Date: Wed Feb  8 15:52:35 2012
New Revision: 1241949

URL: http://svn.apache.org/viewvc?rev=1241949&view=rev
Log:
[NPANDAY-538] add a test for COM references

Added:
    
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_538_COMReferenceTest.java
    
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/
    
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/
    
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/COMApplication.csproj
    
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/Program.cs
    
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/Properties/
    
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/Properties/AssemblyInfo.cs
    
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/app.config
    
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/pom.xml
    
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/NPANDAY_538_COMApplication.sln
    
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/pom.xml
Modified:
    
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/IntegrationTestSuite.java

Modified: 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/IntegrationTestSuite.java
URL: 
http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/IntegrationTestSuite.java?rev=1241949&r1=1241948&r2=1241949&view=diff
==============================================================================
--- 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/IntegrationTestSuite.java
 (original)
+++ 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/IntegrationTestSuite.java
 Wed Feb  8 15:52:35 2012
@@ -47,6 +47,7 @@ public class IntegrationTestSuite
         // suite.addTestSuite( NPandayIT0002NetModuleDependencyTest.class ); 
// issue #11729
         // suite.addTestSuite( 
NPandayIT0003NetModuleTransitiveDependencyTest.class ); // issue #11729
 
+        suite.addTestSuite( NPANDAY_538_COMReferenceTest.class );
         suite.addTestSuite( NPANDAY_452_SilverlightAppTest.class );
         suite.addTestSuite( NPANDAY_480_CloudServiceWithWorkerRole.class );
         suite.addTestSuite( NPANDAY_480_CloudServiceWithMultipleRoles.class );

Added: 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_538_COMReferenceTest.java
URL: 
http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_538_COMReferenceTest.java?rev=1241949&view=auto
==============================================================================
--- 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_538_COMReferenceTest.java
 (added)
+++ 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_538_COMReferenceTest.java
 Wed Feb  8 15:52:35 2012
@@ -0,0 +1,47 @@
+package npanday.its;
+
+/*
+ * 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.Verifier;
+
+public class NPANDAY_538_COMReferenceTest
+    extends AbstractNPandayIntegrationTestCase
+{
+    public NPANDAY_538_COMReferenceTest()
+    {
+        super( "[1.5.0-incubating,)" );
+    }
+
+    public void test()
+        throws Exception
+    {
+        NPandayIntegrationTestContext context = createDefaultTestContext();
+        Verifier verifier = context.getPreparedVerifier();
+
+        verifier.executeGoal( "install" );
+
+        verifier.assertArtifactPresent(context.getGroupId(), "COMApplication", 
"1.0-SNAPSHOT", "exe" );
+        
+        verifier.verifyErrorFreeLog();
+        verifier.resetStreams();
+    }
+
+}
+

Added: 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/COMApplication.csproj
URL: 
http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/COMApplication.csproj?rev=1241949&view=auto
==============================================================================
--- 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/COMApplication.csproj
 (added)
+++ 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/COMApplication.csproj
 Wed Feb  8 15:52:35 2012
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" 
xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+    <ProductVersion>8.0.30703</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{974C7ABB-3D52-40FD-A77A-D8D4CC83C1B9}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>COMApplication</RootNamespace>
+    <AssemblyName>COMApplication</AssemblyName>
+    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+    <TargetFrameworkProfile>
+    </TargetFrameworkProfile>
+    <FileAlignment>512</FileAlignment>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+    <PlatformTarget>x86</PlatformTarget>
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+    <PlatformTarget>x86</PlatformTarget>
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <WebReferences Include="Web References\" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="app.config" />
+  </ItemGroup>
+  <ItemGroup>
+    <COMReference Include="Shell32">
+      <Guid>{50A7E9B0-70EF-11D1-B75A-00A0C90564FE}</Guid>
+      <VersionMajor>1</VersionMajor>
+      <VersionMinor>0</VersionMinor>
+      <Lcid>0</Lcid>
+      <WrapperTool>tlbimp</WrapperTool>
+      <Isolated>False</Isolated>
+      <EmbedInteropTypes>True</EmbedInteropTypes>
+    </COMReference>
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets 
below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

Added: 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/Program.cs
URL: 
http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/Program.cs?rev=1241949&view=auto
==============================================================================
--- 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/Program.cs
 (added)
+++ 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/Program.cs
 Wed Feb  8 15:52:35 2012
@@ -0,0 +1,11 @@
+using Shell32;
+
+namespace COMApplication
+{
+    class Program
+    {
+        static void Main(string[] args)
+        {
+        }
+    }
+}

Added: 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/Properties/AssemblyInfo.cs
URL: 
http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/Properties/AssemblyInfo.cs?rev=1241949&view=auto
==============================================================================
--- 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/Properties/AssemblyInfo.cs
 (added)
+++ 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/Properties/AssemblyInfo.cs
 Wed Feb  8 15:52:35 2012
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("COMApplication")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("COMApplication")]
+[assembly: AssemblyCopyright("Copyright ©  2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed 
to COM
+[assembly: Guid("03a85ea7-b7be-40db-ab1d-1e3bfac22e7f")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision 
Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

Added: 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/app.config
URL: 
http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/app.config?rev=1241949&view=auto
==============================================================================
--- 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/app.config
 (added)
+++ 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/app.config
 Wed Feb  8 15:52:35 2012
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<configuration>
+<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>

Added: 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/pom.xml?rev=1241949&view=auto
==============================================================================
--- 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/pom.xml
 (added)
+++ 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/COMApplication/pom.xml
 Wed Feb  8 15:52:35 2012
@@ -0,0 +1,57 @@
+<?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:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns="http://maven.apache.org/POM/4.0.0";>
+  <parent>
+    <artifactId>NPANDAY_538_COMReferenceTest-parent</artifactId>
+    <groupId>NPanday.ITs.NPANDAY_538_COMReferenceTest</groupId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>COMApplication</artifactId>
+  <packaging>dotnet-executable</packaging>
+  <name>NPanday.ITs.NPANDAY538COMApplication : COMApplication</name>
+  <build>
+    <sourceDirectory>./</sourceDirectory>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.npanday.plugins</groupId>
+        <artifactId>maven-compile-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <frameworkVersion>2.0.50727</frameworkVersion>
+          <includeSources>
+            <includeSource>Program.cs</includeSource>
+            <includeSource>Properties\AssemblyInfo.cs</includeSource>
+          </includeSources>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <dependencies>
+    <dependency>
+      <groupId>Shell32</groupId>
+      <artifactId>Shell32</artifactId>
+      <version>1.0.0.0</version>
+      <type>com_reference</type>
+      <classifier>{50A7E9B0-70EF-11D1-B75A-00A0C90564FE}-1.0-0</classifier>
+    </dependency>
+  </dependencies>
+</project>

Added: 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/NPANDAY_538_COMApplication.sln
URL: 
http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/NPANDAY_538_COMApplication.sln?rev=1241949&view=auto
==============================================================================
--- 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/NPANDAY_538_COMApplication.sln
 (added)
+++ 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/NPANDAY_538_COMApplication.sln
 Wed Feb  8 15:52:35 2012
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "COMApplication", 
"COMApplication\COMApplication.csproj", "{974C7ABB-3D52-40FD-A77A-D8D4CC83C1B9}"
+EndProject
+Global
+       GlobalSection(SolutionConfigurationPlatforms) = preSolution
+               Debug|x86 = Debug|x86
+               Release|x86 = Release|x86
+       EndGlobalSection
+       GlobalSection(ProjectConfigurationPlatforms) = postSolution
+               {974C7ABB-3D52-40FD-A77A-D8D4CC83C1B9}.Debug|x86.ActiveCfg = 
Debug|x86
+               {974C7ABB-3D52-40FD-A77A-D8D4CC83C1B9}.Debug|x86.Build.0 = 
Debug|x86
+               {974C7ABB-3D52-40FD-A77A-D8D4CC83C1B9}.Release|x86.ActiveCfg = 
Release|x86
+               {974C7ABB-3D52-40FD-A77A-D8D4CC83C1B9}.Release|x86.Build.0 = 
Release|x86
+       EndGlobalSection
+       GlobalSection(SolutionProperties) = preSolution
+               HideSolutionNode = FALSE
+       EndGlobalSection
+EndGlobal

Added: 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/pom.xml?rev=1241949&view=auto
==============================================================================
--- 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/pom.xml
 (added)
+++ 
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_538_COMReferenceTest/pom.xml
 Wed Feb  8 15:52:35 2012
@@ -0,0 +1,37 @@
+<?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:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns="http://maven.apache.org/POM/4.0.0";>
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>NPanday.ITs</groupId>
+    <artifactId>NPanday.ITs.Parent</artifactId>
+    <version>1-SNAPSHOT</version>
+  </parent>
+ 
+  <groupId>NPanday.ITs.NPANDAY_538_COMReferenceTest</groupId>
+  <artifactId>NPANDAY_538_COMReferenceTest-parent</artifactId>
+  <packaging>pom</packaging>
+  <name>NPanday.ITs.NPANDAY_538_COMReferenceTest : 
NPANDAY538COMApplication-parent</name>
+  <version>1.0-SNAPSHOT</version>
+  <modules>
+    <module>COMApplication</module>
+  </modules>
+</project>


Reply via email to