1 24 25 package org.netbeans.modules.extbrowser; 26 27 import junit.framework.*; 28 import org.netbeans.junit.*; 29 import java.awt.Image ; 30 import java.beans.*; 31 import org.openide.util.NbBundle; 32 33 37 public class SimpleExtBrowserBeanInfoTest extends NbTestCase { 38 39 public SimpleExtBrowserBeanInfoTest (java.lang.String testName) { 40 super(testName); 41 } 42 43 public static void main(java.lang.String [] args) { 44 junit.textui.TestRunner.run(suite()); 45 } 46 47 48 public void testGetBeanDescriptor () { 49 if (testObject.getBeanDescriptor () == null) 50 fail ("SimpleExtBrowserBeanInfo.getBeanDescriptor () returned <null>."); 51 } 52 53 54 public void testGetPropertyDescriptors () { 55 if (testObject.getPropertyDescriptors () == null) 56 fail ("SimpleExtBrowserBeanInfo.getPropertyDescriptors () returned <null>."); 57 } 58 59 60 public void testGetIcon () { 61 if (testObject.getIcon (BeanInfo.ICON_COLOR_32x32) == null) 62 fail ("SimpleExtBrowserBeanInfo.getIcon (BeanInfo.ICON_COLOR_32x32) returned <null>."); 63 } 64 65 public static Test suite () { 66 TestSuite suite = new NbTestSuite (SimpleExtBrowserBeanInfoTest.class); 67 68 return suite; 69 } 70 71 protected BeanInfo testObject; 75 76 protected void setUp () { 77 testObject = new SimpleExtBrowserBeanInfo (); 78 } 79 80 } 81 | Popular Tags |