All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.specto.hoverfly.junit.core.SystemInfo Maven / Gradle / Ivy

There is a newer version: 0.19.1
Show newest version
package io.specto.hoverfly.junit.core;

import org.apache.commons.lang3.SystemUtils;

/**
 * Provides platform specific info
 */
class SystemInfo {

    private final boolean isOsWindows = SystemUtils.IS_OS_WINDOWS;
    private final boolean isOsMac = SystemUtils.IS_OS_MAC;
    private final boolean isOsLinux = SystemUtils.IS_OS_LINUX;
    private final boolean is64BitSystem = SystemUtils.OS_ARCH.contains("64");
    private final String osName = SystemUtils.OS_NAME;

    boolean isOsWindows() {
        return isOsWindows;
    }

    boolean isOsMac() {
        return isOsMac;
    }

    boolean isOsLinux() {
        return isOsLinux;
    }

    boolean is64BitSystem() {
        return is64BitSystem;
    }

    String getOsName() {
        return osName;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy