alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (testcases)

This example Java source code file (testcases) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

fixme, hostidentifer, hostidentifier, hostidentifierinput, resolved, vmidentifier, vmidentifierinput, vmidentifiertests

The testcases Java example source code

<VmIdentifierTests>

<testcase id="0" VmIdentifierInput="0">
<description>
pid resolved to local protocol on local host.
</description>
<VmIdentifier> //0 
<HostIdentifier> local://localhost 
<Resolved> local://0@localhost 
</testcase>

<testcase id="1" VmIdentifierInput="//0">
<description>
//pid resolved to local protocol on local host
</description>
<VmIdentifier> //0 
<HostIdentifier> local://localhost 
<Resolved> local://0@localhost 
</testcase>

<testcase id="2" VmIdentifierInput="local://0">
<description>
local://pid resolved to local protocol on local host
</description>
<VmIdentifier> local://0 
<HostIdentifier> local://localhost 
<Resolved> local://0@localhost 
</testcase>

<testcase id="3" VmIdentifierInput="//0@localhost">
<description>
//pid@localhost resolved to rmi protocol on local host
</description>
<VmIdentifier> //0@localhost 
<HostIdentifier> rmi://localhost 
<Resolved> rmi://0@localhost 
</testcase>

<testcase id="4" VmIdentifierInput="local://0@localhost">
<description>
local://pid@localhost resolved to local protocol on local host
</description>
<VmIdentifier> local://0@localhost 
<HostIdentifier> local://localhost 
<Resolved> local://0@localhost 
</testcase>


/* START dotted ip address tests */

<testcase id="5" VmIdentifierInput="0@10.0.0.1">
<description>
pid@dotted_ip_address resolved to rmi protocol on specified ip
</description>
<VmIdentifier> //0@10.0.0.1 
<HostIdentifier> rmi://10.0.0.1 
<Resolved> rmi://0@10.0.0.1 
</testcase>

<testcase id="6" VmIdentifierInput="//0@10.0.0.1">
<description>
//pid@dotted_ip_address resolved to rmi protocol on specified ip
</description>
<VmIdentifier> //0@10.0.0.1 
<HostIdentifier> rmi://10.0.0.1 
<Resolved> rmi://0@10.0.0.1 
</testcase>

<testcase id="7" VmIdentifierInput="rmi://0@10.0.0.1">
<description>
rmi://pid@dotted_ip_address resolved to rmi protocol on specified ip
</description>
<VmIdentifier> rmi://0@10.0.0.1 
<HostIdentifier> rmi://10.0.0.1 
<Resolved> rmi://0@10.0.0.1 
</testcase>

<testcase id="8" VmIdentifierInput="0@10.0.0.1:1099">
<description>
pid@dotted_ip_address:port resolved to rmi protocol on specified host:port
</description>
<VmIdentifier> //0@10.0.0.1:1099 
<HostIdentifier> rmi://10.0.0.1:1099  /* FIXME - verify */
<Resolved> rmi://0@10.0.0.1:1099 
</testcase>

<testcase id="9" VmIdentifierInput="//0@10.0.0.1:1098">
<description>
//pid@dotted_ip_address:port resolved to rmi protocol on specified host:port
</description>
<VmIdentifier> //0@10.0.0.1:1098 
<HostIdentifier> rmi://10.0.0.1:1098  /* FIXME - verify */
<Resolved> rmi://0@10.0.0.1:1098 
</testcase>

<testcase id="10" VmIdentifierInput="rmi://0@10.0.0.1:1112">
<description>
rmi://pid@dotted_ip_address:port resolved to rmi protocol on specified host:port
</description>
<VmIdentifier> rmi://0@10.0.0.1:1112 
<HostIdentifier> rmi://10.0.0.1:1112  /* FIXME - verify */
<Resolved> rmi://0@10.0.0.1:1112 
</testcase>

