OSDN Git Service

Java5で動作するように修正。(1.6で導入されたメソッドを削除)
authoryuki <yuki@bdf3b611-c98c-6041-8292-703d9c9adbe7>
Mon, 24 May 2010 07:28:13 +0000 (07:28 +0000)
committeryuki <yuki@bdf3b611-c98c-6041-8292-703d9c9adbe7>
Mon, 24 May 2010 07:28:13 +0000 (07:28 +0000)
git-svn-id: http://192.168.11.7/svn/repository/NicoBrowser/trunk@323 bdf3b611-c98c-6041-8292-703d9c9adbe7

test/nicobrowser/NicoHttpClientTest.java
test/nicobrowser/update/UpdaterTest.java

index 59fea0a..a7ca587 100644 (file)
@@ -264,7 +264,7 @@ public class NicoHttpClientTest {
     }
 
     @Test
-    public void getCommentFile() throws URISyntaxException, HttpException, InterruptedException, IOException {
+    public void getCommentFile() throws URISyntaxException, HttpException, InterruptedException, Exception {
         final String comm = NORMAL_VIDEO + "comment";
         final String tcomm = NORMAL_VIDEO + "tcomment.xml";
         File commFile = new File(comm + ".xml");
@@ -283,7 +283,7 @@ public class NicoHttpClientTest {
     }
 
     @Test
-    public void getCommentFile_Official() throws URISyntaxException, HttpException, InterruptedException, IOException {
+    public void getCommentFile_Official() throws URISyntaxException, HttpException, InterruptedException, Exception {
         final String comm = OFFICIAL_VIDEO + "comment";
         final String tcomm = OFFICIAL_VIDEO + "tcomment.xml";
         File commFile = new File(comm + ".xml");
index aa2c4c3..f076f56 100644 (file)
@@ -7,14 +7,14 @@ import org.junit.Test;
 public class UpdaterTest {
 
     @Test
-    public void testUpdate() throws IOException {
+    public void testUpdate() throws Exception {
         System.out.println("update");
         DBUpdater instance = new DBUpdater();
         instance.update();
     }
 
     @Test
-    public void testSyncAndUpdate() throws IOException {
+    public void testSyncAndUpdate() throws Exception {
         DBUpdater updater = new DBUpdater();
         updater.sync();
         updater.update();