DefaultDataProviderMethodResolver extends com.tngtech.junit.dataprovider.resolver.DefaultDataProviderMethodResolver implements DataProviderMethodResolver { @Override public List<FrameworkMethod> resolve(FrameworkMethod testMethod, UseDataProvider useDataProvider) { checkNotNull(testMethod, "testMethod must not be null"); checkNotNull(useDataProvider, "useDataProvider must not be null"); List<TestClass> dataProviderLocations = findDataProviderLocations(testMethod, useDataProvider.location()); return findDataProviderMethods(dataProviderLocations, testMethod.getName(), useDataProvider.value()); }  @Override List<FrameworkMethod> resolve(FrameworkMethod testMethod, UseDataProvider useDataProvider);  }
@Test(expected = NullPointerException.class) public void testResolveShouldThrowNullPointerExceptionIfTestMethodIsNull() { underTest.resolve(null, useDataProvider); }
@Test(expected = NullPointerException.class) public void testResolveShouldThrowNullPointerExceptionIfUseDataProviderIsNull() { underTest.resolve(testMethod, null); }