Sun Microsystems 1.2 Telephone Accessories User Manual


 
Chapter 4 Writing Tests 67
Adding Resource Files in Tests
Test writers must sometimes develop tests that require extra resource files (such as
image, data, or class files) for the test execution. When writing tests for CLDC and
MIDP-based implementations, test writers can use the resources entry in the test
description file to specify the location of the resource files.
During test execution, the test execution framework bundles the resource files
(specified in the test description) and the test class files (listed in the
testClasses.lst) into a test JAR file.
<HR>
<a name="Test"></a>
<TABLE BORDER=1 SUMMARY="Javatest Test Description" CLASS=
TestDescription>
<THEAD><TR><TH SCOPE="col">Item</TH><TH SCOPE=
"col">Value</TH></TR></THEAD>
<TR>
<TD SCOPE="row"> <B>title</B> </TD>
<TD> checking deny permission</TD>
</TR>
<TR>
<TD SCOPE="row"> <B>source</B> </TD>
<TD> <A HREF="Test.java">Test.java</A> </TD>
</TR>
<TR>
<TD SCOPE="row"> <B>executeClass</B> </TD>
<TD> sample.pkg.Test</TD>
</TR>
<TR>
<TD SCOPE="row"> <B>deny</B> </TD>
<TD> javax.microedition.io.Connector.file.read </TD>
</TR>
</TABLE>
</BODY>
</HTML>
CODE EXAMPLE 4-21 Test Description That Denies Permissions for a Security Test