<testcase id="11" VmIdentifierInput="0@10.0.0.1:1099/HotSpotPerfAgent">
<description>
pid@dotted_ip_address:port/path resolved to rmi protocol on specified
host:port with specified path.
</description>
<VmIdentifier> //0@10.0.0.1:1099/HotSpotPerfAgent 
<HostIdentifier> rmi://10.0.0.1:1099/HotSpotPerfAgent 
<Resolved> rmi://0@10.0.0.1:1099/HotSpotPerfAgent 
</testcase>

<testcase id="12" VmIdentifierInput="//0@10.0.0.1:1099/HotSpotPerfAgent">
<description>
//pid@dotted_ip_address:port/path resolved to rmi protocol on specified
host:port with specified path.
</description>
<VmIdentifier> //0@10.0.0.1:1099/HotSpotPerfAgent 
<HostIdentifier> rmi://10.0.0.1:1099/HotSpotPerfAgent 
<Resolved> rmi://0@10.0.0.1:1099/HotSpotPerfAgent 
</testcase>

<testcase id="13" VmIdentifierInput="rmi://0@10.0.0.1:1099/HotSpotPerfAgent">
<description>
rmi://pid@dotted_ip_address:port/path resolved to rmi protocol on
specified host:port with specified path.
</description>
<VmIdentifier> rmi://0@10.0.0.1:1099/HotSpotPerfAgent 
<HostIdentifier> rmi://10.0.0.1:1099/HotSpotPerfAgent 
<Resolved> rmi://0@10.0.0.1:1099/HotSpotPerfAgent 
</testcase>

<testcase id="14" VmIdentifierInput="0@10.0.0.1:1099?interval=1234">
<description>
pid@dotted_ip_address:port?query resolved to rmi protocol on
specified host:port with specified query string.
</description>
<VmIdentifier> //0@10.0.0.1:1099?interval=1234 
<HostIdentifier> rmi://10.0.0.1:1099?interval=1234 
<Resolved> rmi://0@10.0.0.1:1099?interval=1234 
</testcase>

<testcase id="15" VmIdentifierInput="//0@10.0.0.1:1099?interval=1234">
<description>
//pid@dotted_ip_address:port?query resolved to rmi protocol on
specified host:port with specified query string.
</description>
<VmIdentifier> //0@10.0.0.1:1099?interval=1234 
<HostIdentifier> rmi://10.0.0.1:1099?interval=1234 
<Resolved> rmi://0@10.0.0.1:1099?interval=1234 
</testcase>

<testcase id="16" VmIdentifierInput="rmi://0@10.0.0.1:1099?interval=1234">
<description>
rmi://pid@dotted_ip_address:port?query resolved to rmi protocol on
specified host:port with specified query string.
</description>
<VmIdentifier> rmi://0@10.0.0.1:1099?interval=1234 
<HostIdentifier> rmi://10.0.0.1:1099?interval=1234 
<Resolved> rmi://0@10.0.0.1:1099?interval=1234 
</testcase>

<testcase id="17" VmIdentifierInput="0@10.0.0.1:1099#frag">
<description>
pid@dotted_ip_address:port#frag resolved to rmi protocol on
 specified host:port with specified fragment string.
</description>
<VmIdentifier> //0@10.0.0.1:1099#frag 
<HostIdentifier> rmi://10.0.0.1:1099#frag 
<Resolved> rmi://0@10.0.0.1:1099#frag 
</testcase>

<testcase id="18" VmIdentifierInput="//0@10.0.0.1:1099#frag">
<description>
//pid@dotted_ip_address:port#frag resolved to rmi protocol on
specified host:port with specified fragment string.
</description>
<VmIdentifier> //0@10.0.0.1:1099#frag 
<HostIdentifier> rmi://10.0.0.1:1099#frag 
<Resolved> rmi://0@10.0.0.1:1099#frag 
</testcase>

