aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Cramer <davec@fastcrypt.com>2003-11-05 11:57:53 +0000
committerDave Cramer <davec@fastcrypt.com>2003-11-05 11:57:53 +0000
commit622736aa4a834caf35867ab75d744dfd7d8f44f8 (patch)
tree01ea48b08f6c0293c5942696f860840e129a798a
parent07eb9fb20bc800d319a78b72bdcc265ee6e35cbb (diff)
downloadpostgresql-622736aa4a834caf35867ab75d744dfd7d8f44f8.tar.gz
postgresql-622736aa4a834caf35867ab75d744dfd7d8f44f8.zip
Added missing methods
-rw-r--r--src/interfaces/jdbc/org/postgresql/test/TestUtil.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/test/TestUtil.java b/src/interfaces/jdbc/org/postgresql/test/TestUtil.java
index 930215ed380..6b139435a54 100644
--- a/src/interfaces/jdbc/org/postgresql/test/TestUtil.java
+++ b/src/interfaces/jdbc/org/postgresql/test/TestUtil.java
@@ -13,6 +13,30 @@ public class TestUtil
*/
public static String getURL()
{
+ return "jdbc:postgresql://"+getServer()+":"+getPort()+"/"+getDatabase();
+ }
+
+ /*
+ * Returns the Test server
+ */
+ public static String getServer()
+ {
+ return System.getProperty("server");
+ }
+
+ /*
+ * Returns the Test port
+ */
+ public static int getPort()
+ {
+ return Integer.parseInt(System.getProperty("port"));
+ }
+
+ /*
+ * Returns the Test database
+ */
+ public static String getDatabase()
+ {
return System.getProperty("database");
}