Ignoring bad/canonical uri alias

This commit is contained in:
Joakim Erdfelt 2014-07-31 16:45:36 -07:00
parent b44a29e86b
commit 3c716a72e7
1 changed files with 2 additions and 0 deletions

View File

@ -629,6 +629,8 @@ public class FileSystemResourceTest
Resource alias = base.addPath("testfile::$DATA");
if (alias.exists())
{
assumeThat(alias.getURI().getScheme(), is("http"));
// If it exists, it must be an alias
assertThat("resource.alias",alias,isAliasFor(resource));
assertThat("resource.uri.alias",newResource(alias.getURI()),isAliasFor(resource));