Examples of doSomeNativeStuffUsingTheLoadedSystemLibrary()


Examples of samples.staticinitializer.EvilStaticInitializerExample.doSomeNativeStuffUsingTheLoadedSystemLibrary()

  @Test
  @SuppressStaticInitializationFor("samples.staticinitializer.EvilStaticInitializerExample")
  public void assertNativeCodeInvocationWorks() throws Exception {
    EvilStaticInitializerExample tested = new EvilStaticInitializerExample();
    assertThat(tested.doSomeNativeStuffUsingTheLoadedSystemLibrary(), instanceOf(String.class));
  }

  @Test
  public void assertCorrectErrorMessageIfLibraryNotFound() throws Exception {
    try {
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.