Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit622736a

Browse files
author
Dave Cramer
committed
Added missing methods
1 parent07eb9fb commit622736a

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
publicstaticStringgetURL()
15+
{
16+
return"jdbc:postgresql://"+getServer()+":"+getPort()+"/"+getDatabase();
17+
}
18+
19+
/*
20+
* Returns the Test server
21+
*/
22+
publicstaticStringgetServer()
23+
{
24+
returnSystem.getProperty("server");
25+
}
26+
27+
/*
28+
* Returns the Test port
29+
*/
30+
publicstaticintgetPort()
31+
{
32+
returnInteger.parseInt(System.getProperty("port"));
33+
}
34+
35+
/*
36+
* Returns the Test database
37+
*/
38+
publicstaticStringgetDatabase()
1539
{
1640
returnSystem.getProperty("database");
1741
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp