Skip to content

Commit 622736a

Browse files
author
Dave Cramer
committed
Added missing methods
1 parent 07eb9fb commit 622736a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/interfaces/jdbc/org/postgresql/test/TestUtil.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,30 @@ public class TestUtil
1212
* Returns the Test database JDBC URL
1313
*/
1414
public static String getURL()
15+
{
16+
return "jdbc:postgresql://"+getServer()+":"+getPort()+"/"+getDatabase();
17+
}
18+
19+
/*
20+
* Returns the Test server
21+
*/
22+
public static String getServer()
23+
{
24+
return System.getProperty("server");
25+
}
26+
27+
/*
28+
* Returns the Test port
29+
*/
30+
public static int getPort()
31+
{
32+
return Integer.parseInt(System.getProperty("port"));
33+
}
34+
35+
/*
36+
* Returns the Test database
37+
*/
38+
public static String getDatabase()
1539
{
1640
return System.getProperty("database");
1741
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy