Package eu.bitwalker.useragentutils

Examples of eu.bitwalker.useragentutils.OperatingSystem


  /**
   * Test method for {@link eu.bitwalker.useragentutils.OperatingSystem#valueOf(short)}
   */
  @Test
  public void testValueOf() {
    OperatingSystem operatingSystem = OperatingSystem.parseUserAgentString(symbian9phones[0]);
    assertEquals(OperatingSystem.valueOf(operatingSystem.getId()), operatingSystem)
    try
    {
      operatingSystem = OperatingSystem.valueOf((short)0);
      fail("Should have thrown IllegalArgumentException");     
    }
View Full Code Here


  /**
   * Test method for {@link eu.bitwalker.useragentutils.OperatingSystem#valueOf(String)}
   */
  @Test
  public void testValueOfString() {
    OperatingSystem operatingSystem = OperatingSystem.parseUserAgentString(symbian9phones[0]);
    assertEquals(OperatingSystem.valueOf(operatingSystem.toString()), operatingSystem)
    try
    {
      operatingSystem = OperatingSystem.valueOf("illegal");
      fail("Should have thrown IllegalArgumentException");     
    }
View Full Code Here

TOP

Related Classes of eu.bitwalker.useragentutils.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.