Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
2009-06-26 Robert Jordan <robertj@gmx.net>
* *.cs: Upgrade to new NUnit style.
2007-10-03 Atsushi Enomoto <atsushi@ximian.com>
* TypeElement.cs : disable a test that causes NRE on .NET.
2006-01-13 Raja R Harinath <rharinath@novell.com>
* TypeElementTest.cs (Ctors1): Don't expect a null-reference
exception.
2003-05-13 Martin Willemoes Hansen <mwh@sysrq.dk>
* XmlFormatExtensionAttributeTest.cs: Inherits from Assertion and
Assertion. prefixes removed.
2003-02-22 Dave Bettin <dave@opendotnet.com>
* Moved over to Nunit2 Tests
* Removed AllTests.cs
2002-08-09 Tim Coleman <tim@timcoleman.com>
* AllTests.cs:
* ChangeLog:
* XmlFormatExtensionAttributeTest.cs:
New files added for test suite.

View File

@@ -0,0 +1,61 @@
//
// System.Web.Services.Configuration.DiagnosticsElementTest.cs - Unit tests
// for System.Web.Services.Configuration.DiagnosticsElement
//
// Author:
// Chris Toshok <toshok@ximian.com>
//
// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System;
using System.Web.Services.Configuration;
using NUnit.Framework;
namespace MonoTests.System.Web.Services {
[TestFixture]
public class DiagnosticsElementTest
{
[Test]
public void Defaults ()
{
DiagnosticsElement el = new DiagnosticsElement ();
Assert.IsFalse (el.SuppressReturningExceptions, "A1");
}
[Test]
public void GetSet ()
{
DiagnosticsElement el = new DiagnosticsElement ();
el.SuppressReturningExceptions = true;
Assert.IsTrue (el.SuppressReturningExceptions, "A1");
el.SuppressReturningExceptions = false;
Assert.IsFalse (el.SuppressReturningExceptions, "A2");
}
}
}
#endif

View File

@@ -0,0 +1,63 @@
//
// System.Web.Services.Configuration.ProtocolElementTest.cs - Unit tests
// for System.Web.Services.Configuration.ProtocolElement
//
// Author:
// Chris Toshok <toshok@ximian.com>
//
// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System;
using System.Web.Services.Configuration;
using NUnit.Framework;
namespace MonoTests.System.Web.Services {
[TestFixture]
public class ProtocolElementTest
{
[Test]
public void Ctors ()
{
ProtocolElement el = new ProtocolElement ();
Assert.AreEqual (WebServiceProtocols.Unknown, el.Name, "A1");
el = new ProtocolElement (WebServiceProtocols.HttpPost);
Assert.AreEqual (WebServiceProtocols.HttpPost, el.Name, "A2");
}
[Test]
public void GetSet ()
{
ProtocolElement el = new ProtocolElement ();
el.Name = WebServiceProtocols.HttpGet;
Assert.AreEqual (WebServiceProtocols.HttpGet, el.Name, "A1");
}
}
}
#endif

View File

@@ -0,0 +1,70 @@
//
// System.Web.Services.Configuration.SoapEnvelopeProcessingElementTest.cs - Unit tests
// for System.Web.Services.Configuration.SoapEnvelopeProcessingElement
//
// Author:
// Chris Toshok <toshok@ximian.com>
//
// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System;
using System.Web.Services.Configuration;
using NUnit.Framework;
namespace MonoTests.System.Web.Services {
[TestFixture]
public class SoapEnvelopeProcessingElementTest
{
[Test]
public void Ctors ()
{
SoapEnvelopeProcessingElement el = new SoapEnvelopeProcessingElement ();
Assert.IsFalse (el.IsStrict, "A1");
Assert.AreEqual (Int32.MaxValue, el.ReadTimeout, "A2");
el = new SoapEnvelopeProcessingElement (500);
Assert.IsFalse (el.IsStrict, "A3");
Assert.AreEqual (500, el.ReadTimeout, "A4");
el = new SoapEnvelopeProcessingElement (500, true);
Assert.IsTrue (el.IsStrict, "A5");
Assert.AreEqual (500, el.ReadTimeout, "A6");
}
[Test]
public void GetSet ()
{
SoapEnvelopeProcessingElement el = new SoapEnvelopeProcessingElement ();
el.IsStrict = true;
Assert.IsTrue (el.IsStrict, "A1");
el.ReadTimeout = 500;
Assert.AreEqual (500, el.ReadTimeout, "A2");
}
}
}
#endif

