This is an automated email from the git hooks/post-receive script. New commit to branch feature/6417 in repository tutti. See http://git.codelutin.com/tutti.git commit 980ce0739e0ff547d6b66d6b58b7df7b16db71cd Author: Tony CHEMIT <chemit@codelutin.com> Date: Mon Jan 12 21:55:23 2015 +0100 suppression de test d'adagio dans tutti --- .../persistence/TuttiPersistenceWriteTest.java | 68 --------------------- .../fr/ifremer/tutti/service/UpdateSchemaTest.java | 69 ---------------------- 2 files changed, 137 deletions(-) diff --git a/tutti-persistence/src/test/java/fr/ifremer/tutti/persistence/TuttiPersistenceWriteTest.java b/tutti-persistence/src/test/java/fr/ifremer/tutti/persistence/TuttiPersistenceWriteTest.java deleted file mode 100644 index 9997537..0000000 --- a/tutti-persistence/src/test/java/fr/ifremer/tutti/persistence/TuttiPersistenceWriteTest.java +++ /dev/null @@ -1,68 +0,0 @@ -package fr.ifremer.tutti.persistence; - -/* - * #%L - * Tutti :: Persistence - * %% - * Copyright (C) 2012 - 2014 Ifremer - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -import fr.ifremer.tutti.persistence.service.TuttiPersistenceServiceLocator; -import fr.ifremer.tutti.persistence.test.DatabaseResource; -import org.junit.Assert; -import org.junit.Before; -import org.junit.ClassRule; -import org.junit.Ignore; -import org.junit.Test; -import org.nuiton.util.version.Version; - -/** - * @author tchemit <chemit@codelutin.com> - * @since 2.4 - */ -@Ignore -public class TuttiPersistenceWriteTest { - - @ClassRule - public static final DatabaseResource dbResource = - DatabaseResource.writeDb("db_3.2.1.01"); - - protected TuttiPersistence persistence; - - @Before - public void setUp() throws Exception { - persistence = TuttiPersistenceServiceLocator.getPersistenceService(); - } - - @Test - public void updateSchema() { - - dbResource.setDestroyResources(false); - - Version dbVersion = persistence.getDbVersion(); - Assert.assertEquals(dbResource.getFixtures().currentAdagioSchemaVersion(), dbVersion); - - Version applicationVersion = persistence.getApplicationVersion(); - Assert.assertEquals(dbResource.getFixtures().lastAdagioSchemaVersion(), applicationVersion); - - persistence.updateSchema(); - - Version newDbVersion = persistence.getDbVersion(); - Assert.assertEquals(applicationVersion, newDbVersion); - } -} diff --git a/tutti-service/src/test/java/fr/ifremer/tutti/service/UpdateSchemaTest.java b/tutti-service/src/test/java/fr/ifremer/tutti/service/UpdateSchemaTest.java deleted file mode 100644 index 4bdc464..0000000 --- a/tutti-service/src/test/java/fr/ifremer/tutti/service/UpdateSchemaTest.java +++ /dev/null @@ -1,69 +0,0 @@ -package fr.ifremer.tutti.service; - -/* - * #%L - * Tutti :: Service - * %% - * Copyright (C) 2012 - 2014 Ifremer - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -import fr.ifremer.tutti.persistence.TuttiPersistence; -import fr.ifremer.tutti.persistence.service.TuttiPersistenceServiceLocator; -import fr.ifremer.tutti.persistence.test.DatabaseResource; -import org.junit.Assert; -import org.junit.Before; -import org.junit.ClassRule; -import org.junit.Test; -import org.nuiton.util.version.Version; - -/** - * Pour mettre à jour le schéma d'une base de test. - * - * @author tchemit <chemit@codelutin.com> - * @since 2.4 - */ -public class UpdateSchemaTest { - - @ClassRule - public static final DatabaseResource dbResource = - DatabaseResource.writeDb("dbCGFS_old"); - - protected TuttiPersistence persistence; - - @Before - public void setUp() throws Exception { - persistence = TuttiPersistenceServiceLocator.getPersistenceService(); - } - - @Test - public void updateSchema() { - - dbResource.setDestroyResources(false); - - Version dbVersion = persistence.getDbVersion(); - Assert.assertEquals(dbResource.getFixtures().currentAdagioSchemaVersion(), dbVersion); - - Version applicationVersion = persistence.getApplicationVersion(); - Assert.assertEquals(dbResource.getFixtures().lastAdagioSchemaVersion(), applicationVersion); - - persistence.updateSchema(); - - Version newDbVersion = persistence.getDbVersion(); - Assert.assertEquals(applicationVersion, newDbVersion); - } -} -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.