diff options
author | Jiri Vanek <[email protected]> | 2013-06-21 12:15:03 +0200 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-06-21 12:15:03 +0200 |
commit | da8ec0b9cba22448fbb5b599bff3e1f5fb8c0bf7 (patch) | |
tree | e3cd2c82fd0eff3b9d9c95b4f67fac27d7d519bc /tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java | |
parent | 70371886c351800a6fad9bad17777179af2d8584 (diff) |
Added tagsup (optional dependence) as sanitizer for (possibly) invalid xml files
Diffstat (limited to 'tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java')
-rw-r--r-- | tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java b/tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java index 0f2a83f..1056ea2 100644 --- a/tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java +++ b/tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java @@ -138,10 +138,10 @@ public class JNLPFileTest { "</jnlp>"; URL codeBase = new URL("http://www.redhat.com/"); - ; + InputStream is = new ByteArrayInputStream(jnlpContext.getBytes()); - JNLPFile jnlpFile = new JNLPFile(is, codeBase, false); + JNLPFile jnlpFile = new JNLPFile(is, codeBase, new ParserSettings(false,false,false)); Assert.assertEquals("http://icedtea.claspath.org/", jnlpFile.getCodeBase().toExternalForm()); Assert.assertEquals("redhat.embeddedjnlp", jnlpFile.getApplet().getMainClass()); |