Guest User

Untitled

a guest
Jun 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public void testVersion() {
  2. assertNotNull(zmqLibrary);
  3. int[] major = new int[1];
  4. int[] minor = new int[1];
  5. int[] patch = new int[1];
  6. zmqLibrary.zmq_version(major, minor, patch);
  7. assertEquals(2, major[0]);
  8. assertEquals(0, minor[0]);
  9. assertEquals(8, patch[0]);
  10. }
  11.  
  12. public void setUp() {
  13. zmqLibrary = (ZmqLibrary) Native.loadLibrary("zmq", ZmqLibrary.class);
  14. }
  15.  
  16. public void tearDown() {
  17. zmqLibrary = null;
  18. }
  19.  
  20. private ZmqLibrary zmqLibrary;
Add Comment
Please, Sign In to add comment