/** * Application environment is the environment (e.g., the host OS) which * runs the application under test. * @return The current application environment. */ protected AppEnvironment getAppEnvironment() { AppEnvironment appEnv = new AppEnvironment(); // If hostOS isn't set, we'll try and extract and OS ourselves. if (hostOS != null) { appEnv.setOs(hostOS); } if (hostApp != null) { appEnv.setHostingApp(hostApp); } appEnv.setInferred(getInferredEnvironment()); appEnv.setDisplaySize(viewportSize); return appEnv; }
/** * Application environment is the environment (e.g., the host OS) which * runs the application under test. * @return The current application environment. */ protected AppEnvironment getAppEnvironment() { AppEnvironment appEnv = new AppEnvironment(); // If hostOS isn't set, we'll try and extract and OS ourselves. if (hostOS != null) { appEnv.setOs(hostOS); } if (hostApp != null) { appEnv.setHostingApp(hostApp); } appEnv.setInferred(getInferredEnvironment()); appEnv.setDisplaySize(viewportSize); return appEnv; }
/** * Application environment is the environment (e.g., the host OS) which * runs the application under test. * @return The current application environment. */ protected AppEnvironment getAppEnvironment() { AppEnvironment appEnv = new AppEnvironment(); // If hostOS isn't set, we'll try and extract and OS ourselves. if (hostOS != null) { appEnv.setOs(hostOS); } if (hostApp != null) { appEnv.setHostingApp(hostApp); } appEnv.setInferred(getInferredEnvironment()); appEnv.setDisplaySize(viewportSize); return appEnv; }