aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-extensions/net
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-11-13 09:48:41 +0100
committerJiri Vanek <[email protected]>2013-11-13 09:48:41 +0100
commit1c0876d0d5afafdd6472fbb873a5472fb62adf0a (patch)
tree0892beb5c2ee2a377e65da4fb77f9bfa9bb0b3aa /tests/test-extensions/net
parent2a61c4b99672d8033b67ae8df8665c09e508941b (diff)
Enabled access to manifests' attributes from JNLPFile class, implemented http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#app_name
Diffstat (limited to 'tests/test-extensions/net')
-rw-r--r--tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java b/tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java
index 0ef4e10..018f044 100644
--- a/tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java
+++ b/tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java
@@ -4,6 +4,7 @@ import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
+import java.util.List;
import java.util.Locale;
import net.sourceforge.jnlp.InformationDesc;
@@ -21,7 +22,6 @@ public class DummyJNLPFileWithJar extends JNLPFile {
return new JARDesc(jarLocation, new Version("1"), null, false,main, false,false);
}
- private final URL codeBase;
private final JARDesc[] jarDescs;
private final File[] jarFiles;
@@ -91,4 +91,10 @@ public class DummyJNLPFileWithJar extends JNLPFile {
public SecurityDesc getSecurity() {
return new SecurityDesc(this, SecurityDesc.SANDBOX_PERMISSIONS, null);
}
+
+ public void setInfo(List<InformationDesc> info) {
+ this.info = info;
+ }
+
+
} \ No newline at end of file