~ubuntu-branches/ubuntu/raring/apgdiff/raring

« back to all changes in this revision

Viewing changes to src/test/java/cz/startnet/utils/pgdiff/loader/PgDumpLoaderTest.java

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2009-12-02 11:11:33 UTC
  • mfrom: (1.1.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20091202111133-k5wrh3zb2pzmbv8c
Tags: 1.4-1
* New upstream version. (Without changelog, I am afraid.)
* Test suite still not enabled as it needs network access. (The junit
  version in Debian needs upgrading.)
* Optimize rules files a bit so debhelper doesn't clean twice, and quilt's
  patch target doesn't prevent build-stamp from working.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * $Id: PgDumpLoaderTest.java 91 2008-08-01 17:35:19Z fordfrog $
3
 
 */
4
1
package cz.startnet.utils.pgdiff.loader;
5
2
 
6
3
import org.junit.Test;
17
14
 * Tests for PgDiffLoader class.
18
15
 *
19
16
 * @author fordfrog
20
 
 * @version $Id: PgDumpLoaderTest.java 91 2008-08-01 17:35:19Z fordfrog $
21
17
 */
22
18
@RunWith(value = Parameterized.class)
23
19
public class PgDumpLoaderTest {
42
38
     * @return parameters for the tests
43
39
     */
44
40
    @Parameters
45
 
    public static Collection parameters() {
 
41
    public static Collection<?> parameters() {
46
42
        return Arrays.asList(
47
 
            new Object[][]{
48
 
                {1},
49
 
                {2},
50
 
                {3},
51
 
                {4},
52
 
                {5},
53
 
                {6}
54
 
            });
 
43
                new Object[][]{
 
44
                    {1},
 
45
                    {2},
 
46
                    {3},
 
47
                    {4},
 
48
                    {5},
 
49
                    {6}
 
50
                });
55
51
    }
56
52
 
57
53
    /**
60
56
    @Test(timeout = 1000)
61
57
    public void loadSchema() {
62
58
        PgDumpLoader.loadDatabaseSchema(
63
 
            getClass().getResourceAsStream("schema_" + fileIndex + ".sql"),
64
 
            "UTF-8");
 
59
                getClass().getResourceAsStream("schema_" + fileIndex + ".sql"),
 
60
                "UTF-8");
65
61
    }
66
62
}