You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@river.apache.org by pe...@apache.org on 2012/01/21 08:28:36 UTC

svn commit: r1234278 [10/29] - in /river/tck: ./ configs/ doc/ doc/api/ doc/api/com/ doc/api/com/sun/ doc/api/com/sun/jini/ doc/api/com/sun/jini/compat/ doc/api/com/sun/jini/compat/admin1/ doc/api/com/sun/jini/compat/admin2/ doc/api/com/sun/jini/compat...

Added: river/tck/doc/running.html
URL: http://svn.apache.org/viewvc/river/tck/doc/running.html?rev=1234278&view=auto
==============================================================================
--- river/tck/doc/running.html (added)
+++ river/tck/doc/running.html Sat Jan 21 07:28:27 2012
@@ -0,0 +1,730 @@
+<!--
+ ! 
+ ! Copyright 2005, Sun Microsystems, Inc.
+ ! Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">
+ ! Apache License, Version 2.0</a>.
+ ! 
+ !-->
+<body text="#000000" bgcolor="#ffffff" link="#9b37cc"
+      vlink="#cc1877" alink="#ffffff">
+
+<title>Running the Jini(TM) Technology Lookup, Discovery, and Join Compatibility Kit</title>
+
+<center><h1>Running the Jini(TM) Technology Lookup, Discovery, and Join Compatibility Kit<br>v1.0</h1></center>
+
+In this release of the Jini(TM)
+Technology Lookup, Discovery, and Join Compatibility Kit (LDJ Kit), there are three test sets
+used to verify that your service, client, or lookup service behaves as
+it is expected to behave. Note that a single LDJ Kit installation can test
+clients, services, and lookup services.
+<p>
+You may wish to run the tests individually first, so you can get a feel
+for how to interact with the command-line interface. However, you must
+successfully complete all of the tests for your program category, using
+the program <code>com.sun.jini.compat.harness.Runner</code>, for your
+service to be considered conformant.
+<a href="passing.html"><I>Passing the Jini Technology Lookup, Discovery, 
+and Join Compatibility Kit</I></a> gives details of the procedures
+necessary to verify compatibility.
+<p>
+The individual tests are documented in the <A
+HREF="test-spec.html"><i>Jini(TM) Technology Lookup, Discovery, 
+and Join Compatibility Kit Test Descriptions</A></i>.  
+<p>
+This document contains instructions for setting up your environment to run the LDJ Kit tests, 
+followed by two examples of running the kit.
+<p>
+<hr>
+<h2>Verify that your path environment variable is set up properly</h2>
+<blockquote> 
+    <p>   
+    Please ensure that the combination of operating system and
+    Java(TM) 2 SDK, Standard Edition that
+    you are using is one that we have tested. For a list of supported
+    configurations, take a look at the platforms on which the LDJ
+    Kit has been tested, listed at
+    <a href="http://java.sun.com/developer/products/jini/tested.html">
+    http://java.sun.com/developer/products/jini/tested.html</a>.
+<p>
+    Make sure that the Java 2 SDK executable files
+    are accessible from your executable path environment variable. You
+    can test to ensure that you have the correct version of the Java 2 SDK installed and that your executable path is set up properly by
+    typing:
+    <pre>
+	java -version
+    </pre>
+</blockquote> 
+
+<a name="rmid">
+<h2>Ensure that you can run the Java RMI activation daemon, <code>rmid</code></h2>
+<blockquote> 
+    <p>
+    The LDJ Kit starts a lookup service which requires that the Java Remote Method Invocation (Java RMI) activation daemon be running. The RMI activation daemon needs to be started in the
+    following way:
+    <UL>
+	<li>On the default port, 1098 
+	<li>With a log directory to which you have write permission
+	<li>In a shell or window with no CLASSPATH setting
+        <li>If v1.2.2-006 (or later) of the Java 2 SDK is being used, 
+            see the document on 
+            <a href=http://developer.java.sun.com/developer/products/jini/execpolicy.html>
+            <i><code>rmid</code> Exec Policies for Jini(TM) Technology</i></a>
+    </UL>
+    For example, on a UNIX platform using the Java 2 SDK v1.2.2-006 (or
+    later), starting <code>rmid</code> as follows:
+    <pre>
+	% cd /tmp
+	% setenv CLASSPATH
+	% rmid -J-Dsun.rmi.activation.execPolicy=none</pre>
+    causes <code>rmid</code> to enforce the same security policy as
+    earlier versions of <code>rmid</code>. For earlier versions of
+    1.2.2, there is no need to set the property,
+    <code>-J-Dsun.rmi.activation.execPolicy=none</code>.
+    <p>
+    To run <code>rmid</code> on Microsoft Windows platforms,
+    using the Java 2 SDK v1.2.2-006 (or later), open a Command Prompt
+    window, by using the "Start" button, and selecting "Programs" and
+    then "Command Prompt". In that window:
+    <pre>
+	C:\&gt; cd C:\temp
+	C:\&gt; set CLASSPATH=
+	C:\&gt; start /min rmid -J-Dsun.rmi.activation.execPolicy=none</pre>
+    causes <code>rmid</code> to enforce the same security policy as
+    earlier versions of <code>rmid</code>. For earlier versions of
+    1.2.2, there is no need to set the property,
+    <code>-J-Dsun.rmi.activation.execPolicy=none</code>.
+</blockquote> 
+
+<h2>Start an HTTP server</h2>
+<blockquote>
+
+   <p>You will need an HTTP server for your service. If
+   you do not use an HTTP server to provide your downloadable JAR files
+   to clients, you will fail at least one of the tests in the LDJ Kit. You can use the HTTP server provided with the Jini
+   Technology Starter Kit (starter kit). Instructions on how to run it may be found
+   in the starter kit.<p>
+
+   It is important to note that the LDJ Kit test harness always starts an HTTP 
+   server on port 8080 for internal use. 
+   As a result, the HTTP server used to support class loading for the service 
+   under test must use a port other than 8080. The default HTTP port 80
+   is therefore available for use; however, in this document 
+   it will be assumed that all services use an HTTP server bound to port 8081.
+</blockquote>
+
+<a name="configFile"><h2>Customize the LDJ Kit configuration file for your environment</h2>
+<blockquote>
+    <p>
+    The LDJ Kit configuration file contains property definitions that must
+    be customized for your environment.  Since none of the files provided with the LDJ Kit
+    distribution should be modified directly, change directory to the LDJ Kit
+    installation directory and copy the <code>ldj.prop</code> file to a
+    new file name, for modification. This file name will be passed to
+    the LDJ Kit command line later.
+    <p>
+    For example, on a UNIX platform where you have the LDJ Kit installed in 
+    <code>/files/jinildj1_0/</code>:
+    <pre>
+       % cd /files
+       % cp jinildj1_0/ldj.prop my.prop
+    </pre>
+     Or on the Microsoft Windows platforms, where you have the LDJ Kit
+     software installed in <code>C:\files\jinildj1_0</code>:
+    <pre>
+       % cd C:\files
+       % copy jinildj1_0\ldj.prop my.prop
+    </pre>
+    There are two property values, specifying directory locations, that you must
+    set in order for the LDJ Kit to run correctly.  Other property values may
+    also be necessary in certain situations.  The LDJ Kit properties are:
+    <ul>
+    <li><b>property:</b> <code>com.sun.jini.compat.scratchDir</code><br>
+        <b>must be set:</b> Always<br>
+        <b>purpose:</b> Specifies the directory used by the LDJ Kit for temporary storage.
+           If the scratchDir does not exist, an attempt will be 
+           made to create it for you.<br>
+        <b>restrictions:</b> The path <i>must</i> be absolute, including a 
+           leading slash (/) on UNIX or a drive letter (<letter>:\\) on windows. 
+           Slashes in Windows path names must be doubled (\\).<br>
+    <p>
+    <li><b>property:</b> <code>com.sun.jini.compat.installDir</code><br>
+        <b>must be set:</b> Always<br>
+        <b>purpose:</b> Specifies the directory where the LDJ Kit is installed and is
+           used to find LDJ Kit JAR files and other configuration files.<br>
+        <b>restrictions:</b> The path <i>must</i> be absolute, including a 
+           leading slash (/) on UNIX or a drive letter (<letter>:\\) on Windows. 
+           Slashes in Windows path names must be doubled (\\).<br>
+    <p>
+    <li><b>property:</b> <code>com.sun.jini.compat.failureTime</code><br>
+        <b>must be set:</b> Only if running on a very slow network.<br>
+        <b>purpose:</b> Sets the smallest unit of time, in milliseconds, that 
+           is useful for failure detection.  Multiples of this time are used 
+           in many tests for timing.  The default value is 30000 milliseconds 
+           (30 seconds). <br>
+        <b>restrictions:</b> None.
+    <p>
+    <li><b>property:</b> <code>com.sun.jini.compat.categories</code><br>
+        <b>must be set:</b> Only if the <code>-categories</code> option is not set on the LDJ Kit command line.<br>
+        <b>purpose:</b> Specifies the category of the program that you are testing.<br>
+        <b>restrictions:</b> Possible values are: client, service, and lookup.  
+           You can specify multiple categories by using a comma-separated list 
+           with no spaces. 
+    <p>
+    <li><b>property:</b> <code>com.sun.jini.compat.adminClass</code><br>
+        <b>must be set:</b> Always<br>
+        <b>purpose:</b> Specifies the implementation class of the Admin component. 
+           If you want to use your own custom Admin, you must specify its 
+           class name here. <br>
+        <b>restrictions:</b> Must be a dot-delimited class name of a class that
+           is in the LDJ Kit's classpath.
+    <p>
+    <li><b>property:</b> <code>com.sun.jini.compat.lookupPlatformDir</code><br>
+        <b>must be set:</b> If your service being tested expects certain classes
+           to be available in the lookup service class loader hierarchy.<br>
+        <b>purpose:</b> Specifies the directory that contains your extra classes 
+           or JAR files that need to be in the class loader hierarchy of the LDJ Kit's
+           lookup service.<br>
+        <b>restrictions:</b> Since all classes and JAR files in this directory
+           will be loaded through the extension class loader, this directory
+           must contain <i>only</i> the necessary classes and JAR files and
+           nothing more.  Slashes in Windows path names must be doubled (\\).
+           The given directory path must be an absolute pathname.
+    <p>
+    <li><b>property:</b> <code>com.sun.jini.compat.unofficialQuietTime</code><br>
+        <b>must be set:</b> During an official LDJ Kit test run, this property
+           must either <b>not</b> be set or be set to a value greater than
+           or equal to the default value of 600000 milliseconds (10 minutes).<br>
+        <b>purpose:</b> Sets the time, in milliseconds, that the LDJ Kit should wait 
+           to ensure that an action or event does not occur.  Setting this property 
+           to a value less than 10 minutes is generally used for debugging purposes
+           since it will speed up the LDJ Kit execution time.<br>
+        <b>restrictions:</b> Setting this property to
+           anything less than the default value of 600000 (10 minutes) will make the
+           LDJ Kit run unofficial.
+    <p>
+    <li><b>property:</b> <code>com.sun.jini.compat.debugLevel</code><br>
+        <b>must be set:</b> Completely optional.<br>
+        <b>purpose:</b> Sets the debug level of the LDJ Kit.
+           This property is generally used for debugging purposes.<br>
+        <b>restrictions:</b> The possible values are:<br>
+           <ul>
+           <li>none  - no extra feedback (the default)
+           <li>error - only displays extra information when something fails
+           <li>all   - shows all extra information
+           </ul>
+    <p>
+    <li><b>property:</b> <code>com.sun.jini.compat.defaultAdmin.address</code><br>
+        <b>must be set:</b> If using any of the default Admins <b>and</b>
+           your program is running on a different host than the LDJ Kit.<br>
+        <b>purpose:</b> All DefaultAdmin subclasses use this property to 
+           determine the host address of the program being tested. <br>
+        <b>restrictions:</b> This property must be set to test a program
+           (service, client, or lookup service) that will be run on a host that  
+           is different than where the LDJ Kit will be run.
+    </ul>
+    In addition to the above properties, Admins can define their own properties.
+    The <code>ldj.prop</code> configuration file included in the LDJ Kit download
+    contains commented-out property definitions for the example Admins
+    contained in the LDJ Kit.  These are for reference purposes only.
+</blockquote>
+
+<hr>
+<H2>Example 1: Running a single test on a Jini technology-enabled
+service using <code>DefaultServiceAdmin</code></h2>
+
+This example will take you through the process of using the LDJ Kit to test
+the Jini technology-enabled transaction service (Mahalo) on a UNIX
+platform. This first test will probably take you ten to fifteen minutes to
+complete. Instructions on starting the activatable implementation of Mahalo using 
+either JRMP or Jini extensible remote invocation (Jini ERI) for remote communication is available in the API documentation for the
+<code>com.sun.jini.mahalo</code> package in the Jini starter kit.
+<p>
+For this example, we assume that the Jini technology infrastructure
+software and documentation is available in the directory <code>/files/jini2_1</code>.
+<p>
+The <code>DefaultServiceAdmin</code> asks you to start and stop your
+service (Mahalo) for each test.  Since the activatable implementation of
+Mahalo is being used and to ensure that the service is re-created
+rather than reactivated for each test, there will be a lot of manual stopping and restarting of
+<code>rmid</code>. To make the stopping and
+restarting easier, this example will require four shells or windows:
+one in which to run an http server for Mahalo, one in which to run 
+<code>rmid</code>, one in which to run Mahalo,
+and one in which to run the LDJ Kit.
+<p>
+The general order of operations will be:
+<ol>
+    <li> Ensure that <code>rmid</code> is started <a href="#rmid">as specified earlier</a>
+    <li> <a href="#config">Customize the LDJ Kit configuration file</i></a>
+    <li> <a href="#Runner">Start the test harness</a>
+    <li> <a href="#service">Start Mahalo when instructed by the test harness</a>
+</ol>
+
+<HR ALIGN="LEFT" WIDTH="25%">
+<a name="cleanUp">
+<b>Note:</b> Each time that the test harness requests that you stop
+your service, you will need to perform these four steps before proceeding any further:
+<ul>
+	<li>Stop <code>rmid</code>
+	<li>Remove the log directory for <code>rmid</code> 
+	<li>Remove the log directory for Mahalo
+	<li>Restart <code>rmid</code>
+</ul>
+<HR ALIGN="LEFT" WIDTH="25%">
+
+<p>
+<a name="config"><h3>Customize the LDJ Kit configuration file</h3></a>
+<blockquote>
+    <p>
+    Copy the LDJ Kit configuration file to <code>my.prop</code> <a href="#configFile">as specified earlier</a> and set these properties:
+    <ul>
+    <li><code>com.sun.jini.compat.scratchDir=/tmp</code>
+    <li><code>com.sun.jini.compat.installDir=/files/jinildj1_0</code>
+    <li><code>com.sun.jini.compat.unofficialQuietTime=60000</code>
+    <li><code>com.sun.jini.compat.categories=service</code>
+    <li><code>com.sun.jini.compat.adminClass=com.sun.jini.compat.harness.DefaultServiceAdmin</code>
+    </ul>
+    <p>
+    The <code>com.sun.jini.compat.installDir</code> should accurately reflect the
+    installation directory of the LDJ Kit on your system. 
+    The <code>com.sun.jini.compat.scratchDir</code> should be a 
+    location to which the LDJ Kit may write temporary files and log files.
+    If the specified directory does not exist, then the directory will be created 
+    for you as part of the LDJ Kit run.  Lowering the value of 
+    <code>com.sun.jini.compat.unofficialQuietTime</code> from its default 600000 milliseconds
+    (10 minutes) to 60000 milliseconds (1 minute) will dramatically decrease
+    the test time for this example run.
+</blockquote>
+
+<a name="Runner"><h3>Start the test harness</h3> 
+<blockquote>
+Assuming that an http server for Mahalo and 
+<code>rmid</code> are already running in two windows, start the test
+program in a third window. For complete instructions on starting the LDJ Kit, see the
+<a href="commandline.html"><i>Command-line Usage for the Jini 
+Technology Lookup, Discovery, and Join Compatibility Kit</a></i>.
+Here's an example of how to start the test harness on a
+UNIX platform:
+
+<ul>
+	<code>java -Djava.security.policy=/files/jinildj1_0/policy/policy.all
+        -cp /files/jinildj1_0/lib/compat.jar
+	com.sun.jini.compat.harness.Runner /files/my.prop -tests
+	com.sun.jini.compat.test.RegistrationTest</code>
+</ul>
+
+The output should look like:
+<ul>
+<pre>
+---------------------------
+CONFIGURATION FILE:
+
+   /files/my.prop
+
+---------------------------
+SETTING UP THE TEST LIST:
+
+   Adding test: com.sun.jini.compat.test.RegistrationTest
+
+---------------------------
+LDJ Kit PROPERTIES:
+
+   Date started:
+      Thu May 22 18:39:21 EDT 2005
+   Installation directory of the LDJ Kit:
+      com.sun.jini.compat.installDir=/files/jinildj1_0
+   Scratch directory for the LDJ Kit:
+      com.sun.jini.compat.scratchDir=/tmp
+   Platform directory for the LDJ Kit Lookup Service:
+      com.sun.jini.compat.lookupPlatformDir=null
+   Failure time (in milliseconds):
+      com.sun.jini.compat.failureTime=30000
+   Quiet time (in milliseconds):
+      com.sun.jini.compat.unofficialQuietTime=60000
+   Categories being tested:
+      com.sun.jini.compat.categories=service
+   Debug output level of the LDJ Kit:
+      com.sun.jini.compat.debugLevel=none
+   Admin class for the program-under-test:
+      com.sun.jini.compat.adminClass=com.sun.jini.compat.harness.DefaultServiceAdmin
+   IP address of the program-under-test:
+      com.sun.jini.compat.adminClass.getAddress()=myhost/123.45.67.89
+
+---------------------------
+ENVIRONMENT PROPERTIES:
+
+   JVM information:
+      Java HotSpot(TM) Client VM, 1.4.1-b21
+      Sun Microsystems Inc.
+   LDJ Kit VM classpath:
+      /files/jinildj1_0/lib/compat.jar:/files/jini2_1/lib/jsk-platform.jar
+   OS information:
+      SunOS, 5.8, sparc
+
+---------------------------
+STARTING TO RUN THE TESTS
+
+
+Running com.sun.jini.compat.test.RegistrationTest...
+Time is Thu May 22 18:42:18 EDT 2005
+UNOFFICIAL TEST RUN
+
+Start the program now.
+Press Enter when program started:
+</pre>
+</ul>
+<p>
+</blockquote>
+<a name="service"><h3>Start the service</h3></a>
+<blockquote>
+At this point, start Mahalo in a fourth window. 
+For an example of how to start the activatable implementation of Mahalo using either JRMP or Jini ERI for remote communication, see the API documentation for the
+<code>com.sun.jini.mahalo</code> package in the v2.1 starter kit.
+</blockquote>
+<h3>Start testing</h3>
+<blockquote>
+<ol>
+<li>Once Mahalo has started and registered with the activation system, you can return to the shell where the LDJ Kit is executing and press the "Enter" key. At this point, you
+should see a new message in that shell:
+<pre>
+	Testing....
+</pre>
+
+<li>The program pauses and asks you to select your service from the ones registered with the lookup service started by the LDJ Kit:
+<pre>
+	Which of the following is the program being tested?
+	  0) None of these
+	  1) class com.sun.jini.compat.reggie.RegistrarProxy from codebase http://123.45.67.89:8080/compat-lus-dl.jar
+	  2) class com.sun.jini.mahalo.TxnManagerImpl_Stub from http://myHostName:8081/mahalo-dl.jar	
+</pre>
+Select the number of Mahalo, and press the "Enter" key:
+<pre>
+	Select number and press Enter: <b>2</b>
+</pre>
+
+<li>You are then prompted to stop the program. Before you press the "Enter" key, you'll need to perform the sequence of "clean-up" activities, which we will go through next.
+<pre>
+	Stop the program now.
+	Press Enter when program stopped:
+</pre>
+<li>In the window where you are running <code>rmid</code>, quit out of
+the process and remove the log directory:
+<pre>
+        % rmid
+	<b>^C</b>
+	% <b>rm -rf log</b>
+</pre>
+
+<li>Remember to remove the log directory for Mahalo:
+<pre>
+	% <b>rm -rf /tmp/txn_log</b>
+</pre>
+
+<li>Return to the <code>Runner</code> window, press the "Return" or
+"Enter" key, and you'll see:
+<pre>
+	Test Passed: OK
+
+	--------------------------
+</pre>
+</ul>
+Congratulations! You've made it through one of the ten tests that a
+service must pass.
+<p>
+</blockquote>
+<hr>
+
+<H2>Example 2: Fully testing a Jini technology-enabled service using
+a custom admin</h2>
+
+This example will take you through the process of using the LDJ Kit to test
+the Jini technology-enabled transaction service (Mahalo) on a UNIX
+platform. This unofficial run will probably take you less than 30 minutes to
+complete. Remember that for an official run of the LDJ Kit, you'll need to
+edit your config file, <code>my.prop</code>, to comment out the
+property <code>com.sun.jini.compat.unofficialQuietTime</code>. Because an
+official run would take about an hour to complete successfully, this
+example will continue to use a
+<code>com.sun.jini.compat.unofficialQuietTime</code> of 60000
+milliseconds (1 minute).
+<p> 
+By using one of the custom Admins provided with the LDJ Kit, you will avoid having
+to start and stop <code>rmid</code> and Mahalo for each of the ten
+tests. In addition, you will never have to execute the Mahalo command line,
+as the Admin will take care of registering Mahalo's activation descriptor
+with <code>rmid</code>. 
+<p>
+<h3>Customize the LDJ Kit configuration file</h3>
+<blockquote>
+    <p>
+First you will need to change several of the properties in the config
+file, so edit <code>my.prop</code> (created in the previous example)
+to define these property values:
+    <ul>
+    <li><code>com.sun.jini.compat.scratchDir=/tmp</code>
+    <li><code>com.sun.jini.compat.installDir=/files/jinildj1_0</code>
+    <li><code>com.sun.jini.compat.unofficialQuietTime=60000</code>
+    <li><code>com.sun.jini.compat.categories=service</code>
+    <li><code>com.sun.jini.compat.adminClass=com.sun.jini.compat.admin2.ServiceStarterAdmin</code>
+    <li><code>com.sun.jini.compat.admin2.starterConfig=/files/jinildj1_0/configs/mahalo-activatable.config</code>
+    <li><code>com.sun.jini.compat.admin2.jskHome=/files/jini2_1</code>
+    <li><code>com.sun.jini.compat.admin2.javaHome=/files/java</code>
+    </ul>
+The <code>com.sun.jini.compat.admin2.*</code> properties
+that are defined above are all documented in the <code>ldj.prop</code> file.
+</blockquote>
+
+<h3>Start the test harness</h3>
+<blockquote>
+    <p>
+Assuming that an http server for Mahalo is running (at port 8081) in one window and that
+<code>rmid</code> is running in a second window, start the test
+program in a third window. For complete instructions on starting the LDJ Kit, see the
+<a href="commandline.html"><i>Command-line Usage for the Jini 
+Technology Lookup, Discovery, and Join Compatibility Kit</a></i>.
+<p>
+The Admin we are using, <code>com.sun.jini.compat.admin2.ServiceStarterAdmin</code>, 
+is contained in the <code>compat-admin2.jar</code> within the LDJ Kit <code>lib</code>
+directory.  This Admin requires that <code>jsk-platform.jar</code>, found in the Jini starter
+kit <code>lib</code> directory, also be included in the classpath.
+Here's an example of how to start the test harness on a
+UNIX platform:
+<ul>
+<code>
+  java -Djava.security.policy=/files/jinildj1_0/policy/policy.all 
+  -cp /files/jinildj1_0/lib/compat.jar:/files/jinildj1_0/lib/compat-admin2.jar:/files/jini2_1/lib/jsk-platform.jar
+  com.sun.jini.compat.harness.Runner /files/my.prop
+</code>
+</ul>
+The output will tell you that ten of the tests are applicable to the
+service being tested and that nine of the tests are just to test lookup
+services. The output may look a little disconcerting the first time you 
+execute the command, but as long as it doesn't contain any errors that
+tell you it can't locate a class or a policy file, you should be in good
+shape.  Without <code>com.sun.jini.compat.debugLevel</code> set to
+<code>all</code>, some tests may appear to be doing nothing.  
+Be patient.  Some tests will take many times the value specified by the 
+<code>com.sun.jini.compat.unofficialQuietTime</code> property to execute.
+<p>
+A complete set of successful results will look like this:
+<ul>
+<pre>
+---------------------------
+CONFIGURATION FILE:
+
+   /files/my.prop
+
+---------------------------
+SETTING UP THE TEST LIST:
+
+   Adding test: com.sun.jini.compat.test.RequestPacketTest
+   Adding test: com.sun.jini.compat.test.UnicastRequestTest
+   Adding test: com.sun.jini.compat.test.CodeDownloadTest
+   Adding test: com.sun.jini.compat.test.AnnouncementResponseTest
+   Adding test: com.sun.jini.compat.test.RegistrationTest
+   Adding test: com.sun.jini.compat.test.MultiRegistrationTest
+   Adding test: com.sun.jini.compat.test.PublicGroupTest
+   Adding test: com.sun.jini.compat.test.NonPublicGroupTest
+   Adding test: com.sun.jini.compat.test.MultiGroupTest
+   Adding test: com.sun.jini.compat.test.LeaseTest
+   Skipping test: com.sun.jini.compat.test.LookupByServiceIDTest
+      Reason: category mismatch
+      Categories selected for this run: service 
+      Categories this test applies to: lookup
+   Skipping test: com.sun.jini.compat.test.LookupByClassTest
+      Reason: category mismatch
+      Categories selected for this run: service 
+      Categories this test applies to: lookup 
+   Skipping test: com.sun.jini.compat.test.LookupBySuperClassTest
+      Reason: category mismatch
+      Categories selected for this run: service 
+      Categories this test applies to: lookup 
+   Skipping test: com.sun.jini.compat.test.LookupByInterfaceTest
+      Reason: category mismatch
+      Categories selected for this run: service 
+      Categories this test applies to: lookup 
+   Skipping test: com.sun.jini.compat.test.MultipleServiceLeaseRenewalTest
+      Reason: category mismatch
+      Categories selected for this run: service 
+      Categories this test applies to: lookup 
+   Skipping test: com.sun.jini.compat.test.ServiceLeaseExpirationTest
+      Reason: category mismatch
+      Categories selected for this run: service 
+      Categories this test applies to: lookup 
+   Skipping test: com.sun.jini.compat.test.ServiceIDTest
+      Reason: category mismatch
+      Categories selected for this run: service 
+      Categories this test applies to: lookup 
+   Skipping test: com.sun.jini.compat.test.MultipleEventLeaseRenewalTest
+      Reason: category mismatch
+      Categories selected for this run: service 
+      Categories this test applies to: lookup 
+   Skipping test: com.sun.jini.compat.test.EventLeaseExpirationTest
+      Reason: category mismatch
+      Categories selected for this run: service 
+      Categories this test applies to: lookup
+
+---------------------------
+LDJ Kit PROPERTIES:
+
+   Date started:
+      Thu May 22 20:09:03 EDT 2005
+   Installation directory of the LDJ Kit:
+      com.sun.jini.compat.installDir=/files/jinildj1_0
+   Scratch directory for the LDJ Kit:
+      com.sun.jini.compat.scratchDir=/tmp
+   Failure time (in milliseconds):
+      com.sun.jini.compat.failureTime=30000
+   Quiet time (in milliseconds):
+      com.sun.jini.compat.unofficialQuietTime=60000
+   Categories being tested:
+      com.sun.jini.compat.categories=service
+   Debug output level of the LDJ Kit:
+      com.sun.jini.compat.debugLevel=none
+   Admin class for the program-under-test:
+      com.sun.jini.compat.adminClass=com.sun.jini.compat.admin2.ServiceStarterAdmin
+   IP address of the program-under-test:
+      com.sun.jini.compat.adminClass.getAddress()=myhost/123.45.67.89
+
+---------------------------
+ENVIRONMENT PROPERTIES:
+
+   JVM information:
+      Java HotSpot(TM) Client VM, 1.4.1-b21
+      Sun Microsystems Inc.
+   LDJ Kit VM classpath:
+      /files/jinildj1_0/lib/compat.jar:/files/jinildj1_0/lib/compat-admin2.jar:/files/jini2_1/lib/jsk-platform.jar
+   OS information:
+      SunOS, 5.8, sparc
+
+---------------------------
+STARTING TO RUN THE TESTS
+
+
+Running com.sun.jini.compat.test.RequestPacketTest...
+Time is Thu May 22 20:09:03 EDT 2005
+UNOFFICIAL TEST RUN
+Test Passed: OK
+
+--------------------------
+
+Running com.sun.jini.compat.test.UnicastRequestTest...
+Time is Thu May 22 20:10:26 EDT 2005
+UNOFFICIAL TEST RUN
+Test Passed: OK
+
+--------------------------
+
+Running com.sun.jini.compat.test.CodeDownloadTest...
+Time is Thu May 22 20:11:14 EDT 2005
+UNOFFICIAL TEST RUN
+Test Passed: OK
+
+--------------------------
+
+Running com.sun.jini.compat.test.AnnouncementResponseTest...
+Time is Thu May 22 20:12:31 EDT 2005
+UNOFFICIAL TEST RUN
+Test Passed: OK
+
+--------------------------
+
+Running com.sun.jini.compat.test.RegistrationTest...
+Time is Thu May 22 20:13:15 EDT 2005
+UNOFFICIAL TEST RUN
+Test Passed: OK
+
+--------------------------
+
+Running com.sun.jini.compat.test.MultipleRegistrationTest...
+Time is Thu May 22 20:14:38 EDT 2005
+UNOFFICIAL TEST RUN
+Test Passed: OK
+
+--------------------------
+
+Running com.sun.jini.compat.test.PublicGroupTest...
+Time is Thu May 22 20:35:12 EDT 2005
+UNOFFICIAL TEST RUN
+Test Passed: OK
+
+--------------------------
+
+Running com.sun.jini.compat.test.NonPublicGroupTest...
+Time is Thu May 22 20:37:37 EDT 2005
+UNOFFICIAL TEST RUN
+Test Passed: OK
+
+--------------------------
+
+Running com.sun.jini.compat.test.MultipleGroupTest...
+Time is Thu May 22 20:40:58 EDT 2005
+UNOFFICIAL TEST RUN
+Test Passed: OK
+
+--------------------------
+
+Running com.sun.jini.compat.test.LeaseTest...
+Time is Thu May 22 20:47:55 EDT 2005
+UNOFFICIAL TEST RUN
+Test Passed: OK
+
+--------------------------
+
+Summary --
+
+com.sun.jini.compat.test.RequestPacketTest
+Test Passed: OK
+--------------------------
+com.sun.jini.compat.test.UnicastRequestTest
+Test Passed: OK
+--------------------------
+com.sun.jini.compat.test.CodeDownloadTest
+Test Passed: OK
+--------------------------
+com.sun.jini.compat.test.AnnouncementResponseTest
+Test Passed: OK
+--------------------------
+com.sun.jini.compat.test.RegistrationTest
+Test Passed: OK
+--------------------------
+com.sun.jini.compat.test.MultipleRegistrationTest
+Test Passed: OK
+--------------------------
+com.sun.jini.compat.test.PublicGroupTest
+Test Passed: OK
+--------------------------
+com.sun.jini.compat.test.NonPublicGroupTest
+Test Passed: OK
+--------------------------
+com.sun.jini.compat.test.MultipleGroupTest
+Test Passed: OK
+--------------------------
+com.sun.jini.compat.test.LeaseTest
+Test Passed: OK
+--------------------------
+
+# of tests started   = 10
+# of tests completed = 10
+# of tests passed    = 10
+# of tests failed    = 0
+--------------------------
+
+
+   Date finished:
+      Thu May 22 20:50:51 EDT 2005
+   Time elapsed:
+      2508 seconds
+
+</pre>
+</ul>
+</blockquote>
+
+<hr>
+
+Copyright 2005, Sun Microsystems, Inc.<br>
+Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">
+Apache License, Version 2.0</a>.
+
+</body>
+</html>

