Files
openvino/inference-engine/ie_bridges/java/tests/IETest.java
Dmitry Kurtaev 8b2c12967d [JAVA] Use JUnit 4 features to log Java tests log (#1953)
* [JAVA] Use JUnit 4 features to log Java tests log

* [JAVA] Add device parameter for Java tests
2020-08-27 17:10:24 +03:00

43 lines
1.2 KiB
Java

import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Ignore;
import org.junit.runner.Description;
import org.junit.Rule;
import org.junit.rules.TestWatcher;
import java.nio.file.Paths;
import org.intel.openvino.*;
@Ignore
public class IETest {
String modelXml;
String modelBin;
static String device;
public IETest() {
try {
System.loadLibrary(IECore.NATIVE_LIBRARY_NAME);
} catch (UnsatisfiedLinkError e) {
System.err.println("Failed to load Inference Engine library\n" + e);
System.exit(1);
}
modelXml = Paths.get(System.getenv("MODELS_PATH"), "models", "test_model", "test_model_fp32.xml").toString();
modelBin = Paths.get(System.getenv("MODELS_PATH"), "models", "test_model", "test_model_fp32.bin").toString();
}
@Rule
public TestWatcher watchman = new TestWatcher() {
@Override
protected void succeeded(Description description) {
System.out.println(description + " - OK");
}
@Override
protected void failed(Throwable e, Description description) {
System.out.println(description + " - FAILED");
}
};
}