Again, changed the test framework to ignore test files that do not match the expected test file format

git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_stabilization@1404 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-test-framework/src/main/java/edu/uci/ics/asterix/testframework/context/TestCaseContext.java b/asterix-test-framework/src/main/java/edu/uci/ics/asterix/testframework/context/TestCaseContext.java
index d5cf82a..d1818ff 100644
--- a/asterix-test-framework/src/main/java/edu/uci/ics/asterix/testframework/context/TestCaseContext.java
+++ b/asterix-test-framework/src/main/java/edu/uci/ics/asterix/testframework/context/TestCaseContext.java
@@ -86,9 +86,19 @@
 
         if (fileNames != null) {
             for (String fName : fileNames) {
+                if (fName.startsWith(".")) {
+                    continue;
+                }
+                
                 File testFile = new File(path, fName);
                 TestFileContext tfsc = new TestFileContext(testFile);
                 String[] nameSplits = fName.split("\\.");
+                
+                if (nameSplits.length < 3) {
+                    throw new IllegalArgumentException("Test file '" + cUnit.getName() + File.separatorChar
+                            + fName + "' does not have the proper test file name format.");
+                }
+                
                 tfsc.setSeqNum(nameSplits[nameSplits.length - 2]);
                 resultFileCtxs.add(tfsc);
             }