/hg/release/icedtea-web-1.5: Reflect possibility of disabled man...

jvanek at icedtea.classpath.org jvanek at icedtea.classpath.org
Tue Apr 15 09:32:34 UTC 2014


changeset 216fe105f338 in /hg/release/icedtea-web-1.5
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.5?cmd=changeset;node=216fe105f338
author: Jiri Vanek <jvanek at redhat.com>
date: Tue Apr 15 11:32:04 2014 +0200

	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


diffstat:

 ChangeLog                                                      |  7 +++++++
 tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java |  4 ++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diffs (38 lines):

diff -r 72e24f635c8b -r 216fe105f338 ChangeLog
--- a/ChangeLog	Mon Apr 14 12:14:15 2014 -0400
+++ b/ChangeLog	Tue Apr 15 11:32:04 2014 +0200
@@ -1,3 +1,10 @@
+2014-04-15  Jiri Vanek  <jvanek at 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 at redhat.com>
 
 	* netx/net/sourceforge/jnlp/resources/Messages.properties:
diff -r 72e24f635c8b -r 216fe105f338 tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java
--- a/tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java	Mon Apr 14 12:14:15 2014 -0400
+++ b/tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java	Tue Apr 15 11:32:04 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));
     }
 
 


More information about the distro-pkg-dev mailing list