Propchange: river/tck/doc/running.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/doc/test-spec.html
URL: http://svn.apache.org/viewvc/river/tck/doc/test-spec.html?rev=1234278&view=auto
==============================================================================
--- river/tck/doc/test-spec.html (added)
+++ river/tck/doc/test-spec.html Sat Jan 21 07:28:27 2012
@@ -0,0 +1,868 @@
+<!--
+ ! 
+ ! Copyright 2005, Sun Microsystems, Inc.
+ ! Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">
+ ! Apache License, Version 2.0</a>.
+ ! 
+ !-->
+<html>
+
+<head>
+<title>The LDJ Kit Test Descriptions</title>
+</head>
+
+<body bgcolor="#FFFFFF">
+<CENTER><h1>Jini(TM) Technology Lookup, Discovery, and Join 
+Compatibility Kit Test Descriptions<BR>
+v1.0
+</h1></CENTER>
+<hr>
+<h2>
+  1&nbsp;&nbsp;&nbsp;Introduction
+</h2>
+<p>
+  This document describes each of the tests in the Jini(TM) Technology Lookup, Discovery, and Join Compatibility Kit (LDJ Kit). The LDJ Kit tests the conformance of clients, services, and lookup services (hereafter referred to as "programs") to the Jini technology specifications.
+</p>
+<h3>
+  1.1&nbsp;&nbsp;&nbsp;Dependencies
+</h3>
+<p>
+  The <em>Jini(TM) Technology Lookup, Discovery, and Join Compatibility Kit Test Descriptions</em> rely on the following specifications:
+</p>
+<ul>
+  <li><em>Jini(TM) Discovery & Join Specification</em> (DJ)
+  <li><em>Jini(TM) Distributed Events Specification</em> (EV)
+  <li><em>Jini(TM) Lookup Service Specification</em> (LU)
+  <li><em>Jini(TM) Distributed Leasing Specification</em> (LE)
+</ul>
+<h2>
+  2&nbsp;&nbsp;&nbsp;Test Descriptions
+</h2>
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+  2.1&nbsp;&nbsp;&nbsp;About the Test Descriptions
+</h3>
+<p>
+  The remainder of this document consists of a list of the tests, in alphabetical order by name, that are in the LDJ Kit. This section describes the kind of information contained in each test description, presented in the following format:
+</p>
+<h4>
+  2.1.1&nbsp;&nbsp;&nbsp;<Strong>Purpose</Strong> 
+</h4>
+<p>
+  This section defines a generalization of the assertions being tested.
+</p>
+<h4>
+  2.1.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  This section describes a set of conditions that must be met for the test results to be valid.
+</p>
+<h4>
+  2.1.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  This section describes the test design and the criteria for passing or failing the test. In this section, variable names are used for programmed delays and waits. These variables are implemented as properties in test implementations. Multiples of these times are used in most tests. The variables referred to in this document are:
+</p>
+<ul>
+  <li class="SmartList1"><code>failureTime</code> - This variable represents a time value in milliseconds.  It indicates the smallest unit of time that is useful for failure detection.
+  <li class="SmartList1"><code>quietTime</code> - This variable represents a time value in milliseconds. It indicates the number of milliseconds that the LDJ Kit should wait to ensure that an action or event does not occur. For example, a test that wishes to collect all the multicast requests from a service may enter a listening period that is a multiple of this value.
+</ul>
+<h4>
+  2.1.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<p>
+  Each of the tests included in the LDJ Kit follows the design described in the previous section, and implements the variables described in that section as properties. 
+</p>
+<p>
+  This section describes the following characteristics of the test implementation:
+</p>
+<ul> 
+    <li class="SmartList2"><Strong>Introduced in:</Strong> Identifies the version of the LDJ Kit in which the test was first included. 
+    <li class="SmartList2"><Strong>Last modified in</Strong>: Identifies the version of the LDJ Kit in which the test was last modified. 
+    <li class="SmartList2"><Strong>Specification section(s) being tested:</Strong> Identifies the specification section(s) to which the test applies. 
+    <li class="SmartList2"><Strong>Test target:</Strong> Identifies the target of the individual test. The LDJ Kit tests three categories of programs: clients, services, and lookup services.
+    <li class="SmartList2"><Strong>Possible test results:</Strong> Identifies the results that the test can produce. Each test can produce one of four return values: pass, definite failure, indefinite failure, or environment failure. A definite failure indicates that the program does not conform with the specified requirements. An environment failure indicates that the test failed because something was wrong with the running environment or setup. An indefinite failure indicates that the program may have failed for some external factor, such as an unreliable multicast network. If you encounter an indefinite failure, see <a href="passing.html"><em>Passing the Jini Technology Lookup, Discovery, and Join Compatibility Kit</em></a> for more information.
+    <li class="SmartList2"><Strong>Programmed delays/waits:</Strong> Identifies any variables in the test design that can affect the runtime of this test. These variables are provided to help users estimate how long it might take to run the test in a worse case scenario (which usually occurs when the program fails the test).
+    <li class="SmartList2"><Strong>Related properties: </Strong>Enumerates the properties in the LDJ Kit configuration file that are used in this test.
+</ul>
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.2&nbsp;&nbsp;&nbsp;AnnouncementResponseTest
+</h3>
+<h4>
+  2.2.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that a service sends a properly formatted unicast request as part of the Multicast Announcement Protocol.
+</p>
+<h4>
+  2.2.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.2.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  This test sends a <code>public</code> group multicast announcement packet every second. Simultaneously, the test waits up to <code>failureTime</code> milliseconds for the service to open a socket and send a unicast request packet as outlined in the Multicast Announcement Protocol. The test then checks that the received unicast request is properly formatted.
+</p>
+<p>
+  If the service does not open a socket within <code>failureTime</code>, or if the service sends an improperly formatted unicast request packet, then the test stops and returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.2.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>DJ.2.5.5, DJ.2.6.4, DJ.5.5</Strong>
+  <li class="SmartList1">Test target: <Strong>Service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>failureTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.failureTime</Strong>
+</ul>
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.3&nbsp;&nbsp;&nbsp;CodeDownloadTest
+</h3>
+<h4>
+  2.3.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that a program downloads the lookup service's proxy from the codebase provided by the lookup service.
+</p>
+<h4>
+  2.3.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.3.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  The test copies the lookup service's downloadable JAR file to a JAR file with a randomly generated name (the new file is created to prevent caching from causing false negative results). The test then starts an instrumented class server on port 8080 and a lookup service with the HTTP URL codebase of the copied JAR file. The test starts the program and waits up to five times <code>failureTime</code> milliseconds.
+</p>
+<p>
+  If the copied JAR file was not downloaded from the class server, then the test deletes the JAR file and returns a failure status. Otherwise, the test deletes the JAR file and returns a pass status.
+</p>
+<h4>
+  2.3.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in:<Strong> 1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>DJ.1.2.1, DJ.1.4.4, DJ.2.6</Strong>
+  <li class="SmartList1">Test target: <Strong>Client, Service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>5 x failureTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.failureTime</Strong>
+</ul>
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.4&nbsp;&nbsp;&nbsp;EventLeaseExpirationTest
+</h3>
+<h4>
+  2.4.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that the lookup service being tested properly and promptly expires registered event listeners.
+</p>
+<h4>
+  2.4.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.4.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  The test creates a test service and registers it with the lookup service being tested. The test then registers an event listener, requesting a lease duration of <code>failureTime</code> milliseconds, that will be notified of all changes in the lookup service pertaining to the test service. The test waits for two times the event listener lease duration granted by the lookup service. This wait period should ensure that the event listener lease has expired. The test then cancels the test service's lookup lease. Finally, the test waits <code>quietTime</code> milliseconds to collect events related to the test service.
+</p>
+<p>
+  If during the final wait period the test receives any events, the test stops and returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.4.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>EV.2.4, LU.2.5</Strong>
+  <li class="SmartList1">Test target: <Strong>Lookup service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>2 x failureTime + quietTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.failureTime, com.sun.jini.compat.unofficialQuietTime</Strong>
+</ul>
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.5&nbsp;&nbsp;&nbsp;LeaseTest
+</h3>
+<h4>
+  2.5.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that the service being tested maintains its lookup service registration lease.
+</p>
+<h4>
+  2.5.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.5.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  This test starts a lookup service that grants leases with a maximum duration of <code>failureTime</code> milliseconds. The test then starts the service being tested and waits up to four times <code>failureTime</code> milliseconds for the service to register. Once the service has registered with the lookup service, the test registers with the lookup service to be notified if the service is removed from the lookup service, and waits for three times the provided lease duration. If the test was not notified of the service being removed, the test queries the lookup service to ensure the service is still registered.
+</p>
+<p>
+  If the service never registered with the lookup service or the service, once registered, is removed from the lookup service, then the test stops and returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.5.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>DJ.4.2.2, LU.2.5</Strong>
+  <li class="SmartList1">Test target: <Strong>Service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>7 x failureTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.failureTime</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.6&nbsp;&nbsp;&nbsp;LookupByClassTest
+</h3>
+<h4>
+  2.6.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that the lookup service being tested can perform a lookup by a service's class type.
+</p>
+<h4>
+  2.6.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.6.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  The test creates a unique test service, with a unique class type, and registers it with the lookup service being tested. The test uses a <code>LeaseRenewalManager</code> to maintain the service's lease while the test is in progress. The test then looks up the test service using the service's class type. 
+</p>
+<p>
+  If the lookup service returns nothing or the wrong service, then the test stops and returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.6.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>LU.2.3</Strong>
+  <li class="SmartList1">Test target: <Strong>Lookup service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>None</Strong>
+  <li class="SmartList1">Related Properties: <Strong>None</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.7&nbsp;&nbsp;&nbsp;LookupByInterfaceTest
+</h3>
+<h4>
+  2.7.1&nbsp;&nbsp;&nbsp;<Strong>Purpose</Strong>
+</h4>
+<p>
+  The purpose of this test is to verify that the lookup service being tested can perform a lookup by a service's interface type.
+</p>
+<h4>
+  2.7.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.7.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  The test creates a unique test service that implements a unique interface type and registers it with the lookup service being tested. The test uses a <code>LeaseRenewalManager</code> to maintain the service's lease while the test is in progress. The test then looks up the test service using the service's interface type. 
+</p>
+<p>
+  If the lookup service returns nothing or the wrong service, then the test stops and returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.7.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>LU.2.3</Strong>
+  <li class="SmartList1">Test target: <Strong>Lookup service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>None</Strong>
+  <li class="SmartList1">Related Properties: <Strong>None</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.8&nbsp;&nbsp;&nbsp;LookupByServiceIDTest
+</h3>
+<h4>
+  2.8.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that the lookup service being tested can perform a lookup by a service's interface type <code>ServiceID</code>.
+</p>
+<h4>
+  2.8.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.8.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  The test creates a unique test service, registers it with the lookup service being tested, and stores the <code>ServiceID</code> returned by the lookup service. The test uses a <code>LeaseRenewalManager</code> to maintain the service's lease while the test is in progress. The test then looks up the test service using the service's stored <code>ServiceID</code>.
+</p>
+<p>
+  If the lookup service returns nothing or the wrong service, then the test stops and returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.8.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>LU.2.3</Strong>
+  <li class="SmartList1">Test target: <Strong>Lookup service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>None</Strong>
+  <li class="SmartList1">Related Properties: <Strong>None</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.9&nbsp;&nbsp;&nbsp;LookupBySuperClassTest
+</h3>
+<h4>
+  2.9.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that the lookup service being tested can perform a lookup by a service's superclass type.
+</p>
+<h4>
+  2.9.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.9.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  The test creates a unique test service, with unique class and superclass types, and registers it with the lookup service being tested. The test uses a <code>LeaseRenewalManager</code> to maintain the service's lease while the test is in progress. The test then looks up the test service using the service's superclass type.
+</p>
+<p>
+  If the lookup service returns nothing or the wrong service, then the test stops and returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.9.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>LU.2.3</Strong>
+  <li class="SmartList1">Test target: <Strong>Lookup service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>None</Strong>
+  <li class="SmartList1">Related Properties: <Strong>None</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.10&nbsp;&nbsp;&nbsp;MultipleEventLeaseRenewalTest
+</h3>
+<h4>
+  2.10.1&nbsp;&nbsp;&nbsp;<STRONG>Purpose</STRONG>
+</h4>
+<p>
+  The purpose of this test is to verify that the lookup service being tested properly handles events, specifically multiple renewals and transitions.
+</p>
+<h4>
+  2.10.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<p>
+  This test also assumes that service registration, lease renewal, and lease cancellation each take less than 1/4 the granted lease duration, which is requested to be eight times <code>failureTime</code> milliseconds.
+</p>
+<h4>
+  2.10.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  The test creates a test service item and registers it with the lookup service being tested. The test uses a <code>LeaseRenewalManager</code> to prevent the service lease from expiring while the test is in progress, because the maximum lease duration that a lookup service will grant is not guaranteed to be configurable. 
+</p>
+<p>
+  The test registers an event listener with the lookup service, requesting a lease time of eight times <code>failureTime</code> milliseconds. The test then performs five iterations of these steps:
+</p>
+    <ol type="1">
+      <li class="SmartList3" value="1">Waits for 3/4 of the current granted event lease duration, then renews the lease
+      <li class="SmartList3" value="2">Waits for half of the newly granted lease duration
+      <li class="SmartList3" value="3">On odd iterations, cancels the service's lease; on even iterations, reregisters the service
+      <li class="SmartList3" value="4">Waits <code>failureTime</code> milliseconds
+      <li class="SmartList3" value="5">Checks to see if the proper events were received
+    </ol>
+<p>
+  If, for each iteration, the expected transition events for the test service are not received, the test stops and returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.10.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>LE.2.1</Strong>
+  <li class="SmartList1">Test target: <Strong>Lookup service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>38 x failureTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.failureTime</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.11&nbsp;&nbsp;&nbsp;MultipleGroupTest
+</h3>
+<h4>
+  2.11.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that the service being tested registers with a lookup service belonging to multiple groups, including the <code>public</code> group.
+</p>
+<h4>
+  2.11.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.11.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  To ensure that the service being tested discovers the lookup service through multicast announcements, the test starts the service being tested and waits <code>quietTime</code> milliseconds before starting the lookup service. The lookup service belongs to three groups: the <code>public</code> group and two groups with randomly generated names. 
+</p>
+<p>
+  If the service does not register within six times <code>failureTime</code> milliseconds, the service and the lookup service are stopped and the test returns a failure status. Otherwise, the service and the lookup service are stopped but the test is repeated from the beginning two more times, with the <code>public</code> group being the second group and then the third group in the lookup service's group list. If all registration attempts succeed, the test stops and returns a pass status.
+</p>
+<h4>
+  2.11.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>DJ.2.5.5</Strong>
+  <li class="SmartList1">Test target: <Strong>Service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>3 x quietTime + 18 x failureTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.unofficialQuietTime, com.sun.jini.compat.failureTime</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.12&nbsp;&nbsp;&nbsp;MultipleRegistrationTest
+</h3>
+<h4>
+  2.12.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that the service being tested properly registers with multiple lookup services, including registering the same information (<code>ServiceID</code> and attributes) with all of the lookup services.
+</p>
+<h4>
+  2.12.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.12.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  The test starts three lookup services, all of which at least belong to the <code>public</code> group (some are in multiple groups), and then starts the service being tested. The test then waits up to twelve times <code>failureTime</code> milliseconds for the service to register in all lookup services. Finally, if the service is in all three lookup services, the test compares the <code>ServiceID</code> and the attributes that are registered with the three lookup services to make sure they are the same.
+</p>
+<p>
+  If the service does not register in all three of the lookup services, or the registration information is different between the three lookup services, then the test stops and returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.12.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>DJ.2.3.1</Strong>
+  <li class="SmartList1">Test target: <Strong>Service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>12 x failureTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.failureTime</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.13&nbsp;&nbsp;&nbsp;MultipleServiceLeaseRenewalTest
+</h3>
+<h4>
+  2.13.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that the lookup service being tested allows a service to renew a lease multiple times.
+</p>
+<h4>
+  2.13.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<p>
+  This test also assumes that lease renewal and service lookup each take less than 1/4 the granted lease duration, which is requested to be four times <code>failureTime</code> milliseconds.
+</p>
+<h4>
+  2.13.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  The test creates a test service and registers it with the lookup service being tested, requesting a lease duration of four times <code>failureTime</code> milliseconds. The test then waits for 3/4 of the granted lease duration time and renews the lease. Half way through this new lease duration, the test looks up the test service (by <code>ServiceID</code>) to make sure the service is still registered with the lookup service. The process repeats at 3/4 through the new lease duration by renewing the lease again. This renewal and lookup process happens a total of five times.
+</p>
+<p>
+  If any of the service lookups fail, the test stops and returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.13.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>LU.2.5</Strong>
+  <li class="SmartList1">Test target: <Strong>Lookup service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>17 x failureTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.failureTime</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.14&nbsp;&nbsp;&nbsp;NonPublicGroupTest
+</h3>
+<h4>
+  2.14.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that the service being tested does not register indiscriminately with a lookup service belonging to any group.
+</p>
+<h4>
+  2.14.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.14.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  To ensure that the service being tested discovers the lookup service through multicast announcements, the test starts the service being tested and waits <code>quietTime</code> milliseconds before starting the lookup service. The lookup service belongs to a group whose name is randomly generated.
+</p>
+<p>
+  If the service does register within <code>quietTime</code> milliseconds, the service and the lookup service are stopped and the test returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.14.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>DJ.2.5.5</Strong>
+  <li class="SmartList1">Test target: <Strong>Service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>2 x quietTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.unofficialQuietTime</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.15&nbsp;&nbsp;&nbsp;PublicGroupTest
+</h3>
+<h4>
+  2.15.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that the service being tested does register with a lookup service belonging to the <code>public</code> group.
+</p>
+<h4>
+  2.15.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.15.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  To ensure that the service being tested discovers the lookup service through multicast announcements, the test starts the service being tested and waits <code>quietTime</code> milliseconds before starting the lookup service. The lookup service belongs to the <code>public </code>group.
+</p>
+<p>
+  If the service does not register within six times <code>failureTime</code> milliseconds, the service and the lookup service are stopped and the test returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.15.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>DJ.2.5.5</Strong>
+  <li class="SmartList1">Test target: <Strong>Service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>quietTime + 6 x failureTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.unofficialQuietTime, com.sun.jini.compat.failureTime</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.16&nbsp;&nbsp;&nbsp;RegistrationTest
+</h3>
+<h4>
+  2.16.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that the service being tested properly registers with a lookup service that is already running and that the service's service ID conforms to the <code>ServiceID</code> specification.
+</p>
+<h4>
+  2.16.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.16.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  The test starts a lookup service, which belongs to the <code>public</code> group, and then starts the service being tested. The test then waits up to four times <code>failureTime</code> milliseconds for the service to register.
+</p>
+<p>
+  If the service does not register in the lookup service, then the test stops and returns a failure status. Otherwise, the test checks that the service's service ID conforms to the <code>ServiceID</code> specification before stopping the service and returning a pass status.
+</p>
+<h4>
+  2.16.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>DJ.2.3.1</Strong>
+  <li class="SmartList1">Test target: <Strong>Service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>4 x failureTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.failureTime</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.17&nbsp;&nbsp;&nbsp;RequestPacketTest
+</h3>
+<h4>
+  2.17.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that a program sends a properly formatted multicast request as part of the Multicast Request Protocol.
+</p>
+<h4>
+  2.17.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.17.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  The test listens to the appropriate multicast group for a multicast request from the service being tested. 
+</p>
+<p>
+  If the service does not send a multicast request within <code>failureTime</code> milliseconds, or if the service sends an improperly formatted multicast request, then the test stops and returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.17.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>DJ.2.4.4, DJ.2.3.1, DJ.5.5</Strong>
+  <li class="SmartList1">Test target: <Strong>Client, Service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Indefinite Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>failureTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.failureTime</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.18&nbsp;&nbsp;&nbsp;ServiceIDTest
+</h3>
+
+<h4>
+2.18.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that the lookup service being tested generates a service ID that conforms to the <code>ServiceID</code> specification.
+</p>
+<h4>
+  2.18.2&nbsp;&nbsp;&nbsp;Assumptions
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.18.3&nbsp;&nbsp;&nbsp;Test Design
+</h4>
+<p>
+The test checks that the service ID of the registered service returned by the lookup service conforms to the <code>ServiceID</code> specification before stopping the lookup service and returning a pass status or a failure status.
+</p>
+<h4>
+  2.18.4&nbsp;&nbsp;&nbsp;Implementation	
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>LU.2.1</Strong>
+  <li class="SmartList1">Test target: <Strong>Lookup service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>None</Strong>
+  <li class="SmartList1">Related Properties: <Strong>None</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.19&nbsp;&nbsp;&nbsp;ServiceLeaseExpirationTest
+</h3>
+<h4>
+  2.19.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that the lookup service being tested properly and promptly expires service registrations.
+</p>
+<h4>
+  2.19.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.19.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  The test creates a test service and registers it with the lookup service being tested, requesting a lease duration of <code>failureTime</code> milliseconds. The test then performs a lookup to make sure the service is registered. After waiting for the lease duration, the test uses the <code>ServiceID </code>to perform both a simple lookup and a matching lookup.
+</p>
+<p>
+  If the test service does not register with the lookup service or either lookup returns a non-null result, then the test stops and returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.19.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>LE.2.1</Strong>
+  <li class="SmartList1">Test target: <Strong>Lookup service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>failureTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.failureTime</Strong>
+</ul>
+
+<P>
+<P>
+<hr align="left" width="65%">
+<h3>
+2.20&nbsp;&nbsp;&nbsp;UnicastRequestTest
+</h3>
+<h4>
+  2.20.1&nbsp;&nbsp;&nbsp;Purpose
+</h4>
+<p>
+  The purpose of this test is to verify that a program sends a properly formatted unicast request as part of the Multicast Request Protocol.
+</p>
+<h4>
+  2.20.2&nbsp;&nbsp;&nbsp;<Strong>Assumptions</Strong>
+</h4>
+<p>
+  If the LDJ Kit and the program are run on the same machine, there should be no other Jini technology-enabled programs running on that machine. If the LDJ Kit and program are run on two different machines, there should be no other Jini technology-enabled programs running on either of these two machines.
+</p>
+<h4>
+  2.20.3&nbsp;&nbsp;&nbsp;<Strong>Test Design</Strong>
+</h4>
+<p>
+  The test listens to the appropriate multicast group for a multicast request from the service being tested. If the test receives a multicast request within <code>failureTime</code> milliseconds, it makes a socket connection back to the service as outlined in the Multicast Request Protocol. The test then listens for a unicast request on that socket.
+</p>
+<p>
+  If the service does not send a unicast request within <code>failureTime</code> milliseconds, or if the service sends an improperly formatted unicast request, then the test stops and returns a failure status. Otherwise, the test stops and returns a pass status.
+</p>
+<h4>
+  2.20.4&nbsp;&nbsp;&nbsp;<Strong>Implementation </Strong>
+</h4>
+<ul>
+  <li class="SmartList1">Introduced in: <Strong>1.0</Strong>
+  <li class="SmartList1">Last modified in:
+  <li class="SmartList1">Specification section(s) being tested: <Strong>DJ.2.3.1, DJ.2.6.4</Strong>
+  <li class="SmartList1">Test target: <Strong>Client, Service</Strong>
+  <li class="SmartList1">Possible test results: <Strong>Pass, Environment Failure, Indefinite Failure, Definite Failure</Strong>
+  <li class="SmartList1">Programmed Delays/Waits: <Strong>2 x failureTime</Strong>
+  <li class="SmartList1">Related Properties: <Strong>com.sun.jini.compat.failureTime</Strong>
+</ul>
+
+<hr>
+
+Copyright 2005, Sun Microsystems, Inc.<br>
+Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">
+Apache License, Version 2.0</a>.
+
+</body>
+</html>

