/hg/icedtea-web: Fix unit test missing title and vendor tags in ...

ddadacha at icedtea.classpath.org ddadacha at icedtea.classpath.org
Mon Mar 19 11:37:27 PDT 2012


changeset 89609d0a4e1c in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=89609d0a4e1c
author: Danesh Dadachanji <ddadacha at redhat.com>
date: Mon Mar 19 14:37:03 2012 -0400

	Fix unit test missing title and vendor tags in JNLP stream.


diffstat:

 ChangeLog                                                   |  6 ++++++
 tests/netx/unit/net/sourceforge/jnlp/ParserCornerCases.java |  3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r ebdc0743399b -r 89609d0a4e1c ChangeLog
--- a/ChangeLog	Mon Mar 19 18:46:05 2012 +0100
+++ b/ChangeLog	Mon Mar 19 14:37:03 2012 -0400
@@ -1,3 +1,9 @@
+2012-03-19  Danesh Dadachanji  <ddadacha at redhat.com>
+
+	Fix failing unit test missing title/vendor tags in the JNLP stream.
+	* tests/netx/unit/net/sourceforge/jnlp/ParserCornerCases.java
+	(testNestedComments): Added title and vendor tags to malformedJnlp. 
+
 2012-03-19  Jiri Vanek <jvanek at redhat.com>
 	* tests/jnlp_tests/signed/CacheReproducer/testcases/CacheReproducerTest.java: 
 	 as javaws have now integrated splash, I have changed this test to lunch
diff -r ebdc0743399b -r 89609d0a4e1c tests/netx/unit/net/sourceforge/jnlp/ParserCornerCases.java
--- a/tests/netx/unit/net/sourceforge/jnlp/ParserCornerCases.java	Mon Mar 19 18:46:05 2012 +0100
+++ b/tests/netx/unit/net/sourceforge/jnlp/ParserCornerCases.java	Mon Mar 19 14:37:03 2012 -0400
@@ -163,7 +163,8 @@
     @Test
     public void testNestedComments() throws ParseException {
         String malformedJnlp = "<?xml?>" +
-                "<jnlp><information><description>" +
+                "<jnlp><information><title>testNestedComments</title>" +
+                "<vendor>IcedTea</vendor><description>" +
                 "<!-- outer <!-- inner --> -->" +
                 "</description></information></jnlp>";
         Node root = Parser.getRootNode(new ByteArrayInputStream(malformedJnlp.getBytes()));



More information about the distro-pkg-dev mailing list