You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ad...@apache.org on 2017/07/05 13:59:33 UTC

[26/34] james-project git commit: JAMES-2085 JpaMigratorTest should not be commented and should not print stacktraces

JAMES-2085 JpaMigratorTest should not be commented and should not print stacktraces


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/11f5efa3
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/11f5efa3
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/11f5efa3

Branch: refs/heads/master
Commit: 11f5efa36176d8413507cc6ed240cffc2f6c07b2
Parents: 99b4987
Author: benwa <bt...@linagora.com>
Authored: Mon Jul 3 16:22:42 2017 +0700
Committer: benwa <bt...@linagora.com>
Committed: Wed Jul 5 17:13:48 2017 +0700

----------------------------------------------------------------------
 .../mailbox/jpa/migrator/JpaMigratorTest.java   | 58 ++++++--------------
 1 file changed, 17 insertions(+), 41 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/11f5efa3/mailbox/tool/src/test/java/org/apache/james/mailbox/jpa/migrator/JpaMigratorTest.java
----------------------------------------------------------------------
diff --git a/mailbox/tool/src/test/java/org/apache/james/mailbox/jpa/migrator/JpaMigratorTest.java b/mailbox/tool/src/test/java/org/apache/james/mailbox/jpa/migrator/JpaMigratorTest.java
index ca83271..b3de9cb 100644
--- a/mailbox/tool/src/test/java/org/apache/james/mailbox/jpa/migrator/JpaMigratorTest.java
+++ b/mailbox/tool/src/test/java/org/apache/james/mailbox/jpa/migrator/JpaMigratorTest.java
@@ -18,65 +18,41 @@
  ****************************************************************/
 package org.apache.james.mailbox.jpa.migrator;
 
+import org.junit.Ignore;
 import org.junit.Test;
 
-/**
- * TODO this test class needs to be reviewed.
- */
+// TODO
+@Ignore("This class needs to be reviewed")
 public class JpaMigratorTest {
-    
-    @Test()
-    public void testImap165() {
-//        try {
-//            JpaMigrator.main(new String[]{"IMAP165"});
-//        } catch (JpaMigrateException e) {
-//            e.printStackTrace();
-//        }
+
+    @Test
+    public void testImap165() throws Exception {
+        JpaMigrator.main(new String[]{"IMAP165"});
     }
 
     @Test()
-    public void testImap168() {
-//        try {
-//            JpaMigrator.main(new String[]{"IMAP168"});
-//        } catch (JpaMigrateException e) {
-//            e.printStackTrace();
-//        }
+    public void testImap168() throws Exception {
+        JpaMigrator.main(new String[]{"IMAP168"});
     }
 
     @Test()
-    public void testImap172() {
-//        try {
-//            JpaMigrator.main(new String[]{"IMAP172"});
-//        } catch (JpaMigrateException e) {
-//            e.printStackTrace();
-//        }
+    public void testImap172() throws Exception {
+        JpaMigrator.main(new String[]{"IMAP172"});
     }
 
     @Test()
-    public void testImap176() {
-//        try {
-//            JpaMigrator.main(new String[]{"IMAP176"});
-//        } catch (JpaMigrateException e) {
-//            e.printStackTrace();
-//        }
+    public void testImap176() throws Exception {
+        JpaMigrator.main(new String[]{"IMAP176"});
     }
 
     @Test()
-    public void testImap180() {
-//        try {
-//            JpaMigrator.main(new String[]{"IMAP180"});
-//        } catch (JpaMigrateException e) {
-//            e.printStackTrace();
-//        }
+    public void testImap180() throws Exception {
+        JpaMigrator.main(new String[]{"IMAP180"});
     }
 
     @Test()
-    public void testImap184() {
-//        try {
-//            JpaMigrator.main(new String[]{"IMAP184"});
-//        } catch (JpaMigrateException e) {
-//            e.printStackTrace();
-//        }
+    public void testImap184() throws Exception {
+        JpaMigrator.main(new String[]{"IMAP184"});
     }
 
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org