/** * Creates a new AppEnvironment instance. */ public AppEnvironment(String os, String hostingApp, RectangleSize displaySize) { setOs(os); setHostingApp(hostingApp); setDisplaySize(displaySize); }
/** * 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; }
/** * Creates a new AppEnvironment instance. * * @param displaySize the display size of the application or {@code null} if unknown. * @param os the OS hosting the application under test or {@code null} if * unknown. * @param hostingApp the application hosting the application under test or {@code null} * * if unknown. */ public AppEnvironment(String os, String hostingApp, RectangleSize displaySize) { setOs(os); setHostingApp(hostingApp); setDisplaySize(displaySize); }
/** * Creates a new AppEnvironment instance. * * @param displaySize the display size of the application or {@code null} if unknown. * @param os the OS hosting the application under test or {@code null} if * unknown. * @param hostingApp the application hosting the application under test or {@code null} * * if unknown. */ public AppEnvironment(String os, String hostingApp, RectangleSize displaySize) { setOs(os); setHostingApp(hostingApp); setDisplaySize(displaySize); }