KickJava   Java API By Example, From Geeks To Geeks.

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


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 java.awt.Font JavaDoc;
23 import junit.framework.TestCase;
24
25 /**
26  *
27  * @author vkraemer
28  */

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 JavaDoc("Serif",Font.BOLD,32));
36         mlf.addNotify();
37         mlf.setText("c d");
38         mlf.setText(new String JavaDoc[] { "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 JavaDoc testName) {
49         super(testName);
50     }
51     
52     /**
53      * Test of setInsets method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
54      *
55     public void testSetInsets() {
56         System.out.println("testSetInsets");
57         
58         // TODO add your test code below by replacing the default call to fail.
59         fail("The test case is empty.");
60     }
61     
62     /**
63      * Test of useMonospacedFont method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
64      *
65     public void testUseMonospacedFont() {
66         System.out.println("testUseMonospacedFont");
67         
68         // TODO add your test code below by replacing the default call to fail.
69         fail("The test case is empty.");
70     }
71     
72     /**
73      * Test of addNotify method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
74      *
75     public void testAddNotify() {
76         System.out.println("testAddNotify");
77         
78         // TODO add your test code below by replacing the default call to fail.
79         fail("The test case is empty.");
80     }
81     
82     /**
83      * Test of getPreferredSize method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
84      *
85     public void testGetPreferredSize() {
86         System.out.println("testGetPreferredSize");
87         
88         // TODO add your test code below by replacing the default call to fail.
89         fail("The test case is empty.");
90     }
91     
92     /**
93      * Test of getMinimumSize method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
94      *
95     public void testGetMinimumSize() {
96         System.out.println("testGetMinimumSize");
97         
98         // TODO add your test code below by replacing the default call to fail.
99         fail("The test case is empty.");
100     }
101     
102     /**
103      * Test of setSize method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
104      *
105     public void testSetSize() {
106         System.out.println("testSetSize");
107         
108         // TODO add your test code below by replacing the default call to fail.
109         fail("The test case is empty.");
110     }
111     
112     /**
113      * Test of setBounds method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
114      *
115     public void testSetBounds() {
116         System.out.println("testSetBounds");
117         
118         // TODO add your test code below by replacing the default call to fail.
119         fail("The test case is empty.");
120     }
121     
122     /**
123      * Test of paint method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
124      *
125     public void testPaint() {
126         System.out.println("testPaint");
127         
128         // TODO add your test code below by replacing the default call to fail.
129         fail("The test case is empty.");
130     }
131     
132     /**
133      * Test of setText method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
134      *
135     public void testSetText() {
136         System.out.println("testSetText");
137         
138         // TODO add your test code below by replacing the default call to fail.
139         fail("The test case is empty.");
140     }
141     
142     /**
143      * Test of getText method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
144      *
145     public void testGetText() {
146         System.out.println("testGetText");
147         
148         // TODO add your test code below by replacing the default call to fail.
149         fail("The test case is empty.");
150     }
151     
152     /**
153      * Test of setError method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
154      *
155     public void testSetError() {
156         System.out.println("testSetError");
157         
158         // TODO add your test code below by replacing the default call to fail.
159         fail("The test case is empty.");
160     }
161     
162     /**
163      * Test of getAccessibleContext method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
164      *
165     public void testGetAccessibleContext() {
166         System.out.println("testGetAccessibleContext");
167         
168         // TODO add your test code below by replacing the default call to fail.
169         fail("The test case is empty.");
170     }
171     
172     // TODO add test methods here, they have to start with 'test' name.
173     // for example:
174     // public void testHello() {}
175     */

176     
177 }
178
Popular Tags