소스 검색

Fix TestCopyFiles to comply with HADOOP-327 changes.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@421191 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 19 년 전
부모
커밋
da62389a8c
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/test/org/apache/hadoop/fs/TestCopyFiles.java

+ 4 - 4
src/test/org/apache/hadoop/fs/TestCopyFiles.java

@@ -157,7 +157,7 @@ public class TestCopyFiles extends TestCase {
   }
   
   /** copy files from local file system to local file system */
-  public void testCopyFromLocalToLocal() throws IOException {
+  public void testCopyFromLocalToLocal() throws Exception {
     MyFile[] files = createFiles("local", TEST_ROOT_DIR+"/srcdat");
     CopyFiles.main(new String[] {"file://"+TEST_ROOT_DIR+"/srcdat",
       "file://"+TEST_ROOT_DIR+"/destdat"});
@@ -168,7 +168,7 @@ public class TestCopyFiles extends TestCase {
   }
   
   /** copy files from dfs file system to dfs file system */
-  public void testCopyFromDfsToDfs() throws IOException {
+  public void testCopyFromDfsToDfs() throws Exception {
     String namenode = null;
     MiniDFSCluster cluster = null;
     try {
@@ -190,7 +190,7 @@ public class TestCopyFiles extends TestCase {
   }
   
   /** copy files from local file system to dfs file system */
-  public void testCopyFromLocalToDfs() throws IOException {
+  public void testCopyFromLocalToDfs() throws Exception {
     String namenode = null;
     MiniDFSCluster cluster = null;
     try {
@@ -212,7 +212,7 @@ public class TestCopyFiles extends TestCase {
   }
 
   /** copy files from dfs file system to local file system */
-  public void testCopyFromDfsToLocal() throws IOException {
+  public void testCopyFromDfsToLocal() throws Exception {
     String namenode = null;
     MiniDFSCluster cluster = null;
     try {