<testcase id="19" VmIdentifierInput="rmi://0@10.0.0.1:1099#frag">
<description>
rmi://pid@dotted_ip_address:port#frag resolved to rmi protocol
on specified host:port with specified fragment string.
</description>
<VmIdentifier> rmi://0@10.0.0.1:1099#frag 
<HostIdentifier> rmi://10.0.0.1:1099#frag 
<Resolved> rmi://0@10.0.0.1:1099#frag 
</testcase>

/* END dotted ip address tests */

/* START hostname tests */

<testcase id="20" VmIdentifierInput="0@hostname">
<description>
pid@hostname resolved to rmi protocol on specified host
</description>
<VmIdentifier> //0@hostname 
<HostIdentifier> rmi://hostname 
<Resolved> rmi://0@hostname 
</testcase>

<testcase id="21" VmIdentifierInput="//0@hostname">
<description>
//pid@hostname resolved to rmi protocol on specified host
</description>
<VmIdentifier> //0@hostname 
<HostIdentifier> rmi://hostname 
<Resolved> rmi://0@hostname 
</testcase>

<testcase id="22" VmIdentifierInput="rmi://0@hostname">
<description>
rmi://pid@hostname resolved to rmi protocol on specified host
</description>
<VmIdentifier> rmi://0@hostname 
<HostIdentifier> rmi://hostname  /* FIXME - verify */
<Resolved> rmi://0@hostname 
</testcase>

<testcase id="23" VmIdentifierInput="0@hostname:1099">
<description>
pid@hostname:port resolved to rmi protocol on specified host:port
</description>
<VmIdentifier> //0@hostname:1099 
<HostIdentifier> rmi://hostname:1099  /* FIXME - verify */
<Resolved> rmi://0@hostname:1099 
</testcase>

<testcase id="24" VmIdentifierInput="//0@hostname:1099">
<description>
//pid@hostname:port resolved to rmi protocol on specified host:port
</description>
<VmIdentifier> //0@hostname:1099 
<HostIdentifier> rmi://hostname:1099  /* FIXME - verify */
<Resolved> rmi://0@hostname:1099 
</testcase>

<testcase id="25" VmIdentifierInput="rmi://0@hostname:1099">
<description>
rmi://pid@hostname:port resolved to rmi protocol on specified host:port
</description>
<VmIdentifier> rmi://0@hostname:1099 
<HostIdentifier> rmi://hostname:1099 
<Resolved> rmi://0@hostname:1099 
</testcase>

<testcase id="26" VmIdentifierInput="0@hostname:1099/HotSpotPerfAgent">
<description>
pid@hostname:port/path resolved to rmi protocol on specified host:port
with specified path.
</description>
<VmIdentifier> //0@hostname:1099/HotSpotPerfAgent 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent 
</testcase>

<testcase id="27" VmIdentifierInput="//0@hostname:1099/HotSpotPerfAgent">
<description>
//pid@hostname:port/path resolved to rmi protocol on specified host:port
with specified path.
</description>
<VmIdentifier> //0@hostname:1099/HotSpotPerfAgent 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent 
</testcase>

<testcase id="28" VmIdentifierInput="rmi://0@hostname:1099/HotSpotPerfAgent">
<description>
rmi://pid@hostname:port/path resolved to rmi protocol on specified host:port
with specified path.
</description>
<VmIdentifier> rmi://0@hostname:1099/HotSpotPerfAgent 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent 
</testcase>

<testcase id="29" VmIdentifierInput="0@hostname:1099?interval=1234">
<description>
pid@hostname:port?query resolved to rmi protocol on specified host:port
with specified query string.
</description>
<VmIdentifier> //0@hostname:1099?interval=1234 
<HostIdentifier> rmi://hostname:1099?interval=1234 
<Resolved> rmi://0@hostname:1099?interval=1234 
</testcase>

<testcase id="30" VmIdentifierInput="//0@hostname:1099?interval=1234">
<description>
//pid@hostname:port?query resolved to rmi protocol on specified host:port
with specified query string.
</description>
<VmIdentifier> //0@hostname:1099?interval=1234 
<HostIdentifier> rmi://hostname:1099?interval=1234 
<Resolved> rmi://0@hostname:1099?interval=1234 
</testcase>