Propchange: river/tck/doc/test-spec.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/doc/writing-admin.html
URL: http://svn.apache.org/viewvc/river/tck/doc/writing-admin.html?rev=1234278&view=auto
==============================================================================
--- river/tck/doc/writing-admin.html (added)
+++ river/tck/doc/writing-admin.html Sat Jan 21 07:28:27 2012
@@ -0,0 +1,164 @@
+<!--
+ ! 
+ ! Copyright 2005, Sun Microsystems, Inc.
+ ! Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">
+ ! Apache License, Version 2.0</a>.
+ ! 
+ !-->
+<HTML>
+<HEAD>
+   <TITLE>Implementing the LDJ Kit Admin Interface</TITLE>
+</HEAD>
+<BODY BGCOLOR="#FFFFFF">
+
+<H1><CENTER>Implementing the Jini Technology Lookup, Discovery, and 
+Join Compatibility Kit, v1.0 Admin Interface</CENTER></H1>
+
+<H2>Introduction</H2>
+<P>
+An "Admin" is an object that is responsible for starting and stopping the program you 
+are testing.
+If you wish to automate Jini(TM) Technology Lookup, Discovery, and Join Compatibility Kit (LDJ Kit) testing of 
+your program, you will need to implement your own, specialized Admin object to start 
+and stop your program automatically. In addition, it may be necessary to implement 
+your own Admin in certain circumstances where the supplied default Admins do not work 
+for your program.
+<P> 
+The LDJ Kit includes three default Admins (one each for clients, services, 
+and lookup services), which simply ask you to start and stop your program at the 
+times determined to be appropriate by each test. Also included are Admins written 
+for the services and lookup service contributed by Sun Microsystems, which serve 
+as examples of how to write Admins using the service starter framework. For details 
+on this framework, see the Jini API documentation, generated by the <CODE>javadoc</CODE> 
+tool, for the <CODE>com.sun.jini.start</CODE> package.
+<P>
+
+<H2>Admin Interfaces</H2>
+<P>
+There are four related Admin interfaces. Most of the interfaces have a static string 
+that is the name of the category for which the interface is used. When writing your 
+own Admin, you must implement one or more of these interfaces. The interface(s) you 
+implement must be the one(s) appropriate for your program category. 
+<P>
+<H3><CODE>BasicAdmin</CODE></H3>
+This interface is used for testing all program categories. All other Admin interfaces 
+extend from it. 
+<p>
+<blockquote><pre>
+package com.sun.jini.compat.harness;
+public interface BasicAdmin {
+    void setConfig(Config conf);
+    void start() throws RemoteException;
+    InetAddress getAddress() throws RemoteException;
+    void stop() throws RemoteException;
+}
+</blockquote></pre>
+<p>
+The methods of <CODE>BasicAdmin</CODE> are:
+<blockquote><dl>
+<li><b><CODE>setConfig</CODE>:</b> This method provides the Admin object access to the 
+<CODE>Config</CODE> object (see <a href="#ConfigObject">"<CODE>Config</CODE> Object"</a>). 
+This method is always called immediately after the Admin constructor.
+
+<li><b><CODE>start</CODE>:</b> This method starts the program being tested. The LDJ Kit 
+tests will call this method whenever they need the program started. The implementation 
+of this method should put the program in a state where it is starting to participate 
+in the Jini discovery protocols. Typically this method will call the service starter 
+framework or <CODE>Runtime.getRuntime().exec()</CODE> to start the service.
+
+<li><b><CODE>getAddress</CODE>:</b> This method should return the network address of the program or the 
+hardware on which the program is running. If a program is multi-homed, one working 
+address should be returned.  This method can only be called between the <CODE>start</CODE> and 
+<CODE>stop</CODE> methods; otherwise the behavior is undefined.
+
+<li><b><CODE>stop</CODE>:</b> This method stops the program being tested. The LDJ Kit tests will call <CODE>stop</CODE> 
+whenever they need the program stopped. The implementation of this method should 
+completely stop the program, cleaning up any state, and resetting the program to its 
+initial pre-test state.
+</blockquote></dl>
+
+<H3><CODE>BasicClientAdmin</CODE></H3>
+The <CODE>BasicClientAdmin</CODE> interface is used for testing clients and requires no additional methods.
+<p>
+<blockquote><pre>
+package com.sun.jini.compat.harness;
+public interface BasicClientAdmin extends BasicAdmin {
+    String CATEGORY = "client";
+}
+</blockquote></pre>
+<p>
+<H3><CODE>BasicServiceAdmin</CODE></H3>
+The <CODE>BasicServiceAdmin</CODE> interface is used for testing services.
+<p>
+<blockquote><pre>
+package com.sun.jini.compat.harness;
+public interface BasicServiceAdmin extends BasicAdmin {
+    String CATEGORY = "service";
+    ServiceItem pickService(ServiceItem[] services) throws RemoteException;
+    ServiceTemplate getTemplate() throws RemoteException;
+}
+</blockquote></pre>
+<p>
+The additional methods of <CODE>BasicServiceAdmin</CODE> will only be called after calls to <CODE>BasicAdmin.setConfig()</CODE> and <CODE>BasicAdmin.start()</CODE> and before a call to <CODE>BasicAdmin.stop()</CODE>.  The additional methods are: 
+<blockquote><dl>
+<li><b><CODE>pickService</CODE>:</b> Given an array of <CODE>ServiceItem</CODE> instances, this method must return the 
+<CODE>ServiceItem</CODE> of the service being tested or return <CODE>null</CODE> if the service is not 
+represented in the array.
+
+<li><b><CODE>getTemplate</CODE>:</b> This method must return a <CODE>ServiceTemplate</CODE> that matches the service being 
+tested. The template does not need to be exact, but the more exact it is, the more 
+efficient the testing will be. In fact a fully wildcarded <CODE>ServiceTemplate</CODE> is a legal return value.
+</blockquote></dl>
+
+<H3><CODE>BasicLookupAdmin</CODE></H3>
+The <CODE>BasicLookupAdmin</CODE> interface is used for testing lookup services.
+<p>
+<blockquote><pre>
+package com.sun.jini.compat.harness;
+public interface BasicLookupAdmin extends BasicAdmin {
+    String CATEGORY = "lookup";
+    ServiceRegistrar getServiceRegistrar() throws RemoteException;
+}
+</blockquote></pre>
+<p>
+The additional method of <CODE>BasicLookupAdmin</CODE> will only be called after calls to <CODE>BasicAdmin.setConfig()</CODE> and <CODE>BasicAdmin.start()</CODE> and before a call to <CODE>BasicAdmin.stop()</CODE>.  The additional method is: 
+<blockquote><dl>
+<li><b><CODE>getServiceRegistrar</CODE>:</b> This method must return the <CODE>ServiceRegistrar</CODE> of the lookup 
+service being tested.
+</blockquote></dl>
+
+<H2>Implementation Notes</H2>
+Your Admin must have either a no-argument constructor or a constructor that takes a 
+<CODE>String</CODE> object (or both). The string is provided from the property 
+<CODE>com.sun.jini.compat.adminArg</CODE>. If this property is not set, the no-argument constructor 
+is used. If the <CODE>adminArg</CODE> property is set, the constructor that accepts a <CODE>String</CODE> 
+argument is used. If there is no constructor that takes a string and the <CODE>adminArg</CODE> 
+property is set, the LDJ Kit will throw <CODE>java.lang.Exception</CODE> and halt execution.
+<p>
+<b>Your Admin must not start your program in the same virtual machine for the Java(TM) platform (VM) as the LDJ Kit.</b> Starting 
+a program in the same VM as the LDJ Kit will likely cause the <code>CodeDownloadTest</code>
+to fail.
+<p>
+<b>Do not call <CODE>System.exit()</CODE> in your Admin implementation.</b> 
+Calling this method will stop the LDJ Kit prematurely.
+
+<H2><a name="ConfigObject"></a><CODE>Config</CODE> Object</H2>
+The <CODE>com.sun.jini.compat.harness.Config</CODE> object (<CODE>Config</CODE> Object) passed to the <CODE>BasicAdmin.setConfig()</CODE> 
+method gives you access to LDJ Kit objects.  The most useful of these objects, <CODE>com.sun.jini.compat.harness.SysConfig</CODE>, is returned by
+the <CODE>Config</CODE> object's <CODE>getSysConfig()</CODE> method and gives you access to LDJ Kit configuration properties found on the LDJ Kit command line and in the LDJ Kit property file. The LDJ Kit API documentation for <CODE>com.sun.jini.compat.harness.Config</CODE>, generated by the <CODE>javadoc</CODE> tool, describes its other methods.
+
+<h2>Using Your Admin</h2>
+The name of your Admin class is specified either by the <CODE>com.sun.jini.compat.adminClass</CODE> property 
+in the LDJ Kit configuration file or on the LDJ Kit command line.  Naturally, this class and 
+any classes it needs must be in the LDJ Kit's classpath. If the Admin object you specify 
+does not implement the appropriate Admin interface for the test category you specify, 
+the LDJ Kit will not run any tests.
+<p>
+<hr>
+
+Copyright 2005, Sun Microsystems, Inc.<br>
+Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">
+Apache License, Version 2.0</a>.
+
+</BODY>
+</HTML>

