DataProviderResolverContext { public List<Class<?>> getLocations() { return unmodifiableList(locations); } DataProviderResolverContext(Method testMethod,
            List<Class<? extends DataProviderMethodResolver>> resolverClasses, ResolveStrategy resolveStrategy,
            List<Class<?>> locations, Class<? extends Annotation> dataProviderAnnotationClass,
            String dataProviderName); static List<Class<?>> generateLocations(Class<?> testClass, Class<?>... explicitLocations); boolean useDataProviderNameConvention(); Method getTestMethod(); List<Class<? extends DataProviderMethodResolver>> getResolverClasses(); ResolveStrategy getResolveStrategy(); List<Class<?>> getLocations(); Class<? extends Annotation> getDataProviderAnnotationClass(); String getDataProviderName(); static final String METHOD_NAME_TO_USE_CONVENTION; }
@Test public void testDataProviderResolverContextShouldAddTestMethodsDeclaringClassToLocationsIfLocationsIsEmpty() { List<Class<?>> emptyLocations = emptyList(); DataProviderResolverContext result = new DataProviderResolverContext(testMethod, resolverClasses, resolveStrategy, emptyLocations, dataProviderAnnotationClass, dataProviderName); assertThat(result.getLocations()).containsOnly(testMethod.getDeclaringClass()); }