[JIRA] Created: (JOWS-31) Failed test on Windows: testGetLocation(org.opensaml.util.resource.FilesystemResourceTest): expected:</...> but was:<C:\...>
garydgregory@idp.protectnetwork.org (JIRA)
noreply at shibboleth.net
Tue Aug 30 14:19:26 BST 2011
Failed test on Windows: testGetLocation(org.opensaml.util.resource.FilesystemResourceTest): expected:</...> but was:<C:\...>
----------------------------------------------------------------------------------------------------------------------------
Key: JOWS-31
URL: https://issues.shibboleth.net/jira/browse/JOWS-31
Project: OpenWS - Java
Issue Type: Bug
Components: Utilities
Affects Versions: 1.4.2
Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
Maven home: C:\Java\apache-maven-3.0.3\bin\..
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_24\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Reporter: garydgregory at idp.protectnetwork.org
Assignee: Chad La Joie
Attachments: test.diff
Building on Windows, I get:
Failed test:
testGetLocation(org.opensaml.util.resource.FilesystemResourceTest): expected:</...> but was:<C:\...>
The test can easily be fixed with:
{noformat}
Index: src/test/java/org/opensaml/util/resource/FilesystemResourceTest.java
===================================================================
--- src/test/java/org/opensaml/util/resource/FilesystemResourceTest.java (revision 415)
+++ src/test/java/org/opensaml/util/resource/FilesystemResourceTest.java (working copy)
@@ -81,6 +81,6 @@
assertEquals(realResrc, resource.getLocation());
resource = new FilesystemResource("/foo");
- assertEquals("/foo", resource.getLocation());
+ assertEquals(new File("/foo").getCanonicalPath(), resource.getLocation());
}
}
{noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the commits
mailing list