Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07eb9fb commit 622736aCopy full SHA for 622736a
src/interfaces/jdbc/org/postgresql/test/TestUtil.java
@@ -12,6 +12,30 @@ public class TestUtil
12
* Returns the Test database JDBC URL
13
*/
14
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()
39
{
40
return System.getProperty("database");
41
}
0 commit comments