JpaMigrator { public static void main(String[] jiras) throws JpaMigrateException { try { EntityManagerFactory factory = Persistence.createEntityManagerFactory("JamesMigrator"); EntityManager em = factory.createEntityManager(); for (String jira: jiras) { JpaMigrateCommand jiraJpaMigratable = (JpaMigrateCommand) Class.forName(JPA_MIGRATION_COMMAND_PACKAGE + "." + jira.toUpperCase(Locale.US) + JpaMigrateCommand.class.getSimpleName()).getDeclaredConstructor().newInstance(); LOGGER.info("Now executing {} migration", jira); em.getTransaction().begin(); jiraJpaMigratable.migrate(em); em.getTransaction().commit(); LOGGER.info("{} migration is successfully achieved", jira); } } catch (Throwable t) { throw new JpaMigrateException(t); } }  static void main(String[] jiras);  }
@Test void testImap165() throws Exception { JpaMigrator.main(new String[]{"IMAP165"}); }
@Test void testImap168() throws Exception { JpaMigrator.main(new String[]{"IMAP168"}); }
@Test void testImap172() throws Exception { JpaMigrator.main(new String[]{"IMAP172"}); }
@Test void testImap176() throws Exception { JpaMigrator.main(new String[]{"IMAP176"}); }
@Test void testImap180() throws Exception { JpaMigrator.main(new String[]{"IMAP180"}); }
@Test void testImap184() throws Exception { JpaMigrator.main(new String[]{"IMAP184"}); }