Itseez/opencv — pull request #3237 by mshabunin (2014-09-19 08:46:58+00:00)
Title: Changed java tests detection procedure

New behavior:
* java tests will be active only if java module is built and all tested modules (provided in list) are built
* java tests state can be probed by checking `opencv_test_java_BINARY_DIR` existence

Old behavior was:
* java tests where turned off in case when optional java dependencies where missing
* cmake showed `JAVA TESTS: ON` even if tests are disabled