@Test public void isUnSupportedBrowserEnvironmentTest( ) { EnvironmentUtilsMock mock = new EnvironmentUtilsMock( Case.UBUNTU_16 ); assertFalse( mock.getMockedInstance().isUnsupportedBrowserEnvironment() ); mock = new EnvironmentUtilsMock( Case.MAC_OS_X ); assertFalse( mock.getMockedInstance().isUnsupportedBrowserEnvironment() ); mock = new EnvironmentUtilsMock( Case.WINDOWS ); assertFalse( mock.getMockedInstance().isUnsupportedBrowserEnvironment() ); mock = new EnvironmentUtilsMock( Case.MACOS_X_WRONG ); assertTrue( mock.getMockedInstance().isUnsupportedBrowserEnvironment() ); mock = new EnvironmentUtilsMock( Case.WINDOWS_WRONG ); assertTrue( mock.getMockedInstance().isUnsupportedBrowserEnvironment() ); }
public synchronized boolean isUnsupportedBrowserEnvironment() { if ( getEnvironmentName().contains( "linux" ) ) { return false; } final String userAgent = getUserAgent(); if ( userAgent == null ) { return true; } return checkUserAgent( MSIE_PATTERN.matcher( userAgent ), getSupportedVersion( "min.windows.browser.supported" ) ) || checkUserAgent( SAFARI_PATTERN.matcher( userAgent ), getSupportedVersion( "min.mac.browser.supported" ) ); }
EnvironmentUtils { public synchronized boolean isUnsupportedBrowserEnvironment() { if ( getEnvironmentName().contains( "linux" ) ) { return false; } final String userAgent = getUserAgent(); if ( userAgent == null ) { return true; } return checkUserAgent( MSIE_PATTERN.matcher( userAgent ), getSupportedVersion( "min.windows.browser.supported" ) ) || checkUserAgent( SAFARI_PATTERN.matcher( userAgent ), getSupportedVersion( "min.mac.browser.supported" ) ); } }
EnvironmentUtils { public synchronized boolean isUnsupportedBrowserEnvironment() { if ( getEnvironmentName().contains( "linux" ) ) { return false; } final String userAgent = getUserAgent(); if ( userAgent == null ) { return true; } return checkUserAgent( MSIE_PATTERN.matcher( userAgent ), getSupportedVersion( "min.windows.browser.supported" ) ) || checkUserAgent( SAFARI_PATTERN.matcher( userAgent ), getSupportedVersion( "min.mac.browser.supported" ) ); }  }
EnvironmentUtils { public synchronized boolean isUnsupportedBrowserEnvironment() { if ( getEnvironmentName().contains( "linux" ) ) { return false; } final String userAgent = getUserAgent(); if ( userAgent == null ) { return true; } return checkUserAgent( MSIE_PATTERN.matcher( userAgent ), getSupportedVersion( "min.windows.browser.supported" ) ) || checkUserAgent( SAFARI_PATTERN.matcher( userAgent ), getSupportedVersion( "min.mac.browser.supported" ) ); }  static synchronized EnvironmentUtils getInstance( ); synchronized boolean isUnsupportedBrowserEnvironment(); synchronized boolean isWebkitUnavailable(); boolean isBrowserEnvironmentCheckDisabled(); synchronized String getBrowserName(); }
EnvironmentUtils { public synchronized boolean isUnsupportedBrowserEnvironment() { if ( getEnvironmentName().contains( "linux" ) ) { return false; } final String userAgent = getUserAgent(); if ( userAgent == null ) { return true; } return checkUserAgent( MSIE_PATTERN.matcher( userAgent ), getSupportedVersion( "min.windows.browser.supported" ) ) || checkUserAgent( SAFARI_PATTERN.matcher( userAgent ), getSupportedVersion( "min.mac.browser.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; }