Propchange: river/tck/doc/writing-admin.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/index.html
URL: http://svn.apache.org/viewvc/river/tck/index.html?rev=1234278&view=auto
==============================================================================
--- river/tck/index.html (added)
+++ river/tck/index.html Sat Jan 21 07:28:27 2012
@@ -0,0 +1,75 @@
+<!--
+ ! 
+ ! Copyright 2005, Sun Microsystems, Inc.
+ ! Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">
+ ! Apache License, Version 2.0</a>.
+ ! 
+ !-->
+<body text="#000000" bgcolor="#ffffff" link="#9b37cc"
+      vlink="#cc1877" alink="#ffffff">
+
+<title>Jini(TM) Technology Lookup, Discovery, and Join Compatibility Kit Index</title>
+
+<center><h1>Jini(TM) Technology Lookup, Discovery, and Join 
+Compatibility Kit<br>
+v1.0</h1></center>
+<hr>
+<p>The Jini(TM) Technology Lookup, Discovery, and Join
+Compatibility Kit (LDJ Kit), produced by Sun Microsystems, Inc.,
+is a freely available code and documentation bundle that can be used
+to qualify certain characteristics of hardware or software based on Jini network
+technology (Jini technology).
+<p>
+The purpose of compatibility testing is to ensure that programs 
+are good citizens in the environment of Jini
+technology-enabled services and/or devices (good lookup citizens). To
+be a good lookup citizen, a program must interoperate with other good
+lookup citizens and behave in a way that doesn't cause trouble for the
+rest of the networks, such as swamping a network with too much traffic.
+The rules of good citizenship are detailed in the Jini technology
+specifications and are, to a lesser extent, codified in the LDJ Kit.
+<p>
+The LDJ Kit software consists of a test framework and a set of tests that
+verify that a Jini technology-enabled program meets certain aspects of the core
+specifications. Note that a single LDJ Kit installation can test clients,
+services, and lookup services.<p>
+<p>
+This kit may <b>not</b> be used to fulfill
+any compliance requirements for code licensed under the
+Sun Community Source License v3.0/Jini Technology Specific
+Attachment v1.0 (SCSL3/Jini TSA 1.0).
+<ul>
+<p>
+<li><B><a href="doc/faq.html">Frequently Asked Questions</a></B>
+<p>
+<li><B><a href="doc/installation.html">Installing the LDJ Kit</a></B>
+<p>
+<li><B><a href="doc/running.html">Running the LDJ Kit</a></B>
+<p>
+<li><B><a href="doc/commandline.html">Command-line Usage</a></B>
+<p>
+<li><B><a href="doc/passing.html">Passing the LDJ Kit</a></B>
+<p>
+<li><B><a href="doc/writing-admin.html">Implementing LDJ Kit Admin Interface</a></B>
+<p>
+<li><B><a href="doc/release-notes.html">Release Notes</a></B>
+<p>
+<li><B><a href="doc/test-spec.html">Test Descriptions</a></B>
+<p>
+<li><B>API documentation</B> 
+	<UL>
+	<LI><a href="doc/api/index.html">Frames version</a>
+	<LI><a href="doc/api/overview-summary.html">No Frames version</a>
+	</UL>
+<p>
+</ul>
+
+<p>
+<hr>
+Copyright 2005, Sun Microsystems, Inc.<br>
+Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">
+Apache License, Version 2.0</a>.
+
+</body>
+</html>
+

Propchange: river/tck/index.html
------------------------------------------------------------------------------
    svn:eol-style = native