JNI for test coverage #3965
This commit is contained in:
parent
9b99fc306c
commit
1a2d5a3500
|
@ -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