Author: jsong
Date: Tue Oct 12 11:16:43 2004
New Revision: 54682

Added:
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/packaging/FeatureInfoTest.java
   (contents, props changed)
Removed:
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/packaging/DriveFeatureInfo.java
Log:
Adding missed file for r54642.


Added: 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/packaging/FeatureInfoTest.java
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/packaging/FeatureInfoTest.java
        Tue Oct 12 11:16:43 2004
@@ -0,0 +1,40 @@
+package org.apache.beehive.controls.test.java.packaging;
+
+import junit.framework.TestCase;
+import org.apache.beehive.controls.test.driver.packaging.DriveFeatureInfo;
+import org.apache.beehive.test.tools.milton.common.Report;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Freq;
+
+
+/**
+ * A TestCase that tests controls FeatureInfo in controls packaging
+ *
+ * FeatureInfo annotation on control interface is saved into controlBeanInfo 
class
+ * when the control is packaged.
+ *
+ * The tests in this class get feature info from controlBeanInfo class after 
the
+ * control is packaged into jar, in order to verify this part of control 
packaging
+ * process.
+ */
[EMAIL PROTECTED]("checkin")
+public class FeatureInfoTest extends TestCase
+{
+    public FeatureInfoTest( String s ) { super( s ); }
+
+    public void setUp() { }
+
+       /*Test getting FeatureInfo from ControlBeanInfo class*/
+       @Freq("checkin")
+    public void testGetClassLevelFeatureInfo() throws Exception
+    {
+               DriveFeatureInfo driver=new DriveFeatureInfo();
+
+               Report report=driver.doGetClassLevelFeatureInfo();
+
+               String result=report.getStatus();
+
+               if (result.equals(Report.FAIL))
+                       fail(report.getMessage());
+
+    }
+}

Reply via email to