Made scriptbuilder tests compatible with Windows

This commit is contained in:
Andrew Phillips 2012-07-16 11:44:06 -04:00
parent bf06b51788
commit 16314f906c
1 changed files with 3 additions and 1 deletions

View File

@ -19,11 +19,13 @@
package org.jclouds.scriptbuilder.statements.login;
import static java.lang.String.format;
import static org.jclouds.scriptbuilder.statements.login.AdminAccessBuilderSpec.parse;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNull;
import static org.testng.Assert.fail;
import java.io.File;
import java.lang.reflect.Field;
import javax.inject.Provider;
@ -104,7 +106,7 @@ public class AdminAccessBuilderSpecTest {
public void testParsePrivateKeyFile() {
AdminAccessBuilderSpec spec = parse("adminPrivateKeyFile=target/test-classes/test");
assertEquals(spec.getAdminPrivateKeyFile().getPath(), "target/test-classes/test");
assertEquals(spec.getAdminPrivateKeyFile().getPath(), format("target%stest-classes%stest", File.separator, File.separator));
assertNull(spec.adminHome);
assertNull(spec.adminPassword);
assertNull(spec.adminPublicKeyFile);