JNI for test coverage #3965
This commit is contained in:
parent
121aedda31
commit
a5d65bbbda
|
@ -0,0 +1,16 @@
|
||||||
|
package com.rusefi.native_;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import static junit.framework.Assert.assertTrue;
|
||||||
|
|
||||||
|
public class JniUnitTest {
|
||||||
|
@Test
|
||||||
|
public void run() {
|
||||||
|
JniSandbox.loadLibrary();
|
||||||
|
|
||||||
|
EngineLogic engineLogic = new EngineLogic();
|
||||||
|
String version = engineLogic.getVersion();
|
||||||
|
assertTrue("Got " + version, version.contains("Hello"));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue