/hg/icedtea-web: Fixed UrlUtilsTest.verifyNotNullUrlEqualsThrows...
aazores at icedtea.classpath.org
aazores at icedtea.classpath.org
Tue Jun 3 18:26:08 UTC 2014
changeset 8ddd8d86855c in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=8ddd8d86855c
author: Andrew Azores <aazores at redhat.com>
date: Tue Jun 03 14:25:41 2014 -0400
Fixed UrlUtilsTest.verifyNotNullUrlEqualsThrowsExceptionWhenSecondArgumentIsNull
2014-06-03 Lukasz Dracz <ldracz at redhat.com>
This test expects a Null pointer exception however does not
have a flag specifying that the NullPointer Exception is expected
* unit/net/sourceforge/jnlp/util/UrlUtilsTest.java
(verifyNotNullUrlEqualsThrowsExceptionWhenSecondArgumentIsNull):
added 'expected = NullPointerException.class' to Test annotation
diffstat:
ChangeLog | 8 ++++++++
tests/netx/unit/net/sourceforge/jnlp/util/UrlUtilsTest.java | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 23a84212d1db -r 8ddd8d86855c ChangeLog
--- a/ChangeLog Tue Jun 03 13:15:50 2014 -0400
+++ b/ChangeLog Tue Jun 03 14:25:41 2014 -0400
@@ -1,3 +1,11 @@
+2014-06-03 Lukasz Dracz <ldracz at redhat.com>
+
+ This test expects a Null pointer exception however does not
+ have a flag specifying that the NullPointer Exception is expected
+ * unit/net/sourceforge/jnlp/util/UrlUtilsTest.java
+ (verifyNotNullUrlEqualsThrowsExceptionWhenSecondArgumentIsNull):
+ added 'expected = NullPointerException.class' to Test annotation
+
2014-06-03 Andrew Azores <aazores at redhat.com>
Fix for PR1776, PolicyEditor attempting to save to null file location when
diff -r 23a84212d1db -r 8ddd8d86855c tests/netx/unit/net/sourceforge/jnlp/util/UrlUtilsTest.java
--- a/tests/netx/unit/net/sourceforge/jnlp/util/UrlUtilsTest.java Tue Jun 03 13:15:50 2014 -0400
+++ b/tests/netx/unit/net/sourceforge/jnlp/util/UrlUtilsTest.java Tue Jun 03 14:25:41 2014 -0400
@@ -264,7 +264,7 @@
UrlUtils.notNullUrlEquals(null, new URL("ftp://aa.bb"));
}
- @Test
+ @Test(expected = NullPointerException.class)
public void verifyNotNullUrlEqualsThrowsExceptionWhenSecondArgumentIsNull() throws Exception {
UrlUtils.notNullUrlEquals(new URL("ftp://aa.bb"), null);
}
More information about the distro-pkg-dev
mailing list