<testcase id="31" VmIdentifierInput="rmi://0@hostname:1099?interval=1234">
<description>
rmi://pid@hostname:port?query resolved to rmi protocol on specified host:port
with specified query string.
</description>
<VmIdentifier> rmi://0@hostname:1099?interval=1234 
<HostIdentifier> rmi://hostname:1099?interval=1234 
<Resolved> rmi://0@hostname:1099?interval=1234 
</testcase>

<testcase id="32" VmIdentifierInput="0@hostname:1099#frag">
<description>
pid@hostname:port#frag resolved to rmi protocol on specified host:port
with specified fragment string.
</description>
<VmIdentifier> //0@hostname:1099#frag 
<HostIdentifier> rmi://hostname:1099#frag 
<Resolved> rmi://0@hostname:1099#frag 
</testcase>

<testcase id="33" VmIdentifierInput="//0@hostname:1099#frag">
<description>
//pid@hostname:port#frag resolved to rmi protocol on specified host:port
with specified fragment string.
</description>
<VmIdentifier> //0@hostname:1099#frag 
<HostIdentifier> rmi://hostname:1099#frag 
<Resolved> rmi://0@hostname:1099#frag 
</testcase>

<testcase id="34" VmIdentifierInput="rmi://0@hostname:1099#frag">
<description>
rmi://pid@hostname:port#frag resolved to rmi protocol on specified host:port
with specified fragment string.
</description>
<VmIdentifier> rmi://0@hostname:1099#frag 
<HostIdentifier> rmi://hostname:1099#frag 
<Resolved> rmi://0@hostname:1099#frag 
</testcase>

