130131132133134135136137138139
} @Test public void testDirectProviderCanProvideMethod() { // having WebDriverProvider provider = new WebDriverProvider(); // then assertTrue(provider.canProvide(WebDriver.class)); assertFalse(provider.canProvide(JavascriptExecutor.class)); }
139140141142143144145146147148149
} @Test public void testDirectProviderLookup() { // having WebDriverProvider provider = new WebDriverProvider(); // when Object object = provider.lookup(null, null); // then assertTrue(object instanceof WebDriver); }