@Test public void isWebkitUnavailableTest( ) { EnvironmentUtilsMock mock = new EnvironmentUtilsMock( Case.UBUNTU_16 ); assertFalse( mock.getMockedInstance().isWebkitUnavailable() ); mock = new EnvironmentUtilsMock( Case.UBUNTU_14 ); assertFalse( mock.getMockedInstance().isWebkitUnavailable() ); mock = new EnvironmentUtilsMock( Case.MAC_OS_X ); assertFalse( mock.getMockedInstance().isWebkitUnavailable() ); mock = new EnvironmentUtilsMock( Case.WINDOWS ); assertFalse( mock.getMockedInstance().isWebkitUnavailable() ); mock = new EnvironmentUtilsMock( Case.UBUNTU_WRONG ); assertTrue( mock.getMockedInstance().isWebkitUnavailable() ); }
public synchronized boolean isWebkitUnavailable() { String path = getWebkitPath(); String osName = getEnvironmentName(); return ( ( path == null || path.length() < 1 || !path.contains( "webkit" ) ) && ( osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "max.ubuntu.os.distribution.supported" ) ) || osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "min.ubuntu.os.distribution.supported" ) ) ) ); }
EnvironmentUtils { public synchronized boolean isWebkitUnavailable() { String path = getWebkitPath(); String osName = getEnvironmentName(); return ( ( path == null || path.length() < 1 || !path.contains( "webkit" ) ) && ( osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "max.ubuntu.os.distribution.supported" ) ) || osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "min.ubuntu.os.distribution.supported" ) ) ) ); } }
EnvironmentUtils { public synchronized boolean isWebkitUnavailable() { String path = getWebkitPath(); String osName = getEnvironmentName(); return ( ( path == null || path.length() < 1 || !path.contains( "webkit" ) ) && ( osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "max.ubuntu.os.distribution.supported" ) ) || osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "min.ubuntu.os.distribution.supported" ) ) ) ); }  }
EnvironmentUtils { public synchronized boolean isWebkitUnavailable() { String path = getWebkitPath(); String osName = getEnvironmentName(); return ( ( path == null || path.length() < 1 || !path.contains( "webkit" ) ) && ( osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "max.ubuntu.os.distribution.supported" ) ) || osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "min.ubuntu.os.distribution.supported" ) ) ) ); }  static synchronized EnvironmentUtils getInstance( ); synchronized boolean isUnsupportedBrowserEnvironment(); synchronized boolean isWebkitUnavailable(); boolean isBrowserEnvironmentCheckDisabled(); synchronized String getBrowserName(); }
EnvironmentUtils { public synchronized boolean isWebkitUnavailable() { String path = getWebkitPath(); String osName = getEnvironmentName(); return ( ( path == null || path.length() < 1 || !path.contains( "webkit" ) ) && ( osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "max.ubuntu.os.distribution.supported" ) ) || osName.contains( SUPPORTED_DISTRIBUTION_NAME + " " + getSupportedVersion( "min.ubuntu.os.distribution.supported" ) ) ) ); }  static synchronized EnvironmentUtils getInstance( ); synchronized boolean isUnsupportedBrowserEnvironment(); synchronized boolean isWebkitUnavailable(); boolean isBrowserEnvironmentCheckDisabled(); synchronized String getBrowserName(); static final String UBUNTU_BROWSER; static final String MAC_BROWSER; static final String WINDOWS_BROWSER; }