/* the remainder of the hostname tests don't have corresponding
 * dotted-ip-address tests. 
 *

<testcase id="35" VmIdentifierInput="0@hostname:1099/HotSpotPerfAgent?interval=200">
<description>
pid@hostname:port/path?query resolved to rmi protocol on specified
host:port with specified path and query string.
</description>
<VmIdentifier> //0@hostname:1099/HotSpotPerfAgent?interval=200 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent?interval=200 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200 
</testcase>

<testcase id="36" VmIdentifierInput="//0@hostname:1099/HotSpotPerfAgent?interval=200">
<description>
//pid@hostname:port/path?query resolved to rmi protocol on specified
host:port with specified path and query string.
</description>
<VmIdentifier> //0@hostname:1099/HotSpotPerfAgent?interval=200 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent?interval=200 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200 
</testcase>

<testcase id="37" VmIdentifierInput="rmi://0@hostname:1099/HotSpotPerfAgent?interval=200">
<description>
rmi://pid@hostname:port/path?query resolved to rmi protocol on specified
host:port with specified path and query string.
</description>
<VmIdentifier> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent?interval=200 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200 
</testcase>

<testcase id="38" VmIdentifierInput="0@hostname:1099/HotSpotPerfAgent#frag">
<description>
pid@hostname:port/path#frag resolved to rmi protocol on specified
host:port with specified path and frag string.
</description>
<VmIdentifier> //0@hostname:1099/HotSpotPerfAgent#frag 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent#frag 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent#frag 
</testcase>

<testcase id="39" VmIdentifierInput="//0@hostname:1099/HotSpotPerfAgent#frag">
<description>
//pid@hostname:port/path#frag resolved to rmi protocol on specified
host:port with specified path and frag string.
</description>
<VmIdentifier> //0@hostname:1099/HotSpotPerfAgent#frag 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent#frag 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent#frag 
</testcase>

<testcase id="40" VmIdentifierInput="rmi://0@hostname:1099/HotSpotPerfAgent#frag">
<description>
rmi://pid@hostname:port/path#frag resolved to rmi protocol on specified
host:port with specified path and frag string.
</description>
<VmIdentifier> rmi://0@hostname:1099/HotSpotPerfAgent#frag 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent#frag 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent#frag 
</testcase>

<testcase id="41" VmIdentifierInput="0@hostname:1099/HotSpotPerfAgent?interval=200#frag">
<description>
pid@hostname:port/path?query#frag resolved to rmi protocol on specified
host:port with specified path, query, and frag string.
</description>
<VmIdentifier> //0@hostname:1099/HotSpotPerfAgent?interval=200#frag 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent?interval=200#frag 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200#frag 
</testcase>

<testcase id="42" VmIdentifierInput="//0@hostname:1099/HotSpotPerfAgent?interval=200#frag">
<description>
//pid@hostname:port/path?query#frag resolved to rmi protocol on specified
host:port with specified path, query, and frag string.
</description>
<VmIdentifier> //0@hostname:1099/HotSpotPerfAgent?interval=200#frag 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent?interval=200#frag 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200#frag 
</testcase>

<testcase id="43" VmIdentifierInput="rmi://0@hostname:1099/HotSpotPerfAgent?interval=200#frag">
<description>
rmi://pid@hostname:port/path?query#frag resolved to rmi protocol on specified
host:port with specified path, query, and frag string.
</description>
<VmIdentifier> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200#frag 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent?interval=200#frag 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200#frag 
</testcase>

<testcase id="44" VmIdentifierInput="0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw">
<description>
pid@hostname:port/path?query resolved to rmi protocol on specified
host:port with specified path and multiple query string args.
</description>
<VmIdentifier> //0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent?interval=200+mode=rw 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw 
</testcase>

<testcase id="45" VmIdentifierInput="//0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw">
<description>
//pid@hostname:port/path?query resolved to rmi protocol on specified
host:port with specified path and multiple query string args.
</description>
<VmIdentifier> //0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent?interval=200+mode=rw 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw 
</testcase>

<testcase id="46" VmIdentifierInput="rmi://0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw">
<description>
rmi://pid@hostname:port/path?query resolved to rmi protocol on specified
host:port with specified path and multiple query string args.
</description>
<VmIdentifier> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent?interval=200+mode=rw 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw 
</testcase>

<testcase id="47" VmIdentifierInput="0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw#frag">
<description>
pid@hostname:port/path?query#frag resolved to rmi protocol on specified
host:port with specified path, multiple query string args, and a frag.
</description>
<VmIdentifier> //0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw#frag 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent?interval=200+mode=rw#frag 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw#frag 
</testcase>

<testcase id="48" VmIdentifierInput="//0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw#frag">
<description>
//pid@hostname:port/path?query resolved to rmi protocol on specified
host:port with specified path, multiple query string args, and a frag.
</description>
<VmIdentifier> //0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw#frag 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent?interval=200+mode=rw#frag 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw#frag 
</testcase>

<testcase id="49" VmIdentifierInput="rmi://0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw#frag">
<description>
rmi://pid@hostname:port/path?query resolved to rmi protocol on specified
host:port with specified path,and multiple query string args, and a frag.
</description>
<VmIdentifier> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw#frag 
<HostIdentifier> rmi://hostname:1099/HotSpotPerfAgent?interval=200+mode=rw#frag 
<Resolved> rmi://0@hostname:1099/HotSpotPerfAgent?interval=200+mode=rw#frag 
</testcase>

/* END hostname tests */

/* START protocol override tests */

<testcase id="50" VmIdentifierInput="rmi://0">
<description>
rmi://pid overrides local protocol on localhost
</description>
<VmIdentifier> rmi://0 
<HostIdentifier> rmi://localhost 
<Resolved> rmi://0@localhost 
</testcase>

<testcase id="51" VmIdentifierInput="xyz://0">
<description>
protocol://pid overrides local protocol on localhost 
</description>
<VmIdentifier> xyz://0 
<HostIdentifier> xyz://localhost 
<Resolved> xyz://0@localhost 
</testcase>

