1 19 20 package org.netbeans.modules.j2ee.sun.ide.editors.ui; 21 22 import java.awt.Color ; 23 import java.awt.Font ; 24 import java.util.ArrayList ; 25 import java.util.List ; 26 import junit.framework.TestCase; 27 28 32 public class MessageAreaTest extends TestCase { 33 34 public void testCoverage() { 35 MessageArea ma = new MessageArea(); 36 ma = new MessageArea("foolish text"); 37 ma = new MessageArea(""); 38 ma.addNotify(); 41 List l = new ArrayList (); 43 l.add("a"); 44 l.add("b"); 45 ma.setBulletItems(""); 46 ma.setBulletItems("item1 item2 item3"); 49 ma.setBulletItems(new String [] { "item1", "item2", "item3" }); 50 ma.setBulletItems(new String [] { null }); 51 ma.setBulletItems(l); 52 l.add(null); 53 ma.setBulletItems(l); 54 ma.setEndText("end text"); 55 ma.setEndText(""); 56 ma.appendBulletItem("item4 item5 item6"); 59 ma.appendBulletItems(new String [] { "item7", "item8", "item9" }); 60 ma.appendBulletItems(new String [] { null }); 61 ma.appendBulletItems(l); 62 ma.appendText("a b c"); 63 ma.setForeground(Color.CYAN); 64 ma.setFont(Font.decode("ARIAL Bold 18")); 65 ma.setText("a b c"); 66 ma.setWidth(100); 67 ma.addNotify(); 68 } 69 70 public MessageAreaTest(String testName) { 71 super(testName); 72 } 73 74 175 176 } 177 | Popular Tags |