1 19 20 package org.netbeans.modules.j2ee.sun.ide.editors.ui; 21 22 import javax.swing.JLabel ; 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 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.linkLabel(new JLabel ("test label")); 57 panel.getSelectedRow(); 58 panel.getPropertyValue(); 59 panel.getHeaderColor(); 60 panel.setSelectedRow(0); 61 } 63 64 public DDTablePanelTest(String testName) { 65 super(testName); 66 } 67 68 172 173 } 174 | Popular Tags |