You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by ap...@apache.org on 2010/11/02 09:07:02 UTC

svn commit: r1029973 - in /incubator/npanday/npanday-its/trunk/src/test: java/npanday/its/ resources/WcfService1/ resources/WcfService1/Properties/ resources/WcfService1/Web References/

Author: apadilla
Date: Tue Nov  2 09:07:01 2010
New Revision: 1029973

URL: http://svn.apache.org/viewvc?rev=1029973&view=rev
Log:
[NPANDAY-336] - added IT for VS 2010 WCF Project

Added:
    incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIT329WCF2010ProjectTest.java
    incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/
    incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/IService1.cs
    incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Properties/
    incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Properties/AssemblyInfo.cs
    incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Service1.svc
    incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Service1.svc.cs
    incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/WcfService1.csproj
    incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/WcfService1.suo   (with props)
    incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web References/
    incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.Debug.config
    incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.Release.config
    incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.config
    incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/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=1029973&r1=1029972&r2=1029973&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 Tue Nov  2 09:07:01 2010
@@ -46,6 +46,7 @@ public class IntegrationTestSuite
         // suite.addTestSuite( NPandayIT0002NetModuleDependencyTest.class ); // issue #11729
         // suite.addTestSuite( NPandayIT0003NetModuleTransitiveDependencyTest.class ); // issue #11729
 
+        suite.addTestSuite( NPandayIT329WCF2010ProjectTest.class );
         suite.addTestSuite( NPandayIT328WPF2010ProjectTest.class );
         suite.addTestSuite( NPandayIT330MVC2010ProjectTest.class );
         suite.addTestSuite( NPandayITNet40Test.class );

