From 622736aa4a834caf35867ab75d744dfd7d8f44f8 Mon Sep 17 00:00:00 2001 From: Dave Cramer Date: Wed, 5 Nov 2003 11:57:53 +0000 Subject: [PATCH] Added missing methods --- .../jdbc/org/postgresql/test/TestUtil.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) 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 @@ -12,6 +12,30 @@ public class TestUtil * Returns the Test database JDBC URL */ 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"); }