KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > ide > editors > ui > DDTablePanelTest


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.j2ee.sun.ide.editors.ui;
21
22 import javax.swing.JLabel JavaDoc;
23 import junit.framework.TestCase;
24 import org.netbeans.modules.j2ee.sun.ide.editors.NameValuePairsPropertyEditor;
25 import org.netbeans.modules.j2ee.sun.ide.editors.NameValuePair;
26
27 /**
28  *
29  * @author vkraemer
30  */

31 public class DDTablePanelTest extends TestCase {
32
33     public void testCoverage() {
34         NameValuePair vals[] = new NameValuePair[1];
35         NameValuePair nvp;
36         nvp = vals[0] = new NameValuePair();
37         vals[0].setParamName("foo");
38         vals[0].setParamValue("bar");
39         nvp.setParamDescription("this is my description");
40         nvp.getParamDescription();
41         nvp.getParamName();
42         nvp.getParamValue();
43         NameValuePairsPropertyEditor nvppe =
44             new NameValuePairsPropertyEditor(vals);
45         nvppe.getAsText();
46         nvppe.getValue();
47         nvppe.isPaintable();
48         nvppe.setAsText("abc 123");
49         nvppe.setValue(vals);
50         nvppe.supportsCustomEditor();
51         DDTablePanel panel = (DDTablePanel) nvppe.getCustomEditor();
52         panel.setVerticalScrollBarValue(59);
53         panel.setSelectedRow(0);
54 // panel.setSelectedRow(1);
55
// panel.setSelectedRow(-1);
56
panel.linkLabel(new JLabel JavaDoc("test label"));
57         panel.getSelectedRow();
58         panel.getPropertyValue();
59         panel.getHeaderColor();
60         panel.setSelectedRow(0);
61         //panel.editSelectedRow();
62
}
63     
64     public DDTablePanelTest(String JavaDoc testName) {
65         super(testName);
66     }
67     
68     /**
69      * Test of addListSelectionListener method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.DDTablePanel.
70      *
71     public void testAddListSelectionListener() {
72         System.out.println("testAddListSelectionListener");
73         
74         // TODO add your test code below by replacing the default call to fail.
75         fail("The test case is empty.");
76     }
77     
78     /**
79      * Test of addVerticalScrollBarAdjustmentListener method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.DDTablePanel.
80      *
81     public void testAddVerticalScrollBarAdjustmentListener() {
82         System.out.println("testAddVerticalScrollBarAdjustmentListener");
83         
84         // TODO add your test code below by replacing the default call to fail.
85         fail("The test case is empty.");
86     }
87     
88     /**
89      * Test of setVerticalScrollBarValue method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.DDTablePanel.
90      *
91     public void testSetVerticalScrollBarValue() {
92         System.out.println("testSetVerticalScrollBarValue");
93         
94         // TODO add your test code below by replacing the default call to fail.
95         fail("The test case is empty.");
96     }
97     
98     /**
99      * Test of linkLabel method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.DDTablePanel.
100      *
101     public void testLinkLabel() {
102         System.out.println("testLinkLabel");
103         
104         // TODO add your test code below by replacing the default call to fail.
105         fail("The test case is empty.");
106     }
107     
108     /**
109      * Test of getHeaderColor method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.DDTablePanel.
110      *
111     public void testGetHeaderColor() {
112         System.out.println("testGetHeaderColor");
113         
114         // TODO add your test code below by replacing the default call to fail.
115         fail("The test case is empty.");
116     }
117     
118     /**
119      * Test of getSelectedRow method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.DDTablePanel.
120      *
121     public void testGetSelectedRow() {
122         System.out.println("testGetSelectedRow");
123         
124         // TODO add your test code below by replacing the default call to fail.
125         fail("The test case is empty.");
126     }
127     
128     /**
129      * Test of setSelectedRow method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.DDTablePanel.
130      *
131     public void testSetSelectedRow() {
132         System.out.println("testSetSelectedRow");
133         
134         // TODO add your test code below by replacing the default call to fail.
135         fail("The test case is empty.");
136     }
137     
138     /**
139      * Test of setCellEditor method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.DDTablePanel.
140      *
141     public void testSetCellEditor() {
142         System.out.println("testSetCellEditor");
143         
144         // TODO add your test code below by replacing the default call to fail.
145         fail("The test case is empty.");
146     }
147     
148     /**
149      * Test of editSelectedRow method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.DDTablePanel.
150      *
151     public void testEditSelectedRow() {
152         System.out.println("testEditSelectedRow");
153         
154         // TODO add your test code below by replacing the default call to fail.
155         fail("The test case is empty.");
156     }
157     
158     /**
159      * Test of getPropertyValue method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.DDTablePanel.
160      *
161     public void testGetPropertyValue() {
162         System.out.println("testGetPropertyValue");
163         
164         // TODO add your test code below by replacing the default call to fail.
165         fail("The test case is empty.");
166     }
167     
168     // TODO add test methods here, they have to start with 'test' name.
169     // for example:
170     // public void testHello() {}
171     */

172     
173 }
174
Popular Tags