You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by js...@apache.org on 2005/06/20 21:42:34 UTC
svn commit: r191545 -
/incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ClientImplTest.java
Author: jsong
Date: Mon Jun 20 12:42:33 2005
New Revision: 191545
URL: http://svn.apache.org/viewcvs?rev=191545&view=rev
Log:
Add one controls test to verify the fix of JIRA-149.
Controls checkin.tests and detailed.tests passed.
Modified:
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ClientImplTest.java
Modified: incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ClientImplTest.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ClientImplTest.java?rev=191545&r1=191544&r2=191545&view=diff
==============================================================================
--- incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ClientImplTest.java (original)
+++ incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ClientImplTest.java Mon Jun 20 12:42:33 2005
@@ -23,6 +23,8 @@
import java.beans.Beans;
import org.apache.beehive.controls.api.bean.Control;
import org.apache.beehive.controls.api.bean.ControlBean;
+import org.apache.beehive.controls.test.controls.basic.Hello;
+import org.apache.beehive.controls.test.controls.basic.HelloBean;
import org.apache.beehive.controls.test.controls.property.PropertyControlBean;
import org.apache.beehive.controls.test.driver.property.DriveSetters;
import org.apache.beehive.test.tools.mantis.annotations.tch.Freq;
@@ -65,6 +67,9 @@
@Control
public PropertyControlBean myControl;
+ @Control
+ public HelloBean myHelloControl;
+
/**
* Resets control's property value using setters on the bean class and
* retrieves the new value using control context on control's impl.
@@ -100,6 +105,17 @@
String result=report.getStatus();
if (!result.equals(Report.PASS))
fail(report.getMessage());
+ }
+
+ /**
+ * Verifies the fix of JIRA-149
+ */
+ @Freq("detailed")
+ public void testHelloControl() throws Exception
+ {
+ Hello.Gender theGender=myHelloControl.getGender();
+ if (!theGender.value().equals(Hello.GenderType.NEUTRAL))
+ fail("Gender is Wrong");
}
}