2
* $Id: PgDumpLoaderTest.java 91 2008-08-01 17:35:19Z fordfrog $
4
package cz.startnet.utils.pgdiff.loader;
8
import org.junit.runner.RunWith;
10
import org.junit.runners.Parameterized;
11
import org.junit.runners.Parameterized.Parameters;
13
import java.util.Arrays;
14
import java.util.Collection;
17
* Tests for PgDiffLoader class.
20
* @version $Id: PgDumpLoaderTest.java 91 2008-08-01 17:35:19Z fordfrog $
22
@RunWith(value = Parameterized.class)
23
public class PgDumpLoaderTest {
26
* Index of the file that should be tested.
28
private final int fileIndex;
31
* Creates a new instance of PgDumpLoaderTest.
33
* @param fileIndex {@link #fileIndex}
35
public PgDumpLoaderTest(final int fileIndex) {
36
this.fileIndex = fileIndex;
40
* Provides parameters for running the tests.
42
* @return parameters for the tests
45
public static Collection parameters() {
61
public void loadSchema() {
62
PgDumpLoader.loadDatabaseSchema(
63
getClass().getResourceAsStream("schema_" + fileIndex + ".sql"),