Package net.sf.uadetector

Examples of net.sf.uadetector.OperatingSystem


    assertThat(agent.getTypeName()).isEqualTo("Browser");
    assertThat(agent.getUrl()).isEqualTo("http://www.gnu.org/software/gnuzilla/");
    assertThat(agent.getVersionNumber().toVersionString()).isEqualTo("3.5.5");

    // check operating system informations
    final OperatingSystem os = agent.getOperatingSystem();
    assertThat(os.getFamily()).isEqualTo(OperatingSystemFamily.LINUX);
    assertThat(os.getFamilyName()).isEqualTo("Linux");
    assertThat(os.getIcon()).isEqualTo("linux_debian.png");
    assertThat(os.getName()).isEqualTo("Linux (Debian)");
    assertThat(os.getProducer()).isEqualTo("Software in the Public Interest, Inc.");
    assertThat(os.getProducerUrl()).isEqualTo("http://www.spi-inc.org/");
    assertThat(os.getUrl()).isEqualTo("http://www.debian.org/");
    assertThat(os.getVersionNumber()).isEqualTo(VersionNumber.UNKNOWN);

    // check device category informations
    final DeviceCategory category = agent.getDeviceCategory();
    assertThat(category.getCategory()).isEqualTo(Category.PERSONAL_COMPUTER);
    assertThat(category.getName()).isEqualTo(Category.PERSONAL_COMPUTER.getName());
