@Test public void should_produce_default_file_name_of_expected_data_set_for_test_using_full_class_name_and_method_name() throws Exception { ExpectedDataSetFileNamingStrategy defaultFileNamingStrategy = new ExpectedDataSetFileNamingStrategy(Format.XML); String fileName = defaultFileNamingStrategy.createFileName(DummyClass.class, DummyClass.class.getMethod("shouldPass")); assertThat(fileName).isEqualTo( "expected-org.jboss.arquillian.persistence.dbunit.data.naming.DummyClass#shouldPass.xml"); }
@Override public String createFileName(Class<?> testClass, Method testMethod) { return "expected-" + dataSetFileNamingStrategy.createFileName(testClass, testMethod); }
ExpectedDataSetFileNamingStrategy extends FileNamingStrategy<Format> { @Override public String createFileName(Class<?> testClass, Method testMethod) { return "expected-" + dataSetFileNamingStrategy.createFileName(testClass, testMethod); } }
ExpectedDataSetFileNamingStrategy extends FileNamingStrategy<Format> { @Override public String createFileName(Class<?> testClass, Method testMethod) { return "expected-" + dataSetFileNamingStrategy.createFileName(testClass, testMethod); } ExpectedDataSetFileNamingStrategy(Format format); }
ExpectedDataSetFileNamingStrategy extends FileNamingStrategy<Format> { @Override public String createFileName(Class<?> testClass, Method testMethod) { return "expected-" + dataSetFileNamingStrategy.createFileName(testClass, testMethod); } ExpectedDataSetFileNamingStrategy(Format format); @Override String createFileName(Class<?> testClass, Method testMethod); @Override String createFileName(Class<?> testClass); @Override String getFileExtension(); }
ExpectedDataSetFileNamingStrategy extends FileNamingStrategy<Format> { @Override public String createFileName(Class<?> testClass, Method testMethod) { return "expected-" + dataSetFileNamingStrategy.createFileName(testClass, testMethod); } ExpectedDataSetFileNamingStrategy(Format format); @Override String createFileName(Class<?> testClass, Method testMethod); @Override String createFileName(Class<?> testClass); @Override String getFileExtension();  }