/hg/icedtea-web: Fixed unittest for InformationElement
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Wed Jan 2 10:45:52 PST 2013
changeset c638a94822e0 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=c638a94822e0
author: Jiri Vanek <jvanek at redhat.com>
date: Wed Jan 02 19:46:16 2013 +0100
Fixed unittest for InformationElement
diffstat:
ChangeLog | 7 +++++++
tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/InformationElementTest.java | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r a16da8b96a0f -r c638a94822e0 ChangeLog
--- a/ChangeLog Mon Dec 24 13:58:31 2012 +0100
+++ b/ChangeLog Wed Jan 02 19:46:16 2013 +0100
@@ -1,3 +1,10 @@
+2013-01-02 Jiri Vanek <jvanek at redhat.com>
+
+ Fixed unittest for InformationElement.
+ * tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/InformationElementTest.java:
+ (createFromJNLP) now asserts NotNull instead of IsNull as result of
+ "Minor fix for possible NPE (non fatal) during splashscreen creation"
+
2012-12-21 Adam Domurad <adomurad at redhat.com>
* plugin/icedteanp/IcedTeaNPPlugin.cc: Remove need for 'goto' in
diff -r a16da8b96a0f -r c638a94822e0 tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/InformationElementTest.java
--- a/tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/InformationElementTest.java Mon Dec 24 13:58:31 2012 +0100
+++ b/tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/InformationElementTest.java Wed Jan 02 19:46:16 2013 +0100
@@ -221,7 +221,7 @@
public void createFromJNLP() throws UnsupportedEncodingException, ParseException {
JNLPFile jnlpFile0 = null;
InformationElement ie0 = InformationElement.createFromJNLP(jnlpFile0);
- Assert.assertNull(ie0);
+ Assert.assertNotNull(ie0);
String exJnlp1 = "<jnlp>this is invalid jnlp<jnlp>";
Exception ex = null;
JNLPFile jnlpFile1 = null;
More information about the distro-pkg-dev
mailing list