Date: 2005-01-28T11:05:48
Editor: ZacharySmith
Wiki: Apache Beehive Wiki
Page: Controls/TestingControls/Milton
URL: http://wiki.apache.org/beehive/Controls/TestingControls/Milton
no comment
Change Log:
------------------------------------------------------------------------------
@@ -54,7 +54,7 @@
report.setStatus(Report.PASS);
else {
report.setStatus(Report.FAIL);
- report.addMessage("hcb.echoString: " +
hcb.echoString("hello"));
+ report.addMessage("icb.echoString: " +
icb.echoString("hello"));
}
}
return report;
@@ -62,4 +62,7 @@
}
}}}
+
+ * First the imports. In order to use Milton Client Generation you must
import the Milton annotation interface, the Milton Report class, and any
Control Beans that your test will use.
+ * All Drivers you wish to have clients generated for must have the [EMAIL
PROTECTED] method. This tells the Milton processor that this Driver will need
clients generated. [EMAIL PROTECTED] has two fields: `clients()` which is an
array of Enumerated types of support clients. Currently there are only two
client types: `Milton.ClientType.JWS` and `Milton.ClientType.JPF`. By default
`clients` is set to `{Milton.ClientType.JWS, Milton.ClientType.JPF}`. If you
only wanted your test to run in one of those you could override it here. The
second field available for override on [EMAIL PROTECTED] is `junit()` which is
a boolean which when set to true will cause the Milton Client Generation
processor to generate JUnit accessors for your clients. If you wish to write
your own JUnit accessors set this to `false`. As with all JWS-175 annotations
you need only explicitly set the annotations fields if you wish to override the
default. As in the example, simply placing [EMAIL PROTECTED] on your class
will result in having the