KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > extbrowser > ExtWebBrowserBeanInfoTest


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  * ExtWebBrowserBeanInfoTest.java
20  * NetBeans JUnit based test
21  *
22  * Created on November 2, 2001, 10:42 AM
23  */

24
25 package org.netbeans.modules.extbrowser;
26
27 import junit.framework.*;
28 import org.netbeans.junit.*;
29 import java.awt.Image JavaDoc;
30 import java.beans.*;
31 import org.openide.util.NbBundle;
32
33 /**
34  *
35  * @author rk109395
36  */

37 public class ExtWebBrowserBeanInfoTest extends NbTestCase {
38
39     public ExtWebBrowserBeanInfoTest (java.lang.String JavaDoc testName) {
40         super(testName);
41     }
42
43     public static void main(java.lang.String JavaDoc[] args) {
44         junit.textui.TestRunner.run(suite());
45     }
46     
47     /** Test of getBeanDescriptor method, of class org.netbeans.modules.extbrowser.ExtWebBrowserBeanInfo. */
48     public void testGetBeanDescriptor () {
49         if (testObject.getBeanDescriptor () == null)
50             fail ("ExtWebBrowserBeanInfo.getBeanDescriptor () returned <null>.");
51     }
52     
53     /** Test of getPropertyDescriptors method, of class org.netbeans.modules.extbrowser.ExtWebBrowserBeanInfo. */
54     public void testGetPropertyDescriptors () {
55         if (testObject.getPropertyDescriptors () == null)
56             fail ("ExtWebBrowserBeanInfo.getPropertyDescriptors () returned <null>.");
57     }
58     
59     /** Test of getIcon method, of class org.netbeans.modules.extbrowser.ExtWebBrowserBeanInfo. */
60     public void testGetIcon () {
61         if (testObject.getIcon (BeanInfo.ICON_COLOR_32x32) == null)
62             fail ("ExtWebBrowserBeanInfo.getIcon (BeanInfo.ICON_COLOR_32x32) returned <null>.");
63     }
64     
65     public static Test suite () {
66         TestSuite suite = new NbTestSuite (ExtWebBrowserBeanInfoTest.class);
67         
68         return suite;
69     }
70     
71     // Add test methods here, they have to start with 'test' name.
72
// for example:
73
// public void testHello() {}
74
protected BeanInfo testObject;
75     
76     protected void setUp () {
77         testObject = new ExtWebBrowserBeanInfo ();
78     }
79
80 }
81
Popular Tags