Class TestEnvironment


  • public final class TestEnvironment
    extends Environment
    This class is intended for testing to be able to provide a different environment.
    Since:
    1.6 (07.02.2015)
    Version:
    $Revision: 1.4 $
    Author:
    oliver
    • Constructor Detail

      • TestEnvironment

        public TestEnvironment()
    • Method Detail

      • getOsName

        public java.lang.String getOsName()
        Gets the os name.
        Overrides:
        getOsName in class Environment
        Returns:
        the osName
      • setOsName

        public void setOsName​(java.lang.String osName)
        Sets the os name.
        Parameters:
        osName - the osName to set
      • getOsArch

        public java.lang.String getOsArch()
        Gets the os arch.
        Overrides:
        getOsArch in class Environment
        Returns:
        the osArch
      • setOsArch

        public void setOsArch​(java.lang.String osArch)
        Sets the os arch.
        Parameters:
        osArch - the osArch to set
      • getOsVersion

        public java.lang.String getOsVersion()
        Gets the os version.
        Overrides:
        getOsVersion in class Environment
        Returns:
        the osVersion
      • setOsVersion

        public void setOsVersion​(java.lang.String osVersion)
        Sets the os version.
        Parameters:
        osVersion - the osVersion to set
      • getJavaVersion

        public java.lang.String getJavaVersion()
        Gets the java version.
        Overrides:
        getJavaVersion in class Environment
        Returns:
        the javaVersion
      • setJavaVersion

        public void setJavaVersion​(java.lang.String javaVersion)
        Sets the java version.
        Parameters:
        javaVersion - the javaVersion to set
      • getJavaVendor

        public java.lang.String getJavaVendor()
        Gets the java vendor.
        Overrides:
        getJavaVendor in class Environment
        Returns:
        the javaVendor
      • setJavaVendor

        public void setJavaVendor​(java.lang.String javaVendor)
        Sets the java vendor.
        Parameters:
        javaVendor - the javaVendor to set
      • getUserName

        public java.lang.String getUserName()
        Gets the user name.
        Overrides:
        getUserName in class Environment
        Returns:
        the userName
      • setUserName

        public void setUserName​(java.lang.String userName)
        Sets the user name.
        Parameters:
        userName - the userName to set