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.junit.Test;
25  import org.junit.runner.RunWith;
26  import org.junit.runners.Parameterized.Parameters;
27  import org.junit.runners.Suite.SuiteClasses;
28  
29  @RunWith(ParameterizedSuite.class)
30  @SuiteClasses( { SimpleIntegrationTest.class, LoadFromClientIntegrationTest.class, CleanupTest.class })
31  public class IntegrationTestSuite {
32  
33      static final String TEST_PREFIX = "test";
34  
35      @Parameters
36      public static Collection<String[]> lookupClientServerDatabases() {
37          return TestSetupUtil.lookupDatabasePairs(TEST_PREFIX);
38      }
39  
40      String root;
41      String client;
42  
43      public IntegrationTestSuite(String client, String root) {
44          this.client = client;
45          this.root = root;
46      }
47  
48      @Test
49      public void setup() throws Exception {
50          TestSetupUtil.setup(TEST_PREFIX, TestConstants.TEST_ROOT_DOMAIN_SETUP_SCRIPT, client, root);
51      }
52  
53  }