Date: 2005-02-02T16:18:03
   Editor: ZacharySmith
   Wiki: Apache Beehive Wiki
   Page: Controls/TestingControls/Milton
   URL: http://wiki.apache.org/beehive/Controls/TestingControls/Milton

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -75,6 +75,10 @@
   * 2. `instantiate()` is an instance of the Enumerated type, 
`Milton.Instantiate` and can be set to `Milton.Instantiate.DECLARATIVE` (which 
is the default) or `Milton.Instantiate.PROGRAMATIC` which will cause the client 
to use the `java.beans.Beans` API for instantiating an instance of the test 
Control.
   * 3. `annotations()` is  an array of `String`s which allows you to add 
annotations to Controls which use Declarative instantiation.  `annotations()` 
will be ignored for Controls using Programatic instantiation.  Currently Milton 
Client Generation does not support Property setting when using Programatic 
instantiation.  If you require this for your test you will need to use method 
two described below.
   * 4. `modifier()` is used to change the java access modifier for your 
control.  By default it is `public`.
+  * 5. `genericType()` is used when you wish to use generics with your 
control.  By default no generic type is set.  Setting this to "String" will 
result in your control being declared as:
+  [EMAIL PROTECTED]
+public SomeControlBean<String> testMethodName_scb;}}} 
+ 
  * 4. The Test Method Body
   * 1. In the example this test expects to receive a non-null 
`InstantiateControlBean` instance from the client.  The `ControlBean` has a 
method called `echoString(String s)` which should simply return back the String 
passed to it.  A `Report` is instantiated at the beginning of the method and 
updated as the test progresses and is then returned.
 

Reply via email to