activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r412454 - in /incubator/activemq/trunk/activemq-dotnet: pom.xml src/main/csharp/CommonAssemblyInfo.cs src/test/csharp/ActiveMQ/OpenWire/BooleanStreamTest.cs src/test/csharp/CommonAssemblyInfo.cs
Date Wed, 07 Jun 2006 16:50:57 GMT
Author: jstrachan
Date: Wed Jun  7 09:50:56 2006
New Revision: 412454

URL: http://svn.apache.org/viewvc?rev=412454&view=rev
Log:
added back csharp m2 repo

Modified:
    incubator/activemq/trunk/activemq-dotnet/pom.xml
    incubator/activemq/trunk/activemq-dotnet/src/main/csharp/CommonAssemblyInfo.cs
    incubator/activemq/trunk/activemq-dotnet/src/test/csharp/ActiveMQ/OpenWire/BooleanStreamTest.cs
    incubator/activemq/trunk/activemq-dotnet/src/test/csharp/CommonAssemblyInfo.cs

Modified: incubator/activemq/trunk/activemq-dotnet/pom.xml
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-dotnet/pom.xml?rev=412454&r1=412453&r2=412454&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-dotnet/pom.xml (original)
+++ incubator/activemq/trunk/activemq-dotnet/pom.xml Wed Jun  7 09:50:56 2006
@@ -10,6 +10,14 @@
   <artifactId>activemq-dotnet</artifactId>
   <packaging>dotnet-library</packaging>
 
+  <repositories>
+    <repository>
+      <id>maven-csharp</id>
+      <name>maven-csharp</name>
+      <url>http://maven-csharp.javaforge.com/repo</url>
+    </repository>
+  </repositories>
+
   <build>
 
     <outputDirectory>target/dotnet-assembly</outputDirectory>

Modified: incubator/activemq/trunk/activemq-dotnet/src/main/csharp/CommonAssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-dotnet/src/main/csharp/CommonAssemblyInfo.cs?rev=412454&r1=412453&r2=412454&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-dotnet/src/main/csharp/CommonAssemblyInfo.cs (original)
+++ incubator/activemq/trunk/activemq-dotnet/src/main/csharp/CommonAssemblyInfo.cs Wed Jun
 7 09:50:56 2006
@@ -22,6 +22,6 @@
 [assembly: AssemblyCopyrightAttribute("Copyright (C) 2005-2006 Apache Software Foundation")]
 [assembly: AssemblyTrademarkAttribute("")]
 [assembly: AssemblyCultureAttribute("")]
-[assembly: AssemblyVersionAttribute("4.0.2266.0")]
+[assembly: AssemblyVersionAttribute("4.0.2281.0")]
 [assembly: AssemblyInformationalVersionAttribute("4.0")]
 

Modified: incubator/activemq/trunk/activemq-dotnet/src/test/csharp/ActiveMQ/OpenWire/BooleanStreamTest.cs
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-dotnet/src/test/csharp/ActiveMQ/OpenWire/BooleanStreamTest.cs?rev=412454&r1=412453&r2=412454&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-dotnet/src/test/csharp/ActiveMQ/OpenWire/BooleanStreamTest.cs
(original)
+++ incubator/activemq/trunk/activemq-dotnet/src/test/csharp/ActiveMQ/OpenWire/BooleanStreamTest.cs
Wed Jun  7 09:50:56 2006
@@ -18,111 +18,112 @@
 using System;
 using System.IO;
 
