From 96e4eed018bf6b287927c9576e393bda83899b0f Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Tue, 13 Nov 2012 11:41:08 +0400 Subject: [PATCH] Logcat message for disabled test cases added. --- modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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!"); } } -- 2.7.4