forked from pool/swingx
1.6.5.1 OBS-URL: https://build.opensuse.org/request/show/969167 OBS-URL: https://build.opensuse.org/package/show/Java:packages/swingx?expand=0&rev=25
37 lines
1.4 KiB
Diff
37 lines
1.4 KiB
Diff
--- swingx-core/src/test/java/org/jdesktop/swingx/tree/TreeModelSupportTest.java.orig 2009-08-27 14:17:10.000000000 +0100
|
|
+++ swingx-core/src/test/java/org/jdesktop/swingx/tree/TreeModelSupportTest.java 2013-07-30 16:20:10.364320524 +0100
|
|
@@ -73,12 +73,14 @@
|
|
*/
|
|
@Test
|
|
public void testPathChangedNotNullPathElements() {
|
|
- TreePath path = new TreePath(new Object[] {null});
|
|
try {
|
|
+ TreePath path = new TreePath(new Object[] {null});
|
|
support.firePathChanged(path);
|
|
fail("must not allow null path elements");
|
|
} catch (NullPointerException e) {
|
|
- // expected
|
|
+ // expected on java 6
|
|
+ } catch (IllegalArgumentException e) {
|
|
+ // expected on java 7
|
|
}
|
|
// unexpected exception
|
|
}
|
|
@@ -125,12 +127,14 @@
|
|
*/
|
|
@Test
|
|
public void testTreeStructureChangedNotNullPathElements() {
|
|
- TreePath path = new TreePath(new Object[] {null});
|
|
try {
|
|
+ TreePath path = new TreePath(new Object[] {null});
|
|
support.fireTreeStructureChanged(path);
|
|
fail("must not allow null path elements");
|
|
} catch (NullPointerException e) {
|
|
- // expected
|
|
+ // expected on java 6
|
|
+ } catch (IllegalArgumentException e) {
|
|
+ // expected on java 7
|
|
}
|
|
// unexpected exception
|
|
}
|