Commit 622736aa authored by Dave Cramer's avatar Dave Cramer

Added missing methods

parent 07eb9fb2
...@@ -12,6 +12,30 @@ public class TestUtil ...@@ -12,6 +12,30 @@ public class TestUtil
* Returns the Test database JDBC URL * Returns the Test database JDBC URL
*/ */
public static String getURL() 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"); return System.getProperty("database");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment