From: Alexander Smorkalov Date: Tue, 13 Nov 2012 07:41:08 +0000 (+0400) Subject: Logcat message for disabled test cases added. X-Git-Tag: submit/tizen_ivi/20141117.190038~2^2~1248^4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96e4eed018bf6b287927c9576e393bda83899b0f;p=profile%2Fivi%2Fopencv.git Logcat message for disabled test cases added. --- diff --git a/modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java b/modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java index 71e8284..b24d858 100644 --- a/modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java +++ b/modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java @@ -23,8 +23,9 @@ import org.opencv.features2d.DMatch; import org.opencv.features2d.KeyPoint; import org.opencv.highgui.Highgui; -public class OpenCVTestCase extends TestCase { +import android.util.Log; +public class OpenCVTestCase extends TestCase { //change to 'true' to unblock fail on fail("Not yet implemented") public static final boolean passNYI = true; @@ -34,6 +35,8 @@ public class OpenCVTestCase extends TestCase { protected static final double EPS = 0.001; protected static final double weakEPS = 0.5; + private static final String TAG = "OpenCVTestCase"; + protected Mat dst; protected Mat truth; @@ -180,6 +183,8 @@ public class OpenCVTestCase extends TestCase { // Do nothing if the precondition does not hold. if (isTestCaseEnabled) { super.runTest(); + } else { + Log.e(TAG, "Test case \"" + this.getClass().getName() + "\" disabled!"); } }