mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
JDBC indenting, comment cleanups.
This commit is contained in:
@@ -9,7 +9,7 @@ public class ANTTest extends TestCase
|
||||
super(name);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* This tests the acceptsURL() method with a couple of good and badly formed
|
||||
* jdbc urls
|
||||
*/
|
||||
|
@@ -5,11 +5,11 @@ import junit.framework.TestCase;
|
||||
import java.sql.*;
|
||||
|
||||
/* TODO tests that can be added to this test case
|
||||
- SQLExceptions chained to a BatchUpdateException
|
||||
- test PreparedStatement as thoroughly as Statement
|
||||
* - SQLExceptions chained to a BatchUpdateException
|
||||
* - test PreparedStatement as thoroughly as Statement
|
||||
*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* Test case for Statement.batchExecute()
|
||||
*/
|
||||
public class BatchExecuteTest extends TestCase
|
||||
@@ -166,8 +166,6 @@ public class BatchExecuteTest extends TestCase
|
||||
pstmt.close();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void testTransactionalBehaviour() throws Exception
|
||||
{
|
||||
Statement stmt = con.createStatement();
|
||||
|
@@ -7,8 +7,8 @@ import java.sql.*;
|
||||
|
||||
import org.postgresql.largeobject.*;
|
||||
|
||||
/**
|
||||
* $Id: BlobTest.java,v 1.3 2001/10/25 05:59:59 momjian Exp $
|
||||
/*
|
||||
* $Id: BlobTest.java,v 1.4 2001/11/19 22:33:39 momjian Exp $
|
||||
*
|
||||
* Some simple tests based on problems reported by users. Hopefully these will
|
||||
* help prevent previous problems from re-occuring ;-)
|
||||
@@ -40,7 +40,7 @@ public class BlobTest extends TestCase
|
||||
JDBC2Tests.closeDB(con);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Tests one method of uploading a blob to the database
|
||||
*/
|
||||
public void testUploadBlob_LOOP()
|
||||
@@ -64,7 +64,7 @@ public class BlobTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Tests one method of uploading a blob to the database
|
||||
*/
|
||||
public void testUploadBlob_NATIVE()
|
||||
@@ -88,7 +88,7 @@ public class BlobTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Helper - uploads a file into a blob using old style methods. We use this
|
||||
* because it always works, and we can use it as a base to test the new
|
||||
* methods.
|
||||
@@ -152,7 +152,7 @@ public class BlobTest extends TestCase
|
||||
return oid;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Helper - compares the blobs in a table with a local file. Note this alone
|
||||
* tests the InputStream methods!
|
||||
*/
|
||||
|
@@ -4,19 +4,19 @@ import org.postgresql.test.JDBC2Tests;
|
||||
import junit.framework.TestCase;
|
||||
import java.sql.*;
|
||||
|
||||
/**
|
||||
/*
|
||||
* TestCase to test the internal functionality of org.postgresql.jdbc2.Connection
|
||||
* and it's superclass.
|
||||
*
|
||||
* PS: Do you know how difficult it is to type on a train? ;-)
|
||||
*
|
||||
* $Id: ConnectionTest.java,v 1.6 2001/10/25 05:59:59 momjian Exp $
|
||||
* $Id: ConnectionTest.java,v 1.7 2001/11/19 22:33:39 momjian Exp $
|
||||
*/
|
||||
|
||||
public class ConnectionTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public ConnectionTest(String name)
|
||||
@@ -46,7 +46,7 @@ public class ConnectionTest extends TestCase
|
||||
JDBC2Tests.closeDB(con);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Tests the two forms of createStatement()
|
||||
*/
|
||||
public void testCreateStatement()
|
||||
@@ -72,7 +72,7 @@ public class ConnectionTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Tests the two forms of prepareStatement()
|
||||
*/
|
||||
public void testPrepareStatement()
|
||||
@@ -100,13 +100,13 @@ public class ConnectionTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Put the test for createPrepareCall here
|
||||
*/
|
||||
public void testPrepareCall()
|
||||
{}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Test nativeSQL
|
||||
*/
|
||||
public void testNativeSQL()
|
||||
@@ -114,7 +114,7 @@ public class ConnectionTest extends TestCase
|
||||
// For now do nothing as it returns itself
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Test autoCommit (both get & set)
|
||||
*/
|
||||
public void testTransactions()
|
||||
@@ -163,7 +163,7 @@ public class ConnectionTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Simple test to see if isClosed works.
|
||||
*/
|
||||
public void testIsClosed()
|
||||
@@ -187,7 +187,7 @@ public class ConnectionTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Test the warnings system
|
||||
*/
|
||||
public void testWarnings()
|
||||
@@ -224,7 +224,7 @@ public class ConnectionTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Transaction Isolation Levels
|
||||
*/
|
||||
public void testTransactionIsolation()
|
||||
@@ -309,7 +309,7 @@ public class ConnectionTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* JDBC2 Type mappings
|
||||
*/
|
||||
public void testTypeMaps()
|
||||
|
@@ -4,18 +4,18 @@ import org.postgresql.test.JDBC2Tests;
|
||||
import junit.framework.TestCase;
|
||||
import java.sql.*;
|
||||
|
||||
/**
|
||||
/*
|
||||
* TestCase to test the internal functionality of org.postgresql.jdbc2.DatabaseMetaData
|
||||
*
|
||||
* PS: Do you know how difficult it is to type on a train? ;-)
|
||||
*
|
||||
* $Id: DatabaseMetaDataTest.java,v 1.3 2001/10/25 05:59:59 momjian Exp $
|
||||
* $Id: DatabaseMetaDataTest.java,v 1.4 2001/11/19 22:33:39 momjian Exp $
|
||||
*/
|
||||
|
||||
public class DatabaseMetaDataTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public DatabaseMetaDataTest(String name)
|
||||
@@ -23,7 +23,7 @@ public class DatabaseMetaDataTest extends TestCase
|
||||
super(name);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* The spec says this may return null, but we always do!
|
||||
*/
|
||||
public void testGetMetaData()
|
||||
@@ -43,7 +43,7 @@ public class DatabaseMetaDataTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Test default capabilities
|
||||
*/
|
||||
public void testCapabilities()
|
||||
|
@@ -4,8 +4,8 @@ import org.postgresql.test.JDBC2Tests;
|
||||
import junit.framework.TestCase;
|
||||
import java.sql.*;
|
||||
|
||||
/**
|
||||
* $Id: DateTest.java,v 1.3 2001/10/25 05:59:59 momjian Exp $
|
||||
/*
|
||||
* $Id: DateTest.java,v 1.4 2001/11/19 22:33:39 momjian Exp $
|
||||
*
|
||||
* Some simple tests based on problems reported by users. Hopefully these will
|
||||
* help prevent previous problems from re-occuring ;-)
|
||||
@@ -33,7 +33,7 @@ public class DateTest extends TestCase
|
||||
JDBC2Tests.closeDB(con);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Tests the time methods in ResultSet
|
||||
*/
|
||||
public void testGetDate()
|
||||
@@ -59,7 +59,7 @@ public class DateTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Tests the time methods in PreparedStatement
|
||||
*/
|
||||
public void testSetDate()
|
||||
@@ -95,7 +95,7 @@ public class DateTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Helper for the date tests. It tests what should be in the db
|
||||
*/
|
||||
private void dateTest() throws SQLException
|
||||
|
@@ -4,8 +4,8 @@ import org.postgresql.test.JDBC2Tests;
|
||||
import junit.framework.TestCase;
|
||||
import java.sql.*;
|
||||
|
||||
/**
|
||||
* $Id: DriverTest.java,v 1.3 2001/10/25 05:59:59 momjian Exp $
|
||||
/*
|
||||
* $Id: DriverTest.java,v 1.4 2001/11/19 22:33:39 momjian Exp $
|
||||
*
|
||||
* Tests the dynamically created class org.postgresql.Driver
|
||||
*
|
||||
@@ -18,7 +18,7 @@ public class DriverTest extends TestCase
|
||||
super(name);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* This tests the acceptsURL() method with a couple of good and badly formed
|
||||
* jdbc urls
|
||||
*/
|
||||
@@ -49,10 +49,10 @@ public class DriverTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Tests parseURL (internal)
|
||||
*/
|
||||
/**
|
||||
/*
|
||||
* Tests the connect method by connecting to the test database
|
||||
*/
|
||||
public void testConnect()
|
||||
|
@@ -5,10 +5,10 @@ import junit.framework.*;
|
||||
import org.postgresql.core.Encoding;
|
||||
import java.io.*;
|
||||
|
||||
/**
|
||||
/*
|
||||
* Tests for the Encoding class.
|
||||
*
|
||||
* $Id: EncodingTest.java,v 1.3 2001/10/25 05:59:59 momjian Exp $
|
||||
* $Id: EncodingTest.java,v 1.4 2001/11/19 22:33:39 momjian Exp $
|
||||
*/
|
||||
|
||||
|
||||
|
@@ -5,8 +5,8 @@ import junit.framework.TestCase;
|
||||
import java.sql.*;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* $Id: JBuilderTest.java,v 1.4 2001/10/25 05:59:59 momjian Exp $
|
||||
/*
|
||||
* $Id: JBuilderTest.java,v 1.5 2001/11/19 22:33:39 momjian Exp $
|
||||
*
|
||||
* Some simple tests to check that the required components needed for JBuilder
|
||||
* stay working
|
||||
@@ -39,7 +39,7 @@ public class JBuilderTest extends TestCase
|
||||
JDBC2Tests.closeDB(con);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* This tests that Money types work. JDBCExplorer barfs if this fails.
|
||||
*/
|
||||
public void testMoney()
|
||||
|
@@ -4,8 +4,8 @@ import org.postgresql.test.JDBC2Tests;
|
||||
import junit.framework.TestCase;
|
||||
import java.sql.*;
|
||||
|
||||
/**
|
||||
* $Id: MiscTest.java,v 1.3 2001/10/25 05:59:59 momjian Exp $
|
||||
/*
|
||||
* $Id: MiscTest.java,v 1.4 2001/11/19 22:33:39 momjian Exp $
|
||||
*
|
||||
* Some simple tests based on problems reported by users. Hopefully these will
|
||||
* help prevent previous problems from re-occuring ;-)
|
||||
@@ -19,7 +19,7 @@ public class MiscTest extends TestCase
|
||||
super(name);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Some versions of the driver would return rs as a null?
|
||||
*
|
||||
* Sasha <ber0806@iperbole.bologna.it> was having this problem.
|
||||
|
@@ -5,7 +5,7 @@ import junit.framework.TestCase;
|
||||
import java.io.*;
|
||||
import java.sql.*;
|
||||
|
||||
/**
|
||||
/*
|
||||
* ResultSet tests.
|
||||
*/
|
||||
public class ResultSetTest extends TestCase
|
||||
|
@@ -4,8 +4,8 @@ import org.postgresql.test.JDBC2Tests;
|
||||
import junit.framework.TestCase;
|
||||
import java.sql.*;
|
||||
|
||||
/**
|
||||
* $Id: TimeTest.java,v 1.3 2001/10/25 05:59:59 momjian Exp $
|
||||
/*
|
||||
* $Id: TimeTest.java,v 1.4 2001/11/19 22:33:39 momjian Exp $
|
||||
*
|
||||
* Some simple tests based on problems reported by users. Hopefully these will
|
||||
* help prevent previous problems from re-occuring ;-)
|
||||
@@ -33,7 +33,7 @@ public class TimeTest extends TestCase
|
||||
JDBC2Tests.closeDB(con);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Tests the time methods in ResultSet
|
||||
*/
|
||||
public void testGetTime()
|
||||
@@ -57,7 +57,7 @@ public class TimeTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Tests the time methods in PreparedStatement
|
||||
*/
|
||||
public void testSetTime()
|
||||
@@ -86,7 +86,7 @@ public class TimeTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Helper for the TimeTests. It tests what should be in the db
|
||||
*/
|
||||
private void timeTest() throws SQLException
|
||||
|
@@ -4,8 +4,8 @@ import org.postgresql.test.JDBC2Tests;
|
||||
import junit.framework.TestCase;
|
||||
import java.sql.*;
|
||||
|
||||
/**
|
||||
* $Id: TimestampTest.java,v 1.5 2001/10/25 05:59:59 momjian Exp $
|
||||
/*
|
||||
* $Id: TimestampTest.java,v 1.6 2001/11/19 22:33:39 momjian Exp $
|
||||
*
|
||||
* This has been the most controversial pair of methods since 6.5 was released!
|
||||
*
|
||||
@@ -37,7 +37,7 @@ public class TimestampTest extends TestCase
|
||||
JDBC2Tests.closeDB(con);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Tests the time methods in ResultSet
|
||||
*/
|
||||
public void testGetTimestamp()
|
||||
@@ -69,7 +69,7 @@ public class TimestampTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Tests the time methods in PreparedStatement
|
||||
*/
|
||||
public void testSetTimestamp()
|
||||
@@ -102,7 +102,7 @@ public class TimestampTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Helper for the TimeTests. It tests what should be in the db
|
||||
*/
|
||||
private void timestampTest() throws SQLException
|
||||
|
Reference in New Issue
Block a user