View File

@@ -0,0 +1,94 @@
//
// System.Web.Services.Configuration.SoapExtensionTypeElementTest.cs - Unit tests
// for System.Web.Services.Configuration.SoapExtensionTypeElement
//
// Author:
// Chris Toshok <toshok@ximian.com>
//
// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System;
using System.Configuration;
using System.Web.Services.Configuration;
using NUnit.Framework;
namespace MonoTests.System.Web.Services {
[TestFixture]
public class SoapExtensionTypeElementTest
{
[Test]
public void Ctors ()
{
SoapExtensionTypeElement el = new SoapExtensionTypeElement ();
Assert.AreEqual (PriorityGroup.Low, el.Group, "A1");
Assert.AreEqual (0, el.Priority, "A2");
Assert.IsNull (el.Type, "A3");
el = new SoapExtensionTypeElement (typeof (string), 5, PriorityGroup.High);
Assert.AreEqual (PriorityGroup.High, el.Group, "A4");
Assert.AreEqual (5, el.Priority, "A5");
Assert.AreEqual (typeof (string), el.Type, "A6");
el = new SoapExtensionTypeElement ("System.String", 5, PriorityGroup.High);
Assert.AreEqual (PriorityGroup.High, el.Group, "A7");
Assert.AreEqual (5, el.Priority, "A8");
Assert.AreEqual (typeof (string), el.Type, "A9");
}
[Test]
public void GetSet ()
{
SoapExtensionTypeElement el = new SoapExtensionTypeElement ();
el.Group = PriorityGroup.High;
Assert.AreEqual (PriorityGroup.High, el.Group, "A1");
el.Priority = 2;
Assert.AreEqual (2, el.Priority, "A2");
el.Type = typeof (string);
Assert.AreEqual (typeof (string), el.Type, "A3");
}
[Test]
[ExpectedException (typeof (ConfigurationErrorsException))]
public void PriorityValidator1 ()
{
SoapExtensionTypeElement el = new SoapExtensionTypeElement ();
el.Priority = -1;
}
[Test]
public void PriorityValidator2 ()
{
SoapExtensionTypeElement el = new SoapExtensionTypeElement ();
el.Priority = 0;
el.Priority = Int32.MaxValue;
}
}
}
#endif

View File

@@ -0,0 +1,71 @@
//
// System.Web.Services.Configuration.TypeElementTest.cs - Unit tests
// for System.Web.Services.Configuration.TypeElement
//
// Author:
// Chris Toshok <toshok@ximian.com>
//
// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System;
using System.Web.Services.Configuration;
using NUnit.Framework;
namespace MonoTests.System.Web.Services.Configuration {
[TestFixture]
public class TypeElementTest
{
[Test]
[Ignore ("causes NRE on .NET")]
public void Ctors1 ()
{
TypeElement el = new TypeElement ();
Assert.IsNull (el.Type, "A1");
}
[Test]
public void Ctors2 ()
{
TypeElement el;
el = new TypeElement (typeof (string));
Assert.AreEqual (typeof (string), el.Type, "A2");
el = new TypeElement ("System.String");
Assert.AreEqual (typeof (string), el.Type, "A3");
}
[Test]
public void GetSet ()
{
TypeElement el = new TypeElement ();
el.Type = typeof (string);
Assert.AreEqual (typeof (string), el.Type, "A1");
}
}
}
#endif

