DefaultDataProviderMethodResolver extends com.tngtech.junit.dataprovider.resolver.DefaultDataProviderMethodResolver implements DataProviderMethodResolver { protected List<FrameworkMethod> findDataProviderMethods(List<TestClass> locations, String testMethodName, String useDataProviderValue) { List<FrameworkMethod> result = new ArrayList<FrameworkMethod>(); for (TestClass location : locations) { FrameworkMethod method = findDataProviderMethod(location, testMethodName, useDataProviderValue); if (method != null) { result.add(method); } } return result; }  @Override List<FrameworkMethod> resolve(FrameworkMethod testMethod, UseDataProvider useDataProvider);  }
@Test public void testFindDataProviderMethodsShouldReturnEmptyListIfLocationsIsEmpty() { List<FrameworkMethod> result = underTest.findDataProviderMethods(testClassesFor(), "testMethodName", "useDataProviderValue"); assertThat(result).isEmpty(); }