Author: jsong
Date: Thu Jul 29 11:01:13 2004
New Revision: 30934
Modified:
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ClientAccessTest.java
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ClientImplTest.java
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ImplAccessTest.java
Log:
update controls tests for propertySet.
Modified:
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ClientAccessTest.java
==============================================================================
---
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ClientAccessTest.java
(original)
+++
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ClientAccessTest.java
Thu Jul 29 11:01:13 2004
@@ -10,13 +10,15 @@
import org.apache.beehive.test.tools.milton.common.Report;
/**
- * This class tests accessing propertySet from control client
+ * Test accessing control's propertySet by control bean's getter/setter
*/
-
public class ClientAccessTest extends TestCase
{
public ClientAccessTest( String s ) { super( s ); }
+ /**
+ * A control that declares some propertySet in its control interface
+ */
@Control
public SingleProperty2Bean myControl;
Modified:
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ClientImplTest.java
==============================================================================
---
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
Thu Jul 29 11:01:13 2004
@@ -11,13 +11,16 @@
import org.apache.beehive.test.tools.milton.common.Report;
/**
- * This class tests accessing propertySet from impl and client
+ * Test access a control's propertySet by both impl and client
*/
-
public class ClientImplTest extends TestCase
{
public ClientImplTest( String s ) { super( s ); }
+ /**
+ * A control that declares some propertySet in its control interface
+ * its impl accesses these propertySet.
+ */
@Control
public SinglePropertyBean myControl;
@@ -25,9 +28,8 @@
/**BUG: getter/setter in generated bean is busted comment out all tests
using getter/setter*/
/**
- * SinglePropertyImpl retrievs PropertySet in its sayHello method.
- * This method reset the propertySet value by client access;
- * and invokes SinglePropertyBean.sayHello(), which should return the new
value
+ * Resets the propertySet value by the setter on control bean;
+ * Retrieves the new value via control's impl
* This method instantiates HelloBean by declaration
*
public void testHelloImpByDeclare() throws Exception
@@ -39,9 +41,8 @@
}
/**
- * SinglePropertyImpl retrievs PropertySet in its sayHello method.
- * Invokes SinglePropertyBean.sayHello() should return the PropertySet
- * declared on Hello.java
+ * Resets the propertySet value by the setter on control bean;
+ * Retrieves the new value via control's impl
* This method instantiates HelloBean by program
*
public void testHelloImpByProgram() throws Exception
Modified:
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ImplAccessTest.java
==============================================================================
---
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ImplAccessTest.java
(original)
+++
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/ImplAccessTest.java
Thu Jul 29 11:01:13 2004
@@ -10,13 +10,17 @@
import org.apache.beehive.test.tools.milton.common.Report;
/**
- * This class tests accessing propertySet from impl
+ * Tests control accessing propertySet from its impl
*/
public class ImplAccessTest extends TestCase
{
public ImplAccessTest( String s ) { super( s ); }
+ /**
+ * A control that declares some propertySet in its control interface
+ * its impl accesses these propertySet.
+ */
@Control
public SinglePropertyBean myControl;