View File

@@ -0,0 +1,59 @@
//
// System.Web.Services.Configuration.WsdlHelpGeneratorElementTest.cs - Unit tests
// for System.Web.Services.Configuration.WsdlHelpGeneratorElement
//
// Author:
// Chris Toshok <toshok@ximian.com>
//
// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System;
using System.Web.Services.Configuration;
using NUnit.Framework;
namespace MonoTests.System.Web.Services {
[TestFixture]
public class WsdlHelpGeneratorElementTest
{
[Test]
public void Ctors ()
{
WsdlHelpGeneratorElement el = new WsdlHelpGeneratorElement ();
Assert.IsNull (el.Href, "A1");
}
[Test]
public void GetSet ()
{
WsdlHelpGeneratorElement el = new WsdlHelpGeneratorElement ();
el.Href="http://www.ximian.com/";
Assert.AreEqual ("http://www.ximian.com/", el.Href, "A1");
}
}
}
#endif

View File

@@ -0,0 +1,63 @@
//
// System.Web.Services.Configuration.WsiProfilesElementTest.cs - Unit tests
// for System.Web.Services.Configuration.WsiProfilesElement
//
// Author:
// Chris Toshok <toshok@ximian.com>
//
// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System;
using System.Web.Services;
using System.Web.Services.Configuration;
using NUnit.Framework;
namespace MonoTests.System.Web.Services {
[TestFixture]
public class WsiProfilesElementTest
{
[Test]
public void Ctors ()
{
WsiProfilesElement el = new WsiProfilesElement ();
Assert.AreEqual (WsiProfiles.None, el.Name, "A1");
el = new WsiProfilesElement (WsiProfiles.BasicProfile1_1);
Assert.AreEqual (WsiProfiles.BasicProfile1_1, el.Name, "A2");
}
[Test]
public void GetSet ()
{
WsiProfilesElement el = new WsiProfilesElement ();
el.Name = WsiProfiles.BasicProfile1_1;
Assert.AreEqual (WsiProfiles.BasicProfile1_1, el.Name, "A1");
}
}
}
#endif

View File

@@ -0,0 +1,63 @@
//
// MonoTests.System.Web.Services.Configuration.XmlFormatExtensionAttributeTest.cs
//
// Author:
// Tim Coleman (tim@timcoleman.com)
// Dave Bettin (dave@opendotnet.com)
//
// Copyright (C) Tim Coleman, 2002
// Copyright (C) Dave Bettin, 2003
//
using NUnit.Framework;
using System;
using System.Web.Services.Configuration;
using System.Web.Services.Description;
namespace MonoTests.System.Web.Services.Configuration {
[TestFixture]
public class XmlFormatExtensionAttributeTest {
[Test]
public void TestConstructors ()
{
XmlFormatExtensionAttribute attribute;
/* attribute = new XmlFormatExtensionAttribute ();
Assert.AreEqual (String.Empty, attribute.ElementName);
Assert.AreEqual (null, attribute.ExtensionPoints);
Assert.AreEqual (String.Empty, attribute.Namespace);
string elementName = "binding";
string ns = "http://schemas.xmlsoap.org/wsdl/http/";
Type[] types = new Type[4] {typeof (Binding), typeof (Binding), typeof (Binding), typeof (Binding)};
attribute = new XmlFormatExtensionAttribute (elementName, ns, types[0]);
Assert.AreEqual (elementName, attribute.ElementName);
Assert.AreEqual (new Type[1] {types[0]}, attribute.ExtensionPoints);
Assert.AreEqual (ns, attribute.Namespace);
attribute = new XmlFormatExtensionAttribute (elementName, ns, types[0], types[1]);
Assert.AreEqual (elementName, attribute.ElementName);
Assert.AreEqual (types[1]}, attribute.ExtensionPoints, new Type[2] {types[0]);
Assert.AreEqual (ns, attribute.Namespace);
attribute = new XmlFormatExtensionAttribute (elementName, ns, types[0], types[1], types[2]);
Assert.AreEqual (elementName, attribute.ElementName);
Assert.AreEqual (types[1], types[2]}, attribute.ExtensionPoints, new Type[3] {types[0]);
Assert.AreEqual (ns, attribute.Namespace);
attribute = new XmlFormatExtensionAttribute (elementName, ns, types[0], types[1], types[2], types[3]);
Assert.AreEqual (elementName, attribute.ElementName);
Assert.AreEqual (types[1], types[2], types[3]}, attribute.ExtensionPoints, new Type[4] {types[0]);
Assert.AreEqual (ns, attribute.Namespace);
attribute = new XmlFormatExtensionAttribute (elementName, ns, types);
Assert.AreEqual (elementName, attribute.ElementName);
Assert.AreEqual (types, attribute.ExtensionPoints);
Assert.AreEqual (ns, attribute.Namespace);*/
}
}
}

