Skip to content

Commit

Permalink
Simple test for javacpp bug #1
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsacha committed May 9, 2014
1 parent 98fdbcd commit 7c73b04
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions OpenCV2_Cookbook/src/test/java/opencv2_cookbook/ImreadTest.java
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit 7c73b04

Please sign in to comment.