Example #1
0
 @Test(dataProvider = "browserNameUserAgentData")
 public void getBrowserName(String userAgent, String expected) {
   final BrowserService browserDef = new BrowserServiceImpl(userAgent);
   assertEquals(browserDef.getBrowserName(), expected);
 }
Example #2
0
 @Test(dataProvider = "browserMajorVersionUserAgentData")
 public void getBrowserMajorVersion(String userAgent, int expected) {
   final BrowserService browserDef = new BrowserServiceImpl(userAgent);
   assertEquals(browserDef.getBrowserMajorVersion(), expected);
 }