[java-identity-provider COMMIT] /trunk/idp-conf/src/test/java/net/shibboleth/idp/test/flows/AbstractFlowTest.java
noreply at shibboleth.net
noreply at shibboleth.net
Wed Jun 25 17:54:21 EDT 2014
Author: scantor
Date: Wed Jun 25 17:54:21 2014
New Revision: 6173
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=6173&view=rev
Log:
Fix tests on Windows by normalizing path like we do in our real context.
Modified:
trunk/idp-conf/src/test/java/net/shibboleth/idp/test/flows/AbstractFlowTest.java
Modified: trunk/idp-conf/src/test/java/net/shibboleth/idp/test/flows/AbstractFlowTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/test/java/net/shibboleth/idp/test/flows/AbstractFlowTest.java?rev=6173&r1=6172&r2=6173&view=diff
==============================================================================
--- trunk/idp-conf/src/test/java/net/shibboleth/idp/test/flows/AbstractFlowTest.java (original)
+++ trunk/idp-conf/src/test/java/net/shibboleth/idp/test/flows/AbstractFlowTest.java Wed Jun 25 17:54:21 2014
@@ -70,6 +70,7 @@
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.springframework.test.context.web.WebAppConfiguration;
+import org.springframework.util.StringUtils;
import org.springframework.webflow.core.collection.MutableAttributeMap;
import org.springframework.webflow.definition.FlowDefinition;
import org.springframework.webflow.engine.EndState;
@@ -188,8 +189,9 @@
*/
public static void setIdPHomeProperty() {
Path idpHome = Paths.get(Paths.get("").toAbsolutePath().toString(), "src", "main", "resources");
- System.setProperty("idp.home", idpHome.toString());
- log.debug("Setting idp.home to '{}'", idpHome);
+ String normalized = StringUtils.cleanPath(idpHome.toString());
+ System.setProperty("idp.home", normalized);
+ log.debug("Setting idp.home to '{}'", normalized);
}
/**
More information about the commits
mailing list