CVS: Tapestry/junit/src/net/sf/tapestry/junit TestResourceLocation.java,1.1.2.1,1.1.2.2

Howard Lewis Ship <[email protected]>
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/Tapestry/junit/src/net/sf/tapestry/junit
In directory sc8-pr-cvs1:/tmp/cvs-serv15280/junit/src/net/sf/tapestry/junit

Modified Files:
      Tag: hship-2-3
	TestResourceLocation.java 
Log Message:
Check in support for templates in the application root.

Index: TestResourceLocation.java
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/junit/src/net/sf/tapestry/junit/Attic/TestResourceLocation.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** TestResourceLocation.java	8 Dec 2002 15:04:46 -0000	1.1.2.1
--- TestResourceLocation.java	11 Dec 2002 14:02:27 -0000	1.1.2.2
***************
*** 165,168 ****
--- 165,186 ----
      }
  
+     public void testClasspathLocalizeMissing()
+     {
+         IResourceLocation l1 = new ClasspathResourceLocation(_resolver, "/foo/bar/Baz.zap");
+ 
+         IResourceLocation l2 = l1.getLocalization(Locale.ENGLISH);
+ 
+         assertNull(l2);
+     }
+ 
+     public void testContextLocalizeMissing()
+     {
+         IResourceLocation l1 = new ContextResourceLocation(_context, "/foo/bar/Baz.zap");
+ 
+         IResourceLocation l2 = l1.getLocalization(Locale.ENGLISH);
+ 
+         assertNull(l2);
+     }
+ 
      public void testClasspathLocalizeDefault()
      {
***************
*** 204,207 ****
--- 222,234 ----
  
          assertSame(l1, l2);
+     }
+ 
+     public void testTrailingSlash()
+     {
+         IResourceLocation l1 = new ClasspathResourceLocation(_resolver, "/");
+         IResourceLocation expected = new ClasspathResourceLocation(_resolver, "/foo");
+         IResourceLocation actual = l1.getRelativeLocation("foo");
+ 
+         assertEquals(expected, actual);
      }
  }



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.