1 21 22 package org.apache.derbyTesting.functionTests.harness; 23 24 import java.util.Properties ; 25 import java.io.BufferedReader ; 26 import java.io.InputStream ; 27 import java.io.InputStreamReader ; 28 29 30 36 public class SkipTest 37 { 38 39 private SkipTest() 40 { 41 } 42 43 public static boolean skipIt(String listFileName, String testName) 44 throws Exception 45 { 46 boolean answer = false; 47 InputStream is = 48 RunTest.loadTestResource("suites" + '/' + listFileName); 49 if (is == null) 50 { 51 System.out.println("File not found: " + listFileName); 52 answer = false; 53 return answer; 54 } 55 56 BufferedReader listFile = new BufferedReader (new InputStreamReader (is, "UTF-8")); 58 String str = ""; 59 while ( (str = listFile.readLine()) != null ) 61 { 62 if ( (testName.equals(str)) ) 63 answer = true; 64 } 65 return answer; 66 } 67 } 68 69 70 | Popular Tags |