1 19 20 package org.netbeans.modules.j2ee.sun.ide.editors.ui; 21 22 import java.awt.Font ; 23 import junit.framework.TestCase; 24 25 29 public class MultiLineFieldTest extends TestCase { 30 31 public void testCoverage() { 32 MultiLineField mlf = new MultiLineField(); 33 mlf = new MultiLineField("a\nb"); 34 mlf.useMonospacedFont(true); 35 mlf.setFont(new Font ("Serif",Font.BOLD,32)); 36 mlf.addNotify(); 37 mlf.setText("c d"); 38 mlf.setText(new String [] { "abc","123" }); 39 mlf.setError(true); 40 mlf.setBounds(0,0, 300, 100); 41 mlf.getAccessibleContext(); 42 mlf.getMinimumSize(); 43 mlf.getPreferredSize(); 44 mlf.getText(); 45 46 } 47 48 public MultiLineFieldTest(String testName) { 49 super(testName); 50 } 51 52 176 177 } 178 | Popular Tags |