Examples of JNILibraryLoader


Examples of com.xuggle.ferry.JNILibraryLoader

  @Before
  public void setUp()
  {
    mTestName = NameAwareTestClassRunner.getTestMethodName();
    log.debug("-----START----- {}", mTestName);
    JNILibraryLoader loader = JNILibraryLoader.getInstance();
    loader.setOS(null); // reset the OS
  }
View Full Code Here

Examples of com.xuggle.ferry.JNILibraryLoader

  }
 
  @Test
  public void testCreation()
  {
    JNILibraryLoader loader = JNILibraryLoader.getInstance();
    assertNotNull(loader);
  }
View Full Code Here

Examples of com.xuggle.ferry.JNILibraryLoader

  }
 
  @Test
  public void testGetOS()
  {
    JNILibraryLoader loader = JNILibraryLoader.getInstance();
    JNILibraryLoader.OSName os = loader.getOS();
    switch(os)
    {
    case Linux:
      assertTrue(System.getProperty("os.name", "").startsWith("Linux"));
      break;
View Full Code Here

Examples of com.xuggle.ferry.JNILibraryLoader

    for(int i = 0; i < varNames.length; i++)
    {
      String expected = varNames[i];
      JNILibraryLoader.OSName os = osTypes[i];
      JNILibraryLoader loader = JNILibraryLoader.getInstance();
      loader.setOS(os);
      String actual = loader.getSystemRuntimeLibraryPathVar();
      log.trace("Comparing System Runtime Library Path: {} vs {}", expected, actual);
      assertEquals("unexpected variable name", expected, actual);
    }
  }
View Full Code Here

Examples of com.xuggle.ferry.JNILibraryLoader

   * always succeed, but you should eye-ball the results to make sure they are right.
   */
  @Test
  public void testGenerateFilenamesLinux()
  {
    JNILibraryLoader loader = JNILibraryLoader.getInstance();
    List<String> files = loader.getLibraryCandidates("foo", new Long("1"));
    for(String file: files)
    {
      log.debug("candidate: {}", file);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.