mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 00:08:23 -05:00 
			
		
		
		
	Added missing methods
This commit is contained in:
		
							parent
							
								
									07eb9fb20b
								
							
						
					
					
						commit
						622736aa4a
					
				@ -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");
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user