Examples of BrowserType


Examples of net.sf.uadetector.internal.data.domain.BrowserType

    // a pattern without a subgroup definition to gather the version number
    final Pattern pattern = RegularExpressionConverter.convertPerlRegexToPattern("/^Eudora?/si ");
    final BrowserPattern browserPattern = new BrowserPattern(465, pattern, 439);
    browserPatternSet.add(browserPattern);
    browserPatterns.put(1, browserPatternSet);
    final BrowserType browserType = new BrowserType(2, "Browser");
    browserTypes.put(browserType.getId(), browserType);
    final Browser browser = new Browser(465, UserAgentFamily.EUDORA, "Eudora", new TreeSet<BrowserPattern>(), browserType, null,
        "eudora.png", "/list-of-ua/browser-detail?browser=Eudora", "Qualcomm Incorporated.", "http://www.qualcomm.com/",
        "http://www.eudora.com/archive.html");
    browsers.add(browser);
    patternToBrowserMap.put(browserPattern, browser);
View Full Code Here

Examples of net.sf.uadetector.internal.data.domain.BrowserType

    final OperatingSystem operatingSystem = new OperatingSystem(1, "n1", "f1", "iu1", osPatternSet, "p1", "pu1", "u1", "i1");
    operatingSystems.add(operatingSystem);

    patternToOperatingSystemMap.put(operatingSystemPattern, operatingSystem);

    final BrowserType browserType = new BrowserType(1, "Browser");
    browserTypes.put(browserType.getId(), browserType);

    final Browser browser = new Browser(4256, UserAgentFamily.FIREBIRD, UserAgentFamily.FIREBIRD.getName(), browserPatternSet,
        browserType, operatingSystem, "icn", "iu1", "p1", "pu1", "u1");
    browsers.add(browser);
View Full Code Here

Examples of net.sf.uadetector.internal.data.domain.BrowserType

  @Test
  public void equals_different_BROWSERS() {
    final SortedSet<OperatingSystemPattern> patternSet = new TreeSet<OperatingSystemPattern>();
    final OperatingSystem os = new OperatingSystem(1, "n1", "f1", "iu1", patternSet, "p1", "pu1", "u1", "i1");

    final BrowserType browserType = new BrowserType(2, "Browser");

    final Browser browser1 = new Browser(1, UserAgentFamily.CHROMIUM, UserAgentFamily.CHROMIUM.getName(),
        new TreeSet<BrowserPattern>(), browserType, os, "icn", "iu", "p", "pu", "u");
    final Data a = new DataBlueprint().browsers(Sets.newHashSet(browser1)).build();
View Full Code Here

Examples of net.sf.uadetector.internal.data.domain.BrowserType

  }

  @Test
  public void equals_different_BROWSERTYPES() {
    final Map<Integer, BrowserType> types1 = Maps.newHashMap();
    types1.put(1, new BrowserType(1, "Browser"));
    final Data a = new DataBlueprint().browserTypes(types1).build();

    final Map<Integer, BrowserType> types2 = Maps.newHashMap();
    types2.put(1, new BrowserType(2, "Feedreader"));
    final Data b = new DataBlueprint().browserTypes(types2).build();

    assertThat(a.equals(b)).isFalse();
    assertThat(a.hashCode() == b.hashCode()).isFalse();
  }
View Full Code Here

Examples of net.sf.uadetector.internal.data.domain.BrowserType

  public void equals_different_PATTERNTOBROWSERMAP() {
    final SortedSet<OperatingSystemPattern> patternSet = new TreeSet<OperatingSystemPattern>();
    final OperatingSystem os = new OperatingSystem(1, "n1", "f1", "iu1", patternSet, "p1", "pu1", "u1", "i1");

    final BrowserPattern pattern1 = new BrowserPattern(1, Pattern.compile("1"), 1);
    final BrowserType browserType = new BrowserType(1, "Browser");
    final Browser browser1 = new Browser(1, UserAgentFamily.CHROME, UserAgentFamily.CHROME.getName(), new TreeSet<BrowserPattern>(),
        browserType, os, "icn", "iu", "p", "pu", "u");
    final SortedMap<BrowserPattern, Browser> map1 = Maps.newTreeMap();
    map1.put(pattern1, browser1);
    final Data a = new DataBlueprint().patternToBrowserMap(map1).build();
View Full Code Here

Examples of net.sf.uadetector.internal.data.domain.BrowserType

    osPatternSet.add(operatingSystemPattern);
    final OperatingSystem operatingSystem = new OperatingSystem(9765, "Solaris", "Unix",
        "http://en.wikipedia.org/wiki/Sun_Microsystems", osPatternSet, "Sun", "http://sun.com", "http://sun.com", "solaris.png");
    operatingSystems.add(operatingSystem);
    patternToOperatingSystemMap.put(operatingSystemPattern, operatingSystem);
    final BrowserType browserType = new BrowserType(2, "Browser");
    browserTypes.put(browserType.getId(), browserType);
    final Browser browser = new Browser(1, UserAgentFamily.NCSA_MOSAIC, UserAgentFamily.NCSA_MOSAIC.getName(),
        new TreeSet<BrowserPattern>(), browserType, operatingSystem, "icn", "iu", "p", "pu", "http://www.ncsa.uiuc.edu/");
    browsers.add(browser);
    patternToBrowserMap.put(browserPattern, browser);
    browserToOperatingSystemMappings.add(new BrowserOperatingSystemMapping(browser.getId(), operatingSystem.getId()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.