From 7c73b04128cc51a603809c893231b4c826eb39d1 Mon Sep 17 00:00:00 2001 From: Jarek Sacha Date: Fri, 9 May 2014 15:01:39 -0400 Subject: [PATCH] Simple test for javacpp bug #1 https://github.com/bytedeco/javacpp/issues/1 --- .../java/opencv2_cookbook/ImreadTest.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 OpenCV2_Cookbook/src/test/java/opencv2_cookbook/ImreadTest.java diff --git a/OpenCV2_Cookbook/src/test/java/opencv2_cookbook/ImreadTest.java b/OpenCV2_Cookbook/src/test/java/opencv2_cookbook/ImreadTest.java new file mode 100644 index 0000000..f7a22d3 --- /dev/null +++ b/OpenCV2_Cookbook/src/test/java/opencv2_cookbook/ImreadTest.java @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2011-2014 Jarek Sacha. All Rights Reserved. + * + * Author's e-mail: jpsacha at gmail.com + */ + +package opencv2_cookbook; + +import org.junit.Test; + +import static org.bytedeco.javacpp.opencv_core.Mat; +import static org.bytedeco.javacpp.opencv_highgui.imread; +import static org.junit.Assert.assertNotNull; + +public class ImreadTest { + + @Test + public void readMat() { + final Mat image = imread("data/church01.jpg"); + assertNotNull(image); + } +} \ No newline at end of file