View Javadoc

1   /*
2    * SymmetricDS is an open source database synchronization solution.
3    *   
4    * Copyright (C) Chris Henson <chenson42@users.sourceforge.net>
5    *
6    * This library is free software; you can redistribute it and/or
7    * modify it under the terms of the GNU Lesser General Public
8    * License as published by the Free Software Foundation; either
9    * version 3 of the License, or (at your option) any later version.
10   *
11   * This library is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14   * Lesser General Public License for more details.
15   *
16   * You should have received a copy of the GNU Lesser General Public
17   * License along with this library; if not, see
18   * <http://www.gnu.org/licenses/>.
19   */
20  package org.jumpmind.symmetric.test;
21  
22  import java.util.Collection;
23  
24  import org.jumpmind.symmetric.config.ParameterFilterTest;
25  import org.jumpmind.symmetric.db.DbTriggerTest;
26  import org.jumpmind.symmetric.ext.XmlPublisherFilterTest;
27  import org.jumpmind.symmetric.extract.DataExtractorTest;
28  import org.jumpmind.symmetric.load.DataLoaderTest;
29  import org.jumpmind.symmetric.service.impl.AcknowledgeServiceTest;
30  import org.jumpmind.symmetric.service.impl.ClusterServiceTest;
31  import org.jumpmind.symmetric.service.impl.DataExtractorServiceTest;
32  import org.jumpmind.symmetric.service.impl.DataLoaderServiceTest;
33  import org.jumpmind.symmetric.service.impl.NodeServiceTest;
34  import org.jumpmind.symmetric.service.impl.OutgoingBatchServiceTest;
35  import org.jumpmind.symmetric.service.impl.ParameterServiceTest;
36  import org.jumpmind.symmetric.service.impl.PurgeServiceTest;
37  import org.jumpmind.symmetric.service.impl.RegistrationServiceTest;
38  import org.jumpmind.symmetric.service.impl.StatisticServiceTest;
39  import org.jumpmind.symmetric.web.NodeConcurrencyFilterTest;
40  import org.junit.Test;
41  import org.junit.runner.RunWith;
42  import org.junit.runners.Parameterized.Parameters;
43  import org.junit.runners.Suite.SuiteClasses;
44  
45  @RunWith(ParameterizedSuite.class)
46  @SuiteClasses( { DbTriggerTest.class, DataLoaderTest.class, DataExtractorTest.class, ParameterFilterTest.class,
47          CrossCatalogSyncTest.class, FunkyDataTypesTest.class, NodeConcurrencyFilterTest.class,
48          AcknowledgeServiceTest.class, ClusterServiceTest.class, DataExtractorServiceTest.class,
49          DataLoaderServiceTest.class, NodeServiceTest.class, OutgoingBatchServiceTest.class, ParameterServiceTest.class,
50          PurgeServiceTest.class, RegistrationServiceTest.class, StatisticServiceTest.class, XmlPublisherFilterTest.class, CleanupTest.class })
51  public class DatabaseTestSuite extends AbstractDatabaseTest {
52  
53      public static final String DEFAULT_TEST_PREFIX = "test";
54  
55      @Parameters
56      public static Collection<String[]> lookupDatabases() {
57          return TestSetupUtil.lookupDatabases(DEFAULT_TEST_PREFIX);
58      }
59  
60      public DatabaseTestSuite(String dbName) {
61          super(dbName);
62      }
63  
64      @Test
65      public void setup() throws Exception {
66          TestSetupUtil.setup(DEFAULT_TEST_PREFIX, TestConstants.TEST_CONTINUOUS_SETUP_SCRIPT, null, database);
67      }
68  
69  }