Mercurial > hg > release > icedtea-web-1.6
changeset 986:3f9913affb06
Reflect possibility of disabled manifest check to unit-test
* tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java: new field (attCheckValue) to store original value. (setPermissions) is enabling check and (resetPermissions) returning back to original
author | Jiri Vanek <jvanek@redhat.com> |
---|---|
date | Tue, 15 Apr 2014 11:32:02 +0200 |
parents | e5175632c41a |
children | 57cc65b595c2 |
files | ChangeLog tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Apr 14 12:06:37 2014 -0400 +++ b/ChangeLog Tue Apr 15 11:32:02 2014 +0200 @@ -1,3 +1,10 @@ +2014-04-15 Jiri Vanek <jvanek@redhat.com> + + Reflect possibility of disabled manifest check to unit-test + * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java: new field + (attCheckValue) to store original value. (setPermissions) is enabling check + and (resetPermissions) returning back to original + 2014-04-14 Andrew Azores <aazores@redhat.com> * netx/net/sourceforge/jnlp/resources/Messages.properties:
--- a/tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java Mon Apr 14 12:06:37 2014 -0400 +++ b/tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java Tue Apr 15 11:32:02 2014 +0200 @@ -60,16 +60,20 @@ public class JNLPFileTest extends NoStdOutErrTest { private static AppletSecurityLevel level; + private static boolean attCheckValue; @BeforeClass public static void setPermissions() { level = AppletStartupSecuritySettings.getInstance().getSecurityLevel(); + attCheckValue = ManifestAttributesChecker.isCheckEnabled(); JNLPRuntime.getConfiguration().setProperty(DeploymentConfiguration.KEY_SECURITY_LEVEL, AppletSecurityLevel.ALLOW_UNSIGNED.toChars()); + JNLPRuntime.getConfiguration().setProperty(DeploymentConfiguration.KEY_ENABLE_MANIFEST_ATTRIBUTES_CHECK, String.valueOf(true)); } @AfterClass public static void resetPermissions() { JNLPRuntime.getConfiguration().setProperty(DeploymentConfiguration.KEY_SECURITY_LEVEL, level.toChars()); + JNLPRuntime.getConfiguration().setProperty(DeploymentConfiguration.KEY_ENABLE_MANIFEST_ATTRIBUTES_CHECK, String.valueOf(attCheckValue)); }