View Full Code Here


    assertThat(agent.getTypeName()).isEqualTo("Browser");
    assertThat(agent.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/Internet_Explorer");
    assertThat(agent.getVersionNumber().toVersionString()).isEqualTo("7.0");

    // check operating system informations
    final OperatingSystem os = agent.getOperatingSystem();
    assertThat(os.getFamily()).isEqualTo(OperatingSystemFamily.WINDOWS);
    assertThat(os.getFamilyName()).isEqualTo("Windows");
    assertThat(os.getIcon()).isEqualTo("windows-7.png");
    assertThat(os.getName()).isEqualTo("Windows 7");
    assertThat(os.getProducer()).isEqualTo("Microsoft Corporation.");
    assertThat(os.getProducerUrl()).isEqualTo("http://www.microsoft.com/");
    assertThat(os.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/Windows_7");
    assertThat(os.getVersionNumber().toVersionString()).isEqualTo("6.1");

    // check device category informations
    final DeviceCategory category = agent.getDeviceCategory();
    assertThat(category.getCategory()).isEqualTo(Category.PERSONAL_COMPUTER);
    assertThat(category.getName()).isEqualTo(Category.PERSONAL_COMPUTER.getName());
View Full Code Here

    assertThat(agent.getTypeName()).isEqualTo("Library");
    assertThat(agent.getUrl()).isEqualTo("http://www.sun.com/java/");
    assertThat(agent.getVersionNumber().toVersionString()).isEqualTo("1.6.0_31");

    // check operating system informations
    final OperatingSystem os = agent.getOperatingSystem();
    assertThat(os.getFamily()).isEqualTo(OperatingSystemFamily.JVM);
    assertThat(os.getFamilyName()).isEqualTo("JVM");
    assertThat(os.getIcon()).isEqualTo("java.png");
    assertThat(os.getName()).isEqualTo("JVM (Java)");
    assertThat(os.getProducer()).isEqualTo("Sun Microsystems, Inc.");
    assertThat(os.getProducerUrl()).isEqualTo("http://en.wikipedia.org/wiki/Sun_Microsystems");
    assertThat(os.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/Jvm");
    assertThat(os.getVersionNumber().toVersionString()).isEqualTo("1.6.0_31");

    // check device category informations
    final DeviceCategory category = agent.getDeviceCategory();
    assertThat(category.getCategory()).isEqualTo(Category.OTHER);
    assertThat(category.getName()).isEqualTo(Category.OTHER.getName());
View Full Code Here

    assertThat(agent.getTypeName()).isEqualTo("Wap Browser");
    assertThat(agent.getUrl()).isEqualTo("http://web.archive.org/web/20071012053920/www.apachesoftware.com/products.html");
    assertThat(agent.getVersionNumber().toVersionString()).isEqualTo("1.50");

    // check operating system informations
    final OperatingSystem os = agent.getOperatingSystem();
    assertThat(os.getFamily()).isEqualTo(OperatingSystemFamily.WINDOWS);
    assertThat(os.getFamilyName()).isEqualTo("Windows");
    assertThat(os.getIcon()).isEqualTo("windows.png");
    assertThat(os.getName()).isEqualTo("Windows");
    assertThat(os.getProducer()).isEqualTo("Microsoft Corporation.");
    assertThat(os.getProducerUrl()).isEqualTo("http://www.microsoft.com/");
    assertThat(os.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/Windows");
    assertThat(os.getVersionNumber().toVersionString()).isEqualTo("");

    // check device category informations
    final DeviceCategory category = agent.getDeviceCategory();
    assertThat(category.getCategory()).isEqualTo(Category.SMARTPHONE);
    assertThat(category.getName()).isEqualTo(Category.SMARTPHONE.getName());
View Full Code Here

    assertThat(agent.getTypeName()).isEqualTo("Mobile Browser");
    assertThat(agent.getUrl()).isEqualTo("http://www.google.com/intl/en/chrome/browser/mobile/");
    assertThat(agent.getVersionNumber().toVersionString()).isEqualTo("16.0.912.75");

    // check operating system informations
    final OperatingSystem os = agent.getOperatingSystem();
    assertThat(os.getFamily()).isEqualTo(OperatingSystemFamily.ANDROID);
    assertThat(os.getFamilyName()).isEqualTo("Android");
    assertThat(os.getIcon()).isEqualTo("android.png");
    assertThat(os.getName()).isEqualTo("Android 4.0.x Ice Cream Sandwich");
    assertThat(os.getProducer()).isEqualTo("Google, Inc.");
    assertThat(os.getProducerUrl()).isEqualTo("http://www.google.com/");
    assertThat(os.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/Android_%28operating_system%29");
    assertThat(os.getVersionNumber().toVersionString()).isEqualTo("4.0.3");

    // check device category informations
    final DeviceCategory category = agent.getDeviceCategory();
    assertThat(category.getCategory()).isEqualTo(Category.TABLET);
    assertThat(category.getName()).isEqualTo(Category.TABLET.getName());
View Full Code Here

    assertThat(agent.getTypeName()).isEqualTo("Mobile Browser");
    assertThat(agent.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/Safari_%28web_browser%29");
    assertThat(agent.getVersionNumber().toVersionString()).isEqualTo("5.0.2");

    // check operating system informations
    final OperatingSystem os = agent.getOperatingSystem();
    assertThat(os.getFamily()).isEqualTo(OperatingSystemFamily.IOS);
    assertThat(os.getFamilyName()).isEqualTo("iOS");
    assertThat(os.getIcon()).isEqualTo("iphone.png");
    assertThat(os.getName()).isEqualTo("iOS");
    assertThat(os.getProducer()).isEqualTo("Apple Inc.");
    assertThat(os.getProducerUrl()).isEqualTo("http://www.apple.com/");
    assertThat(os.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/IOS");
    assertThat(os.getVersionNumber().toVersionString()).isEqualTo("4.2.1");

    // check device category informations
    final DeviceCategory category = agent.getDeviceCategory();
    assertThat(category.getCategory()).isEqualTo(Category.TABLET);
    assertThat(category.getName()).isEqualTo(Category.TABLET.getName());
View Full Code Here

    assertThat(agent.getTypeName()).isEqualTo("Mobile Browser");
    assertThat(agent.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/Safari_%28web_browser%29");
    assertThat(agent.getVersionNumber().toVersionString()).isEqualTo("5.1");

    // check operating system informations
    final OperatingSystem os = agent.getOperatingSystem();
    assertThat(os.getFamily()).isEqualTo(OperatingSystemFamily.IOS);
    assertThat(os.getFamilyName()).isEqualTo("iOS");
    assertThat(os.getIcon()).isEqualTo("iphone.png");
    assertThat(os.getName()).isEqualTo("iOS 5");
    assertThat(os.getProducer()).isEqualTo("Apple Inc.");
    assertThat(os.getProducerUrl()).isEqualTo("http://www.apple.com/");
    assertThat(os.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/IOS_5");
    assertThat(os.getVersionNumber().toVersionString()).isEqualTo("5.0");

    // check device category informations
    final DeviceCategory category = agent.getDeviceCategory();
    assertThat(category.getCategory()).isEqualTo(Category.TABLET);
    assertThat(category.getName()).isEqualTo(Category.TABLET.getName());
View Full Code Here

    assertThat(agent.getTypeName()).isEqualTo("Mobile Browser");
    assertThat(agent.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/Safari_%28web_browser%29");
    assertThat(agent.getVersionNumber().toVersionString()).isEqualTo("5.1");

    // check operating system informations
    final OperatingSystem os = agent.getOperatingSystem();
    assertThat(os.getFamily()).isEqualTo(OperatingSystemFamily.IOS);
    assertThat(os.getFamilyName()).isEqualTo("iOS");
    assertThat(os.getIcon()).isEqualTo("iphone.png");
    assertThat(os.getName()).isEqualTo("iOS 5");
    assertThat(os.getProducer()).isEqualTo("Apple Inc.");
    assertThat(os.getProducerUrl()).isEqualTo("http://www.apple.com/");
    assertThat(os.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/IOS_5");
    assertThat(os.getVersionNumber().toVersionString()).isEqualTo("5.1.1");

    // check device category informations
    final DeviceCategory category = agent.getDeviceCategory();
    assertThat(category.getCategory()).isEqualTo(Category.SMARTPHONE);
    assertThat(category.getName()).isEqualTo(Category.SMARTPHONE.getName());
View Full Code Here

    assertThat(agent.getTypeName()).isEqualTo("Browser");
    assertThat(agent.getUrl()).isEqualTo("http://www.opera.com/");
    assertThat(agent.getVersionNumber().toVersionString()).isEqualTo("10.00");

    // check operating system informations
    final OperatingSystem os = agent.getOperatingSystem();
    assertThat(os.getFamily()).isEqualTo(OperatingSystemFamily.WINDOWS);
    assertThat(os.getFamilyName()).isEqualTo("Windows");
    assertThat(os.getIcon()).isEqualTo("windowsxp.png");
    assertThat(os.getName()).isEqualTo("Windows XP");
    assertThat(os.getProducer()).isEqualTo("Microsoft Corporation.");
    assertThat(os.getProducerUrl()).isEqualTo("http://www.microsoft.com/");
    assertThat(os.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/Windows_XP");
    assertThat(os.getVersionNumber().toVersionString()).isEqualTo("5.1");

    // check device category informations
    final DeviceCategory category = agent.getDeviceCategory();
    assertThat(category.getCategory()).isEqualTo(Category.PERSONAL_COMPUTER);
    assertThat(category.getName()).isEqualTo(Category.PERSONAL_COMPUTER.getName());
View Full Code Here

    assertThat(agent.getTypeName()).isEqualTo("Browser");
    assertThat(agent.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/Safari_%28web_browser%29");
    assertThat(agent.getVersionNumber().toVersionString()).isEqualTo("5.1.5");

    // check operating system informations
    final OperatingSystem os = agent.getOperatingSystem();
    assertThat(os.getFamily()).isEqualTo(OperatingSystemFamily.OS_X);
    assertThat(os.getFamilyName()).isEqualTo("OS X");
    assertThat(os.getIcon()).isEqualTo("macosx.png");
    assertThat(os.getName()).isEqualTo("OS X 10.7 Lion");
    assertThat(os.getProducer()).isEqualTo("Apple Computer, Inc.");
    assertThat(os.getProducerUrl()).isEqualTo("http://www.apple.com/");
    assertThat(os.getUrl()).isEqualTo("http://www.apple.com/osx/");
    assertThat(os.getVersionNumber().toVersionString()).isEqualTo("10.7.3");

    // check device category informations
    final DeviceCategory category = agent.getDeviceCategory();
    assertThat(category.getCategory()).isEqualTo(Category.PERSONAL_COMPUTER);
    assertThat(category.getName()).isEqualTo(Category.PERSONAL_COMPUTER.getName());
View Full Code Here

TOP

Related Classes of net.sf.uadetector.OperatingSystem

Copyright © 2018 www.massapicom. 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.