<testcase id="52" VmIdentifierInput="xyz://0@10.0.0.1">
<description>
protocol://pid@dotted_ip_address overrides rmi protocol on specified address 
</description>
<VmIdentifier> xyz://0@10.0.0.1 
<HostIdentifier> xyz://10.0.0.1 
<Resolved> xyz://0@10.0.0.1 
</testcase>

<testcase id="53" VmIdentifierInput="xyz://0@hostname">
<description>
protocol://pid@hostname overrides rmi protocol on specified host 
</description>
<VmIdentifier> xyz://0@hostname 
<HostIdentifier> xyz://hostname 
<Resolved> xyz://0@hostname 
</testcase>

/* END protocol override tests */

/* START file:// URI tests */

<testcase id="54" VmIdentifierInput="file:///tmp/hsperfdata_123">
<description>
file://path_to_file (note, file:///path/to/file)
FIXME - verify: proven to work on unix
</description>
<VmIdentifier> file:///tmp/hsperfdata_123 
<HostIdentifier> file://localhost 
<Resolved> file:///tmp/hsperfdata_123 
</testcase>

<testcase id="55" VmIdentifierInput="file:/tmp/hsperfdata_123">
<description>
file:path_to_file (note, file:/path/to/file)
FIXME - verify: proven to work on unix
</description>
<VmIdentifier> file:/tmp/hsperfdata_123 
<HostIdentifier> file://localhost 
<Resolved> file:/tmp/hsperfdata_123 
</testcase>

/* END file:// URI tests */

/* Resolver tests */

<testcase id="56" VmIdentifierInput="0" HostIdentifierInput="rmi://localhost">
<description>
pid resolved to prototol and host specified in given HostIdentifer
</description>
<VmIdentifier> //0 
<HostIdentifier> rmi://localhost 
<Resolved> rmi://0@localhost 
</testcase>

<testcase id="57" VmIdentifierInput="0@hostname:1199" HostIdentifierInput="rmi://localhost">
<description>
pid@hostname:port resolved to HostIdentifier protocol, but VmIdentifier host and port 
</description>
<VmIdentifier> //0@hostname:1199 
<HostIdentifier> rmi://localhost 
<Resolved> rmi://0@hostname:1199 
</testcase>

<testcase id="58" VmIdentifierInput="0@hostname" HostIdentifierInput="rmi://localhost:1399">
<description>
pid@hostname resolved to HostIdentifier protocol and port, but VmIdentifier host
</description>
<VmIdentifier> //0@hostname 
<HostIdentifier> rmi://localhost:1399 
<Resolved> rmi://0@hostname:1399 
</testcase>

<testcase id="59" VmIdentifierInput="0" HostIdentifierInput="rmi://hostname">
<description>
pid resolved to prototol and host specified in given HostIdentifer
</description>
<VmIdentifier> //0 
<HostIdentifier> rmi://hostname 
<Resolved> rmi://0@hostname 
</testcase>

<testcase id="60" VmIdentifierInput="0" HostIdentifierInput="rmi://hostname:1332/HotSpotPerfAgent">
<description>
pid resolved to prototol and host specified in given HostIdentifer
</description>
<VmIdentifier> //0 
<HostIdentifier> rmi://hostname:1332/HotSpotPerfAgent 
<Resolved> rmi://0@hostname:1332/HotSpotPerfAgent 
</testcase>

<testcase id="61" VmIdentifierInput="0@hostname:1331" HostIdentifierInput="rmi://hostname:1332/HotSpotPerfAgent">
<description>
pid resolved to prototol and host specified in given HostIdentifer
</description>
<VmIdentifier> //0@hostname:1331 
<HostIdentifier> rmi://hostname:1332/HotSpotPerfAgent 
<Resolved> rmi://0@hostname:1331/HotSpotPerfAgent 
</testcase>

