Changeset 425 for trunk


Ignore:
Timestamp:
07/17/12 16:44:27 (12 years ago)
Author:
sherbold
Message:
  • implemented file filtering to consider only .tst files when EFG test cases are loaded as sequences with efgTestCasesToSequences
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/efg/commands/CMDefgTestCasesToSequences.java

    r244 r425  
    22 
    33import java.io.File; 
     4import java.io.FilenameFilter; 
    45import java.security.InvalidParameterException; 
    56import java.util.Collection; 
     
    4546 
    4647                File folder = new File(foldername); 
    47                 // TODO would be more robust with filter 
    48                 File[] testcaseFiles = folder.listFiles(); 
     48                 
     49                File[] testcaseFiles = folder.listFiles( new FilenameFilter() { 
     50                        @Override 
     51                        public boolean accept(File dir, String name) { 
     52                                return name.endsWith(".tst"); 
     53                        } 
     54                }); 
    4955                Collection<List<Event<?>>> sequences = new LinkedList<List<Event<?>>>(); 
    5056                GUITARTestCaseParser parser; 
Note: See TracChangeset for help on using the changeset viewer.