~ubuntu-branches/ubuntu/wily/libpgjava/wily

« back to all changes in this revision

Viewing changes to src/interfaces/jdbc/org/postgresql/test/jdbc2/ANTTest.java

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Gybas
  • Date: 2002-02-06 23:43:06 UTC
  • Revision ID: james.westby@ubuntu.com-20020206234306-hsg7suqr8q56qg40
Tags: upstream-7.2
ImportĀ upstreamĀ versionĀ 7.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.postgresql.test.jdbc2;
 
2
 
 
3
import junit.framework.TestCase;
 
4
 
 
5
public class ANTTest extends TestCase
 
6
{
 
7
        public ANTTest(String name)
 
8
        {
 
9
                super(name);
 
10
        }
 
11
 
 
12
        /*
 
13
         * This tests the acceptsURL() method with a couple of good and badly formed
 
14
         * jdbc urls
 
15
         */
 
16
        public void testANT()
 
17
        {
 
18
                String url = System.getProperty("database");
 
19
                String usr = System.getProperty("username");
 
20
                String psw = System.getProperty("password");
 
21
 
 
22
                assertNotNull(url);
 
23
                assertNotNull(usr);
 
24
                assertNotNull(psw);
 
25
 
 
26
                assertTrue(! url.equals(""));
 
27
                assertTrue(! usr.equals(""));
 
28
        }
 
29
}