You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2005/10/15 18:08:51 UTC

svn commit: r321363 - in /struts/sandbox/trunk/overdrive/PhoneBook: Core/ Core/Commands/ Test/Commands/ Test/Forms/ Web/Controls/

Author: husted
Date: Sat Oct 15 09:08:40 2005
New Revision: 321363

URL: http://svn.apache.org/viewcvs?rev=321363&view=rev
Log:
OVR-5
* Code reforrmatting only. No changes.

Modified:
    struts/sandbox/trunk/overdrive/PhoneBook/Core/AppEntry.cs
    struts/sandbox/trunk/overdrive/PhoneBook/Core/AppUserProfile.cs
    struts/sandbox/trunk/overdrive/PhoneBook/Core/Commands/BaseCount.cs
    struts/sandbox/trunk/overdrive/PhoneBook/Test/Commands/SelectAllTest.cs
    struts/sandbox/trunk/overdrive/PhoneBook/Test/Forms/DirectoryTest.cs
    struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Finder.ascx.cs
    struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Lister.ascx.cs
    struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Lister2.ascx.cs

Modified: struts/sandbox/trunk/overdrive/PhoneBook/Core/AppEntry.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Core/AppEntry.cs?rev=321363&r1=321362&r2=321363&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Core/AppEntry.cs (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Core/AppEntry.cs Sat Oct 15 09:08:40 2005
@@ -23,7 +23,6 @@
 	/// 
 	public class AppEntry
 	{
-
 		/// <summary>
 		/// Internal storage.
 		/// </summary>

Modified: struts/sandbox/trunk/overdrive/PhoneBook/Core/AppUserProfile.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Core/AppUserProfile.cs?rev=321363&r1=321362&r2=321363&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Core/AppUserProfile.cs (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Core/AppUserProfile.cs Sat Oct 15 09:08:40 2005
@@ -11,7 +11,6 @@
 	/// 
 	public class AppUserProfile : UserProfile
 	{
-
 		/// <summary>
 		/// Provide a field for IsEditor property.
 		/// </summary>

Modified: struts/sandbox/trunk/overdrive/PhoneBook/Core/Commands/BaseCount.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Core/Commands/BaseCount.cs?rev=321363&r1=321362&r2=321363&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Core/Commands/BaseCount.cs (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Core/Commands/BaseCount.cs Sat Oct 15 09:08:40 2005
@@ -5,13 +5,13 @@
 	/// <summary>
 	/// Invoke a query that returns the count of a result set.
 	/// </summary>
-	public class BaseCount: BaseMapper
+	public class BaseCount : BaseMapper
+	{
+		public override bool RequestExecute(IRequestContext context)
 		{
-			public override bool RequestExecute(IRequestContext context)
-			{
-				object result = Mapper.QueryForObject(QueryID, context);
-				context[App.ITEM_COUNT] = result;
-				return CONTINUE;
-			}
+			object result = Mapper.QueryForObject(QueryID, context);
+			context[App.ITEM_COUNT] = result;
+			return CONTINUE;
 		}
-}
+	}
+}
\ No newline at end of file

Modified: struts/sandbox/trunk/overdrive/PhoneBook/Test/Commands/SelectAllTest.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Test/Commands/SelectAllTest.cs?rev=321363&r1=321362&r2=321363&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Test/Commands/SelectAllTest.cs (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Test/Commands/SelectAllTest.cs Sat Oct 15 09:08:40 2005
@@ -97,16 +97,16 @@
 			helper.Execute();
 			if (!helper.IsNominal) Assert.Fail(helper.ErrorsText);
 			IList list = helper.Outcome;
-			Assert.IsTrue(list.Count==2,"Expected result set to be limited to two entries.");
+			Assert.IsTrue(list.Count == 2, "Expected result set to be limited to two entries.");
 			AppEntry entry = list[0] as AppEntry;
 			helper.Criteria[App.ITEM_LIMIT] = 2;
 			helper.Criteria[App.ITEM_OFFSET] = 2;
 			helper.Execute();
 			IList list2 = helper.Outcome;
 			AppEntry entry2 = list2[0] as AppEntry;
-			Assert.IsFalse(entry.entry_key.Equals(entry2.entry_key),"Expected result sets to be different");
+			Assert.IsFalse(entry.entry_key.Equals(entry2.entry_key), "Expected result sets to be different");
 			int count = Convert.ToInt32(helper.Criteria[App.ITEM_COUNT]);
-			Assert.IsTrue(count>2,"Expected the overall count to be higher");
+			Assert.IsTrue(count > 2, "Expected the overall count to be higher");
 		}
 
 	}

Modified: struts/sandbox/trunk/overdrive/PhoneBook/Test/Forms/DirectoryTest.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Test/Forms/DirectoryTest.cs?rev=321363&r1=321362&r2=321363&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Test/Forms/DirectoryTest.cs (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Test/Forms/DirectoryTest.cs Sat Oct 15 09:08:40 2005
@@ -71,7 +71,7 @@
 		private DropDownListTester hours_list;
 
 		// TODO: private DropDownListTester editor_list;
-		
+
 		/// <summary>
 		/// Provide find instance for testing.
 		/// </summary>

Modified: struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Finder.ascx.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Finder.ascx.cs?rev=321363&r1=321362&r2=321363&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Finder.ascx.cs (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Finder.ascx.cs Sat Oct 15 09:08:40 2005
@@ -119,7 +119,7 @@
 			string key = id.Substring(0, v);
 			helper.Criteria[key] = list.SelectedValue;
 			Filter_Reset(list);
-			Filter_Changed(this, new FindArgs(e,helper.Criteria));
+			Filter_Changed(this, new FindArgs(e, helper.Criteria));
 		}
 
 		/// <summary>
@@ -160,7 +160,6 @@
 		}
 
 		#region Web Form Designer generated code
-
 
 		/// <summary>
 		///		Initialize components.

Modified: struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Lister.ascx.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Lister.ascx.cs?rev=321363&r1=321362&r2=321363&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Lister.ascx.cs (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Lister.ascx.cs Sat Oct 15 09:08:40 2005
@@ -7,7 +7,6 @@
 
 namespace PhoneBook.Web.Controls
 {
-
 	/// <summary>
 	/// Present matching directory entries.
 	/// </summary>

Modified: struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Lister2.ascx.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Lister2.ascx.cs?rev=321363&r1=321362&r2=321363&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Lister2.ascx.cs (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Web/Controls/Lister2.ascx.cs Sat Oct 15 09:08:40 2005
@@ -11,7 +11,6 @@
 	/// </summary>
 	public class Lister2 : AppGridControl
 	{
-
 		/// <summary>
 		/// Provide instance of DataGrid control
 		/// </summary>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org