/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldConnectionTest.java | 33 Statement statement = conn.createStatement(); in testCreateStatement() 40 conn.close(); in testCreateStatement() 55 st = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, in testCreateStatement_int_int() 75 st = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, in testCreateStatement_int_int() 96 st = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, in testCreateStatement_int_int() 118 st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, in testCreateStatement_int_int() 141 st = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, in testCreateStatement_int_int() 163 conn.close(); in testCreateStatement_int_int() 167 conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, -1); in testCreateStatement_int_int() 175 conn.createStatement(Integer.MIN_VALUE, ResultSet.CONCUR_READ_ONLY); in testCreateStatement_int_int() [all …]
|
D | OldPreparedStatementTest.java | 86 st = conn.createStatement(); in setUp() 101 st = conn.createStatement(); in tearDown() 115 ps = conn in testAddBatch() 128 st = conn.createStatement(); in testAddBatch() 148 ps = conn in testAddBatch() 161 ps = conn in testAddBatch() 182 ps = conn.prepareStatement(query); in testExecute() 189 ps = conn.prepareStatement("select * from zoo"); in testExecute() 201 ps = conn.prepareStatement(query); in testExecute() 206 st = conn.createStatement(); in testExecute() [all …]
|
D | OldStatementTest.java | 34 st = conn.createStatement(); in testAddBatch() 50 st = conn.createStatement(); in testAddBatch() 64 st = conn.createStatement(); in testAddBatch() 80 st = conn.createStatement(); in testClearWarnings() 91 st = conn.createStatement(); in testClearWarnings() 110 st = conn.createStatement(); in testGetWarnings() 167 st = conn.createStatement(); in testClearBatch() 186 st = conn.createStatement(); in testClearBatch() 200 st = conn.createStatement(); in testClearBatch() 231 st = conn.createStatement(); in testExecute() [all …]
|
D | OldSQLTest.java | 28 static Connection conn; field in OldSQLTest 48 conn = DriverManager.getConnection("jdbc:sqlite:/" + dbFile.getPath()); in getSQLiteConnection() 49 assertNotNull("Connection created ", conn); in getSQLiteConnection() 55 if (! conn.isClosed()) { in tearDown() 56 st = conn.createStatement(); in tearDown() 63 conn.close(); in tearDown() 79 st = conn.createStatement(); in createZoo()
|
D | OldResultSetMetaDataTest.java | 35 conn.setAutoCommit(false); in setUp() 36 assertFalse(conn.getAutoCommit()); in setUp() 38 st = conn.createStatement(); in setUp() 67 conn.close(); in testGetCatalogName() 241 st1 = conn.createStatement(); in testGetTableName() 286 st2 = conn.createStatement(); in testGetPrecision() 292 st3 = conn.createStatement(); in testGetPrecision() 352 Statement st = conn.createStatement(); in testGetScale() 379 conn.close(); in testGetScale() 413 conn.close(); in testGetSchema() [all …]
|
D | OldResultSetTest.java | 40 conn.setAutoCommit(false); in setUp() 41 stForward = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, in setUp() 48 stForward = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, in setUp() 131 Statement s = conn.createStatement(); in testClose() 140 conn.commit(); in testClose() 141 ps1 = conn.prepareStatement("select * from t1"); in testClose() 142 ps2 = conn.prepareStatement("select * from t1 whe a like '?000'"); in testClose() 162 conn.commit(); in testClose() 171 conn.rollback(); in testClose()
|
D | OldResultSetGetterTests.java | 217 conn.setAutoCommit(false); in setUp() 218 st = conn.createStatement(); in setUp() 270 st = conn.createStatement(); in testGetBytesIntVarbinary() 272 stPrep = conn in testGetBytesIntVarbinary() 277 stQuery = conn.createStatement(); in testGetBytesIntVarbinary() 303 st = conn.createStatement(); in testGetBytesIntBinary() 305 stPrep = conn.prepareStatement("insert into testBinary values (?);"); in testGetBytesIntBinary() 309 stQuery = conn.createStatement(); in testGetBytesIntBinary() 352 st = conn.createStatement(); in testGetBytesStringVarbinary() 354 stPrep = conn in testGetBytesStringVarbinary() [all …]
|
/libcore/luni/src/test/java/tests/support/ |
D | DatabaseCreator.java | 256 public static void fillParentTable(Connection conn) throws SQLException { in fillParentTable() argument 257 Statement statement = conn.createStatement(); in fillParentTable() 265 public static void fillFKStrictTable(Connection conn) throws SQLException { in fillFKStrictTable() argument 266 Statement statement = conn.createStatement(); in fillFKStrictTable() 275 public static void fillFKCascadeTable(Connection conn) throws SQLException { in fillFKCascadeTable() argument 276 Statement statement = conn.createStatement(); in fillFKCascadeTable() 285 public static void fillSimpleTable1(Connection conn) throws SQLException { in fillSimpleTable1() argument 286 Statement statement = conn.createStatement(); in fillSimpleTable1() 292 public static void fillSimpleTable3(Connection conn) throws SQLException { in fillSimpleTable3() argument 293 Statement statement = conn.createStatement(); in fillSimpleTable3() [all …]
|
/libcore/luni/src/test/java/tests/java/sql/ |
D | UpdateFunctionalityTest2.java | 38 private static Connection conn = null; field in UpdateFunctionalityTest2 46 conn = Support_SQL.getConnection(); in setUp() 47 statement = conn.createStatement(); in setUp() 52 DatabaseCreator.fillParentTable(conn); in setUp() 53 DatabaseCreator.fillSimpleTable3(conn); in setUp() 54 DatabaseCreator.fillSimpleTable1(conn); in setUp() 60 conn.close(); in tearDown() 66 DatabaseMetaData meta = conn.getMetaData(); in createTestTables() 125 DatabaseCreator.fillFKStrictTable(conn); in testUpdate1() 138 DatabaseCreator.fillFKStrictTable(conn); in testUpdate2() [all …]
|
D | InsertFunctionalityTest.java | 35 private static Connection conn = null; field in InsertFunctionalityTest 42 conn = Support_SQL.getConnection(); in setUp() 43 statement = conn.createStatement(); in setUp() 51 conn.close(); in tearDown() 57 DatabaseMetaData meta = conn.getMetaData(); in createTestTables() 116 DatabaseCreator.fillParentTable(conn); in testInsert1() 117 DatabaseCreator.fillFKStrictTable(conn); in testInsert1() 118 DatabaseCreator.fillFKCascadeTable(conn); in testInsert1() 131 DatabaseCreator.fillParentTable(conn); in testInsert2() 132 DatabaseCreator.fillFKStrictTable(conn); in testInsert2() [all …]
|
D | DatabaseMetaDataTest.java | 51 protected static Connection conn; field in DatabaseMetaDataTest 65 conn = Support_SQL.getConnection(); in setUp() 66 meta = conn.getMetaData(); in setUp() 67 statement = conn.createStatement(); in setUp() 68 statementForward = conn.createStatement( in setUp() 79 conn = Support_SQL.getConnection(); in tearDown() 80 meta = conn.getMetaData(); in tearDown() 81 statement = conn.createStatement(); in tearDown() 87 conn.close(); in tearDown() 112 meta = conn.getMetaData(); in createTestTables() [all …]
|
D | DeleteFunctionalityTest.java | 37 private static Connection conn = null; field in DeleteFunctionalityTest 44 conn = Support_SQL.getConnection(); in setUp() 45 statement = conn.createStatement(); in setUp() 47 DatabaseCreator.fillParentTable(conn); in setUp() 53 conn.close(); in tearDown() 60 DatabaseMetaData meta = conn.getMetaData(); in createTestTables() 107 DatabaseCreator.fillFKStrictTable(conn); in testDelete1() 144 DatabaseCreator.fillFKCascadeTable(conn); in testDelete4() 171 DatabaseCreator.fillFKStrictTable(conn); in testDelete6() 187 DatabaseCreator.fillTestTable5(conn); in testDelete7() [all …]
|
D | MultiThreadAccessTest.java | 37 private static Connection conn; field in MultiThreadAccessTest 51 conn = Support_SQL.getConnection(); in setUp() 52 statement = conn.createStatement(); in setUp() 63 conn.close(); in tearDown() 70 ResultSet userTab = conn.getMetaData().getTables(null, in createTestTables() 95 DatabaseCreator.fillTestTable1(conn, numOfRecords); in createTestTables() 96 DatabaseCreator.fillTestTable2(conn, numOfRecords); in createTestTables() 97 DatabaseCreator.fillTestTable4(conn, numOfRecords); in createTestTables() 159 Statement statement = conn.createStatement(); in test_MultipleOperationsInSeveralTables() 207 Statement statement = conn.createStatement(); in test_MultipleUpdatesInOneTables() [all …]
|
D | DatabaseMetaDataNotSupportedTest.java | 46 protected static Connection conn; field in DatabaseMetaDataNotSupportedTest 60 conn = Support_SQL.getConnection(); in setUp() 61 meta = conn.getMetaData(); in setUp() 62 statement = conn.createStatement(); in setUp() 71 conn = Support_SQL.getConnection(); in tearDown() 72 meta = conn.getMetaData(); in tearDown() 73 statement = conn.createStatement(); in tearDown() 79 conn.close(); in tearDown() 104 meta = conn.getMetaData(); in createTestTables() 119 if (! conn.isClosed()) { in deleteTestTables() [all …]
|
D | UpdateFunctionalityTest.java | 38 private static Connection conn; field in UpdateFunctionalityTest 46 conn = Support_SQL.getConnection(); in setUp() 47 statement = conn.createStatement(); in setUp() 52 DatabaseCreator.fillTestTable1(conn, numberOfRecords); in setUp() 53 DatabaseCreator.fillTestTable2(conn, numberOfRecords); in setUp() 59 conn.close(); in tearDown() 66 DatabaseMetaData meta = conn.getMetaData(); in createTestTables()
|
D | StressTest.java | 38 private static Connection conn; field in StressTest 45 conn = Support_SQL.getConnection(); in setUp() 46 statement = conn.createStatement(); in setUp() 54 conn.close(); in tearDown() 60 DatabaseMetaData meta = conn.getMetaData(); in createTestTables() 229 int mc = conn.getMetaData().getMaxConnections(); in getConnectionNum()
|
D | SelectFunctionalityTest.java | 44 private static Connection conn; field in SelectFunctionalityTest 56 conn = Support_SQL.getConnection(); in setUp() 57 statement = conn.createStatement(); in setUp() 66 conn.close(); in tearDown() 73 ResultSet userTab = conn.getMetaData().getTables(null, in createTestTables() 105 DatabaseCreator.fillTestTable2(conn, 1, 5, currentTime); in createTestTables() 106 DatabaseCreator.fillCustomersTable(conn); in createTestTables() 107 DatabaseCreator.fillOrdersTable(conn); in createTestTables() 108 DatabaseCreator.fillSalesPeopleTable(conn); in createTestTables() 180 PreparedStatement prepStatement = conn.prepareStatement(sql); in test_SelectPrepared()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
D | ContentHandlerTest.java | 34 URLConnection conn = new URL("http://www.apache.org").openConnection(); in test_getContent() local 38 Object content = handler.getContent(conn, classes); in test_getContent() 42 content = handler.getContent(conn, classes); in test_getContent() 47 content = handler.getContent(conn, classes2); in test_getContent()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | JarVerifier.java | 92 JarURLConnection conn = in verify() 96 conn.setUseCaches(false); in verify() 97 return conn.getJarFile(); in verify()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | JarURLConnectionTest.java | 150 JarURLConnection conn = (JarURLConnection) new URL("jar:file:" in test_getJarFile29() local 153 conn.getJarFile().entries(); in test_getJarFile29() 220 URLConnection conn = url.openConnection(); in test_getInputStream_DeleteJarFileUsingURLConnection() local 221 conn.setUseCaches(false); in test_getInputStream_DeleteJarFileUsingURLConnection() 222 InputStream is = conn.getInputStream(); in test_getInputStream_DeleteJarFileUsingURLConnection()
|
D | URLTest.java | 973 URLConnection conn = new URL(fileUrlString).openConnection(); in test_openConnection_FileProtocol() local 974 assertEquals("file", conn.getURL().getProtocol()); in test_openConnection_FileProtocol() 975 assertEquals(new File(basedir), new File(conn.getURL().getFile())); in test_openConnection_FileProtocol() 978 conn = new URL(nonLocalUrlString).openConnection(); in test_openConnection_FileProtocol() 979 assertEquals("ftp", conn.getURL().getProtocol()); in test_openConnection_FileProtocol() 980 assertEquals(new File(basedir), new File(conn.getURL().getFile())); in test_openConnection_FileProtocol()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldJarURLConnectionTest.java | 218 JarURLConnection conn = (JarURLConnection) new URL("jar:file:" in test_getJarFile29() local 221 conn.getJarFile().entries(); in test_getJarFile29() 302 URLConnection conn = url.openConnection(); in test_getInputStream_DeleteJarFileUsingURLConnection() local 303 conn.setUseCaches(false); in test_getInputStream_DeleteJarFileUsingURLConnection() 304 InputStream is = conn.getInputStream(); in test_getInputStream_DeleteJarFileUsingURLConnection()
|
D | URLConnectionTest.java | 501 HttpURLConnection conn = (HttpURLConnection) server.getUrl("/").openConnection(); in doUpload() local 502 conn.setDoOutput(true); in doUpload() 503 conn.setRequestMethod("POST"); in doUpload() 505 conn.setChunkedStreamingMode(-1); in doUpload() 507 conn.setFixedLengthStreamingMode(n); in doUpload() 509 OutputStream out = conn.getOutputStream(); in doUpload() 522 assertEquals(200, conn.getResponseCode()); in doUpload() 538 HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in getResponseCodeNoResponseBody() local 539 conn.setDoInput(false); in getResponseCodeNoResponseBody() 540 assertEquals("def", conn.getHeaderField("abc")); in getResponseCodeNoResponseBody() [all …]
|
D | OldURLTest.java | 339 URLConnection conn = u.openConnection(); in testOpenConnection() local 340 conn.connect(); in testOpenConnection()
|
/libcore/ojluni/src/main/java/java/net/ |
D | ResponseCache.java | 162 public abstract CacheRequest put(URI uri, URLConnection conn) throws IOException; in put() argument
|