@Test public void testDeviceClassification() { String userAgentSample = "Mozilla/5.0 (Linux; U; Android 2.2; en; HTC Aria A6380 Build/ERE27) AppleWebKit/540.13+ (KHTML, like Gecko) Version/3.1 Mobile Safari/524.15.0"; DeviceClassification d = new DeviceClassification(); d.classifyUseragent(userAgentSample); assertEquals("Vendor as expected", "HTC" , d.getVendor()); assertEquals("Model as expected" , "A6380", d.getModel()); }
public DeviceClassification() {}
DeviceClassification { public DeviceClassification() {} }
DeviceClassification { public DeviceClassification() {} DeviceClassification();  DeviceClassification(String userAgent); }
DeviceClassification { public DeviceClassification() {} DeviceClassification();  DeviceClassification(String userAgent); final DeviceClassification classifyUseragent(final String userAgent); final String getVendor(); final String getModel(); final String getParentId(); final String getInputDevices(); final int getDisplayHeight(); final int getDisplayWidth(); final String getDeviceOs(); final String getDeviceOsVersion(); final boolean getAjaxSupportJavascript(); final boolean getIsTablet(); final boolean getIsWirelessDevice(); final boolean getIsCrawler(); final boolean getIsDesktop(); String getBrowser(); String getBrowserVersion(); }
DeviceClassification { public DeviceClassification() {} DeviceClassification();  DeviceClassification(String userAgent); final DeviceClassification classifyUseragent(final String userAgent); final String getVendor(); final String getModel(); final String getParentId(); final String getInputDevices(); final int getDisplayHeight(); final int getDisplayWidth(); final String getDeviceOs(); final String getDeviceOsVersion(); final boolean getAjaxSupportJavascript(); final boolean getIsTablet(); final boolean getIsWirelessDevice(); final boolean getIsCrawler(); final boolean getIsDesktop(); String getBrowser(); String getBrowserVersion(); final static String dtree_path; }