The tests attempt to launch MySQL on the port 3336. That
MySQL instance is unlikely to conflict with another MySQL
server on the same machine, because the default port for
MySQL is 3306. If you do encounter a port conflict, either
set the c-mxj_test_port Java property
to a port of your choosing, or shut down any instances of
MySQL you have running on the target machine.
The tests suppress output to the console by default. For
verbose output, you may set the
c-mxj_test_silent Java property to
false.
To run the JUnit test suite, the
$CLASSPATH must include the following:
JUnit
JMX
Connector/J
MySQL Connector/MXJ
If connector-mxj.jar is not present
in your download, unzip MySQL Connector/MXJ source
archive.
cd mysqldjmx
ant dist
Then add
$TEMP/cmxj/stage/connector-mxj/connector-mxj.jar
to the CLASSPATH.
If you have junit, execute the unit
tests. From the command line, type:
java com.mysql.management.AllTestsSuite
The output should look something like this:
......................................... ......................................... .......... Time: 259.438 OK (101 tests)
Note that the tests are a bit slow near the end, so please be patient.

User Comments
Add your own comment.