<testcase id="62" VmIdentifierInput="0@hostname:1331/HotSpotPerfAgent2" HostIdentifierInput="rmi://hostname:1332/HotSpotPerfAgent">
<description>
pid resolved to prototol and host specified in given HostIdentifer
</description>
<VmIdentifier> //0@hostname:1331/HotSpotPerfAgent2 
<HostIdentifier> rmi://hostname:1332/HotSpotPerfAgent 
<Resolved> rmi://0@hostname:1331/HotSpotPerfAgent2 
</testcase>

<testcase id="63" VmIdentifierInput="0@hostname:1331/HotSpotPerfAgent2?interval=250" HostIdentifierInput="rmi://hostname:1332/HotSpotPerfAgent">
<description>
pid resolved to prototol and host specified in given HostIdentifer
</description>
<VmIdentifier> //0@hostname:1331/HotSpotPerfAgent2?interval=250 
<HostIdentifier> rmi://hostname:1332/HotSpotPerfAgent 
<Resolved> rmi://0@hostname:1331/HotSpotPerfAgent2?interval=250 
</testcase>

<testcase id="64" VmIdentifierInput="0@hostname:1331/HotSpotPerfAgent2?interval=250" HostIdentifierInput="rmi://hostname:1332/HotSpotPerfAgent?interval=200">
<description>
pid resolved to prototol and host specified in given HostIdentifer
</description>
<VmIdentifier> //0@hostname:1331/HotSpotPerfAgent2?interval=250 
<HostIdentifier> rmi://hostname:1332/HotSpotPerfAgent?interval=200 
<Resolved> rmi://0@hostname:1331/HotSpotPerfAgent2?interval=250 
</testcase>

<testcase id="65" VmIdentifierInput="0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw" HostIdentifierInput="rmi://hostname:1332/HotSpotPerfAgent?interval=200">
<description>
pid resolved to prototol and host specified in given HostIdentifer
</description>
<VmIdentifier> //0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw 
<HostIdentifier> rmi://hostname:1332/HotSpotPerfAgent?interval=200 
<Resolved> rmi://0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw 
</testcase>

<testcase id="66" VmIdentifierInput="0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw" HostIdentifierInput="rmi://hostname:1332/HotSpotPerfAgent?interval=200+mode=r">
<description>
pid resolved to prototol and host specified in given HostIdentifer
</description>
<VmIdentifier> //0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw 
<HostIdentifier> rmi://hostname:1332/HotSpotPerfAgent?interval=200+mode=r 
<Resolved> rmi://0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw 
</testcase>

<testcase id="67" VmIdentifierInput="0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw#frag2" HostIdentifierInput="rmi://hostname:1332/HotSpotPerfAgent?interval=200+mode=r">
<description>
pid resolved to prototol and host specified in given HostIdentifer
</description>
<VmIdentifier> //0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw#frag2 
<HostIdentifier> rmi://hostname:1332/HotSpotPerfAgent?interval=200+mode=r 
<Resolved> rmi://0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw#frag2 
</testcase>

<testcase id="68" VmIdentifierInput="0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw#frag2" HostIdentifierInput="rmi://hostname:1332/HotSpotPerfAgent?interval=200+mode=r#frag">
<description>
pid resolved to prototol and host specified in given HostIdentifer
</description>
<VmIdentifier> //0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw#frag2 
<HostIdentifier> rmi://hostname:1332/HotSpotPerfAgent?interval=200+mode=r#frag 
<Resolved> rmi://0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw#frag2 
</testcase>

<testcase id="70" VmIdentifierInput="xyz:0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw#frag2" HostIdentifierInput="rmi://hostname:1332/HotSpotPerfAgent?interval=200+mode=r#frag">
<description>
pid resolved to prototol and host specified in given HostIdentifer
</description>
<VmIdentifier> xyz://0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw#frag2 
<HostIdentifier> rmi://hostname:1332/HotSpotPerfAgent?interval=200+mode=r#frag 
<Resolved> xyz://0@hostname:1331/HotSpotPerfAgent2?interval=250+mode=rw#frag2 
</testcase>

</VmIdentifierTests>

Other Java examples (source code examples)

Here is a short list of links related to this Java testcases source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.