Index: src/test/java-internal/java/beans/BeansTest.java =================================================================== --- src/test/java-internal/java/beans/BeansTest.java (revision 0) +++ src/test/java-internal/java/beans/BeansTest.java (revision 0) @@ -0,0 +1,71 @@ +package java.beans; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Test class for java.beans.Beans. + * + * @author Sergey A. Krivenko + * @version $Revision:$ + */ + +public class BeansTest extends TestCase { + + /** STANDARD BEGINNING **/ + + /** + * No arguments constructor to enable serialization. + */ + public BeansTest() { + super(); + } + + /** + * Constructs this test case with the given name. + * + * @param name - The name for this test case. + */ + public BeansTest(String name) { + super(name); + } + + + + /** * Test constructor with BeanContextChild parameter. + * + * @see BeanContextChildSupport#BeanContextChildSupport(BeanContextChild) + */ + public void testIsGuiAvailable() { + try { + boolean returnValue = Beans.isGuiAvailable(); + assertTrue(returnValue); + } + catch (Exception e) { + fail("Unexpected exception: " + e + " caused by: " + e.getCause()); + } + } + + + + /** UTILITY METHODS **/ + + /** STANDARD ENDING **/ + + /** + * Start testing from the command line. + */ + public static Test suite() { + return new TestSuite(BeansTest.class); + } + + /** + * Start testing from the command line. + * + * @param args - Command line parameters. + */ + public static void main(String args[]) { + junit.textui.TestRunner.run(suite()); + } +} \ No newline at end of file