aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Azores <[email protected]>2013-10-07 14:02:15 -0400
committerAndrew Azores <[email protected]>2013-10-07 14:02:15 -0400
commite7a13c92d739a1fa0259ea1d0cc3df60aecad124 (patch)
tree8be7d2339410dae4e75f37cb1ac27494933871c5
parent1f5302819d8d895f979a18c1ec4a495aa05fa5d7 (diff)
DeploymentConfiguration properties reproducer fix
Update test to reflect changed log directory
-rw-r--r--ChangeLog6
-rw-r--r--tests/reproducers/signed/DeploymentPropertiesAreExposed/testcases/DeploymentPropertiesAreExposedTest.java11
2 files changed, 14 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e70b800..0a364c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-10-07 Andrew Azores <[email protected]>
+
+ DeploymentConfiguration properties reproducer fix
+ * tests/reproducers/signed/DeploymentPropertiesAreExposed/testcases/DeploymentPropertiesAreExposedTest.java:
+ update test to reflect changed log directory
+
2013-10-03 Andrew Azores <[email protected]>
PR1204 patch regression fix
diff --git a/tests/reproducers/signed/DeploymentPropertiesAreExposed/testcases/DeploymentPropertiesAreExposedTest.java b/tests/reproducers/signed/DeploymentPropertiesAreExposed/testcases/DeploymentPropertiesAreExposedTest.java
index 51d2197..9e8fe97 100644
--- a/tests/reproducers/signed/DeploymentPropertiesAreExposed/testcases/DeploymentPropertiesAreExposedTest.java
+++ b/tests/reproducers/signed/DeploymentPropertiesAreExposed/testcases/DeploymentPropertiesAreExposedTest.java
@@ -42,20 +42,25 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import net.sourceforge.jnlp.ServerAccess;
+import net.sourceforge.jnlp.ProcessResult;
+import net.sourceforge.jnlp.runtime.JNLPRuntime;
+import net.sourceforge.jnlp.config.DeploymentConfiguration;
import org.junit.Test;
public class DeploymentPropertiesAreExposedTest {
-
@Test
public void verifyDeploymentConfigrationIsExposedAsSystemProperties() throws Exception {
ServerAccess server = new ServerAccess();
List<String> trustCertificates = Arrays.asList(new String[] {"-Xtrustall"});
- ServerAccess.ProcessResult result = server.executeJavawsHeadless(
+ ProcessResult result = server.executeJavawsHeadless(
trustCertificates, "/DeploymentPropertiesAreExposed.jnlp");
- String expectedRegex = ".*" + File.separator + ".icedtea" + File.separator + "log" + ".*";
+ DeploymentConfiguration config = JNLPRuntime.getConfiguration();
+ config.load();
+ String userLogDir = config.getProperty(DeploymentConfiguration.KEY_USER_LOG_DIR);
+ String expectedRegex = userLogDir + "/?";
String actual = result.stdout.trim();
boolean stdOutMatches = actual.matches(expectedRegex);