naett.c

Tiny cross-platform HTTP / HTTPS client library in C.
git clone git://git.finwo.net/lib/naett.c
Log | Files | Refs | README | LICENSE

NaettTests.java (448B)


      1 package naett.test;
      2 
      3 import org.junit.Test;
      4 import static org.junit.Assert.assertTrue;
      5 import static org.junit.Assert.fail;
      6 
      7 public class NaettTests {
      8     @Test
      9     public void naett_Test() {
     10         try {
     11             System.loadLibrary("native-activity");
     12             assertTrue(runTests() != 0);
     13         } catch (Error e) {
     14             System.err.println(e.getMessage());
     15             fail();
     16         }
     17     }
     18 
     19     private native int runTests();
     20 }