View File

@@ -0,0 +1,33 @@
<wsdl:definitions
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:impl="urn:myservice"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:myservice">
<wsdl:message name="getVersionStringResponse1">
<wsdl:part name="getVersionStringReturn" type="xsd:string" />
</wsdl:message>
<wsdl:message name="getVersionStringRequest1">
<wsdl:part name="developerKey" type="xsd:string" />
</wsdl:message>
<wsdl:portType name="MyServiceAxisAdapter">
<wsdl:operation name="getVersionString" parameterOrder="developerKey">
<wsdl:input message="impl:getVersionStringRequest1"
name="getVersionStringRequest1" />
<wsdl:output message="impl:getVersionStringResponse1"
name="getVersionStringResponse1" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="MyServiceSoapBinding" type="impl:MyServiceAxisAdapter">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
</wsdl:binding>
<wsdl:service name="MyServiceAxisAdapterService">
<wsdl:port binding="impl:MyServiceSoapBinding" name="MyService">
<wsdlsoap:address location="https://my-url.com/services/MyService"
/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

View File

@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://example.domain.openengsb.org" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ax21="http://event.example.domain.openengsb.org/xsd" xmlns:ax22="http://api.core.openengsb.org/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://example.domain.openengsb.org">
<wsdl:types>
<xs:schema xmlns:ax24="http://event.example.domain.openengsb.org/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://example.domain.openengsb.org">
<xs:import namespace="http://event.example.domain.openengsb.org/xsd"/>
<xs:element name="raiseEvent">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="args0" nillable="true" type="ax24:LogEvent"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://api.core.openengsb.org/xsd">
<xs:complexType name="Event">
<xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="origin" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="processId" nillable="true" type="xs:long"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
<xs:schema xmlns:ax23="http://api.core.openengsb.org/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://event.example.domain.openengsb.org/xsd">
<xs:import namespace="http://api.core.openengsb.org/xsd"/>
<xs:complexType name="LogEvent">
<xs:complexContent>
<xs:extension base="ax23:Event">
<xs:sequence>
<xs:element minOccurs="0" name="level" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="message" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="raiseEventRequest">
<wsdl:part name="parameters" element="ns:raiseEvent"/>
</wsdl:message>
<wsdl:portType name="ExampleDomainEventsPortType">
<wsdl:operation name="raiseEvent">
<wsdl:input message="ns:raiseEventRequest" wsaw:Action="urn:raiseEvent"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ExampleDomainEventsSoap11Binding" type="ns:ExampleDomainEventsPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="raiseEvent">
<soap:operation soapAction="urn:raiseEvent" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="ExampleDomainEventsSoap12Binding" type="ns:ExampleDomainEventsPortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="raiseEvent">
<soap12:operation soapAction="urn:raiseEvent" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="ExampleDomainEventsHttpBinding" type="ns:ExampleDomainEventsPortType">
<http:binding verb="POST"/>
<wsdl:operation name="raiseEvent">
<http:operation location="raiseEvent"/>
<wsdl:input>
<mime:content type="application/xml" part="parameters"/>
</wsdl:input>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ExampleDomainEvents">
<wsdl:port name="ExampleDomainEventsHttpSoap11Endpoint" binding="ns:ExampleDomainEventsSoap11Binding">
<soap:address location="http://localhost:8080/axis2/services/ExampleDomainEvents"/>
</wsdl:port>
<wsdl:port name="ExampleDomainEventsHttpSoap12Endpoint" binding="ns:ExampleDomainEventsSoap12Binding">
<soap12:address location="http://localhost:8080/axis2/services/ExampleDomainEvents"/>
</wsdl:port>
<wsdl:port name="ExampleDomainEventsHttpEndpoint" binding="ns:ExampleDomainEventsHttpBinding">
<http:address location="http://localhost:8080/axis2/services/ExampleDomainEvents"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

