examples
Class TestParser

java.lang.Object
  extended by examples.TestParser

public class TestParser
extends java.lang.Object


Field Summary
static java.lang.String ALL
           
static java.lang.String EQUAL10
           
static int failcount
          How much tests did fail?
static java.lang.String ONLY10
           
static int SRID
          The srid we use for the srid tests
static java.lang.String SRIDPREFIX
          The string prefix we get for the srid tests
static java.lang.String[][] testset
          Our set of geometries to test.
 
Constructor Summary
TestParser()
           
 
Method Summary
static java.sql.Connection connect(java.lang.String url, java.lang.String dbuser, java.lang.String dbpass)
          Connect to the databases We use DriverWrapper here.
static void loadDrivers()
           
static void main(java.lang.String[] args)
          Our apps entry point
static void test(java.lang.String WKT, java.sql.Connection[] conns, java.lang.String flags)
          The actual test method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL

public static java.lang.String ALL

ONLY10

public static java.lang.String ONLY10

EQUAL10

public static java.lang.String EQUAL10

testset

public static final java.lang.String[][] testset
Our set of geometries to test.


SRID

public static final int SRID
The srid we use for the srid tests

See Also:
Constant Field Values

SRIDPREFIX

public static final java.lang.String SRIDPREFIX
The string prefix we get for the srid tests

See Also:
Constant Field Values

failcount

public static int failcount
How much tests did fail?

Constructor Detail

TestParser

public TestParser()
Method Detail

test

public static void test(java.lang.String WKT,
                        java.sql.Connection[] conns,
                        java.lang.String flags)
                 throws java.sql.SQLException
The actual test method

Throws:
java.sql.SQLException

connect

public static java.sql.Connection connect(java.lang.String url,
                                          java.lang.String dbuser,
                                          java.lang.String dbpass)
                                   throws java.sql.SQLException
Connect to the databases We use DriverWrapper here. For alternatives, see the DriverWrapper Javadoc

Parameters:
dbuser -
Throws:
java.sql.SQLException
See Also:
DriverWrapper

loadDrivers

public static void loadDrivers()
                        throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

main

public static void main(java.lang.String[] args)
                 throws java.sql.SQLException,
                        java.lang.ClassNotFoundException
Our apps entry point

Throws:
java.sql.SQLException
java.lang.ClassNotFoundException