@Test public void testIndirectProviderCanProvideMethod() { KeyboardProvider provider = new KeyboardProvider(); assertTrue(provider.canProvide(Keyboard.class)); assertFalse(provider.canProvide(Mouse.class)); }
@Override public boolean canProvide(Class<?> type) { return type.getName().equals(getReturnType()); }
SeleniumResourceProvider implements ResourceProvider { @Override public boolean canProvide(Class<?> type) { return type.getName().equals(getReturnType()); } }
SeleniumResourceProvider implements ResourceProvider { @Override public boolean canProvide(Class<?> type) { return type.getName().equals(getReturnType()); }  }
SeleniumResourceProvider implements ResourceProvider { @Override public boolean canProvide(Class<?> type) { return type.getName().equals(getReturnType()); }  @Override boolean canProvide(Class<?> type); @SuppressWarnings("unchecked") static void registerAllProviders(ExtensionBuilder builder); }
SeleniumResourceProvider implements ResourceProvider { @Override public boolean canProvide(Class<?> type) { return type.getName().equals(getReturnType()); }  @Override boolean canProvide(Class<?> type); @SuppressWarnings("unchecked") static void registerAllProviders(ExtensionBuilder builder);  }