-
The tests attempt to launch MySQL on the port 3336. If you
have a MySQL running, it may conflict, but this isn't very
likely because the default port for MySQL is 3306. However,
You may set the "c-mxj_test_port" Java property to a port of
your choosing. Alternatively, you may wish to start by
shutting down any instances of MySQL you have running on the
target machine.
The tests surpress 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 junit.textui.TestRunner 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.