Platform { public String getSharedLibraryFileName(String baseName) { return String.format("%s%s.%s", getSharedLibraryPrefix(), baseName, getSharedLibraryFileExtension()); } Platform(String operatingSystem, String architecture);  Platform(); String getName(); String getOperatingSystem(); String getArchitecture(); boolean isWindows(); boolean isLinux(); boolean is64Bit(); String getSharedLibraryFileName(String baseName); String getSharedLibraryPathEnvironmentVarName(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static final String ARCH_X64; static final String LINUX_OS_FAMILY; static final String LINUX_SHARED_LIB_PREFIX; static final String LINUX_SHARED_LIB_PATH_VAR; static final String LINUX_SHARED_LIB_FILE_EXTENSION; static final String WINDOWS_OS_FAMILY; static final String WINDOWS_SHARED_LIB_PREFIX; static final String WINDOWS_SHARED_LIB_PATH_VAR; static final String WINDOWS_SHARED_LIB_FILE_EXTENSION; static final BiFunction<String, String, String> PLATFORM_NAMER; static final Platform SUPPORTED_LINUX_PLATFORM; static final Platform SUPPORTED_WINDOWS_PLATFORM; static final List<Platform> SUPPORTED_PLATFORMS; }
@Test void testGetSharedLibraryFileName() { assertEquals("libwoof.so",SUPPORTED_LINUX_PLATFORM.getSharedLibraryFileName("woof")); assertEquals("Meow.dll",SUPPORTED_WINDOWS_PLATFORM.getSharedLibraryFileName("Meow")); }