View File

@@ -0,0 +1,51 @@
//
// MonoTests.System.Web.Services.Description.BindingCollectionTest.cs
//
// Author:
// Erik LeBel <eriklebel@yahoo.ca>
//
// (C) 2003 Erik LeBel
//
using NUnit.Framework;
using System;
using System.Web.Services.Description;
namespace MonoTests.System.Web.Services.Description
{
[TestFixture]
public class BindingCollectionTest
{
BindingCollection bc;
[SetUp]
public void InitializeBindingCollection ()
{
// workaround for internal constructor
ServiceDescription desc = new ServiceDescription ();
bc = desc.Bindings;
}
[Test]
public void TestDefaultProperties()
{
Assert.IsNull (bc["hello"]);
Assert.AreEqual (0, bc.Count);
}
[Test]
public void TestAddBinding ()
{
const string bindingName = "testBinding";
Binding b = new Binding ();
b.Name = bindingName;
bc.Add (b);
Assert.AreEqual (1, bc.Count);
Assert.AreEqual (b, bc[bindingName]);
}
}
}

View File

@@ -0,0 +1,140 @@
2009-06-26 Robert Jordan <robertj@gmx.net>
* *.cs: Upgrade to new NUnit style.
2008-12-09 Atsushi Enomoto <atsushi@ximian.com>
* 443095.wsdl, WebServicesInteroperabilityTest.cs : added
new test for R2305 checker.
2008-07-01 Atsushi Enomoto <atsushi@ximian.com>
* WebServicesInteroperabilityTest.cs : new test. wsdl with <import>
should not result in an error.
* check-import.wsdl, check-import2.wsdl : test helper files.
2008-07-01 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDescriptionTest.cs : check RetrievalUrl before/after Read().
Sadly it does not provide the actual URL...
2008-07-01 Atsushi Enomoto <atsushi@ximian.com>
* test3.wsdl: added missing file (though the test is ignored).
2008-06-10 Vladimir Krasnov <vladimirk@mainsoft.com>
* ServiceDescriptionReflectorTest.cs: added tests for bug fixes:
#345448, #345449, #360241
2008-03-26 Lluis Sanchez Gual <lluis@novell.com>
* ServiceDescriptionReflectorTest.cs: Added another test for bug
#345448.
2008-02-22 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDescriptionReflectorTest.cs : mark Bug345448() NotWorking.
2008-01-08 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDescriptionReflectorTest.cs : added test for empty SOAP
action.
2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDescriptionReflectorTest.cs : added test for bug #332150.
2007-05-11 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDescriptionImporterTest.cs : added ignored test for #81457.
2007-05-11 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDescriptionReflectorTest.cs : added test for 78953 (not
working, hard to fix) and 79807 (already fixed).
2007-02-22 Raja R Harinath <rharinath@novell.com>
Fix compile error
* ServiceDescriptionReflectorTest.cs (NullableContainer): Hide in
1.1 profile.
2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDescriptionReflectorTest.cs : added test for methods with
nullable return type.
2007-01-19 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDescriptionImporterTest.cs : new test.
* test2.wsdl : new test support file.
2006-12-15 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDescriptionFormatExtensionCollectionTest.cs :
new test.
2006-11-15 Atsushi Enomoto <atsushi@ximian.com>
* WebReferenceTest.cs : added new test (so minor).
2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
* WebReferenceOptionsTest.cs :
Read() actually causes invalid operation.
2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
* WebReferenceOptionsTest.cs :
added test for Read(). Fixed namespace URI.
2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
* WebReferenceOptionsTest.cs : new test.
2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDescriptionTest.cs : added test for invalid Read() inputs.
2006-09-07 Ankit Jain <jankit@novell.com>
* ServiceDescriptionTest.cs (Ctor): New.
2006-09-05 Ankit Jain <jankit@novell.com>
* ServiceDescriptionTest.cs (Namespaces): New.
2006-05-03 Ankit Jain <jankit@novell.com>
* ServiceDescriptionTest.cs (Extensions) New test.
(CheckExtensions):
(CheckXmlElement): New. Helper methods.
* test.wsdl: Test wsdl.
2006-04-27 Ankit Jain <jankit@novell.com>
* ServiceDescriptionTest.cs (ExtensibleAttributes): New test.
2006-02-04 Gert Driesen <drieseng@users.sourceforge.net>
* ServiceDescriptionReflectorTest.cs: Use only one include as otherwise
the order of elements is not consistent on MS.NET.
2006-02-04 Gert Driesen <drieseng@users.sourceforge.net>
* ServiceDescriptionReflectorTest.cs: New test, currently marked
NotWorking.
2005-10-05 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDescriptionTest.cs : new file (for part of bug #76311).
2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
* BindingCollectionTest.cs ChangeLog DocumentableItemTest.cs
OperationCollectionTest.cs OperationMessageCollectionTest.cs
OperationMessageTest.cs PortTypeCollectionTest.cs PortTypeTest.cs
ServiceCollectionTest.cs ServiceDescriptionCollectionTest.cs
SoapBodyBindingTest.cs SoapOperationBindingTest.cs TypesTest.cs
New test files by Erik LeBel.

View File

@@ -0,0 +1,42 @@
//
// MonoTests.System.Web.Services.Description.DocumentableItemTest.cs
//
// Author:
// Erik LeBel <eriklebel@yahoo.ca>
//
// (C) 2003 Erik LeBel
//
using NUnit.Framework;
using System;
using System.Web.Services.Description;
namespace MonoTests.System.Web.Services.Description
{
[TestFixture]
public class DocumentableItemTest
{
DocumentableItem item;
[SetUp]
public void InitializeItem()
{
// workaround for base class
item = new Types();
}
[Test]
public void TestDefaultProperties()
{
Assert.AreEqual (String.Empty, item.Documentation);
}
[Test]
public void TestNullDocumentationString()
{
item.Documentation = null;
Assert.AreEqual (String.Empty, item.Documentation);
}
}
}

View File

@@ -0,0 +1,50 @@
//
// MonoTests.System.Web.Services.Description.OperationCollectionTest.cs
//
// Author:
// Erik LeBel <eriklebel@yahoo.ca>
//
// (C) 2003 Erik LeBel
//
using NUnit.Framework;
using System;
using System.Web.Services.Description;
namespace MonoTests.System.Web.Services.Description
{
[TestFixture]
public class OperationCollectionTest
{
OperationCollection operations;
[SetUp]
public void InitializeOperations()
{
// workaround for internal constructor
PortType portType = new PortType();
operations = portType.Operations;
}
[Test]
public void TestDefaultProperties()
{
Assert.AreEqual (0, operations.Count);
}
[Test]
[ExpectedException (typeof (ArgumentNullException))]
public void TestAddNullObject()
{
operations.Add(null);
}
[Test]
public void TestAddValidOperation()
{
operations.Add(new Operation());
Assert.AreEqual (1, operations.Count);
}
}
}

View File

@@ -0,0 +1,133 @@
//
// MonoTests.System.Web.Services.Description.OperationMessageCollectionTest.cs
//
// Author:
// Erik LeBel <eriklebel@yahoo.ca>
//
// (C) 2003 Erik LeBel
//
using NUnit.Framework;
using System;
using System.Web.Services.Description;
using System.Xml;
namespace MonoTests.System.Web.Services.Description
{
[TestFixture]
public class OperationMessageCollectionTest
{
OperationMessageCollection operations;
[SetUp]
public void InitializeOperation()
{
// workaround for internal constructor
Operation op = new Operation();
operations = op.Messages;
}
[Test]
public void TestDefaultProperties()
{
Assert.AreEqual (OperationFlow.None, operations.Flow);
Assert.IsNull (operations.Input);
Assert.IsNull (operations.Output);
Assert.AreEqual (0, operations.Count);
}
[Test]
public void TestAddInput()
{
operations.Add(new OperationInput());
Assert.AreEqual (OperationFlow.OneWay, operations.Flow);
Assert.IsNotNull (operations.Input);
Assert.IsNull (operations.Output);
Assert.AreEqual (1, operations.Count);
}
[Test]
public void TestAddOutput()
{
operations.Add(new OperationOutput());
Assert.AreEqual (OperationFlow.Notification, operations.Flow);
Assert.IsNull (operations.Input);
Assert.IsNotNull (operations.Output);
Assert.AreEqual (1, operations.Count);
}
[Test]
public void TestAddInputAndOutput()
{
operations.Add(new OperationInput());
operations.Add(new OperationOutput());
Assert.AreEqual (OperationFlow.RequestResponse, operations.Flow);
Assert.IsNotNull (operations.Input);
Assert.IsNotNull (operations.Output);
Assert.AreEqual (2, operations.Count);
}
[Test]
public void TestAddOutputAndInput()
{
operations.Add(new OperationOutput());
operations.Add(new OperationInput());
Assert.AreEqual (OperationFlow.SolicitResponse, operations.Flow);
Assert.IsNotNull (operations.Input);
Assert.IsNotNull (operations.Output);
Assert.AreEqual (2, operations.Count);
}
[Test]
[ExpectedException (typeof (ArgumentException))]
public void TestAddNull()
{
operations.Add(null);
}
[Test]
[ExpectedException (typeof (ArgumentException))]
public void TestAddFault()
{
operations.Add(new OperationFault());
}
[Test]
[ExpectedException (typeof (InvalidOperationException))]
public void TestAddInputAndInput()
{
operations.Add(new OperationInput());
operations.Add(new OperationInput());
}
[Test]
[ExpectedException (typeof (InvalidOperationException))]
public void TestAddOutputAndOutput()
{
operations.Add(new OperationOutput());
operations.Add(new OperationOutput());
}
[Test]
[ExpectedException (typeof (InvalidOperationException))]
public void TestAddThreeOperationMessages()
{
operations.Add(new OperationOutput());
operations.Add(new OperationOutput());
operations.Add(new OperationOutput());
}
[Test]
[ExpectedException (typeof (ArgumentException))]
public void TestAddInputAndFault()
{
operations.Add(new OperationInput());
operations.Add(new OperationFault());
}
}
}

View File

@@ -0,0 +1,39 @@
//
// MonoTests.System.Web.Services.Description.OperationMessageTest.cs
//
// Author:
// Erik LeBel <eriklebel@yahoo.ca>
//
// (C) 2003 Erik LeBel
//
using NUnit.Framework;
using System;
using System.Web.Services.Description;
using System.Xml;
namespace MonoTests.System.Web.Services.Description
{
[TestFixture]
public class OperationMessageTest
{
OperationMessage operation;
[SetUp]
public void InitializeOperation()
{
// workaround: OperationInput, OperationOutput and OperationFault are all empty derivations of OperationMessage
operation = new OperationInput();
}
[Test]
public void TestDefaultProperties()
{
Assert.AreEqual (String.Empty, operation.Documentation);
Assert.IsNull (operation.Name);
Assert.AreEqual (XmlQualifiedName.Empty, operation.Message);
Assert.IsNull (operation.Operation);
}
}
}

View File

@@ -0,0 +1,51 @@
//
// MonoTests.System.Web.Services.Description.PortTypeCollectionTest.cs
//
// Author:
// Erik LeBel <eriklebel@yahoo.ca>
//
// (C) 2003 Erik LeBel
//
using NUnit.Framework;
using System;
using System.Web.Services.Description;
namespace MonoTests.System.Web.Services.Description
{
[TestFixture]
public class PortTypeCollectionTest
{
PortTypeCollection ptc;
[SetUp]
public void InitializePortTypeCollection ()
{
// workaround for internal constructor
ServiceDescription desc = new ServiceDescription ();
ptc = desc.PortTypes;
}
[Test]
public void TestDefaultProperties()
{
Assert.IsNull (ptc["hello"]);
Assert.AreEqual (0, ptc.Count);
}
[Test]
public void TestAddPortType ()
{
const string portTypeName = "testPortType";
PortType p = new PortType ();
p.Name = portTypeName;
ptc.Add (p);
Assert.AreEqual (1, ptc.Count);
Assert.AreEqual (p, ptc[portTypeName]);
}
}
}

View File

@@ -0,0 +1,52 @@
//
// MonoTests.System.Web.Services.Description.PortTypeTest.cs
//
// Author:
// Erik LeBel <eriklebel@yahoo.ca>
//
// (C) 2003 Erik LeBel
//
using NUnit.Framework;
using System;
using System.Web.Services.Description;
namespace MonoTests.System.Web.Services.Description
{
[TestFixture]
public class PortTypeTest
{
PortType portType;
[SetUp]
public void InitializePortType()
{
portType = new PortType();
}
[Test]
public void TestDefaultProperties()
{
Assert.IsNull (portType.Name);
Assert.IsNotNull (portType.Operations);
Assert.AreEqual (0, portType.Operations.Count);
Assert.IsNull (portType.ServiceDescription);
}
[Test]
public void TestEmptyName()
{
portType.Name = String.Empty;
Assert.AreEqual (String.Empty, portType.Name);
}
[Test]
public void TestLongName()
{
const string LongName = "abcdefghijklmnopqrstuvwxyz";
portType.Name = LongName;
Assert.AreEqual (LongName, portType.Name);
}
}
}

View File

@@ -0,0 +1,51 @@
//
// MonoTests.System.Web.Services.Description.ServiceCollectionTest.cs
//
// Author:
// Erik LeBel <eriklebel@yahoo.ca>
//
// (C) 2003 Erik LeBel
//
using NUnit.Framework;
using System;
using System.Web.Services.Description;
namespace MonoTests.System.Web.Services.Description
{
[TestFixture]
public class ServiceCollectionTest
{
ServiceCollection sc;
[SetUp]
public void InitializeServiceCollection ()
{
// workaround for internal constructor
ServiceDescription desc = new ServiceDescription ();
sc = desc.Services;
}
[Test]
public void TestDefaultProperties()
{
Assert.IsNull (sc["hello"]);
Assert.AreEqual (0, sc.Count);
}
[Test]
public void TestAddService ()
{
const string serviceName = "testService";
Service s = new Service ();
s.Name = serviceName;
sc.Add (s);
Assert.AreEqual (1, sc.Count);
Assert.AreEqual (s, sc[serviceName]);
}
}
}

Some files were not shown because too many files have changed in this diff Show More