()
| 841 | } |
| 842 | |
| 843 | @Test // PIG-2006 |
| 844 | public void testEmptyFile() throws IOException { |
| 845 | File f1 = new File(PIG_FILE); |
| 846 | |
| 847 | FileWriter fw1 = new FileWriter(f1); |
| 848 | fw1.close(); |
| 849 | |
| 850 | try { |
| 851 | String[] args = { "-x", "local", "-c", PIG_FILE }; |
| 852 | PigStats stats = PigRunner.run(args, null); |
| 853 | |
| 854 | assertTrue(stats.isSuccessful()); |
| 855 | assertEquals( 0, stats.getReturnCode() ); |
| 856 | } finally { |
| 857 | new File(PIG_FILE).delete(); |
| 858 | Util.deleteFile(cluster, OUTPUT_FILE); |
| 859 | } |
| 860 | } |
| 861 | |
| 862 | @Test |
| 863 | public void returnCodeTest() throws Exception { |
nothing calls this directly
no test coverage detected