@Override public String getName() { return annotation.getName(); }
@Override public List<Integer> getIndices() { return annotation.getIndices(); }
@Override public boolean isParallel() { return annotation.isParallel(); }
@Override public void transform(IDataProviderAnnotation annotation, Method testMethod) { annotation.setName("dataProvider"); }
@Override public String getName() { return annotation.getName(); }
@Override public boolean isParallel() { return annotation.isParallel(); }
@Override public List<Integer> getIndices() { return annotation.getIndices(); } }
public void verifyDataProvider() throws SecurityException, NoSuchMethodException { Method method = MTest1.class.getMethod("otherConfigurations"); IDataProviderAnnotation dataProvider = m_finder.findAnnotation(method, IDataProviderAnnotation.class); Assert.assertNotNull(dataProvider); Assert.assertEquals(dataProvider.getName(), "dp4"); }