-namespace ActiveMQ.OpenWire
-{
-    [TestFixture]
-    public class BooleanStreamTest
-    {
-		protected int endOfStreamMarker = 0x12345678;
-		int numberOfBytes = 8 * 200;
-		
-		public delegate bool GetBooleanValueDelegate(int index, int count);
-		
-        [Test]
-		public void TestBooleanMarshallingUsingAllTrue()
-		{
-			DoTestBooleanStream(numberOfBytes, new GetBooleanValueDelegate(GetBooleanValueAllTrue));
-		}
-		public bool GetBooleanValueAllTrue(int index, int count)
-		{
-			return true;
-		}
-		
-        [Test]
-		public void TestBooleanMarshallingUsingAllFalse()
-		{
-			DoTestBooleanStream(numberOfBytes, new GetBooleanValueDelegate(GetBooleanValueAllFalse));
-		}
-		public bool GetBooleanValueAllFalse(int index, int count)
-		{
-			return false;
-		}
-		
-        [Test]
-		public void TestBooleanMarshallingUsingAlternateTrueFalse()
-		{
-			DoTestBooleanStream(numberOfBytes, new GetBooleanValueDelegate(GetBooleanValueAlternateTrueFalse));
-		}
-		public bool GetBooleanValueAlternateTrueFalse(int index, int count)
-		{
-			return (index & 1) == 0;
-		}
-		
-		[Test]
-		public void TestBooleanMarshallingUsingAlternateFalseTrue()
-		{
-			DoTestBooleanStream(numberOfBytes, new GetBooleanValueDelegate(GetBooleanValueAlternateFalseTrue));
-		}
-		public bool GetBooleanValueAlternateFalseTrue(int index, int count)
-		{
-			return (index & 1) != 0;
-		}
-		
-		protected void DoTestBooleanStream(int numberOfBytes, GetBooleanValueDelegate valueDelegate)
-		{
-			for (int i = 1017; i < numberOfBytes; i++)
-			{
-				AssertMarshalBooleans(i, valueDelegate);
-			}
-		}
-		
-		protected void AssertMarshalBooleans(int count, GetBooleanValueDelegate valueDelegate)
-		{
-			BooleanStream bs = new BooleanStream();
-			for (int i = 0; i < count; i++)
-			{
-				bs.WriteBoolean(valueDelegate(i, count));
-			}
-			MemoryStream buffer = new MemoryStream();
-			BinaryWriter ds = new OpenWireBinaryWriter(buffer);
-			bs.Marshal(ds);
-			ds.Write(endOfStreamMarker);
-			
-			// now lets read from the stream
-			
-			MemoryStream ins = new MemoryStream(buffer.ToArray());
-			BinaryReader dis = new OpenWireBinaryReader(ins);
-			bs = new BooleanStream();
-			bs.Unmarshal(dis);
-			
-			for (int i = 0; i < count; i++)
-			{
-				bool expected = valueDelegate(i, count);
-				
-				try
-				{
-					bool actual = bs.ReadBoolean();
-					Assert.AreEqual(expected, actual);
-				}
-				catch (Exception e)
-				{
-					Assert.Fail("Failed to parse bool: " + i + " out of: " + count + " due to: " + e);
-				}
-			}
-			int marker = dis.ReadInt32();
-			Assert.AreEqual(endOfStreamMarker, marker, "did not match: "+endOfStreamMarker+" and "+marker);
-			
-			// lets try read and we should get an exception
-			try
-			{
-				dis.ReadByte();
-				Assert.Fail("Should have reached the end of the stream");
-			}
-			catch (IOException)
-			{
-			}
-		}
-		
-	}
-}
+namespace ActiveMQ.OpenWire {
+        [ TestFixture ]
+        public class BooleanStreamTest
+        {
+                protected int endOfStreamMarker = 0x12345678;
+                int numberOfBytes = 8 * 200;
+
+                public delegate bool GetBooleanValueDelegate(int index, int count);
+
+                [ Test ]
+                public void TestBooleanMarshallingUsingAllTrue()
+                {
+                        DoTestBooleanStream(numberOfBytes, new GetBooleanValueDelegate(GetBooleanValueAllTrue));
+                }
+                public bool GetBooleanValueAllTrue(int index, int count)
+                {
+                        return true;
+                }
+
+                [ Test ]
+                public void TestBooleanMarshallingUsingAllFalse()
+                {
+                        DoTestBooleanStream(numberOfBytes, new GetBooleanValueDelegate(GetBooleanValueAllFalse));
+                }
+                public bool GetBooleanValueAllFalse(int index, int count)
+                {
+                        return false;
+                }
+
+                [ Test ]
+                public void TestBooleanMarshallingUsingAlternateTrueFalse()
+                {
+                        DoTestBooleanStream(
+                                numberOfBytes, new GetBooleanValueDelegate(GetBooleanValueAlternateTrueFalse));
+                }
+                public bool GetBooleanValueAlternateTrueFalse(int index, int count)
+                {
+                        return (index & 1) == 0;
+                }
+
+                [ Test ]
+                public void TestBooleanMarshallingUsingAlternateFalseTrue()
+                {
+                        DoTestBooleanStream(
+                                numberOfBytes, new GetBooleanValueDelegate(GetBooleanValueAlternateFalseTrue));
+                }
+                public bool GetBooleanValueAlternateFalseTrue(int index, int count)
+                {
+                        return (index & 1) != 0;
+                }
+
+                protected void DoTestBooleanStream(int numberOfBytes, GetBooleanValueDelegate
valueDelegate)
+                {
+                        for (int i = 1017; i < numberOfBytes; i++)
+                        {
+                                AssertMarshalBooleans(i, valueDelegate);
+                        }
+                }
 
+                protected void AssertMarshalBooleans(int count, GetBooleanValueDelegate valueDelegate)
+                {
+                        BooleanStream bs = new BooleanStream();
+                        for (int i = 0; i < count; i++)
+                        {
+                                bs.WriteBoolean(valueDelegate(i, count));
+                        }
+                        MemoryStream buffer = new MemoryStream();
+                        BinaryWriter ds = new OpenWireBinaryWriter(buffer);
+                        bs.Marshal(ds);
+                        ds.Write(endOfStreamMarker);
+
+                        // now lets read from the stream
+
+                        MemoryStream ins = new MemoryStream(buffer.ToArray());
+                        BinaryReader dis = new OpenWireBinaryReader(ins);
+                        bs = new BooleanStream();
+                        bs.Unmarshal(dis);
+
+                        for (int i = 0; i < count; i++)
+                        {
+                                bool expected = valueDelegate(i, count);
+
+                                try
+                                {
+                                        bool actual = bs.ReadBoolean();
+                                        Assert.AreEqual(expected, actual);
+                                }
+                                catch (Exception e)
+                                {
+                                        Assert.Fail(
+                                                "Failed to parse bool: " + i + " out of:
" + count + " due to: " + e);
+                                }
+                        }
+                        int marker = dis.ReadInt32();
+                        Assert.AreEqual(
+                                endOfStreamMarker, marker, "did not match: " + endOfStreamMarker
+ " and " + marker);
+
+                        // lets try read and we should get an exception
+                        try
+                        {
+                                dis.ReadByte();
+                                Assert.Fail("Should have reached the end of the stream");
+                        }
+                        catch (IOException)
+                        {
+                        }
+                }
+        }
+}

Modified: incubator/activemq/trunk/activemq-dotnet/src/test/csharp/CommonAssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-dotnet/src/test/csharp/CommonAssemblyInfo.cs?rev=412454&r1=412453&r2=412454&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-dotnet/src/test/csharp/CommonAssemblyInfo.cs (original)
+++ incubator/activemq/trunk/activemq-dotnet/src/test/csharp/CommonAssemblyInfo.cs Wed Jun
 7 09:50:56 2006
@@ -22,6 +22,6 @@
 [assembly: AssemblyCopyrightAttribute("Copyright (C) 2005-2006 Apache Software Foundation")]
 [assembly: AssemblyTrademarkAttribute("")]
 [assembly: AssemblyCultureAttribute("")]
-[assembly: AssemblyVersionAttribute("4.0.2266.0")]
+[assembly: AssemblyVersionAttribute("4.0.2281.0")]
 [assembly: AssemblyInformationalVersionAttribute("4.0")]
 



Mime
View raw message