mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
Enable test parametrization.
This commit is contained in:
parent
5ace7f5259
commit
c1ed44d627
@ -91,11 +91,13 @@ public class ImportExportTest {
|
||||
@DataProvider(name = "Data-Provider-Function")
|
||||
public Object[][] parameterIntTestProvider() {
|
||||
|
||||
final String testNameToRun = System.getProperty("wise.test.name");
|
||||
|
||||
final File dataDir = new File(DATA_DIR_PATH);
|
||||
final File[] freeMindFiles = dataDir.listFiles(new FilenameFilter() {
|
||||
|
||||
public boolean accept(File dir, String name) {
|
||||
return name.endsWith(".mm");
|
||||
return name.endsWith(".mm") && (testNameToRun==null || name.startsWith(testNameToRun));
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user