<commit_before><commit_msg>Issue number: #221-swingx<commit_after>/*
 * $Id$
 *
 * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle,
 * Santa Clara, California 95054, U.S.A. All rights reserved.
 */
package org.jdesktop.swingx;

import javax.swing.tree.DefaultMutableTreeNode;

public class JXTreeIssues extends JXTreeUnitTest {
    
    /**
     * Issue #221-swingx: actionMap not initialized in JXTreeNode constructor.
     * 
     * PENDING: test all constructors!
     *
     */
    public void testInitInConstructors() {
        assertFindActionRegistered(new JXTree(new DefaultMutableTreeNode("dummy"), false));
        assertFindActionRegistered(new JXTree(new DefaultMutableTreeNode("dummy")));
    }

    /**
     * @param tree
     */
    private void assertFindActionRegistered(JXTree tree) {
        assertNotNull("Actions must be initialized", tree.getActionMap().get("find"));
    }

}
{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.020902090209020903, 'mean_word_length': 3.527363184079602, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4931188', 'n_tokens_mistral': 290, 'n_tokens_neox': 266, 'n_words': 62}