2
* $Id: TreeTableModelIssues.java 3201 2009-01-22 10:46:42Z kleopatra $
4
* Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle,
5
* Santa Clara, California 95054, U.S.A. All rights reserved.
7
package org.jdesktop.swingx.treetable;
9
import java.util.logging.Logger;
11
import javax.swing.tree.TreePath;
13
import org.jdesktop.swingx.InteractiveTestCase;
14
import org.junit.Test;
15
import org.junit.runner.RunWith;
16
import org.junit.runners.JUnit4;
20
* Known issues around TreeTableModel and related classes.
23
@RunWith(JUnit4.class)
24
public class TreeTableModelIssues extends InteractiveTestCase {
25
@SuppressWarnings("unused")
26
private static final Logger LOG = Logger
27
.getLogger(TreeTableModelIssues.class.getName());
29
public static void main(String[] args) {
30
TreeTableModelIssues test = new TreeTableModelIssues();
32
test.runInteractiveTests();
33
} catch (Exception e) {
40
* TreePath issue: null must not be allowed as path element.
41
* The constructor doesn't cope with array containing null.
44
public void testTreeStructureChangedEmptyPath() {
45
TreePath path = new TreePath(new Object[] {null});
46
assertNotNull("TreePath must not contain null path elements",
47
path.getLastPathComponent());