Initializes the Pig test. @param args The list of arguments of the script. @param argFiles The list of file arguments of the script. @param pigTextScript The text of the Pig script to test with no substitution or change.
(String[] args, String[] argFiles, String pigTextScript)
| 81 | * @param pigTextScript The text of the Pig script to test with no substitution or change. |
| 82 | */ |
| 83 | @SuppressWarnings("serial") |
| 84 | PigTest(String[] args, String[] argFiles, String pigTextScript) { |
| 85 | this.originalTextPigScript = pigTextScript; |
| 86 | this.args = args; |
| 87 | this.argFiles = argFiles; |
| 88 | this.aliasOverrides = new HashMap<String, String>() {{ |
| 89 | put("STORE", ""); |
| 90 | put("DUMP", ""); |
| 91 | }}; |
| 92 | } |
| 93 | |
| 94 | public PigTest(String scriptPath) throws IOException { |
| 95 | this(null, null, readFile(scriptPath)); |