MCPcopy Create free account
hub / github.com/java-native-access/jna / testLoadJAWT

Method testLoadJAWT

test/com/sun/jna/LibraryLoadTest.java:53–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 }
52
53 public void testLoadJAWT() {
54 if (!Platform.HAS_AWT || !Platform.HAS_JAWT) return;
55
56 if (GraphicsEnvironment.isHeadless()) return;
57
58 // Encapsulate in a separate class to avoid class loading issues where
59 // AWT is unavailable
60 AWT.loadJAWT(getName());
61 }
62
63 public void testLoadAWTAfterJNA() {
64 if (!Platform.HAS_AWT) return;

Callers

nothing calls this directly

Calls 2

loadJAWTMethod · 0.95
getNameMethod · 0.65

Tested by

no test coverage detected