Commit a68d0278 authored by Andrey Pavlenko's avatar Andrey Pavlenko

Java API: fixing tests compatibility with API level 8

parent d1a8f562
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"adb shell am instrument -w org.opencv.test/android.test.InstrumentationTestRunner" "adb shell am instrument -w org.opencv.test/android.test.InstrumentationTestRunner"
--> -->
<instrumentation android:name="android.test.InstrumentationTestRunner" <instrumentation android:name="android.test.InstrumentationTestRunner"
android:targetPackage="org.opencv.test" android:targetPackage="org.opencv"
android:label="Tests for org.opencv"/> android:label="Tests for org.opencv"/>
<uses-permission android:name="android.permission.CAMERA"/> <uses-permission android:name="android.permission.CAMERA"/>
......
...@@ -214,7 +214,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase { ...@@ -214,7 +214,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
matcher.match(query, matches, Arrays.asList(mask)); matcher.match(query, matches, Arrays.asList(mask));
assertArrayDMatchEquals(Arrays.copyOfRange(truth, 0, 2), matches.toArray(), EPS); assertListDMatchEquals(Arrays.asList(truth[0], truth[1]), matches.toList(), EPS);
} }
public void testMatchMatMatListOfDMatch() { public void testMatchMatMatListOfDMatch() {
...@@ -239,7 +239,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase { ...@@ -239,7 +239,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
matcher.match(query, train, matches, mask); matcher.match(query, train, matches, mask);
assertArrayDMatchEquals(Arrays.copyOfRange(truth, 0, 2), matches.toArray(), EPS); assertListDMatchEquals(Arrays.asList(truth[0], truth[1]), matches.toList(), EPS);
} }
public void testRadiusMatchMatListOfListOfDMatchFloat() { public void testRadiusMatchMatListOfListOfDMatchFloat() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment