From 4902db1c42a5ee268e661a9049eec306bae76b93 Mon Sep 17 00:00:00 2001
From: Andrey Pavlenko <andrey.pavlenko@itseez.com>
Date: Tue, 13 Aug 2013 13:18:01 +0400
Subject: [PATCH] also fixing JNI library name in JUnit tests

---
 modules/java/test/src/org/opencv/test/OpenCVTestCase.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/java/test/src/org/opencv/test/OpenCVTestCase.java b/modules/java/test/src/org/opencv/test/OpenCVTestCase.java
index ac1bf863c..a9b504118 100644
--- a/modules/java/test/src/org/opencv/test/OpenCVTestCase.java
+++ b/modules/java/test/src/org/opencv/test/OpenCVTestCase.java
@@ -97,7 +97,7 @@ public class OpenCVTestCase extends TestCase {
         super.setUp();
 
         try {
-            System.loadLibrary("opencv_java");
+            System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
         } catch (SecurityException e) {
             System.out.println(e.toString());
             System.exit(-1);