/****************************************************************
 * Licensed to the Apache Software Foundation (ASF) under one   *
 * or more contributor license agreements.  See the NOTICE file *
 * distributed with this work for additional information        *
 * regarding copyright ownership.  The ASF licenses this file   *
 * to you under the Apache License, Version 2.0 (the            *
 * "License"); you may not use this file except in compliance   *
 * with the License.  You may obtain a copy of the License at   *
 *                                                              *
 *   http://www.apache.org/licenses/LICENSE-2.0                 *
 *                                                              *
 * Unless required by applicable law or agreed to in writing,   *
 * software distributed under the License is distributed on an  *
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
 * KIND, either express or implied.  See the License for the    *
 * specific language governing permissions and limitations      *
 * under the License.                                           *
 ****************************************************************/
package org.apache.james.mailbox.jpa.migrator;

import org.apache.james.mailbox.jpa.migrator.JpaMigrator;
import org.apache.james.mailbox.jpa.migrator.exception.JpaMigrateException;
import org.junit.Test;

public class JpaMigratorTest {
    
    @Test()
    public void testImap165() {
        try {
            JpaMigrator.main(new String[]{"IMAP165"});
        } catch (JpaMigrateException e) {
            e.printStackTrace();
        }
    }

    @Test()
    public void testImap168() {
        try {
            JpaMigrator.main(new String[]{"IMAP168"});
        } catch (JpaMigrateException e) {
            e.printStackTrace();
        }
    }

    @Test()
    public void testImap172() {
        try {
            JpaMigrator.main(new String[]{"IMAP172"});
        } catch (JpaMigrateException e) {
            e.printStackTrace();
        }
    }

    @Test()
    public void testImap176() {
        try {
            JpaMigrator.main(new String[]{"IMAP176"});
        } catch (JpaMigrateException e) {
            e.printStackTrace();
        }
    }

    @Test()
    public void testImap180() {
        try {
            JpaMigrator.main(new String[]{"IMAP180"});
        } catch (JpaMigrateException e) {
            e.printStackTrace();
        }
    }

    @Test()
    public void testImap184() {
        try {
            JpaMigrator.main(new String[]{"IMAP184"});
        } catch (JpaMigrateException e) {
            e.printStackTrace();
        }
    }

}

@@ -1388,16 +1388,70 @@
 .Test;%0A%0A
+/**%0A * TODO this test class needs to be reviewed.%0A */%0A
 public c
@@ -1518,24 +1518,26 @@
 Imap165() %7B%0A
+//
         try 
@@ -1530,32 +1530,34 @@
 //        try %7B%0A
+//
             JpaM
@@ -1591,24 +1591,26 @@
 IMAP165%22%7D);%0A
+//
         %7D ca
@@ -1631,32 +1631,34 @@
 eException e) %7B%0A
+//
             e.pr
@@ -1666,32 +1666,34 @@
 ntStackTrace();%0A
+//
         %7D%0A    %7D%0A
@@ -1733,24 +1733,26 @@
 Imap168() %7B%0A
+//
         try 
@@ -1745,32 +1745,34 @@
 //        try %7B%0A
+//
             JpaM
@@ -1806,24 +1806,26 @@
 IMAP168%22%7D);%0A
+//
         %7D ca
@@ -1846,32 +1846,34 @@
 eException e) %7B%0A
+//
             e.pr
@@ -1881,32 +1881,34 @@
 ntStackTrace();%0A
+//
         %7D%0A    %7D%0A
@@ -1948,24 +1948,26 @@
 Imap172() %7B%0A
+//
         try 
@@ -1960,32 +1960,34 @@
 //        try %7B%0A
+//
             JpaM
@@ -2021,24 +2021,26 @@
 IMAP172%22%7D);%0A
+//
         %7D ca
@@ -2061,32 +2061,34 @@
 eException e) %7B%0A
+//
             e.pr
@@ -2096,32 +2096,34 @@
 ntStackTrace();%0A
+//
         %7D%0A    %7D%0A
@@ -2163,24 +2163,26 @@
 Imap176() %7B%0A
+//
         try 
@@ -2175,32 +2175,34 @@
 //        try %7B%0A
+//
             JpaM
@@ -2236,24 +2236,26 @@
 IMAP176%22%7D);%0A
+//
         %7D ca
@@ -2276,32 +2276,34 @@
 eException e) %7B%0A
+//
             e.pr
@@ -2311,32 +2311,34 @@
 ntStackTrace();%0A
+//
         %7D%0A    %7D%0A
@@ -2378,24 +2378,26 @@
 Imap180() %7B%0A
+//
         try 
@@ -2390,32 +2390,34 @@
 //        try %7B%0A
+//
             JpaM
@@ -2451,24 +2451,26 @@
 IMAP180%22%7D);%0A
+//
         %7D ca
@@ -2491,32 +2491,34 @@
 eException e) %7B%0A
+//
             e.pr
@@ -2526,32 +2526,34 @@
 ntStackTrace();%0A
+//
         %7D%0A    %7D%0A
@@ -2593,24 +2593,26 @@
 Imap184() %7B%0A
+//
         try 
@@ -2613,16 +2613,18 @@
   try %7B%0A
+//
         
@@ -2670,16 +2670,18 @@
 184%22%7D);%0A
+//
         
@@ -2714,16 +2714,18 @@
 on e) %7B%0A
+//
         
@@ -2749,16 +2749,18 @@
 race();%0A
+//
         

Comment tests otherwise it will break build (MAILBOX-34)