Added: incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIT329WCF2010ProjectTest.java
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIT329WCF2010ProjectTest.java?rev=1029973&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIT329WCF2010ProjectTest.java (added)
+++ incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIT329WCF2010ProjectTest.java Tue Nov  2 09:07:01 2010
@@ -0,0 +1,44 @@
+package npanday.its;
+
+/*
+ * Copyright 2010
+ *
+ * Licensed 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;
+import org.apache.maven.it.util.ResourceExtractor;
+
+import java.io.File;
+
+public class NPandayIT329WCF2010ProjectTest
+    extends AbstractNPandayIntegrationTestCase
+{
+    public NPandayIT329WCF2010ProjectTest()
+    {
+        super( "[1.2.2-incubating,)", "[v4.0.30319,)" );
+    }
+
+    public void testWCF2010Project()
+        throws Exception
+    {
+        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/WcfService1" );
+        Verifier verifier = getVerifier( testDir );
+        verifier.executeGoal( "install" );
+        String assembly = new File( testDir,
+            getAssemblyFile( "WcfService1", "1.0.0", "zip" ) ).getAbsolutePath();
+        verifier.assertFilePresent( assembly );
+        verifier.verifyErrorFreeLog();
+        verifier.resetStreams();
+    }
+}
\ No newline at end of file

Added: incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/IService1.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/IService1.cs?rev=1029973&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/IService1.cs (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/IService1.cs Tue Nov  2 09:07:01 2010
@@ -0,0 +1,47 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Runtime.Serialization;
+using System.ServiceModel;
+using System.ServiceModel.Web;
+using System.Text;
+
+namespace WcfService1
+{
+    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
+    [ServiceContract]
+    public interface IService1
+    {
+
+        [OperationContract]
+        string GetData(int value);
+
+        [OperationContract]
+        CompositeType GetDataUsingDataContract(CompositeType composite);
+
+        // TODO: Add your service operations here
+    }
+
+
+    // Use a data contract as illustrated in the sample below to add composite types to service operations.
+    [DataContract]
+    public class CompositeType
+    {
+        bool boolValue = true;
+        string stringValue = "Hello ";
+
+        [DataMember]
+        public bool BoolValue
+        {
+            get { return boolValue; }
+            set { boolValue = value; }
+        }
+
+        [DataMember]
+        public string StringValue
+        {
+            get { return stringValue; }
+            set { stringValue = value; }
+        }
+    }
+}

Added: incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Properties/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Properties/AssemblyInfo.cs?rev=1029973&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Properties/AssemblyInfo.cs (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Properties/AssemblyInfo.cs Tue Nov  2 09:07:01 2010
@@ -0,0 +1,37 @@
+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("WcfService1")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("WcfService1")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
+[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("1958ae3b-28b6-4f9b-93fd-63230fa0d744")]
+
+// 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 Revision and Build Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0")]
+[assembly: AssemblyVersion("1.0")]
+[assembly: AssemblyFileVersion("1.0")]
+[assembly: AssemblyInformationalVersion("1.0-SNAPSHOT")]

Added: incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Service1.svc
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Service1.svc?rev=1029973&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Service1.svc (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Service1.svc Tue Nov  2 09:07:01 2010
@@ -0,0 +1 @@
+<%@ ServiceHost Language="C#" Debug="true" Service="WcfService1.Service1" CodeBehind="Service1.svc.cs" %>
\ No newline at end of file

Added: incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Service1.svc.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Service1.svc.cs?rev=1029973&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Service1.svc.cs (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Service1.svc.cs Tue Nov  2 09:07:01 2010
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Runtime.Serialization;
+using System.ServiceModel;
+using System.ServiceModel.Web;
+using System.Text;
+
+namespace WcfService1
+{
+    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in code, svc and config file together.
+    public class Service1 : IService1
+    {
+        public string GetData(int value)
+        {
+            return string.Format("You entered: {0}", value);
+        }
+
+        public CompositeType GetDataUsingDataContract(CompositeType composite)
+        {
+            if (composite == null)
+            {
+                throw new ArgumentNullException("composite");
+            }
+            if (composite.BoolValue)
+            {
+                composite.StringValue += "Suffix";
+            }
+            return composite;
+        }
+    }
+}

Added: incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/WcfService1.csproj
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/WcfService1.csproj?rev=1029973&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/WcfService1.csproj (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/WcfService1.csproj Tue Nov  2 09:07:01 2010
@@ -0,0 +1,106 @@
+<?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)' == '' ">AnyCPU</Platform>
+    <ProductVersion>
+    </ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{FA4BC797-F548-47CB-99DD-714E0E71DEE4}</ProjectGuid>
+    <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>WcfService1</RootNamespace>
+    <AssemblyName>WcfService1</AssemblyName>
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="Microsoft.CSharp" />
+    <Reference Include="System.Web.DynamicData" />
+    <Reference Include="System.Web.Entity" />
+    <Reference Include="System.Web.ApplicationServices" />
+    <Reference Include="System" />
+    <Reference Include="System.Configuration" />
+    <Reference Include="System.Core" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Drawing" />
+    <Reference Include="System.EnterpriseServices" />
+    <Reference Include="System.Runtime.Serialization" />
+    <Reference Include="System.ServiceModel" />
+    <Reference Include="System.ServiceModel.Web" />
+    <Reference Include="System.Web" />
+    <Reference Include="System.Web.Extensions" />
+    <Reference Include="System.Web.Services" />
+    <Reference Include="System.Xml" />
+    <Reference Include="System.Xml.Linq" />
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="Service1.svc" />
+    <Content Include="Web.config" />
+    <Content Include="Web.Debug.config">
+      <DependentUpon>Web.config</DependentUpon>
+    </Content>
+    <Content Include="Web.Release.config">
+      <DependentUpon>Web.config</DependentUpon>
+    </Content>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Service1.svc.cs">
+      <DependentUpon>Service1.svc</DependentUpon>
+    </Compile>
+    <Compile Include="IService1.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="App_Data\" />
+  </ItemGroup>
+  <ItemGroup>
+    <WebReferences Include="Web References\" />
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
+  <ProjectExtensions>
+    <VisualStudio>
+      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+        <WebProjectProperties>
+          <UseIIS>False</UseIIS>
+          <AutoAssignPort>True</AutoAssignPort>
+          <DevelopmentServerPort>54400</DevelopmentServerPort>
+          <DevelopmentServerVPath>/</DevelopmentServerVPath>
+          <IISUrl>
+          </IISUrl>
+          <NTLMAuthentication>False</NTLMAuthentication>
+          <UseCustomServer>False</UseCustomServer>
+          <CustomServerUrl>
+          </CustomServerUrl>
+          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
+          <EnableWcfTestClientForSVCDefaultValue>True</EnableWcfTestClientForSVCDefaultValue>
+        </WebProjectProperties>
+      </FlavorProperties>
+    </VisualStudio>
+  </ProjectExtensions>
+  <!-- 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/WcfService1/WcfService1.suo
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/WcfService1.suo?rev=1029973&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/WcfService1.suo
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.Debug.config
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.Debug.config?rev=1029973&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.Debug.config (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.Debug.config Tue Nov  2 09:07:01 2010
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+
+</configuration>
\ No newline at end of file

Added: incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.Release.config
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.Release.config?rev=1029973&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.Release.config (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.Release.config Tue Nov  2 09:07:01 2010
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+
+  <system.web>
+    <compilation xdt:Transform="RemoveAttributes(debug)" />
+  </system.web>
+
+</configuration>
\ No newline at end of file

Added: incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.config
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.config?rev=1029973&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.config (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/Web.config Tue Nov  2 09:07:01 2010
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<configuration>
+
+  <system.web>
+    <compilation debug="true" targetFramework="4.0" />
+  </system.web>
+  <system.serviceModel>
+    <behaviors>
+      <serviceBehaviors>
+        <behavior>
+          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
+          <serviceMetadata httpGetEnabled="true"/>
+          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
+          <serviceDebug includeExceptionDetailInFaults="false"/>
+        </behavior>
+      </serviceBehaviors>
+    </behaviors>
+    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
+  </system.serviceModel>
+ <system.webServer>
+    <modules runAllManagedModulesForAllRequests="true"/>
+  </system.webServer>
+  
+</configuration>

Added: incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/pom.xml?rev=1029973&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/pom.xml (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/WcfService1/pom.xml Tue Nov  2 09:07:01 2010
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<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>
+    <groupId>NPanday.ITs</groupId>
+    <artifactId>NPanday.ITs.Parent</artifactId>
+    <version>1-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>NPanday.ITs.WcfService1</groupId>  
+  <artifactId>WcfService1</artifactId>
+  <packaging>asp</packaging>
+  <name>NPanday.ITs.WcfService1 : WcfService1</name>
+  <build>
+    <sourceDirectory>.</sourceDirectory>
+    <plugins>
+      <plugin>
+        <groupId>npanday.plugin</groupId>
+        <artifactId>maven-compile-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <frameworkVersion>4.0</frameworkVersion>
+          <includeSources>
+            <includeSource>Service1.svc.cs</includeSource>
+            <includeSource>IService1.cs</includeSource>
+            <includeSource>Properties\AssemblyInfo.cs</includeSource>
+          </includeSources>
+          <outputDirectory>bin</outputDirectory>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>npanday.plugin</groupId>
+        <artifactId>maven-aspx-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <frameworkVersion>4.0</frameworkVersion>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <dependencies>
+    <dependency>
+      <groupId>System.Web.DynamicData</groupId>
+      <artifactId>System.Web.DynamicData</artifactId>
+      <version>4.0.0.0</version>
+      <type>gac_msil4</type>
+      <classifier>31bf3856ad364e35</classifier>
+    </dependency>
+    <dependency>
+      <groupId>System.Web.Entity</groupId>
+      <artifactId>System.Web.Entity</artifactId>
+      <version>4.0.0.0</version>
+      <type>gac_msil4</type>
+      <classifier>b77a5c561934e089</classifier>
+    </dependency>
+    <dependency>
+      <groupId>System.Web.ApplicationServices</groupId>
+      <artifactId>System.Web.ApplicationServices</artifactId>
+      <version>4.0.0.0</version>
+      <type>gac_msil4</type>
+      <classifier>31bf3856ad364e35</classifier>
+    </dependency>
+  </dependencies>
+</project>
\ No newline at end of file