You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by mm...@apache.org on 2010/03/11 06:08:07 UTC

svn commit: r921693 - in /ibatis/cs/ibatisnet-3/trunk/src: Apache.Ibatis.Common.Test/Fixtures/Resources/UrlResourceLoaderTest.cs Apache.Ibatis.Common/Resources/CustomUriBuilder.cs

Author: mmccurrey
Date: Thu Mar 11 05:08:07 2010
New Revision: 921693

URL: http://svn.apache.org/viewvc?rev=921693&view=rev
Log:
The test was flawed.  Expected FileNotFound when the CustomUriBuilder explicitly throws ResourcException.  Updated the doc for CustomURIBuilder as well

Modified:
    ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common.Test/Fixtures/Resources/UrlResourceLoaderTest.cs
    ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common/Resources/CustomUriBuilder.cs

Modified: ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common.Test/Fixtures/Resources/UrlResourceLoaderTest.cs
URL: http://svn.apache.org/viewvc/ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common.Test/Fixtures/Resources/UrlResourceLoaderTest.cs?rev=921693&r1=921692&r2=921693&view=diff
==============================================================================
--- ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common.Test/Fixtures/Resources/UrlResourceLoaderTest.cs (original)
+++ ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common.Test/Fixtures/Resources/UrlResourceLoaderTest.cs Thu Mar 11 05:08:07 2010
@@ -41,7 +41,7 @@ namespace Apache.Ibatis.Common.Test.Fixt
         }
 
         [Test]
-        [ExpectedException(typeof(FileNotFoundException))]
+        [ExpectedException(typeof(Apache.Ibatis.Common.Exceptions.ResourceException))]
         public void Url_should_raise_exception_FileNotFoundException_on_FileInfo_property()
         {
             string uri = "http://www.apache.org/";

Modified: ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common/Resources/CustomUriBuilder.cs
URL: http://svn.apache.org/viewvc/ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common/Resources/CustomUriBuilder.cs?rev=921693&r1=921692&r2=921693&view=diff
==============================================================================
--- ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common/Resources/CustomUriBuilder.cs (original)
+++ ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common/Resources/CustomUriBuilder.cs Thu Mar 11 05:08:07 2010
@@ -65,6 +65,7 @@ namespace Apache.Ibatis.Common.Resources
         /// </summary>
         /// <param name="resourceUri">The specified path or fragment identifier</param>
         /// <param name="basePath">The base directory</param>
+        /// <exception cref="ResourceException">Thrown when the resource doesn't exist for the supplied URI</exception>
         public CustomUriBuilder(string resourceUri, string basePath)
         {
             string originalResourceName = resourceUri;