From 9ae19ec8e9b9f58b24fb30ed0181a1150c18fbe0 Mon Sep 17 00:00:00 2001 From: Gurunandan Rao Date: Sat, 28 Sep 2024 22:27:56 +0530 Subject: [PATCH] mail, jdbc, xa platform tck module refactor using javatest + arquillian + junit. (#1544) Signed-off-by: Gurunandan Rao --- .../bin/certificates/clientcert.jks | Bin 0 -> 2257 bytes .../bin/certificates/clientcert.p12 | Bin 0 -> 1615 bytes .../jakartaeetck/bin/certificates/cts_cert | Bin 0 -> 909 bytes .../jdbc-platform-tck/jakartaeetck/bin/ts.jte | 2462 +++++++++++++++ .../jakartaeetck/bin/tssql.stmt | 805 +++++ glassfish-runner/jdbc-platform-tck/pom.xml | 548 ++++ .../sql/derby/derby.ddl.sprocs.sql | 347 +++ .../jdbc-platform-tck/sql/derby/derby.ddl.sql | 176 ++ .../jdbc-platform-tck/sql/derby/derby.dml.sql | 770 +++++ .../arquillian/GlassfishTckExtension.java | 13 + .../arquillian/GlassfishXmlProcessor.java | 139 + ...boss.arquillian.core.spi.LoadableExtension | 1 + .../test/resources/appclient-arquillian.xml | 64 + .../src/test/resources/arquillian.xml | 32 + .../src/test/resources/logging.properties | 15 + .../bin/certificates/clientcert.jks | Bin 0 -> 2257 bytes .../bin/certificates/clientcert.p12 | Bin 0 -> 1615 bytes .../jakartaeetck/bin/certificates/cts_cert | Bin 0 -> 909 bytes .../mail-platform-tck/jakartaeetck/bin/ts.jte | 2462 +++++++++++++++ .../jakartaeetck/bin/tssql.stmt | 805 +++++ .../mail-platform-tck/mailboxes/test1/1 | 13 + .../mail-platform-tck/mailboxes/test1/10 | 97 + .../mail-platform-tck/mailboxes/test1/11 | 155 + .../mail-platform-tck/mailboxes/test1/12 | 230 ++ .../mail-platform-tck/mailboxes/test1/13 | 31 + .../mail-platform-tck/mailboxes/test1/14 | 280 ++ .../mail-platform-tck/mailboxes/test1/15 | 28 + .../mail-platform-tck/mailboxes/test1/16 | 164 + .../mail-platform-tck/mailboxes/test1/17 | 64 + .../mail-platform-tck/mailboxes/test1/18 | 208 ++ .../mail-platform-tck/mailboxes/test1/19 | 2277 ++++++++++++++ .../mail-platform-tck/mailboxes/test1/2 | 48 + .../mail-platform-tck/mailboxes/test1/20 | 127 + .../mail-platform-tck/mailboxes/test1/21 | 21 + .../mail-platform-tck/mailboxes/test1/22 | 65 + .../mail-platform-tck/mailboxes/test1/23 | 66 + .../mail-platform-tck/mailboxes/test1/24 | 58 + .../mail-platform-tck/mailboxes/test1/25 | 60 + .../mail-platform-tck/mailboxes/test1/3 | 34 + .../mail-platform-tck/mailboxes/test1/4 | 22 + .../mail-platform-tck/mailboxes/test1/5 | 83 + .../mail-platform-tck/mailboxes/test1/6 | 19 + .../mail-platform-tck/mailboxes/test1/7 | 39 + .../mail-platform-tck/mailboxes/test1/8 | 239 ++ .../mail-platform-tck/mailboxes/test1/9 | 2386 +++++++++++++++ .../mail-platform-tck/mailboxes/test2/1 | 13 + .../mail-platform-tck/mailboxes/test2/10 | 687 +++++ .../mail-platform-tck/mailboxes/test2/11 | 488 +++ .../mail-platform-tck/mailboxes/test2/12 | 35 + .../mail-platform-tck/mailboxes/test2/13 | 687 +++++ .../mail-platform-tck/mailboxes/test2/14 | 35 + .../mail-platform-tck/mailboxes/test2/15 | 469 +++ .../mail-platform-tck/mailboxes/test2/16 | 469 +++ .../mail-platform-tck/mailboxes/test2/17 | 34 + .../mail-platform-tck/mailboxes/test2/18 | 34 + .../mail-platform-tck/mailboxes/test2/19 | 35 + .../mail-platform-tck/mailboxes/test2/2 | 43 + .../mail-platform-tck/mailboxes/test2/20 | 42 + .../mail-platform-tck/mailboxes/test2/3 | 43 + .../mail-platform-tck/mailboxes/test2/4 | 47 + .../mail-platform-tck/mailboxes/test2/5 | 47 + .../mail-platform-tck/mailboxes/test2/6 | 84 + .../mail-platform-tck/mailboxes/test2/7 | 278 ++ .../mail-platform-tck/mailboxes/test2/8 | 278 ++ .../mail-platform-tck/mailboxes/test2/9 | 488 +++ .../mail-platform-tck/mailboxes/test3/1 | 13 + .../mail-platform-tck/mailboxes/test3/10 | 394 +++ .../mail-platform-tck/mailboxes/test3/11 | 101 + .../mail-platform-tck/mailboxes/test3/12 | 120 + .../mail-platform-tck/mailboxes/test3/13 | 54 + .../mail-platform-tck/mailboxes/test3/14 | 108 + .../mail-platform-tck/mailboxes/test3/15 | 51 + .../mail-platform-tck/mailboxes/test3/16 | 69 + .../mail-platform-tck/mailboxes/test3/17 | 193 ++ .../mail-platform-tck/mailboxes/test3/18 | 42 + .../mail-platform-tck/mailboxes/test3/19 | 55 + .../mail-platform-tck/mailboxes/test3/2 | 61 + .../mail-platform-tck/mailboxes/test3/20 | 67 + .../mail-platform-tck/mailboxes/test3/21 | 53 + .../mail-platform-tck/mailboxes/test3/22 | 62 + .../mail-platform-tck/mailboxes/test3/23 | 247 ++ .../mail-platform-tck/mailboxes/test3/24 | 41 + .../mail-platform-tck/mailboxes/test3/25 | 49 + .../mail-platform-tck/mailboxes/test3/26 | 42 + .../mail-platform-tck/mailboxes/test3/3 | 92 + .../mail-platform-tck/mailboxes/test3/4 | 61 + .../mail-platform-tck/mailboxes/test3/5 | 73 + .../mail-platform-tck/mailboxes/test3/6 | 79 + .../mail-platform-tck/mailboxes/test3/7 | 66 + .../mail-platform-tck/mailboxes/test3/8 | 67 + .../mail-platform-tck/mailboxes/test3/9 | 276 ++ glassfish-runner/mail-platform-tck/pom.xml | 473 +++ .../src/main/resources/logging.properties | 15 + .../java/arquillian/AppclientConfigTest.txt | 34 + .../arquillian/GlassfishTckExtension.java | 13 + .../arquillian/GlassfishXmlProcessor.java | 139 + ...boss.arquillian.core.spi.LoadableExtension | 1 + .../test/resources/appclient-arquillian.xml | 64 + .../src/test/resources/arquillian.xml | 32 + .../src/test/resources/logging.properties | 15 + glassfish-runner/saaj-tck/pom.xml | 177 -- .../bin/certificates/clientcert.jks | Bin 0 -> 2257 bytes .../bin/certificates/clientcert.p12 | Bin 0 -> 1615 bytes .../jakartaeetck/bin/certificates/cts_cert | Bin 0 -> 909 bytes .../xa-platform-tck/jakartaeetck/bin/ts.jte | 2462 +++++++++++++++ .../jakartaeetck/bin/tssql.stmt | 805 +++++ glassfish-runner/xa-platform-tck/pom.xml | 761 +++++ .../sql/derby/derby.ddl.cmp.sql | 288 ++ .../sql/derby/derby.ddl.sprocs.sql | 347 +++ .../xa-platform-tck/sql/derby/derby.ddl.sql | 176 ++ .../xa-platform-tck/sql/derby/derby.dml.sql | 770 +++++ .../java/arquillian/AppclientConfigTest.txt | 34 + .../arquillian/GlassfishTckExtension.java | 13 + .../arquillian/GlassfishXmlProcessor.java | 139 + ...boss.arquillian.core.spi.LoadableExtension | 1 + .../test/resources/appclient-arquillian.xml | 64 + .../src/test/resources/arquillian.xml | 32 + .../src/test/resources/logging.properties | 15 + glassfish-runner/xa-platform-tck/whitebox.jar | Bin 0 -> 127202 bytes .../whitebox/whitebox-notx-param.rar | Bin 0 -> 1547 bytes .../xa-connectors/whitebox/whitebox-notx.rar | Bin 0 -> 1544 bytes .../whitebox/whitebox-tx-param.rar | Bin 0 -> 1638 bytes .../xa-connectors/whitebox/whitebox-tx.rar | Bin 0 -> 1635 bytes .../whitebox/whitebox-xa-param.rar | Bin 0 -> 1545 bytes .../xa-connectors/whitebox/whitebox-xa.rar | Bin 0 -> 1562 bytes .../xa-connectors/whitebox/whitebox.jar | Bin 0 -> 127202 bytes javamail/pom.xml | 81 +- .../java/com/sun/ts/tests/javamail/build.xml | 22 - .../com/sun/ts/tests/javamail/ee/build.xml | 22 - .../tests/javamail/ee/fetchprofile/build.xml | 28 - .../fetchprofileAppClient_Test.java | 127 + .../ee/fetchprofile/fetchprofileEJB_Test.java | 146 + .../ee/fetchprofile/fetchprofileJSP_Test.java | 126 + .../fetchprofileServlet_Test.java | 116 + .../ee/fetchprofile/fetchprofile_Test.java | 592 ++-- .../javamail/ee/getMessageContent/build.xml | 28 - .../getMessageContentAppClient_Test.java | 99 + .../getMessageContentEJB_Test.java | 116 + .../getMessageContentJSP_Test.java | 97 + .../getMessageContentServlet_Test.java | 89 + .../getMessageContent_Test.java | 20 +- .../ee/internetMimeMultipart/build.xml | 28 - .../internetMimeMultipartAppClient_Test.java | 121 + .../internetMimeMultipartEJB_Test.java | 136 + .../internetMimeMultipartJSP_Test.java | 115 + .../internetMimeMultipartServlet_Test.java | 110 + .../internetMimeMultipart_Test.java | 44 +- .../javamail/ee/internetaddress/build.xml | 28 - .../internetaddressAppClient_Test.java | 204 ++ .../internetaddressEJB_Test.java | 227 ++ .../internetaddressJSP_Test.java | 207 ++ .../internetaddressServlet_Test.java | 199 ++ .../internetaddress/internetaddress_Test.java | 37 +- .../tests/javamail/ee/mimemessage/build.xml | 28 - .../mimemessageAppClient_Test.java | 225 ++ .../ee/mimemessage/mimemessageEJB_Test.java | 242 ++ .../ee/mimemessage/mimemessageJSP_Test.java | 224 ++ .../mimemessage/mimemessageServlet_Test.java | 216 ++ .../ee/mimemessage/mimemessage_Test.java | 48 +- .../ts/tests/javamail/ee/multipart/build.xml | 28 - .../ee/multipart/multipartAppClient_Test.java | 120 + .../ee/multipart/multipartEJB_Test.java | 137 + .../ee/multipart/multipartJSP_Test.java | 120 + .../ee/multipart/multipartServlet_Test.java | 111 + .../javamail/ee/multipart/multipart_Test.java | 15 +- .../ts/tests/javamail/ee/transport/build.xml | 28 - .../ee/transport/sendAppClient_Test.java | 192 ++ .../javamail/ee/transport/sendEJB_Test.java | 211 ++ .../javamail/ee/transport/sendJSP_Test.java | 193 ++ .../ee/transport/sendServlet_Test.java | 185 ++ .../javamail/ee/transport/send_Test.java | 33 +- .../sun/ts/tests/javamail/ee/util/build.xml | 101 - .../ts/tests/javamail/ee/util/fpopulate.java | 2 - jdbc/pom.xml | 76 + .../com/sun/ts/lib/tests/jdbc/CS_Procs.java | 2678 +++++++++++++++++ .../main/java/com/sun/ts/tests/jdbc/build.xml | 22 - .../ee/batchUpdate/batchUpdateClient.java | 11 +- .../batchUpdateClientAppClient.java | 364 +++ .../ee/batchUpdate/batchUpdateClientEJB.java | 399 +++ .../ee/batchUpdate/batchUpdateClientJSP.java | 380 +++ .../batchUpdate/batchUpdateClientServlet.java | 373 +++ .../ts/tests/jdbc/ee/batchUpdate/build.xml | 59 - .../java/com/sun/ts/tests/jdbc/ee/build.xml | 22 - .../sun/ts/tests/jdbc/ee/callStmt/build.xml | 22 - .../jdbc/ee/callStmt/callStmt1/build.xml | 59 - .../callStmt/callStmt1/callStmtClient1.java | 12 +- .../callStmt1/callStmtClient1AppClient.java | 459 +++ .../callStmt1/callStmtClient1EJB.java | 478 +++ .../callStmt1/callStmtClient1JSP.java | 463 +++ .../callStmt1/callStmtClient1Servlet.java | 453 +++ .../jdbc/ee/callStmt/callStmt10/build.xml | 59 - .../callStmt/callStmt10/callStmtClient10.java | 11 +- .../callStmt10/callStmtClient10AppClient.java | 471 +++ .../callStmt10/callStmtClient10EJB.java | 488 +++ .../callStmt10/callStmtClient10JSP.java | 473 +++ .../callStmt10/callStmtClient10Servlet.java | 466 +++ .../jdbc/ee/callStmt/callStmt11/build.xml | 59 - .../callStmt/callStmt11/callStmtClient11.java | 11 +- .../callStmt11/callStmtClient11AppClient.java | 465 +++ .../callStmt11/callStmtClient11EJB.java | 483 +++ .../callStmt11/callStmtClient11JSP.java | 467 +++ .../callStmt11/callStmtClient11Servlet.java | 458 +++ .../jdbc/ee/callStmt/callStmt12/build.xml | 59 - .../callStmt/callStmt12/callStmtClient12.java | 17 +- .../callStmt12/callStmtClient12AppClient.java | 496 +++ .../callStmt12/callStmtClient12EJB.java | 521 ++++ .../callStmt12/callStmtClient12JSP.java | 501 +++ .../callStmt12/callStmtClient12Servlet.java | 491 +++ .../jdbc/ee/callStmt/callStmt13/build.xml | 59 - .../callStmt/callStmt13/callStmtClient13.java | 9 +- .../callStmt13/callStmtClient13AppClient.java | 461 +++ .../callStmt13/callStmtClient13EJB.java | 482 +++ .../callStmt13/callStmtClient13JSP.java | 463 +++ .../callStmt13/callStmtClient13Servlet.java | 455 +++ .../jdbc/ee/callStmt/callStmt14/build.xml | 59 - .../callStmt/callStmt14/callStmtClient14.java | 9 +- .../callStmt14/callStmtClient14AppClient.java | 461 +++ .../callStmt14/callStmtClient14EJB.java | 481 +++ .../callStmt14/callStmtClient14JSP.java | 463 +++ .../callStmt14/callStmtClient14Servlet.java | 457 +++ .../jdbc/ee/callStmt/callStmt15/build.xml | 59 - .../callStmt/callStmt15/callStmtClient15.java | 9 +- .../callStmt15/callStmtClient15AppClient.java | 465 +++ .../callStmt15/callStmtClient15EJB.java | 485 +++ .../callStmt15/callStmtClient15JSP.java | 468 +++ .../callStmt15/callStmtClient15Servlet.java | 460 +++ .../jdbc/ee/callStmt/callStmt16/build.xml | 59 - .../callStmt/callStmt16/callStmtClient16.java | 9 +- .../callStmt16/callStmtClient16AppClient.java | 396 +++ .../callStmt16/callStmtClient16EJB.java | 416 +++ .../callStmt16/callStmtClient16JSP.java | 402 +++ .../callStmt16/callStmtClient16Servlet.java | 392 +++ .../jdbc/ee/callStmt/callStmt17/build.xml | 60 - .../callStmt/callStmt17/callStmtClient17.java | 9 +- .../callStmt17/callStmtClient17AppClient.java | 437 +++ .../callStmt17/callStmtClient17EJB.java | 456 +++ .../callStmt17/callStmtClient17JSP.java | 441 +++ .../callStmt17/callStmtClient17Servlet.java | 434 +++ .../jdbc/ee/callStmt/callStmt18/build.xml | 60 - .../callStmt/callStmt18/callStmtClient18.java | 9 +- .../callStmt18/callStmtClient18AppClient.java | 461 +++ .../callStmt18/callStmtClient18EJB.java | 481 +++ .../callStmt18/callStmtClient18JSP.java | 464 +++ .../callStmt18/callStmtClient18Servlet.java | 453 +++ .../jdbc/ee/callStmt/callStmt19/build.xml | 59 - .../callStmt/callStmt19/callStmtClient19.java | 11 +- .../callStmt19/callStmtClient19AppClient.java | 455 +++ .../callStmt19/callStmtClient19EJB.java | 476 +++ .../callStmt19/callStmtClient19JSP.java | 462 +++ .../callStmt19/callStmtClient19Servlet.java | 451 +++ .../jdbc/ee/callStmt/callStmt2/build.xml | 59 - .../callStmt/callStmt2/callStmtClient2.java | 9 +- .../callStmt2/callStmtClient2AppClient.java | 439 +++ .../callStmt2/callStmtClient2EJB.java | 458 +++ .../callStmt2/callStmtClient2JSP.java | 441 +++ .../callStmt2/callStmtClient2Servlet.java | 431 +++ .../jdbc/ee/callStmt/callStmt20/build.xml | 59 - .../callStmt/callStmt20/callStmtClient20.java | 9 +- .../callStmt20/callStmtClient20AppClient.java | 507 ++++ .../callStmt20/callStmtClient20EJB.java | 526 ++++ .../callStmt20/callStmtClient20JSP.java | 513 ++++ .../callStmt20/callStmtClient20Servlet.java | 502 +++ .../jdbc/ee/callStmt/callStmt21/build.xml | 60 - .../callStmt/callStmt21/callStmtClient21.java | 9 +- .../callStmt21/callStmtClient21AppClient.java | 509 ++++ .../callStmt21/callStmtClient21EJB.java | 529 ++++ .../callStmt21/callStmtClient21JSP.java | 512 ++++ .../callStmt21/callStmtClient21Servlet.java | 502 +++ .../jdbc/ee/callStmt/callStmt22/build.xml | 59 - .../callStmt/callStmt22/callStmtClient22.java | 9 +- .../callStmt22/callStmtClient22AppClient.java | 224 ++ .../callStmt22/callStmtClient22EJB.java | 245 ++ .../callStmt22/callStmtClient22JSP.java | 227 ++ .../callStmt22/callStmtClient22Servlet.java | 216 ++ .../jdbc/ee/callStmt/callStmt3/build.xml | 60 - .../callStmt/callStmt3/callStmtClient3.java | 10 +- .../callStmt3/callStmtClient3AppClient.java | 464 +++ .../callStmt3/callStmtClient3EJB.java | 484 +++ .../callStmt3/callStmtClient3JSP.java | 467 +++ .../callStmt3/callStmtClient3Servlet.java | 456 +++ .../jdbc/ee/callStmt/callStmt4/build.xml | 59 - .../callStmt/callStmt4/callStmtClient4.java | 10 +- .../callStmt4/callStmtClient4AppClient.java | 481 +++ .../callStmt4/callStmtClient4EJB.java | 500 +++ .../callStmt4/callStmtClient4JSP.java | 484 +++ .../callStmt4/callStmtClient4Servlet.java | 473 +++ .../jdbc/ee/callStmt/callStmt5/build.xml | 59 - .../callStmt/callStmt5/callStmtClient5.java | 10 +- .../callStmt5/callStmtClient5AppClient.java | 556 ++++ .../callStmt5/callStmtClient5EJB.java | 575 ++++ .../callStmt5/callStmtClient5JSP.java | 560 ++++ .../callStmt5/callStmtClient5Servlet.java | 548 ++++ .../jdbc/ee/callStmt/callStmt6/build.xml | 59 - .../callStmt/callStmt6/callStmtClient6.java | 9 +- .../callStmt6/callStmtClient6AppClient.java | 498 +++ .../callStmt6/callStmtClient6EJB.java | 517 ++++ .../callStmt6/callStmtClient6JSP.java | 502 +++ .../callStmt6/callStmtClient6Servlet.java | 490 +++ .../jdbc/ee/callStmt/callStmt7/build.xml | 59 - .../callStmt/callStmt7/callStmtClient7.java | 10 +- .../callStmt7/callStmtClient7AppClient.java | 375 +++ .../callStmt7/callStmtClient7EJB.java | 396 +++ .../callStmt7/callStmtClient7JSP.java | 380 +++ .../callStmt7/callStmtClient7Servlet.java | 368 +++ .../jdbc/ee/callStmt/callStmt8/build.xml | 59 - .../callStmt/callStmt8/callStmtClient8.java | 11 +- .../callStmt8/callStmtClient8AppClient.java | 518 ++++ .../callStmt8/callStmtClient8EJB.java | 534 ++++ .../callStmt8/callStmtClient8JSP.java | 520 ++++ .../callStmt8/callStmtClient8Servlet.java | 508 ++++ .../jdbc/ee/callStmt/callStmt9/build.xml | 59 - .../callStmt/callStmt9/callStmtClient9.java | 14 +- .../callStmt9/callStmtClient9AppClient.java | 504 ++++ .../callStmt9/callStmtClient9EJB.java | 523 ++++ .../callStmt9/callStmtClient9JSP.java | 508 ++++ .../callStmt9/callStmtClient9Servlet.java | 534 ++++ .../jdbc/ee/common/DataSourceConnection.java | 1 - .../ee/common/DriverManagerConnection.java | 5 + .../com/sun/ts/tests/jdbc/ee/common/build.xml | 22 - .../sun/ts/tests/jdbc/ee/common/rsSchema.java | 2 + .../sun/ts/tests/jdbc/ee/connection/build.xml | 22 - .../jdbc/ee/connection/connection1/build.xml | 59 - .../connection1/connectionClient1.java | 11 +- .../connectionClient1AppClient.java | 247 ++ .../connection1/connectionClient1EJB.java | 266 ++ .../connection1/connectionClient1JSP.java | 251 ++ .../connection1/connectionClient1Servlet.java | 239 ++ .../sun/ts/tests/jdbc/ee/dateTime/build.xml | 22 - .../jdbc/ee/dateTime/dateTime1/build.xml | 59 - .../dateTime/dateTime1/dateTimeClient1.java | 9 +- .../dateTime1/dateTimeClient1AppClient.java | 442 +++ .../dateTime1/dateTimeClient1EJB.java | 461 +++ .../dateTime1/dateTimeClient1JSP.java | 446 +++ .../dateTime1/dateTimeClient1Servlet.java | 434 +++ .../jdbc/ee/dateTime/dateTime2/build.xml | 59 - .../dateTime/dateTime2/dateTimeClient2.java | 10 +- .../dateTime2/dateTimeClient2AppClient.java | 223 ++ .../dateTime2/dateTimeClient2EJB.java | 244 ++ .../dateTime2/dateTimeClient2JSP.java | 227 ++ .../dateTime2/dateTimeClient2Servlet.java | 215 ++ .../jdbc/ee/dateTime/dateTime3/build.xml | 59 - .../dateTime/dateTime3/dateTimeClient3.java | 9 +- .../dateTime3/dateTimeClient3AppClient.java | 223 ++ .../dateTime3/dateTimeClient3EJB.java | 244 ++ .../dateTime3/dateTimeClient3JSP.java | 228 ++ .../dateTime3/dateTimeClient3Servlet.java | 215 ++ .../com/sun/ts/tests/jdbc/ee/dbMeta/build.xml | 22 - .../ts/tests/jdbc/ee/dbMeta/dbMeta1/build.xml | 59 - .../jdbc/ee/dbMeta/dbMeta1/dbMetaClient1.java | 11 +- .../dbMeta1/dbMetaClient1AppClient.java | 436 +++ .../ee/dbMeta/dbMeta1/dbMetaClient1EJB.java | 453 +++ .../ee/dbMeta/dbMeta1/dbMetaClient1JSP.java | 437 +++ .../dbMeta/dbMeta1/dbMetaClient1Servlet.java | 426 +++ .../tests/jdbc/ee/dbMeta/dbMeta10/build.xml | 59 - .../ee/dbMeta/dbMeta10/dbMetaClient10.java | 11 +- .../dbMeta10/dbMetaClient10AppClient.java | 458 +++ .../ee/dbMeta/dbMeta10/dbMetaClient10EJB.java | 477 +++ .../ee/dbMeta/dbMeta10/dbMetaClient10JSP.java | 462 +++ .../dbMeta10/dbMetaClient10Servlet.java | 450 +++ .../tests/jdbc/ee/dbMeta/dbMeta11/build.xml | 59 - .../ee/dbMeta/dbMeta11/dbMetaClient11.java | 12 +- .../dbMeta11/dbMetaClient11AppClient.java | 492 +++ .../ee/dbMeta/dbMeta11/dbMetaClient11EJB.java | 513 ++++ .../ee/dbMeta/dbMeta11/dbMetaClient11JSP.java | 496 +++ .../dbMeta11/dbMetaClient11Servlet.java | 484 +++ .../tests/jdbc/ee/dbMeta/dbMeta12/build.xml | 59 - .../ee/dbMeta/dbMeta12/dbMetaClient12.java | 12 +- .../dbMeta12/dbMetaClient12AppClient.java | 303 ++ .../ee/dbMeta/dbMeta12/dbMetaClient12EJB.java | 323 ++ .../ee/dbMeta/dbMeta12/dbMetaClient12JSP.java | 308 ++ .../dbMeta12/dbMetaClient12Servlet.java | 295 ++ .../ts/tests/jdbc/ee/dbMeta/dbMeta2/build.xml | 59 - .../jdbc/ee/dbMeta/dbMeta2/dbMetaClient2.java | 12 +- .../dbMeta2/dbMetaClient2AppClient.java | 437 +++ .../ee/dbMeta/dbMeta2/dbMetaClient2EJB.java | 456 +++ .../ee/dbMeta/dbMeta2/dbMetaClient2JSP.java | 440 +++ .../dbMeta/dbMeta2/dbMetaClient2Servlet.java | 428 +++ .../ts/tests/jdbc/ee/dbMeta/dbMeta3/build.xml | 59 - .../jdbc/ee/dbMeta/dbMeta3/dbMetaClient3.java | 11 +- .../dbMeta3/dbMetaClient3AppClient.java | 436 +++ .../ee/dbMeta/dbMeta3/dbMetaClient3EJB.java | 456 +++ .../ee/dbMeta/dbMeta3/dbMetaClient3JSP.java | 440 +++ .../dbMeta/dbMeta3/dbMetaClient3Servlet.java | 428 +++ .../ts/tests/jdbc/ee/dbMeta/dbMeta4/build.xml | 59 - .../jdbc/ee/dbMeta/dbMeta4/dbMetaClient4.java | 11 +- .../dbMeta4/dbMetaClient4AppClient.java | 438 +++ .../ee/dbMeta/dbMeta4/dbMetaClient4EJB.java | 459 +++ .../ee/dbMeta/dbMeta4/dbMetaClient4JSP.java | 443 +++ .../dbMeta/dbMeta4/dbMetaClient4Servlet.java | 431 +++ .../ts/tests/jdbc/ee/dbMeta/dbMeta5/build.xml | 59 - .../jdbc/ee/dbMeta/dbMeta5/dbMetaClient5.java | 11 +- .../dbMeta5/dbMetaClient5AppClient.java | 441 +++ .../ee/dbMeta/dbMeta5/dbMetaClient5EJB.java | 460 +++ .../ee/dbMeta/dbMeta5/dbMetaClient5JSP.java | 444 +++ .../dbMeta/dbMeta5/dbMetaClient5Servlet.java | 433 +++ .../ts/tests/jdbc/ee/dbMeta/dbMeta6/build.xml | 59 - .../jdbc/ee/dbMeta/dbMeta6/dbMetaClient6.java | 11 +- .../dbMeta6/dbMetaClient6AppClient.java | 442 +++ .../ee/dbMeta/dbMeta6/dbMetaClient6EJB.java | 462 +++ .../ee/dbMeta/dbMeta6/dbMetaClient6JSP.java | 446 +++ .../dbMeta/dbMeta6/dbMetaClient6Servlet.java | 434 +++ .../ts/tests/jdbc/ee/dbMeta/dbMeta7/build.xml | 59 - .../jdbc/ee/dbMeta/dbMeta7/dbMetaClient7.java | 11 +- .../dbMeta7/dbMetaClient7AppClient.java | 440 +++ .../ee/dbMeta/dbMeta7/dbMetaClient7EJB.java | 460 +++ .../ee/dbMeta/dbMeta7/dbMetaClient7JSP.java | 444 +++ .../dbMeta/dbMeta7/dbMetaClient7Servlet.java | 432 +++ .../ts/tests/jdbc/ee/dbMeta/dbMeta8/build.xml | 59 - .../jdbc/ee/dbMeta/dbMeta8/dbMetaClient8.java | 11 +- .../dbMeta8/dbMetaClient8AppClient.java | 434 +++ .../ee/dbMeta/dbMeta8/dbMetaClient8EJB.java | 453 +++ .../ee/dbMeta/dbMeta8/dbMetaClient8JSP.java | 438 +++ .../dbMeta/dbMeta8/dbMetaClient8Servlet.java | 426 +++ .../ts/tests/jdbc/ee/dbMeta/dbMeta9/build.xml | 59 - .../jdbc/ee/dbMeta/dbMeta9/dbMetaClient9.java | 10 +- .../dbMeta9/dbMetaClient9AppClient.java | 459 +++ .../ee/dbMeta/dbMeta9/dbMetaClient9EJB.java | 479 +++ .../ee/dbMeta/dbMeta9/dbMetaClient9JSP.java | 463 +++ .../dbMeta/dbMeta9/dbMetaClient9Servlet.java | 451 +++ .../ts/tests/jdbc/ee/escapeSyntax/build.xml | 22 - .../jdbc/ee/escapeSyntax/scalar1/build.xml | 60 - .../escapeSyntax/scalar1/scalarClient1.java | 12 +- .../scalar1/scalarClient1AppClient.java | 412 +++ .../scalar1/scalarClient1EJB.java | 433 +++ .../scalar1/scalarClient1JSP.java | 416 +++ .../scalar1/scalarClient1Servlet.java | 404 +++ .../jdbc/ee/escapeSyntax/scalar2/build.xml | 60 - .../escapeSyntax/scalar2/scalarClient2.java | 11 +- .../scalar2/scalarClient2AppClient.java | 421 +++ .../scalar2/scalarClient2EJB.java | 439 +++ .../scalar2/scalarClient2JSP.java | 422 +++ .../scalar2/scalarClient2Servlet.java | 411 +++ .../jdbc/ee/escapeSyntax/scalar3/build.xml | 60 - .../escapeSyntax/scalar3/scalarClient3.java | 10 +- .../scalar3/scalarClient3AppClient.java | 418 +++ .../scalar3/scalarClient3EJB.java | 437 +++ .../scalar3/scalarClient3JSP.java | 422 +++ .../scalar3/scalarClient3Servlet.java | 410 +++ .../jdbc/ee/escapeSyntax/scalar4/build.xml | 60 - .../escapeSyntax/scalar4/scalarClient4.java | 10 +- .../scalar4/scalarClient4AppClient.java | 433 +++ .../scalar4/scalarClient4EJB.java | 452 +++ .../scalar4/scalarClient4JSP.java | 437 +++ .../scalar4/scalarClient4Servlet.java | 425 +++ .../batUpdExcept/batUpdExceptClient.java | 11 +- .../batUpdExceptClientAppClient.java | 204 ++ .../batUpdExcept/batUpdExceptClientEJB.java | 224 ++ .../batUpdExcept/batUpdExceptClientJSP.java | 208 ++ .../batUpdExceptClientServlet.java | 196 ++ .../jdbc/ee/exception/batUpdExcept/build.xml | 59 - .../sun/ts/tests/jdbc/ee/exception/build.xml | 22 - .../jdbc/ee/exception/sqlException/build.xml | 59 - .../sqlException/sqlExceptionClient.java | 11 +- .../sqlExceptionClientAppClient.java | 228 ++ .../sqlException/sqlExceptionClientEJB.java | 248 ++ .../sqlException/sqlExceptionClientJSP.java | 232 ++ .../sqlExceptionClientServlet.java | 220 ++ .../sun/ts/tests/jdbc/ee/prepStmt/build.xml | 22 - .../jdbc/ee/prepStmt/prepStmt1/build.xml | 59 - .../prepStmt/prepStmt1/prepStmtClient1.java | 10 +- .../prepStmt1/prepStmtClient1AppClient.java | 458 +++ .../prepStmt1/prepStmtClient1EJB.java | 475 +++ .../prepStmt1/prepStmtClient1JSP.java | 459 +++ .../prepStmt1/prepStmtClient1Servlet.java | 448 +++ .../jdbc/ee/prepStmt/prepStmt10/build.xml | 59 - .../prepStmt/prepStmt10/prepStmtClient10.java | 9 +- .../prepStmt10/prepStmtClient10AppClient.java | 476 +++ .../prepStmt10/prepStmtClient10EJB.java | 495 +++ .../prepStmt10/prepStmtClient10JSP.java | 479 +++ .../prepStmt10/prepStmtClient10Servlet.java | 468 +++ .../jdbc/ee/prepStmt/prepStmt11/build.xml | 59 - .../prepStmt/prepStmt11/prepStmtClient11.java | 9 +- .../prepStmt11/prepStmtClient11AppClient.java | 476 +++ .../prepStmt11/prepStmtClient11EJB.java | 496 +++ .../prepStmt11/prepStmtClient11JSP.java | 480 +++ .../prepStmt11/prepStmtClient11Servlet.java | 469 +++ .../jdbc/ee/prepStmt/prepStmt12/build.xml | 59 - .../prepStmt/prepStmt12/prepStmtClient12.java | 9 +- .../prepStmt12/prepStmtClient12AppClient.java | 350 +++ .../prepStmt12/prepStmtClient12EJB.java | 370 +++ .../prepStmt12/prepStmtClient12JSP.java | 354 +++ .../prepStmt12/prepStmtClient12Servlet.java | 343 +++ .../jdbc/ee/prepStmt/prepStmt13/build.xml | 60 - .../prepStmt/prepStmt13/prepStmtClient13.java | 9 +- .../prepStmt13/prepStmtClient13AppClient.java | 452 +++ .../prepStmt13/prepStmtClient13EJB.java | 473 +++ .../prepStmt13/prepStmtClient13JSP.java | 457 +++ .../prepStmt13/prepStmtClient13Servlet.java | 446 +++ .../jdbc/ee/prepStmt/prepStmt14/build.xml | 59 - .../prepStmt/prepStmt14/prepStmtClient14.java | 9 +- .../prepStmt14/prepStmtClient14AppClient.java | 470 +++ .../prepStmt14/prepStmtClient14EJB.java | 490 +++ .../prepStmt14/prepStmtClient14JSP.java | 474 +++ .../prepStmt14/prepStmtClient14Servlet.java | 462 +++ .../jdbc/ee/prepStmt/prepStmt15/build.xml | 59 - .../prepStmt/prepStmt15/prepStmtClient15.java | 9 +- .../prepStmt15/prepStmtClient15AppClient.java | 373 +++ .../prepStmt15/prepStmtClient15EJB.java | 392 +++ .../prepStmt15/prepStmtClient15JSP.java | 376 +++ .../prepStmt15/prepStmtClient15Servlet.java | 365 +++ .../jdbc/ee/prepStmt/prepStmt16/build.xml | 59 - .../prepStmt/prepStmt16/prepStmtClient16.java | 9 +- .../prepStmt16/prepStmtClient16AppClient.java | 184 ++ .../prepStmt16/prepStmtClient16EJB.java | 204 ++ .../prepStmt16/prepStmtClient16JSP.java | 187 ++ .../prepStmt16/prepStmtClient16Servlet.java | 178 ++ .../jdbc/ee/prepStmt/prepStmt2/build.xml | 59 - .../prepStmt/prepStmt2/prepStmtClient2.java | 10 +- .../prepStmt2/prepStmtClient2AppClient.java | 476 +++ .../prepStmt2/prepStmtClient2EJB.java | 497 +++ .../prepStmt2/prepStmtClient2JSP.java | 481 +++ .../prepStmt2/prepStmtClient2Servlet.java | 471 +++ .../jdbc/ee/prepStmt/prepStmt3/build.xml | 59 - .../prepStmt/prepStmt3/prepStmtClient3.java | 9 +- .../prepStmt3/prepStmtClient3AppClient.java | 493 +++ .../prepStmt3/prepStmtClient3EJB.java | 515 ++++ .../prepStmt3/prepStmtClient3JSP.java | 498 +++ .../prepStmt3/prepStmtClient3Servlet.java | 489 +++ .../jdbc/ee/prepStmt/prepStmt4/build.xml | 59 - .../prepStmt/prepStmt4/prepStmtClient4.java | 9 +- .../prepStmt4/prepStmtClient4AppClient.java | 491 +++ .../prepStmt4/prepStmtClient4EJB.java | 512 ++++ .../prepStmt4/prepStmtClient4JSP.java | 496 +++ .../prepStmt4/prepStmtClient4Servlet.java | 486 +++ .../jdbc/ee/prepStmt/prepStmt5/build.xml | 59 - .../prepStmt/prepStmt5/prepStmtClient5.java | 9 +- .../prepStmt5/prepStmtClient5AppClient.java | 493 +++ .../prepStmt5/prepStmtClient5EJB.java | 514 ++++ .../prepStmt5/prepStmtClient5JSP.java | 496 +++ .../prepStmt5/prepStmtClient5Servlet.java | 489 +++ .../jdbc/ee/prepStmt/prepStmt6/build.xml | 59 - .../prepStmt/prepStmt6/prepStmtClient6.java | 9 +- .../prepStmt6/prepStmtClient6AppClient.java | 430 +++ .../prepStmt6/prepStmtClient6EJB.java | 451 +++ .../prepStmt6/prepStmtClient6JSP.java | 435 +++ .../prepStmt6/prepStmtClient6Servlet.java | 423 +++ .../jdbc/ee/prepStmt/prepStmt7/build.xml | 59 - .../prepStmt/prepStmt7/prepStmtClient7.java | 9 +- .../prepStmt7/prepStmtClient7AppClient.java | 472 +++ .../prepStmt7/prepStmtClient7EJB.java | 493 +++ .../prepStmt7/prepStmtClient7JSP.java | 476 +++ .../prepStmt7/prepStmtClient7Servlet.java | 465 +++ .../jdbc/ee/prepStmt/prepStmt8/build.xml | 59 - .../prepStmt/prepStmt8/prepStmtClient8.java | 9 +- .../prepStmt8/prepStmtClient8AppClient.java | 511 ++++ .../prepStmt8/prepStmtClient8EJB.java | 531 ++++ .../prepStmt8/prepStmtClient8JSP.java | 514 ++++ .../prepStmt8/prepStmtClient8Servlet.java | 502 +++ .../jdbc/ee/prepStmt/prepStmt9/build.xml | 59 - .../prepStmt/prepStmt9/prepStmtClient9.java | 9 +- .../prepStmt9/prepStmtClient9AppClient.java | 475 +++ .../prepStmt9/prepStmtClient9EJB.java | 496 +++ .../prepStmt9/prepStmtClient9JSP.java | 478 +++ .../prepStmt9/prepStmtClient9Servlet.java | 468 +++ .../sun/ts/tests/jdbc/ee/resultSet/build.xml | 22 - .../jdbc/ee/resultSet/resultSet1/build.xml | 59 - .../resultSet1/resultSetClient1.java | 9 +- .../resultSet1/resultSetClient1AppClient.java | 244 ++ .../resultSet1/resultSetClient1EJB.java | 263 ++ .../resultSet1/resultSetClient1JSP.java | 248 ++ .../resultSet1/resultSetClient1Servlet.java | 236 ++ .../jdbc/ee/resultSet/resultSet10/build.xml | 59 - .../resultSet10/resultSetClient10.java | 9 +- .../resultSetClient10AppClient.java | 430 +++ .../resultSet10/resultSetClient10EJB.java | 450 +++ .../resultSet10/resultSetClient10JSP.java | 432 +++ .../resultSet10/resultSetClient10Servlet.java | 421 +++ .../jdbc/ee/resultSet/resultSet11/build.xml | 59 - .../resultSet11/resultSetClient11.java | 9 +- .../resultSetClient11AppClient.java | 326 ++ .../resultSet11/resultSetClient11EJB.java | 345 +++ .../resultSet11/resultSetClient11JSP.java | 330 ++ .../resultSet11/resultSetClient11Servlet.java | 317 ++ .../jdbc/ee/resultSet/resultSet14/build.xml | 59 - .../resultSet14/resultSetClient14.java | 9 +- .../resultSetClient14AppClient.java | 383 +++ .../resultSet14/resultSetClient14EJB.java | 403 +++ .../resultSet14/resultSetClient14JSP.java | 387 +++ .../resultSet14/resultSetClient14Servlet.java | 375 +++ .../jdbc/ee/resultSet/resultSet17/build.xml | 59 - .../resultSet17/resultSetClient17.java | 11 +- .../resultSetClient17AppClient.java | 281 ++ .../resultSet17/resultSetClient17EJB.java | 302 ++ .../resultSet17/resultSetClient17JSP.java | 284 ++ .../resultSet17/resultSetClient17Servlet.java | 273 ++ .../jdbc/ee/resultSet/resultSet18/build.xml | 59 - .../resultSet18/resultSetClient18.java | 9 +- .../resultSetClient18AppClient.java | 292 ++ .../resultSet18/resultSetClient18EJB.java | 313 ++ .../resultSet18/resultSetClient18JSP.java | 295 ++ .../resultSet18/resultSetClient18Servlet.java | 283 ++ .../jdbc/ee/resultSet/resultSet41/build.xml | 59 - .../resultSet41/resultSetClient41.java | 9 +- .../resultSetClient41AppClient.java | 151 + .../resultSet41/resultSetClient41EJB.java | 170 ++ .../resultSet41/resultSetClient41JSP.java | 154 + .../resultSet41/resultSetClient41Servlet.java | 142 + .../jdbc/ee/resultSet/resultSet45/build.xml | 59 - .../resultSet45/resultSetClient45.java | 9 +- .../resultSetClient45AppClient.java | 309 ++ .../resultSet45/resultSetClient45EJB.java | 330 ++ .../resultSet45/resultSetClient45JSP.java | 313 ++ .../resultSet45/resultSetClient45Servlet.java | 302 ++ .../jdbc/ee/resultSet/resultSet47/build.xml | 59 - .../resultSet47/resultSetClient47.java | 9 +- .../resultSetClient47AppClient.java | 182 ++ .../resultSet47/resultSetClient47EJB.java | 204 ++ .../resultSet47/resultSetClient47JSP.java | 186 ++ .../resultSet47/resultSetClient47Servlet.java | 175 ++ .../jdbc/ee/resultSet/resultSet49/build.xml | 59 - .../resultSet49/resultSetClient49.java | 9 +- .../resultSetClient49AppClient.java | 275 ++ .../resultSet49/resultSetClient49EJB.java | 296 ++ .../resultSet49/resultSetClient49JSP.java | 278 ++ .../resultSet49/resultSetClient49Servlet.java | 266 ++ .../jdbc/ee/resultSet/resultSet7/build.xml | 59 - .../resultSet7/resultSetClient7.java | 9 +- .../resultSet7/resultSetClient7AppClient.java | 263 ++ .../resultSet7/resultSetClient7EJB.java | 283 ++ .../resultSet7/resultSetClient7JSP.java | 267 ++ .../resultSet7/resultSetClient7Servlet.java | 255 ++ .../com/sun/ts/tests/jdbc/ee/rsMeta/build.xml | 59 - .../ts/tests/jdbc/ee/rsMeta/rsMetaClient.java | 9 +- .../jdbc/ee/rsMeta/rsMetaClientAppClient.java | 423 +++ .../tests/jdbc/ee/rsMeta/rsMetaClientEJB.java | 444 +++ .../tests/jdbc/ee/rsMeta/rsMetaClientJSP.java | 428 +++ .../jdbc/ee/rsMeta/rsMetaClientServlet.java | 416 +++ .../com/sun/ts/tests/jdbc/ee/stmt/build.xml | 22 - .../sun/ts/tests/jdbc/ee/stmt/stmt1/build.xml | 59 - .../tests/jdbc/ee/stmt/stmt1/stmtClient1.java | 9 +- .../ee/stmt/stmt1/stmtClient1AppClient.java | 365 +++ .../jdbc/ee/stmt/stmt1/stmtClient1EJB.java | 383 +++ .../jdbc/ee/stmt/stmt1/stmtClient1JSP.java | 367 +++ .../ee/stmt/stmt1/stmtClient1Servlet.java | 356 +++ .../sun/ts/tests/jdbc/ee/stmt/stmt2/build.xml | 59 - .../tests/jdbc/ee/stmt/stmt2/stmtClient2.java | 9 +- .../ee/stmt/stmt2/stmtClient2AppClient.java | 253 ++ .../jdbc/ee/stmt/stmt2/stmtClient2EJB.java | 273 ++ .../jdbc/ee/stmt/stmt2/stmtClient2JSP.java | 256 ++ .../ee/stmt/stmt2/stmtClient2Servlet.java | 245 ++ .../sun/ts/tests/jdbc/ee/stmt/stmt3/build.xml | 59 - .../tests/jdbc/ee/stmt/stmt3/stmtClient3.java | 16 +- .../ee/stmt/stmt3/stmtClient3AppClient.java | 197 ++ .../jdbc/ee/stmt/stmt3/stmtClient3EJB.java | 215 ++ .../jdbc/ee/stmt/stmt3/stmtClient3JSP.java | 199 ++ .../ee/stmt/stmt3/stmtClient3Servlet.java | 187 ++ .../common/client/WebSocketCommonClient.java | 2 +- .../clientendpointconfig/WSClientIT.java | 2 +- .../websocket/closereason/WSClientIT.java | 2 +- .../websocket/decodeexception/WSClientIT.java | 2 +- .../deploymentException/WSClientIT.java | 2 +- .../websocket/encodeexception/WSClientIT.java | 2 +- .../serverendpointconfig/WSClientIT.java | 2 +- .../websocketcontainer/WSClientIT.java | 2 +- xa/pom.xml | 75 + .../main/java/com/sun/ts/tests/xa/build.xml | 22 - .../java/com/sun/ts/tests/xa/ee/build.xml | 22 - .../sun/ts/tests/xa/ee/resXcomp1/Client.java | 21 +- .../ts/tests/xa/ee/resXcomp1/ClientEJB.java | 214 ++ .../ts/tests/xa/ee/resXcomp1/ClientJSP.java | 177 ++ .../xa/ee/resXcomp1/ClientServletTest.java | 166 + .../ts/tests/xa/ee/resXcomp1/TxBeanEJB.java | 19 +- .../sun/ts/tests/xa/ee/resXcomp1/build.xml | 64 - ...p1_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml | 8 +- ...p1_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml | 8 +- ...p1_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml | 8 +- ...Xcomp1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml | 10 +- ..._resXcomp1_jsp_vehicle_web.war.sun-web.xml | 8 +- ...Xcomp1_servlet_vehicle_web.war.sun-web.xml | 8 +- .../sun/ts/tests/xa/ee/resXcomp2/Client.java | 10 +- .../ts/tests/xa/ee/resXcomp2/ClientEJB.java | 211 ++ .../ts/tests/xa/ee/resXcomp2/ClientJSP.java | 180 ++ .../tests/xa/ee/resXcomp2/ClientServlet.java | 169 ++ .../sun/ts/tests/xa/ee/resXcomp2/build.xml | 63 - ...p2_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml | 16 +- ...p2_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml | 16 +- ...p2_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml | 16 +- ...Xcomp2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml | 8 +- ..._resXcomp2_jsp_vehicle_web.war.sun-web.xml | 8 +- ...Xcomp2_servlet_vehicle_web.war.sun-web.xml | 8 +- .../sun/ts/tests/xa/ee/resXcomp3/Client.java | 10 +- .../ts/tests/xa/ee/resXcomp3/ClientEJB.java | 235 ++ .../ts/tests/xa/ee/resXcomp3/ClientJSP.java | 202 ++ .../tests/xa/ee/resXcomp3/ClientServlet.java | 194 ++ .../sun/ts/tests/xa/ee/resXcomp3/build.xml | 64 - ...p3_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml | 24 +- ...p3_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml | 24 +- ...p3_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml | 24 +- ...Xcomp3_ejb_vehicle_ejb.jar.sun-ejb-jar.xml | 16 +- ..._resXcomp3_jsp_vehicle_web.war.sun-web.xml | 16 +- ...Xcomp3_servlet_vehicle_web.war.sun-web.xml | 16 +- .../sun/ts/tests/xa/ee/xresXcomp1/Client.java | 10 +- .../ts/tests/xa/ee/xresXcomp1/ClientEJB.java | 192 ++ .../ts/tests/xa/ee/xresXcomp1/ClientJSP.java | 162 + .../tests/xa/ee/xresXcomp1/ClientServlet.java | 152 + .../sun/ts/tests/xa/ee/xresXcomp1/build.xml | 64 - ...p1_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml | 20 +- ...p1_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml | 20 +- ...p1_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml | 20 +- ...Xcomp1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml | 20 +- ...xresXcomp1_jsp_vehicle_web.war.sun-web.xml | 20 +- ...Xcomp1_servlet_vehicle_web.war.sun-web.xml | 20 +- .../sun/ts/tests/xa/ee/xresXcomp2/Client.java | 10 +- .../ts/tests/xa/ee/xresXcomp2/ClientEJB.java | 257 ++ .../ts/tests/xa/ee/xresXcomp2/ClientJSP.java | 222 ++ .../tests/xa/ee/xresXcomp2/ClientServlet.java | 214 ++ .../sun/ts/tests/xa/ee/xresXcomp2/build.xml | 65 - ...p2_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml | 28 +- ...p2_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml | 28 +- ...p2_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml | 28 +- ...Xcomp2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml | 20 +- ...xresXcomp2_jsp_vehicle_web.war.sun-web.xml | 20 +- ...Xcomp2_servlet_vehicle_web.war.sun-web.xml | 20 +- 713 files changed, 163548 insertions(+), 6394 deletions(-) create mode 100644 glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/certificates/clientcert.jks create mode 100644 glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/certificates/clientcert.p12 create mode 100644 glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/certificates/cts_cert create mode 100644 glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/ts.jte create mode 100644 glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/tssql.stmt create mode 100644 glassfish-runner/jdbc-platform-tck/pom.xml create mode 100644 glassfish-runner/jdbc-platform-tck/sql/derby/derby.ddl.sprocs.sql create mode 100644 glassfish-runner/jdbc-platform-tck/sql/derby/derby.ddl.sql create mode 100644 glassfish-runner/jdbc-platform-tck/sql/derby/derby.dml.sql create mode 100644 glassfish-runner/jdbc-platform-tck/src/test/java/arquillian/GlassfishTckExtension.java create mode 100644 glassfish-runner/jdbc-platform-tck/src/test/java/arquillian/GlassfishXmlProcessor.java create mode 100644 glassfish-runner/jdbc-platform-tck/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension create mode 100644 glassfish-runner/jdbc-platform-tck/src/test/resources/appclient-arquillian.xml create mode 100644 glassfish-runner/jdbc-platform-tck/src/test/resources/arquillian.xml create mode 100644 glassfish-runner/jdbc-platform-tck/src/test/resources/logging.properties create mode 100644 glassfish-runner/mail-platform-tck/jakartaeetck/bin/certificates/clientcert.jks create mode 100644 glassfish-runner/mail-platform-tck/jakartaeetck/bin/certificates/clientcert.p12 create mode 100644 glassfish-runner/mail-platform-tck/jakartaeetck/bin/certificates/cts_cert create mode 100644 glassfish-runner/mail-platform-tck/jakartaeetck/bin/ts.jte create mode 100644 glassfish-runner/mail-platform-tck/jakartaeetck/bin/tssql.stmt create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/1 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/10 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/11 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/12 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/13 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/14 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/15 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/16 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/17 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/18 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/19 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/2 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/20 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/21 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/22 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/23 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/24 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/25 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/3 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/4 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/5 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/6 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/7 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/8 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test1/9 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/1 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/10 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/11 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/12 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/13 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/14 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/15 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/16 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/17 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/18 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/19 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/2 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/20 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/3 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/4 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/5 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/6 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/7 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/8 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test2/9 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/1 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/10 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/11 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/12 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/13 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/14 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/15 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/16 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/17 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/18 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/19 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/2 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/20 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/21 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/22 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/23 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/24 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/25 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/26 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/3 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/4 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/5 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/6 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/7 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/8 create mode 100644 glassfish-runner/mail-platform-tck/mailboxes/test3/9 create mode 100644 glassfish-runner/mail-platform-tck/pom.xml create mode 100644 glassfish-runner/mail-platform-tck/src/main/resources/logging.properties create mode 100644 glassfish-runner/mail-platform-tck/src/test/java/arquillian/AppclientConfigTest.txt create mode 100644 glassfish-runner/mail-platform-tck/src/test/java/arquillian/GlassfishTckExtension.java create mode 100644 glassfish-runner/mail-platform-tck/src/test/java/arquillian/GlassfishXmlProcessor.java create mode 100644 glassfish-runner/mail-platform-tck/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension create mode 100644 glassfish-runner/mail-platform-tck/src/test/resources/appclient-arquillian.xml create mode 100644 glassfish-runner/mail-platform-tck/src/test/resources/arquillian.xml create mode 100644 glassfish-runner/mail-platform-tck/src/test/resources/logging.properties delete mode 100644 glassfish-runner/saaj-tck/pom.xml create mode 100644 glassfish-runner/xa-platform-tck/jakartaeetck/bin/certificates/clientcert.jks create mode 100644 glassfish-runner/xa-platform-tck/jakartaeetck/bin/certificates/clientcert.p12 create mode 100644 glassfish-runner/xa-platform-tck/jakartaeetck/bin/certificates/cts_cert create mode 100644 glassfish-runner/xa-platform-tck/jakartaeetck/bin/ts.jte create mode 100644 glassfish-runner/xa-platform-tck/jakartaeetck/bin/tssql.stmt create mode 100644 glassfish-runner/xa-platform-tck/pom.xml create mode 100644 glassfish-runner/xa-platform-tck/sql/derby/derby.ddl.cmp.sql create mode 100644 glassfish-runner/xa-platform-tck/sql/derby/derby.ddl.sprocs.sql create mode 100644 glassfish-runner/xa-platform-tck/sql/derby/derby.ddl.sql create mode 100644 glassfish-runner/xa-platform-tck/sql/derby/derby.dml.sql create mode 100644 glassfish-runner/xa-platform-tck/src/test/java/arquillian/AppclientConfigTest.txt create mode 100644 glassfish-runner/xa-platform-tck/src/test/java/arquillian/GlassfishTckExtension.java create mode 100644 glassfish-runner/xa-platform-tck/src/test/java/arquillian/GlassfishXmlProcessor.java create mode 100644 glassfish-runner/xa-platform-tck/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension create mode 100644 glassfish-runner/xa-platform-tck/src/test/resources/appclient-arquillian.xml create mode 100644 glassfish-runner/xa-platform-tck/src/test/resources/arquillian.xml create mode 100644 glassfish-runner/xa-platform-tck/src/test/resources/logging.properties create mode 100644 glassfish-runner/xa-platform-tck/whitebox.jar create mode 100644 glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox-notx-param.rar create mode 100644 glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox-notx.rar create mode 100644 glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox-tx-param.rar create mode 100644 glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox-tx.rar create mode 100644 glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox-xa-param.rar create mode 100644 glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox-xa.rar create mode 100644 glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox.jar delete mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/build.xml delete mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/build.xml delete mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/build.xml create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileAppClient_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileEJB_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileJSP_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileServlet_Test.java delete mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/build.xml create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentAppClient_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentEJB_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentJSP_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentServlet_Test.java delete mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/build.xml create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartAppClient_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartEJB_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartJSP_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartServlet_Test.java delete mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/build.xml create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressAppClient_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressEJB_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressJSP_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressServlet_Test.java delete mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/build.xml create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageAppClient_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageEJB_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageJSP_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageServlet_Test.java delete mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/build.xml create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartAppClient_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartEJB_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartJSP_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartServlet_Test.java delete mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/build.xml create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendAppClient_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendEJB_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendJSP_Test.java create mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendServlet_Test.java delete mode 100644 javamail/src/main/java/com/sun/ts/tests/javamail/ee/util/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/lib/tests/jdbc/CS_Procs.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientAppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientEJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientJSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientServlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/build.xml delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/build.xml delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/build.xml delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/build.xml delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/build.xml delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/build.xml delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/build.xml delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/build.xml delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4Servlet.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientAppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientEJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientJSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientServlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/build.xml delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/build.xml delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientAppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientEJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientJSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientServlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/build.xml delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/build.xml delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientAppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientEJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientJSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientServlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/build.xml delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2Servlet.java delete mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/build.xml create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3AppClient.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3EJB.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3JSP.java create mode 100644 jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3Servlet.java delete mode 100644 xa/src/main/java/com/sun/ts/tests/xa/build.xml delete mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/build.xml create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/ClientEJB.java create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/ClientJSP.java create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/ClientServletTest.java delete mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/build.xml create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/ClientEJB.java create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/ClientJSP.java create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/ClientServlet.java delete mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/build.xml create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/ClientEJB.java create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/ClientJSP.java create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/ClientServlet.java delete mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/build.xml create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/ClientEJB.java create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/ClientJSP.java create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/ClientServlet.java delete mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/build.xml create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/ClientEJB.java create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/ClientJSP.java create mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/ClientServlet.java delete mode 100644 xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/build.xml diff --git a/glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/certificates/clientcert.jks b/glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/certificates/clientcert.jks new file mode 100644 index 0000000000000000000000000000000000000000..09f5569c47a3e472d830625a54508a94d5f98054 GIT binary patch literal 2257 zcmc&#XH%027tNCbl2DY;K}w{F?FmJtC;?PL5JHs@6hxLL5Lzf|YE(mO15ac6dB|H1p=%-nPDmpkX)IcI-=M$ zK6zXTfgm7Y2z(dhW<#E01K@xH^cVmjAn*|QG(D4)8fZRb!S$JcFw^uoGNaQ}r#xbT*+A-m%u z2VdIk)9j%evc|LL9EVd1;;@J0zkXv-N3j?z!TDBi)JoJ$+${`BB5t3SMh=a}xS= zZ#?tI!KL#V(x-Nn9+zBuK;GszKVf7?{J~#wscX(Rp469MP9G5d427(jRGn6X5bZn0 zW*BwKfld>J<8|C|8Vieq>y3JZx|PY8xM(L@f^>Tju)REK2Md<&{!{bZg=Smf&d^nm zg-i|2$f+N!ik3C=Jh{5j;TCo9EK4b~`*NF{*ps^zVGPj?KwAW%Kkq6vlSSECvM4u3 z7MnHZ%xV@_=Z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ht2f{L?k&KJyA@FlpUpyLwJuA% zY$~GwAYUsvAR57h!T<o28$9T&s$Kc6c(0=2lk```kI=tCX~m4_^>QF zf_5Lt-Glq>2sdiIG8GJ3mRWg|kRpU8ecBC&O~AG3yZRH@(^^A86%m`6+MZh#jKamz zc?b1zxf4wjJsK0mB`*4VQ!!=0UNj*}=4wuM*XV`4Cbzoxxi2=$8I-t(oWX>NrACjV aN2^xEnzd)x&M^H7bqrttb?%;#-pt>D`u9=* literal 0 HcmV?d00001 diff --git a/glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/certificates/clientcert.p12 b/glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/certificates/clientcert.p12 new file mode 100644 index 0000000000000000000000000000000000000000..409e41e673587e2381ded8fdfe7958c5b2c616ae GIT binary patch literal 1615 zcmV-V2C(@sf(A2kx;s>GcIZ0;*S|y~<-^X=pwb0lP;Qtti>gC};O4;iJ9ZYc8h`9X{A8TqL=AoL- z?9N+iX5$_Ayw`nsB^=zGN~DUW?Y72c(I)0rKZXRbF=P*Cx`nsB+Ej+?;HAX~exhIzg4w3hxwIjNG=iz= z%|X^`1R-ZKc{)KA5(6h)EzyaC!>-v*Obr7E*ZiCY`W!^5>W_G}%y`3F&mi<3Kj_Sa zUo$ydR%%HTn(oiVGq$t^%qvdGaIt%hYuRSys>w(S)ROYxk(Xg9$6gZW)~ybmpZVwK zIC>#fGDg)SkNI|7JxBhjm1S~1%->>3wv~%;l+byf8+;u9^;=qPGmoZwK?K%N7%IOQu|x=w_mfDX zIAg9im~Fp4hJ1d(lzQvbKxw|H?D_b2zx7IIY|pVHQcX}T>kTL;Gl1)j?}%2M+KijB zsX!tkQ0*vLy;64d)9`aO0bFUf$u}~VF!8q-V%ew%6MruW!LyDURZ%5rC}8(o!`eEo z7STB=JT1jN%o$k>r>eNhd-*-U4>wG7(NASH3e3c8rRr{aG#YMaM02R0Lt`ntgDNI{ zUw9y61g=PJy%A0ff!aeKsTh{AHE?j6GWUK0sHz;N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oQX~sQPK??U-xoR+{@Au>{rk;t z)2#2SD<64q!REonP1)XmpY(5G{M+Z%tLnO9+1b11e~;wu-@S6i_pN*KCN}dlcs=-V JxIjQ)2LO6WWJmx2 literal 0 HcmV?d00001 diff --git a/glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/ts.jte b/glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/ts.jte new file mode 100644 index 0000000000..898d484674 --- /dev/null +++ b/glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/ts.jte @@ -0,0 +1,2462 @@ +# +# Copyright (c) 2006, 2022 Oracle and/or its affiliates and others. +# All rights reserved. +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License v. 2.0, which is available at +# http://www.eclipse.org/legal/epl-2.0. +# +# This Source Code may also be made available under the following Secondary +# Licenses when the conditions for such availability set forth in the +# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, +# version 2 with the GNU Classpath Exception, which is available at +# https://www.gnu.org/software/classpath/license.html. +# +# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 +# + +######################################################################### +## +## JavaTest Environment file for Java EE Compatibility Test Suite +## +## Environment specific properties in this file will likely +## have to be modified prior to running the Java EE CTS. +## Instructions for modifying these properties are contained in this +## file. +## +## This file is processed by an external tool that helps generate the +## CTS documents. Therefore this file has a standard format that must +## be followed. This file is a standard Java Properties file with +## very specific comment formatting. Users can write property specific +## comments by using the property name and an ampersand (@). As an +## example the following comment applies to the foo.bar property: +## # @foo.bar - This is a comment pertaining to foo.bar +## # that spans multiple lines. +## This comment must be preceded by a single hash (#) character and +## the property name must be prepended with an ampersand (@). The +## comment can appear anywhere in the ts.jte file. If users have +## comments that belong in ts.jte but DO NOT pertain to a particular +## property the user must start the comment with at least 2 hash (#) +## characters. The following is a valid non-property comment: +## ## A valid non-property comment +## ## that spans multiple lines. +######################################################################### + +######################################################################### +## @jte.version This version denotes the bundle this JTE was +## originally included with. The version matches the ID +## in the bundle name. It can be used to identify a +## mismatched JTE file. This value is filled in during +## the build process as part of sanitizing the jte file. +######################################################################### +jte.version=@JTE_VERSION@ + +######################################################################## +## Javatest batch mode work directory and report directory, and policy for +## handling existing work and report directories. These properties affects +## runclient and report targets, but not gui target. +## To disable generating test report, unset report.dir, or set it to "none" +## either here or from command line, as in the following command: +## ant runclient -Dreport.dir="none" +## +# @work.dir The directory used to store Javatest test results and test +# information. +# @report.dir The directory used to store Javatest summary reports of +# test results. +# @if.existing.work.report.dirs specifies how existing work.dir and +# report.dir will be handled, and it must be one of the following values: +# overwrite overwrites all content in work.dir and report.dir +# backup moves all content in work.dir and report.dir to +# work.dir_time_day_bak and report.dir_time_day_bak, +# respectively +# append reuses and preserves the existing work.dir and report.dir +# auto lets the build files decide which mode to use +# (overwrite, backup or append). the value is determined +# like this: +# if.existing.work.report.dirs == auto +# if in CTS workspace +# if.existing.work.report.dirs = overwrite +# else we are in a distribution bundle +# if.existing.work.report.dirs = append +# end if +# else +# if.existing.work.report.dirs = value in this file +# end if +######################################################################## +work.dir=/home/jenkins/agent/workspace/jakartaee-tck_master/JTWork +report.dir=/home/jenkins/agent/workspace/jakartaee-tck_master/JTReport +if.existing.work.report.dirs=auto + +######################################################################## +# @javatest.timeout.factor This property specifies the scale factor used by +# Javatest to adjust the time JavaTest will wait for a given test to +# complete before returning failure. For instance if the default test timeout +# is 5 minutes, this value will be multiplied by 5 minutes to determine +# the total timeout delay. Note: this value only works with Javatest's +# batch mode (runclient). When using the Javatest GUI users must change +# this timeout factor in the GUI. Configure -> Edit Configuration -> View +# -> choose Standard Values -> select tab Execution -> set Time Factor. +# +# Note that javatest.timeout.factor can be a positive real number, such as 1.5 +######################################################################## +javatest.timeout.factor=1 + +######################################################################## +## Level of Vendor Java EE Implementation +# @javaee.level The level of Java EE support for the implementation under test. +# This property serves two purposes: First, it is used to determine +# whether the impl under test is a Java EE Full profile (full) or Java +# EE Web profile (web). Either "full" or "web" must be specified in +# the list values. "full" will tell the harness to deploy ears. "web" +# will tell the harness to deploy wars. +# This property is also used to help determine which apis (in the +# signature tests) are to be tested. +# +# NOTE: This property does not determine which CTS tests to run for +# different profiles and optional technologies. That is done using +# keywords. Please refer to the keywords functionality in the CTS +# User's Guide for information on how to use keywords when +# running CTS tests. +# +# Currently, there are 4 settings supported for this property: +# 1. full: This is the minimal set of signature requirements that vendors +# must support. Specifying a javaee.level of "full" with nothing +# else implies there are NO additional technologies existing within +# the vendors implementation. Again, "full" only covers the +# REQUIRED Technologies for Jakarta EE 8 Full profile +# ex/ javaee.level=full +# +# 2. web : This is the minimal set of signature requirements that vendors +# must support for Web Profile. Specifying a javaee.level of "web" +# with nothing else implies there are NO additional technologies +# existing within the vendors implementation. Again, "web" only +# covers REQUIRED Technologies for Jakarta EE 8 Web profile +# ex/ javaee.level=web +# +# 3. full + optional_technologies: This covers REQUIRED Technologies for +# Java EE 8 Full Profile and any combination of the optional +# technologies. +# Known optional technologies for CTS8 full profile include: +# "jaxr". +# ex 1/ javaee.level=full jaxr +# ex 2/ javaee.level=full jaxr +# ex 3/ javaee.level=full +# ex 4/ etc... +# +# 4. web + optional_technologies: This covers REQUIRED Technologies for +# Java EE 8 Web Profile and any combination of optional +# technologies. +# Known optional technologies for Web Profile include: +# "jaxr", "connector", "jaxb", +# "jms", "javamail", "jacc", "jaspic", "wsmd" +# ex 1/ javaee.level=web connector jms jacc +# ex 2/ javaee.level=web jaspic +# ex 3/ javaee.level=web jms connector +# ex 4/ etc... +# +# Note 1: spaces separate multiple entries +# +# Note 2: optional technologies for full/javaee profile are listed +# in the Java EE 8 spec, in Table EE.6-1. Currently, the only +# optional technologies for full profile are: "jaxr" (JAXR 1.0) +# +# Note 3: The list of optional technologies for Web Profile includes any OPTIONAL +# technology explicitly called out in the Web Profile spec (if applicable) +# as well as any additional technology which is listed within +# JavaEE Profile 8 spec *but* not included/Required in the +# Web Profile spec. +# +# Note 4: Two different examples of javaee.level are provided immediately +# following this comment block. One is for running CTS8 against +# the EE 8 (full) Profile RI and the other is for running CTS8 +# against the EE 8 Web Profile RI. Notice that optional technologies +# are supplied here since the RI for CTS8 contains those optional +# technologies in it. It's very possible vendors may provider different +# optional technologies in their implementations. If so, the list of +# optional technologies will need to be adjusted here to suite each +# vendors implementation. +# +# Note 5: For EE 8 (RI) Web Profile, you can uncomment and use the line +# below which starts with: javaee.level=web .... +# +# IMPORTANT: when testing Web Profile - be sure to adjust the +# "optional.tech.packages.to.ignore" property accordingly. +# (see comments for optional.tech.packages.to.ignore below) +# +############################################################################### +#javaee.level=web connector jaxws jaxb javamail jacc jaspic wsmd +javaee.level=full + + +######################################################################## +## Settings for Vendor Java EE Implementation +# @javaee.home The location of the vendor's Java EE platform +# implementation. +# @orb.host Hostname of the machine running the vendor's +# implementation. +# @orb.port The port number the vendor implementation is listening +# to for service requests. +######################################################################## +javaee.home= +orb.host=localhost +orb.port=3699 + +######################################################################## +## JVMOPTS_RUNTESTCOMMAND is a marker that implementations may replace with +# the JVM options to pass when starting JVMs for running tests. +# This is intended to be used for implementations convencience. +# See file docker/run_jakartaeetck.sh for an example. +######################################################################## + +######################################################################## +## Settings for Sun RI Java EE Implementation +# @javaee.home.ri The location of the RI. +# @orb.host Hostname of the machine running the RI. +# @orb.port The port number the RI is listening to for service +# requests. +######################################################################## +javaee.home.ri= +orb.host.ri=localhost +orb.port.ri=3700 + +################################################################### +################################################################### +################################################################### +## RI SPECIFIC PROPERTIES LIVE BELOW +################################################################### +################################################################### +################################################################### + +############################################################### +# @ts.display -- location to display CTS output on Unix +############################################################### +ts.display=:0.0 + +########################################################################### +# @endorsed.dirs using Java SE 6 or above and you provide newer versions +# of technologies than those contained in Java SE 6, verify +# that the property endorsed.dirs is set to the location of +# the VI api jars for those technologies you wish to +# override. For example, Java SE 6 contains an +# implementation of JAXWS 2.0 which will conflict with +# JAXWS 2.1, therefore this property would need to be set +# so that JAXWS 2.1 would be used during the building of +# tests and during test execution. +# +# @endorsed.dirs.ri If using Java SE 6 or above and you provide newer versions +# of technologies than those contained in Java SE 6, verify +# that the property endorsed.dirs is set to the location of +# the RI api jars for those technologies you wish to +# override. For example, Java SE 6 contains an +# implementation of JAXWS 2.0 which will conflict with +# JAXWS 2.1, therefore this property would need to be set +# so that JAXWS 2.1 would be used during the building of +# tests and during test execution. +########################################################################### +endorsed.dirs=${javaee.home}/modules/endorsed +endorsed.dirs.ri=${javaee.home.ri}/modules/endorsed + +############################################################### +## Config params needed for Java EE RI asadmin +## You must change these values as needed +## +# @ri.admin.user -- The Java EE RI asadmin user id +# @ri.admin.passwd -- The Java EE RI asadmin user password +# @ri.admin.host -- The Java EE RI host +# @ri.admin.port -- The Java EE RI port +# @ri.admin -- The Java EE RI admin command +# @ri.server -- The Java EE RI server instance being used +# @ri.domain.dir -- Points to where your domains are installed. +# @ri.domain.name -- The Java EE RI domain being used +# @ri.domain -- The Java EE RI domain path being used +# @ri.asenv.loc -- location of asenv.conf or asenv.bat +# @ri.imqbin.loc -- location of the IMQ bin directory +# @ri.lib -- Library directory for other Java EE RI +# jars +# @ri.imq.share.lib -- Shared library directory for imq +# @ri.jvm.options -- Java options needed by the Java EE RI +# note, the second option is not needed +# but is required to work around asadmin +# command line parsing issues. The +# xxxlogin and xxxpassword are used +# to set known server side creds for use +# with connector tests. +# @ri.applicationRoot-- Location of application repository +# Only needed when running on windows +# @ri.and.vi.run.on.same.host - set to true if interop tests are run +# with both RI and VI on same machine. set to +# false if they are run on different machines. +# This is used to work around an orb issue +# specific to running VI and RI on same box. +# +# @ri.orb.iiop.orbserverid - This is used to set a similarly +# named jvm option in the RI. It is only used +# when we are running interop where remote EJBs +# try to access target EJB's on the same host with +# zero port configuration for ssl. +# This only gets used when ri.and.vi.run.on.same.host=true. +# The value is to be an ORB server id. +############################################################### +ri.admin.user=admin +ri.admin.passwd= +ri.admin.host=${orb.host.ri} +ri.admin.port=4848 +ri.admin=${javaee.home.ri}/bin/asadmin +ri.server=server +ri.domain.dir=${javaee.home.ri}/domains +ri.domain.name=domain1 +ri.domain=${ri.domain.dir}/${ri.domain.name} +ri.asenv.loc=${javaee.home.ri}/config +ri.imqbin.loc=${javaee.home.ri}/../mq/bin +ri.lib=${javaee.home.ri}/lib +ri.log.file.location=${ri.domain}/logs +ri.modules=${javaee.home.ri}/modules +ri.imq.share.lib=${javaee.home.ri}/../mq/lib +ri.jvm.options=-Doracle.jdbc.J2EE13Compliant=true:-Xmx4096m:-Dj2eelogin.name=${user}:-Dj2eelogin.password=${password}:-Deislogin.name=${user1}:-Deislogin.password=${password1}:-Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds}:-DwebServerPort.2=${webServerPort.2}:-DwebServerHost.2=${webServerHost.2}:-Dcsiv2.save.log.file=${harness.log.traceflag}:-Djavax.xml.accessExternalStylesheet=all:-Djavax.xml.accessExternalDTD=file,http +ri.jvm.options.remove=-Xmx512m:${ri.jvm.options} +ri.java.endorsed.dirs=${endorsed.dirs.ri} +ri.applicationRoot=c: +ri.and.vi.run.on.same.host=true +ri.orb.iiop.orbserverid=200 + +############################################################### +## Config params needed for Java EE VI asadmin +## You must change these values as needed +## +# @vi.admin.user -- The Java EE VI asadmin user id +# @vi.admin.passwd -- The Java EE VI asadmin user password +# @vi.admin.host -- The Java EE VI host +# @vi.admin.port -- The Java EE VI port +# @vi.admin -- The Java EE VI admin command +# @vi.server -- The Java EE VI server instance being used +# @vi.domain.dir -- Points to where your domains are installed. +# @vi.domain.name -- The Java EE VI domain being used +# @vi.domain -- The Java EE VI domain path being used +# @vi.asenv.loc -- location of asenv.conf or asenv.bat +# @vi.imqbin.loc -- location of the IMQ bin directory +# @vi.lib -- Library directory for other Java EE VI +# jars +# @vi.imq.share.lib -- Shared library directory for imq +# @vi.jvm.options -- Java options needed by the Java EE VI +# note, the second option is not needed +# but is required to work around asadmin +# command line parsing issues. The +# xxxlogin and xxxpassword are used +# to set known server side creds for use +# with connector tests. +# @vi.applicationRoot-- Location of application repository +# Only needed when running on windows +############################################################### +vi.admin.user=admin +vi.admin.passwd= +vi.admin.host=${orb.host} +vi.admin.port=4848 +vi.admin=${javaee.home}/bin/asadmin +vi.server=server +vi.domain.dir=${javaee.home}/domains +vi.domain.name=domain1 +vi.domain=${vi.domain.dir}/${vi.domain.name} +vi.asenv.loc=${javaee.home}/config +vi.imqbin.loc=${javaee.home}/../mq/bin +vi.lib=${javaee.home}/server/lib +vi.log.file.location=${vi.domain}/logs +vi.modules=${javaee.home}/modules +vi.imq.share.lib=${javaee.home}/../mq/lib +vi.jvm.options=-Doracle.jdbc.J2EE13Compliant=true:-Xmx4096m:-Dj2eelogin.name=${user}:-Dj2eelogin.password=${password}:-Deislogin.name=${user1}:-Deislogin.password=${password1}:-Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds}:-DwebServerPort.2=${webServerPort.2}:-DwebServerHost.2=${webServerHost.2}:-Dcsiv2.save.log.file=${harness.log.traceflag}:-Djavax.xml.accessExternalStylesheet=all:-Djavax.xml.accessExternalDTD=file,http +vi.jvm.options.remove=-Xmx512m:${vi.jvm.options} +vi.java.endorsed.dirs=${endorsed.dirs} +vi.applicationRoot=c: + +############################################################### +## Config params needed for Sun Java System Application Server +## (SJSAS) asadmin. You must change these values as needed +## only if you are testing against SJSAS app server +## (javaee.home is pointing to SJSAS). +# +# @s1as.admin.user -- The SJSAS asadmin user id +# @s1as.admin.passwd -- The SJSAS asadmin user password +# @s1as.admin.host -- The SJSAS host +# @s1as.admin.port -- The SJSAS port +# @s1as.admin -- The SJSAS admin command +# @s1as.server -- The SJSAS server instance being used +# @s1as.domain.dir -- Points to where your domains are installed. +# @s1as.domain.name -- The SJSAS domain being used +# @s1as.domain -- The SJSAS domain path being used +# @s1as.asenv.loc -- location of asenv.conf or asenv.bat +# @s1as.imqbin.loc -- location of the IMQ bin directory +# @s1as.lib -- Library directory for other Java EE RI +# jars +# @s1as.imq.share.lib -- Shared library directory for imq +# @s1as.jvm.options -- Java options needed by SJSAS +# The xxxlogin and xxxpassword are used +# to set known server side creds for use +# with connector tests. +# @s1as.applicationRoot-- Location of application repository +# Only needed when running on windows +############################################################### +s1as.admin.user=admin +s1as.admin.passwd= +s1as.admin.host=${orb.host} +s1as.admin.port=4848 +s1as.admin=${javaee.home}/bin/asadmin +s1as.server=server +s1as.domain.dir=${javaee.home}/domains +s1as.domain.name=domain1 +s1as.domain=${s1as.domain.dir}/${s1as.domain.name} +s1as.asenv.loc=${javaee.home}/config +s1as.imqbin.loc=${javaee.home}/../mq/bin +s1as.lib=${javaee.home}/lib +s1as.modules=${javaee.home}/modules +s1as.imq.share.lib=${javaee.home}/../mq/lib +s1as.jvm.options=-Doracle.jdbc.J2EE13Compliant=true:-Xmx4096m:-Dj2eelogin.name=${user}:-Dj2eelogin.password=${password}:-Deislogin.name=${user1}:-Deislogin.password=${password1}:-Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds}:-DwebServerPort.2=${webServerPort.2}:-DwebServerHost.2=${webServerHost.2} +s1as.jvm.options.remove=-Xmx512m:${s1as.jvm.options} +s1as.java.endorsed.dirs=${endorsed.dirs} +s1as.applicationRoot=c: + +############################################################### +# @sjsas.das.orb.port -- ORB port number for the DAS +# @sjsas.das.orb.host -- ORB host name for the DAS +# @sjsas.das.webServerPort -- HTTP listener port for the DAS +# @sjsas.das.securedWebServicePort -- HTTPS listener port for the DAS +# @sjsas.nodeagent.name -- Name of node agent used by +# the remote instance. +# @sjsas.nodeinstance.name -- Name of the remote instance +# @sjsas.master.password -- Used to create a node agent only +# applicable to EE. Defaults to changeit. This +# can be changed at EE install time. +# @sjsas.instance.config.dir -- config directory used by the intsance +# being tested. +# For PE/DAS = config +# For remote instance = config +# @sjsas.cts.timer.resource -- Backend to use when we are using java2db with +# the CMP tests for the jdbc/DBTimer resource +# @sjsas.cmp.backend -- Backend to use when we are using java2db with +# the CMP tests +# @sjsas.node.agent.dir.name -- The name of the node agent directory to use. +# This value will be used on Windows only and +# ignored on non-Windows platforms. The default +# is 'n' meaning the create-node-agent command +# will pass the --agentdir argument with a value +# of ${s1as.applicationRoot}\${sjsas.node.agent.dir.name}. +# @sjsas.env.type -- CTS test configuration. Possible values are: +# das (for PE or DAS) +# remote (for remote intance) +# cluster (for cluster config not yet supported) +# @s1as.targets -- Instance(s) to deploy tests +# Supports multiple instances, For example: +# s1as.targets=server server-1 +############################################################### +sjsas.das.orb.port=3700 +sjsas.das.orb.host=${orb.host} +sjsas.das.webServerPort=8000 +sjsas.das.securedWebServicePort=1043 +sjsas.nodeagent.name=node-agent-1 +sjsas.nodeinstance.name=server-1 +sjsas.master.password=changeit +sjsas.instance.config.dir=config +sjsas.cts.timer.resource=derby +sjsas.cmp.backend=derby +sjsas.node.agent.dir.name=n + +sjsas.env.type=das +#sjsas.env.type=remote + +s1as.targets=${s1as.server} +#s1as.targets=${sjsas.nodeinstance.name} + +############################################################### +# @s1as.pe.jmsServer -- name of the JMS server the RI/PE +# @s1as.se.jmsServer -- name of the JMS server for SE/EE +############################################################### +s1as.pe.jmsServer=imqbroker +s1as.se.jmsServer=imqbroker +#s1as.se.jmsServer=${s1as.domain.name}_${s1as.server} + +############################################################### +# @extension.dir - The extension directory for the app +# server under test. This does not apply +# to the RI. +# +# Note: App server vendors will need to set this to their +# app server's extension directory. The CTS config.vi +# target will copy the CTS library jars to this location. +############################################################### +extension.dir=${s1as.domain}/lib + +############################################################### +# @instance.listenerName - Default value for the iiop listener +# for your instance. Users will +# most likely not need to change this. +############################################################### +instance.listenerName=orb-listener-1 + +############################################################### +# @tz - your local timezone. For valid values, consult your +# Operating System documentation. +############################################################### +tz=US/Eastern + +############################################################### +# @jdbc.lib.class.path - This property is used by the +# database.classes properties to point to +# where the JDBC drivers live. +############################################################### +jdbc.lib.class.path=${ts.home}/internal/lib + +############################################################### +## The following section is for CTS Database configuration +## For each database that you will test, configure the following: +## Here is an example using derby: Users will need to +## replace derby with the appropriate DB name. +# @derby.dbName -- Database Name +# @derby.server -- Database Server +# @derby.port -- Database Server port +# @derby.dml.file -- DML file used for CTS test cases +# @derby.user -- User Id configured +# @derby.passwd -- User password configured +# @derby.url -- URL to the cts database +# @derby.driver -- DriverManager driver +# @derby.classes -- CLASSPATH to JDBC driver classes +# @derby.poolName -- Name of pool configured in the Java EE +# RI (do not change!) +# @derby.dataSource -- DataSource driver +# @derby.properties -- Any additional JDBC driver required +# properties +# @derby.startup.delay-- delay to wait for DB to start + +############################################################### + +## +## Info for Cloudscape 10/Derby +## +derby.dbName=derbyDB +derby.server=${orb.host} +derby.port=1527 +derby.port.ri=1527 +derby.dml.file=derby/derby.dml.sql +derby.user=cts1 +derby.passwd=cts1 +derby.url=jdbc:derby://${derby.server}:${derby.port}/${derby.dbName};create=true +derby.driver=org.apache.derby.jdbc.ClientDriver +derby.home=${javaee.home}/../javadb +derby.system.home=${derby.home}/databases +derby.classpath=${ts.home}/lib/dbprocedures.jar${pathsep}${derby.home}/lib/derbynet.jar${pathsep}${derby.home}/lib/derbyshared.jar${pathsep}${derby.home}/lib/derbytools.jar +derby.classes=${derby.home}/lib/derbyclient.jar${pathsep}${derby.home}/lib/derbyshared.jar${pathsep}${derby.home}/lib/derbytools.jar +derby.poolName=cts-derby-pool +derby.dataSource=org.apache.derby.jdbc.ClientDataSource +derby.properties=DatabaseName\=\"${derby.dbName}\":user\=${derby.user}:password\=${derby.passwd}:serverName\=${derby.server}:portNumber=${derby.port} +derby.startup.delay=5 + +# +# Cloudscape 10 /Derby embedded driver +# +derbyEmbedded.dbName=/tmp/DerbyDB +derbyEmbedded.server=${orb.host} +derbyEmbedded.port=1527 +derbyEmbedded.dml.file=derby/derby.dml.sql +derbyEmbedded.user=cts1 +derbyEmbedded.passwd=cts1 +derbyEmbedded.url=jdbc:derby:${derbyEmbedded.dbName};create=true +derbyEmbedded.driver=org.apache.derby.jdbc.EmbeddedDriver +derbyEmbedded.classes=${javaee.home}/../javadb/lib/derby.jar${pathsep}${javaee.home}/../javadb/lib/derbyshared.jar${pathsep}${javaee.home}/../javadb/lib/derbytools.jar${pathsep}${ts.home}/lib/dbprocedures.jar +derbyEmbedded.poolName=cts-derbyEmbedded-pool +derbyEmbedded.dataSource=org.apache.derby.jdbc.EmbeddedDataSource +derbyEmbedded.pool.url='jdbc\\:derby\\:${derbyEmbedded.dbName}\\;create=true' +derbyEmbedded.properties=DatabaseName\=\"${derbyEmbedded.dbName}\":user\=${derbyEmbedded.user}:password\=${derbyEmbedded.passwd} + + +## +## Info for DB2 (8.1 type 2 driver) +## +db2.dbName=cts +db2.server=${orb.host} +db2.port=50000 +db2.dml.file=db2/db2.dml.sql +db2.user=db2inst1 +db2.passwd=ibmdb2 +db2.url=jdbc:db2:${db2.dbName} +db2.driver=com.ibm.db2.jcc.DB2Driver +db2.classes=${jdbc.lib.class.path}/db2jcc.jar:${jdbc.lib.class.path}/db2jcc_license_cu.jar:${jdbc.lib.class.path}/db2java.zip +db2.poolName=cts-db2-pool +db2.dataSource=com.ibm.db2.jcc.DB2SimpleDataSource +db2.properties=user=${db2.user}:password=${db2.passwd}:databaseName=${db2.dbName}:driverType=2:deferPrepares\=false + +## +## Info for db2 using the DataDirect driver +## +db2DD.dbName=cts +db2DD.server=${orb.host} +db2DD.port=50000 +db2DD.dml.file=db2/db2.dml.sql +db2DD.user=db2inst1 +db2DD.passwd=ibmdb2 +db2DD.url=jdbc:datadirect:db2://${db2DD.server}:${db2DD.port};DatabaseName\=${db2DD.dbName} +db2DD.driver=com.ddtek.jdbc.db2.DB2Driver +db2DD.classes=${jdbc.lib.class.path}/util.jar${pathsep}${jdbc.lib.class.path}/db2.jar${pathsep}${jdbc.lib.class.path}/base.jar +db2DD.poolName=cts-db2-DataDirect-pool +db2DD.dataSource=com.ddtek.jdbcx.db2.DB2DataSource +db2DD.properties=user\=${db2DD.user}:password\=${db2DD.passwd}:ServerName\=${db2DD.server}:portNumber\=${db2DD.port}:databasename\=${db2DD.dbName} + +## +## Info for db2 using the Sun driver +## +db2Sun.dbName=cts +db2Sun.server=${orb.host} +db2Sun.port=50000 +db2Sun.dml.file=db2/db2.dml.sql +db2Sun.user=db2inst1 +db2Sun.passwd=ibmdb2 +db2Sun.url=jdbc:sun:db2://${db2Sun.server}:${db2Sun.port};DatabaseName\=${db2Sun.dbName} +db2Sun.driver=com.sun.sql.jdbc.db2.DB2Driver +db2Sun.classes=${jdbc.lib.class.path}/smdb2.jar +db2Sun.poolName=cts-db2-Sun-pool +db2Sun.dataSource=com.sun.sql.jdbcx.db2.DB2DataSource +db2Sun.properties=user\=${db2Sun.user}:password\=${db2Sun.passwd}:ServerName\=${db2Sun.server}:portNumber\=${db2Sun.port}:databasename\=${db2Sun.dbName} + +## +## Info for Microsoft SQL Server +## +mssqlserver.dbName=cts +mssqlserver.server=${orb.host} +mssqlserver.port=1433 +mssqlserver.dml.file=mssqlserver/mssqlserver.dml.sql +mssqlserver.user=guest +mssqlserver.passwd=guest +mssqlserver.url=jdbc:microsoft:sqlserver://${mssqlserver.server}:${mssqlserver.port} +mssqlserver.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver +mssqlserver.classes=${jdbc.lib.class.path}/sqljdbc.jar +mssqlserver.poolName=cts-mssqlserver-pool +mssqlserver.dataSource=com.microsoft.sqlserver.jdbc.SQLServerDataSource +mssqlserver.properties=user\=${mssqlserver.user}:password\=${mssqlserver.passwd}:ServerName\=${mssqlserver.server}:portNumber\=${mssqlserver.port} + + +## +## Info for Microsoft SQL Server using the DataDirect driver +## +mssqlserverDD.dbName=cts +mssqlserverDD.server=${orb.host} +mssqlserverDD.port=1433 +mssqlserverDD.dml.file=mssqlserver/mssqlserver.dml.sql +mssqlserverDD.user=guest +mssqlserverDD.passwd=guest +mssqlserverDD.url=jdbc:datadirect:sqlserver://${mssqlserverDD.server}:${mssqlserverDD.port} +mssqlserverDD.driver=com.ddtek.jdbc.sqlserver.SQLServerDriver +mssqlserverDD.classes=${jdbc.lib.class.path}/util.jar${pathsep}${jdbc.lib.class.path}/sqlserver.jar${pathsep}${jdbc.lib.class.path}/base.jar +mssqlserverDD.poolName=cts-mssqlserver-DataDirect-pool +mssqlserverDD.dataSource=com.ddtek.jdbcx.sqlserver.SQLServerDataSource +mssqlserverDD.properties=user\=${mssqlserverDD.user}:password\=${mssqlserverDD.passwd}:ServerName\=${mssqlserverDD.server}:portNumber\=${mssqlserverDD.port}:selectMethod\=cursor + +## +## Info for Microsoft SQL Server using the Inet driver +## +mssqlserverInet.dbName=cts1 +mssqlserverInet.server=${orb.host} +mssqlserverInet.port=1433 +mssqlserverInet.dml.file=mssqlserver/mssqlserver.dml.sql +mssqlserverInet.user=cts1 +mssqlserverInet.passwd=cts1 +mssqlserverInet.url=jdbc:inetdae7:${mssqlserverInet.server}:${mssqlserverInet.port} +mssqlserverInet.driver=com.inet.tds.TdsDriver +mssqlserverInet.classes=${jdbc.lib.class.path}/Merlia.jar +mssqlserverInet.poolName=cts-mssqlserver-Inet-pool +mssqlserverInet.dataSource=com.inet.tds.TdsDataSource +mssqlserverInet.properties=user\=${mssqlserverInet.user}:password\=${mssqlserverInet.passwd}:ServerName\=${mssqlserverInet.server}:port\=${mssqlserverInet.port} + +## +## Info for Microsoft SQL Server using the Sun driver +## +mssqlserverSun.dbName=cts +mssqlserverSun.server=${orb.host} +mssqlserverSun.port=1433 +mssqlserverSun.dml.file=mssqlserver/mssqlserver.dml.sql +mssqlserverSun.user=guest +mssqlserverSun.passwd=guest +mssqlserverSun.url=jdbc:sun:sqlserver://${mssqlserverSun.server}:${mssqlserverSun.port} +mssqlserverSun.driver=com.sun.sql.jdbc.sqlserver.SQLServerDriver +mssqlserverSun.classes=${jdbc.lib.class.path}/smsqlserver.jar +mssqlserverSun.poolName=cts-mssqlserver-Sun-pool +mssqlserverSun.dataSource=com.sun.sql.jdbcx.sqlserver.SQLServerDataSource +mssqlserverSun.properties=user\=${mssqlserverSun.user}:password\=${mssqlserverSun.passwd}:ServerName\=${mssqlserverSun.server}:portNumber\=${mssqlserverSun.port}:selectMethod\=cursor + +## +## Info for MYSQL driver +## +mysql.dbName=cts +mysql.server=${orb.host} +mysql.port=3306 +mysql.dml.file=mysql/mysql.dml.sql +mysql.user=cts1 +mysql.passwd=cts1 +mysql.url=jdbc:mysql://${mysql.server}:${mysql.port}/${mysql.dbName} +mysql.driver=com.mysql.jdbc.Driver +mysql.classes=${jdbc.lib.class.path}/mysql-connector-java-5.1.42-bin.jar +mysql.poolName=cts-mysql-pool +mysql.dataSource=com.mysql.jdbc.jdbc2.optional.MysqlDataSource +mysql.properties=user\=${mysql.user}:password\=${mysql.passwd}:DatabaseName\=${mysql.dbName}\:ServerName\=${mysql.server}\:port\=${mysql.port}\:jdbcCompliantTruncation\=false + +## +## Info for Oracle DataDirect +## +oracleDD.dbName=ora817 +oracleDD.server=${orb.host} +oracleDD.port=1521 +oracleDD.dml.file=oracle/oracle.dml.sql +oracleDD.user=la +oracleDD.passwd=la +oracleDD.url=jdbc:datadirect:oracle://${oracleDD.server};SID=${oracleDD.dbName} +oracleDD.driver=com.ddtek.jdbc.oracle.OracleDriver +oracleDD.classes=${jdbc.lib.class.path}/base.jar${pathsep}${jdbc.lib.class.path}/oracle.jar${pathsep}${jdbc.lib.class.path}/util.jar +oracleDD.poolName=cts-oracle-DataDirect-pool +oracleDD.dataSource=com.ddtek.jdbcx.oracle.OracleDataSource +oracleDD.properties=user\=${oracleDD.user}:password\=${oracleDD.passwd}:SID\="${oracleDD.dbName}":serverName=${oracleDD.server}:portNumber=${oracleDD.port} + +## +## Info for Oracle thin +## +oracle.dbName=cts +oracle.server=${orb.host} +oracle.port=1521 +oracle.dml.file=oracle/oracle.dml.sql +oracle.user=cts1 +oracle.passwd=cts1 +oracle.url=jdbc:oracle:thin:@${oracle.server}:${oracle.port}:${oracle.dbName} +oracle.driver=oracle.jdbc.OracleDriver +oracle.classes=${jdbc.lib.class.path}/ojdbc8.jar +oracle.poolName=cts-oracle-pool +oracle.dataSource=oracle.jdbc.pool.OracleDataSource +oracle.pool.url=jdbc\\:oracle\\:thin\\:@${oracle.server}\\:${oracle.port}\\:${oracle.dbName} +oracle.properties=user\=${oracle.user}:password\=${oracle.passwd}:URL\=\"${oracle.pool.url}\" + +# +# Info for Oracle oci driver +# +oracleOCI.dbName=cts1 +oracleOCI.server=${orb.host} +oracleOCI.port=1521 +oracleOCI.dml.file=oracle/oracle.dml.sql +oracleOCI.user=cts1 +oracleOCI.passwd=cts1 +oracleOCI.url=jdbc:oracle:oci:@${oracleOCI.dbName} +oracleOCI.driver=oracle.jdbc.OracleDriver +oracleOCI.classes=${jdbc.lib.class.path}/ojdbc8.jar +oracleOCI.poolName=cts-oracle-oci-pool +oracleOCI.dataSource=oracle.jdbc.pool.OracleDataSource +oracleOCI.pool.url=jdbc\\:oracle\\:oci\\:@${oracleOCI.dbName} +oracleOCI.properties=user\=${oracleOCI.user}:password\=${oracleOCI.passwd}:URL\=\"${oracleOCI.pool.url}\" + +## +## Info for Oracle inet +## +oracleInet.dbName=cts1 +oracleInet.server=${orb.host} +oracleInet.port=1521 +oracleInet.dml.file=oracle/oracle.dml.sql +oracleInet.user=cts1 +oracleInet.passwd=cts1 +oracleInet.url=jdbc:inetora:${oracleInet.server}:${oracleInet.port}:${oracleInet.dbName} +oracleInet.driver=com.inet.ora.OraDriver +oracleInet.classes=${jdbc.lib.class.path}/Oranxo.jar +oracleInet.poolName=cts-oracle-Inet-pool +oracleInet.dataSource=com.inet.ora.OraDataSource +oracleInet.properties=user\=${oracleInet.user}:password\=${oracleInet.passwd}:serviceName\="${oracleInet.dbName}":serverName=${oracleInet.server}:port=${oracleInet.port} + +## +## Info for Oracle Sun +## +oracleSun.dbName=ora817 +oracleSun.server=${orb.host} +oracleSun.port=1521 +oracleSun.dml.file=oracle/oracle.dml.sql +oracleSun.user=la +oracleSun.passwd=la +oracleSun.url=jdbc:sun:oracle://${oracleSun.server};SID=${oracleSun.dbName} +oracleSun.driver=com.sun.sql.jdbc.oracle.OracleDriver +oracleSun.classes=${jdbc.lib.class.path}/smoracle.jar +oracleSun.poolName=cts-oracle-Sun-pool +oracleSun.dataSource=com.sun.sql.jdbcx.oracle.OracleDataSource +oracleSun.properties=user\=${oracleSun.user}:password\=${oracleSun.passwd}:SID\="${oracleSun.dbName}":serverName=${oracleSun.server}:portNumber=${oracleSun.port} + +## +## Info for Pointbase +## +pointbase.dbName=cts +pointbase.server=${orb.host} +pointbase.port=9092 +pointbase.dml.file=pointbase/pointbase.dml.sql +pointbase.user=PBPUBLIC +pointbase.passwd=PBPUBLIC +pointbase.url=jdbc:pointbase:server://${pointbase.server}:${pointbase.port}/${pointbase.dbName},new +pointbase.driver=com.pointbase.jdbc.jdbcUniversalDriver +pointbase.classes=${jdbc.lib.class.path}/pbclient.jar${pathsep}${jdbc.lib.class.path}/pbembedded.jar +pointbase.poolName=cts-pointbase-pool +pointbase.dataSource=com.pointbase.jdbc.jdbcDataSource +pointbase.pool.url="jdbc\\:pointbase\\:server\\:\/\/${pointbase.server}\\:${pointbase.port}\/${pointbase.dbName},new" +pointbase.properties=user\=${pointbase.user}:password\=${pointbase.passwd}:DatabaseName\=\"${pointbase.pool.url}\" + +## +## Info for Postgres +## +postgresql.dbName=CTS5 +postgresql.server=${orb.host} +postgresql.port=5432 +postgresql.dml.file=postgresql/postgresql.dml.sql +postgresql.user=cts1 +postgresql.passwd=cts1 +postgresql.url=jdbc:postgresql://${postgresql.server}:${postgresql.port}/${postgresql.dbName} +postgresql.driver=org.postgresql.Driver +postgresql.classes=${jdbc.lib.class.path}/postgresql-8.4-701.jdbc4.jar +postgresql.poolName=cts-postgresql-pool +postgresql.pool.url="jdbc\\:postgresql\\:server\\:\/\/${postgresql.server}\\:${postgresql.port}\/${postgresql.dbName},new" +postgresql.dataSource=org.postgresql.ds.PGSimpleDataSource +postgresql.properties=user\=${postgresql.user}:password\=${postgresql.passwd}:DatabaseName\=${postgresql.dbName}\:ServerName\=${postgresql.server}\:port\=${postgresql.port} + +## +## Info for Sybase (jConnect Driver) +## +sybase.dbName=cts2 +sybase.server=${orb.host} +sybase.port=4100 +sybase.dml.file=sybase/sybase.dml.sql +sybase.user=cts1 +sybase.passwd=cts1 +sybase.url=jdbc:sybase:Tds:${sybase.server}:${sybase.port}/${sybase.dbName} +sybase.driver=com.sybase.jdbc2.jdbc.SybDriver +sybase.classes=${jdbc.lib.class.path}/jconn2.jar +sybase.poolName=cts-sybase-pool +sybase.dataSource= com.sybase.jdbc2.jdbc.SybDataSource +sybase.properties=user\=${sybase.user}:password\=${sybase.passwd}:DatabaseName\=${sybase.dbName}\:ServerName\=${sybase.server}\:PortNumber\=${sybase.port}\:BE_AS_JDBC_COMPLIANT_AS_POSSIBLE\=true\:FAKE_METADATA\=true + +## +## Info for Sybase (Inet Driver) +## +sybaseInet.dbName=cts2 +sybaseInet.server=${orb.host} +sybaseInet.port=4100 +sybaseInet.dml.file=sybase/sybase.dml.sql +sybaseInet.user=cts1 +sybaseInet.passwd=cts1 +sybaseInet.url=jdbc:inetsyb:${sybaseInet.server}:${sybaseInet.port}?database=${sybaseInet.dbName} +sybaseInet.driver=com.inet.syb.SybDriver +sybaseInet.classes=${jdbc.lib.class.path}/Sybelux.jar +sybaseInet.poolName=cts-sybase-Inet-pool +sybaseInet.dataSource= com.inet.syb.SybDataSource +sybaseInet.properties=user\=${sybaseInet.user}:password\=${sybaseInet.passwd}:DatabaseName\=${sybaseInet.dbName}\:ServerName\=${sybaseInet.server}\:PortNumber\=${sybaseInet.port} + + +## +## Info for Sybase using the DataDirect driver +## +sybaseDD.dbName=cts2 +sybaseDD.server=${orb.host} +sybaseDD.port=4100 +sybaseDD.dml.file=sybase/sybase.dml.sql +sybaseDD.user=cts1 +sybaseDD.passwd=cts1 +sybaseDD.url=jdbc:datadirect:sybase://${sybaseDD.server}:${sybaseDD.port} +sybaseDD.driver=com.ddtek.jdbc.sybase.SybaseDriver +sybaseDD.classes=${jdbc.lib.class.path}/util.jar${pathsep}${jdbc.lib.class.path}/sybase.jar${pathsep}${jdbc.lib.class.path}/base.jar +sybaseDD.poolName=cts-sybase-DataDirect-pool +sybaseDD.dataSource=com.ddtek.jdbcx.sybase.SybaseDataSource +sybaseDD.properties=user\=${sybaseDD.user}:password\=${sybaseDD.passwd}:ServerName\=${sybaseDD.server}:portNumber\=${sybaseDD.port}:selectMethod\=cursor:DatabaseName\=${sybaseDD.dbName} + +## +## Info for Sybase using the Sun driver +## +sybaseSun.dbName=cts2 +sybaseSun.server=${orb.host} +sybaseSun.port=4100 +sybaseSun.dml.file=sybase/sybase.dml.sql +sybaseSun.user=cts1 +sybaseSun.passwd=cts1 +sybaseSun.url=jdbc:sun:sybase://${sybaseSun.server}:${sybaseSun.port} +sybaseSun.driver=com.sun.sql.jdbc.sybase.SybaseDriver +sybaseSun.classes=${jdbc.lib.class.path}/smsybase.jar +sybaseSun.poolName=cts-sybase-Sun-pool +sybaseSun.dataSource=com.sun.sql.jdbcx.sybase.SybaseDataSource +sybaseSun.properties=user\=${sybaseSun.user}:password\=${sybaseSun.passwd}:ServerName\=${sybaseSun.server}:portNumber\=${sybaseSun.port}:selectMethod\=cursor:DatabaseName\=${sybaseSun.dbName} + +############################################################### +## The following database configuration section is for the CTS +## interop tests which require a database that is used by the +## reference implementation. These entries should not be changed. +# @derby.dbName.ri -- Database Name +# @derby.server.ri -- Database Server +# @derby.port.ri -- Database Server port +# @derby.dml.file.ri -- DML file used for CTS test cases +# @derby.user.ri -- User Id configured +# @derby.passwd.ri -- User password configured +# @derby.url.ri -- URL to the cts database +# @derby.driver.ri -- DriverManager driver +# @derby.classes.ri -- CLASSPATH to JDBC driver classes +# @derby.poolName.ri -- Name of pool configured in the Java EE +# RI (do not change!) +# @derby.dataSource.ri -- DataSource driver +# @derby.properties.ri -- Any additional JDBC driver required +# properties +# @derby.startup.delay.ri -- delay to wait for DB to start +############################################################### +derby.dbName.ri=derbyDBri +derby.server.ri=${orb.host.ri} +derby.port.ri=1527 +derby.dml.file.ri=derby/derby.dml.sql +derby.user.ri=cts1 +derby.passwd.ri=cts1 +derby.url.ri=jdbc:derby://${derby.server.ri}:${derby.port.ri}/${derby.dbName.ri};create=true +derby.driver.ri=org.apache.derby.jdbc.ClientDriver +derby.home.ri=${javaee.home.ri}/../javadb +derby.system.home.ri=${derby.home.ri}/databases +derby.classpath.ri=${ts.home}/lib/dbprocedures.jar${pathsep}${derby.home.ri}/lib/derbynet.jar${pathsep}${derby.home.ri}/lib/derbyshared.jar${pathsep}${derby.home.ri}/lib/derbytools.jar +derby.classes.ri=${derby.home.ri}/lib/derbyclient.jar{pathsep}${derby.home.ri}/lib/derbyshared.jar${pathsep}${derby.home.ri}/lib/derbytools.jar +derby.poolName.ri=cts-derby-pool +derby.dataSource.ri=org.apache.derby.jdbc.ClientDataSource +derby.properties.ri=DatabaseName\=\"${derby.dbName.ri}\":user\=${derby.user.ri}:password\=${derby.passwd.ri}:serverName\=${derby.server.ri}:portNumber=${derby.port.ri} +derby.startup.delay.ri=5 +############################################################### +# @alt.dtd.dir DTD location for Java EE and RI xml files. Used +# for xml validation when building tests. If +# javaee.home.ri is set, /lib/dtds +# will be used and alt.dtd.dir is ignored. +# @alt.schema.dir schema location for Java EE and RI xml files. +# Used for xml validation when building tests. +# If javaee.home.ri is set, +# /lib/schemas will be used and +# alt.schema.dir is ignored. +############################################################### +alt.dtd.dir=${ts.home}/lib/dtds +alt.schema.dir=${ts.home}/lib/schemas + +############################################################### +## Configure the behavior of which tables CTS will create when +## ant init.[datbaseName] is invoked. +# +# @create.cmp.tables - When set to false, the appserver is +# responsible for creating cmp tables +# at deployment of the ejb/ear +# When set to true, init.[datbaseName] +# will create the tables used by CMP +# EJBs. The sql for the CMP tables are +# contained in: +# $TS_HOME/[datbaseName]/sql/[databaseName].ddl.cmp.sql +# $TS_HOME/[datbaseName]/sql/[databaseName].ddl.interop.sql +# +############################################################### +create.cmp.tables=true + +############################################################### +# @jdbc.poolName - Configure the connection pool that will be +# tested in this cts test run. +# +# @jdbc.maxpoolsize - This property defines the max pool size +# when creating JDBC connection pools. +# +# @jdbc.steadypoolsize - This property defines the steady pool size +# when creating JDBC connection pools. +############################################################### +jdbc.poolName=${derby.poolName} +jdbc.maxpoolsize=64 +jdbc.steadypoolsize=32 + +############################################################### +## These properties are use for the CTS +## interop tests which require a database that is used by the +## reference implementation. +# +# @jdbc.poolName.ri - Configure the connection pool that will be +# use when configuring the JDBC connection +# pools for the reference implemetation. +# +# @jdbc.maxpoolsize.ri - This property defines the max pool size +# when creating JDBC connection pools. +# +# @jdbc.steadypoolsize.ri - This property defines the steady pool size +# when creating JDBC connection pools. +############################################################### +jdbc.poolName.ri=${derby.poolName.ri} +jdbc.maxpoolsize.ri=96 +jdbc.steadypoolsize.ri=32 + +############################################################### +# @jdbc.datasource.props - Used to to specify Vendor specific +# properties and less commonly used DataSource properties. +# Its value is a comma-separated array of name-value pairs. +# Each property pair follows the format of "name=value", +# including the surrounding double quotes. +# +# The value of this property must not contain any extra spaces. +# +# In most cases, this property is not needed and therefore +# commented out. +# +############################################################### +#jdbc.datasource.props="driverType=thin","name2=value2" + +############################################################### +# @jdbc.db - The name of the currently configured DB. This +# value is the prefix of the DB properties currently +# being used. Some valid values are; derby and +# derbyEmbedded. See the other DB property +# names for other valid values. +############################################################### +jdbc.db=derby +jdbc.db.classes=${derby.classes} + +############################################################### +## These properties are configurable and must specify valid +## usernames and passwords to establish JDBC connections to +## backend RDBMS. +## +# @user1 - Set this to the user for the jdbc/DB1 resource +# @password1 - Set this to the password for the jdbc/DB1 resource +# @user2 - Set this to the user for the jdbc/DB2 resource +# @password2 - Set this to the password for the jdbc/DB2 resource +# @user3 - Set this to the user for the jdbc/DBTimer resource +# @password3 - Set this to the password for the jdbc/DBTimer resource +############################################################### +user1=${derby.user} +password1=${derby.passwd} +user2=${derby.user} +password2=${derby.passwd} +user3=${derby.user} +password3=${derby.passwd} + +############################################################### +## Configure the dml file to use +# @db.dml.file - dml file for VI +# @db.dml.file.ri - dml file for RI +############################################################### +db.dml.file=${derby.dml.file} +db.dml.file.ri=${derby.dml.file} + +############################################################### +## Configure the DB specific information needed by JSTL +# @jstl.db.driver - JDBC driver +# @jstl.db.url - DB URL +############################################################### +jstl.db.driver=${derby.driver} +jstl.db.url=${derby.url} + +######################################################################## +# +# @jtaJarClasspath: This property must be set when running signature +# tests. This property should be set to the Path +# for the JTA API jar. +# +######################################################################## +jtaJarClasspath=${s1as.modules}/jakarta.transaction-api.jar + +############################################################### +## Classpath properties required by CTS: +# @javaee.classes.ri -- Classes required by Java EE RI +# @ts.run.classpath.ri -- Classpath required by Java EE RI +# appclient container. +# @ts.run.classpath -- Classpath required by the vendor +# appclient container. +# @ts.harness.classpath -- Classes required by javatest +# @ts.classpath -- Classes used to build the CTS tests +# @ts.lib.classpath -- Classes used to build cts.jar +############################################################### +implementation.classes.ri=${ri.modules}/orb-connector.jar${pathsep}${ri.modules}/deployment-client.jar${pathsep}${ri.modules}/security-ee.jar${pathsep}${ri.modules}/security.jar${pathsep}${ri.modules}/common-util.jar${pathsep}${ri.modules}/glassfish-corba-omgapi.jar${pathsep}${ri.modules}/glassfish-corba-orb.jar${pathsep}${ri.modules}/internal-api.jar${pathsep}${ri.modules}/deployment-common.jar${pathsep}${ri.modules}/gmbal.jar${pathsep}${ri.modules}/bean-validator.jar${pathsep}${ri.modules}/jersey-client.jar${pathsep}${ri.modules}/jersey-common.jar${pathsep}${ri.modules}/jersey-hk2.jar${pathsep}${ri.modules}/jersey-media-jaxb.jar${pathsep}${ri.modules}/jersey-media-sse.jar${pathsep}${ri.modules}/jersey-media-json-processing.jar${pathsep}${ri.modules}/jsonp-jaxrs.jar${pathsep}${ri.modules}/jersey-media-json-binding.jar${pathsep}${ri.modules}/jersey-server.jar${pathsep}${ri.modules}/jersey-container-servlet.jar${pathsep}${ri.modules}/jersey-container-servlet-core.jar${pathsep}${ri.modules}/guava.jar${pathsep}${ri.modules}/jakarta.el.jar${pathsep}${ri.modules}/jakarta.el-api.jar${pathsep}${ri.modules}/tyrus-websocket-core.jar${pathsep}${ri.modules}/tyrus-client.jar${pathsep}${ri.modules}/tyrus-container-grizzly-client.jar${pathsep}${ri.modules}/tyrus-core.jar${pathsep}${ri.modules}/tyrus-container-grizzly.jar${pathsep}${ri.modules}/tyrus-container-grizzly-client.jar${pathsep}${ri.modules}/glassfish-grizzly-extra-all.jar${pathsep}${ri.modules}/nucleus-grizzly-all.jar${pathsep}${ri.modules}/tyrus-server.jar${pathsep}${ri.modules}/tyrus-container-servlet.jar${pathsep}${ri.modules}/tyrus-spi.jar${pathsep}${ri.modules}/yasson.jar${pathsep}${ri.modules}/jakarta.websocket-client-api.jar${pathsep}${ri.modules}/parsson.jar${pathsep}${ri.modules}/parsson-media.jar${pathsep}${ri.modules}/angus-activation.jar${pathsep}${ri.modules}/angus-mail.jar${pathsep}${ri.modules}/expressly.jar + +implementation.classes=${s1as.modules}/deployment-client.jar${pathsep}${s1as.modules}/security.jar${pathsep}${s1as.modules}/common-util.jar${pathsep}${s1as.modules}/glassfish-corba-omgapi.jar${pathsep}${s1as.modules}/deployment-common.jar${pathsep}${s1as.modules}/gmbal.jar${pathsep}${s1as.modules}/bean-validator.jar${pathsep}${s1as.modules}/jakarta.ws.rs-api.jar${pathsep}${s1as.modules}/jersey-client.jar${pathsep}${s1as.modules}/jersey-common.jar${pathsep}${s1as.modules}/jersey-hk2.jar${pathsep}${s1as.modules}/jersey-media-jaxb.jar${pathsep}${s1as.modules}/jersey-media-sse.jar${pathsep}${s1as.modules}/jersey-media-json-processing.jar${pathsep}${s1as.modules}/jsonp-jaxrs.jar${pathsep}${s1as.modules}/jersey-media-json-binding.jar${pathsep}${s1as.modules}/jersey-server.jar${pathsep}${s1as.modules}/jersey-container-servlet.jar${pathsep}${s1as.modules}/jersey-container-servlet-core.jar${pathsep}${s1as.modules}/guava.jar${pathsep}${s1as.modules}/jakarta.el.jar${pathsep}${s1as.modules}/jakarta.el-api.jar${pathsep}${s1as.modules}/tyrus-websocket-core.jar${pathsep}${s1as.modules}/tyrus-client.jar${pathsep}${s1as.modules}/tyrus-core.jar${pathsep}${s1as.modules}/tyrus-container-grizzly.jar${pathsep}${s1as.modules}/tyrus-container-grizzly-client.jar${pathsep}${s1as.modules}/glassfish-grizzly-extra-all.jar${pathsep}${s1as.modules}/nucleus-grizzly-all.jar${pathsep}${s1as.modules}/tyrus-server.jar${pathsep}${s1as.modules}/tyrus-container-servlet.jar${pathsep}${s1as.modules}/tyrus-spi.jar${pathsep}${s1as.modules}/yasson.jar${pathsep}${s1as.modules}/jakarta.websocket-client-api.jar${pathsep}${s1as.modules}/parsson.jar${pathsep}${s1as.modules}/parsson-media.jar${pathsep}${s1as.modules}/angus-activation.jar${pathsep}${s1as.modules}/angus-mail.jar${pathsep}${s1as.modules}/expressly.jar + +javaee.classes.ri=${ri.modules}/jakarta.jms-api.jar${pathsep}${ri.modules}/jakarta.json.jar${pathsep}${ri.modules}/jakarta.json-api.jar${pathsep}${ri.modules}/jakarta.json.bind-api.jar${pathsep}${ri.modules}/jakarta.ejb-api.jar${pathsep}${ri.modules}/jakarta.annotation-api.jar${pathsep}${ri.modules}/jakarta.enterprise.deploy-api.jar${pathsep}${ri.modules}/jakarta.mail.jar${pathsep}${ri.modules}/jakarta.mail-api.jar${pathsep}${ri.modules}/jakarta.persistence.jar${pathsep}${ri.modules}/jakarta.persistence-api.jar${pathsep}${ri.modules}/jakarta.resource-api.jar${pathsep}${ri.modules}/jakarta.security.auth.message-api.jar${pathsep}${ri.modules}/jakarta.authentication-api.jar${pathsep}${ri.modules}/jakarta.security.jacc-api.jar${pathsep}${ri.modules}/jakarta.authorization-api.jar${pathsep}${ri.modules}/jakarta.interceptor-api.jar${pathsep}${ri.modules}/jakarta.servlet-api.jar${pathsep}${ri.modules}/jakarta.servlet.jsp-api.jar${pathsep}${ri.modules}/jakarta.transaction-api.jar${pathsep}${ri.modules}/jakarta.xml.bind-api.jar${pathsep}${ri.modules}/jaxb-osgi.jar${pathsep}${ri.modules}/jmxremote_optional-repackaged.jar${pathsep}${ri.modules}/jakarta.faces.jar${pathsep}${ri.modules}/jakarta.faces-api.jar${pathsep}${ri.modules}/jakarta.servlet.jsp.jstl.jar${pathsep}${ri.modules}/jakarta.servlet.jsp.jstl-api.jar${pathsep}${ri.modules}/webservices-osgi.jar${pathsep}${ri.modules}/webservices-api-osgi.jar${pathsep}${ri.modules}/ejb.security.jar${pathsep}${ri.modules}/glassfish-corba-csiv2-idl.jar${pathsep}${ri.modules}/weld-osgi-bundle.jar${pathsep}${implementation.classes.ri}${pathsep}${ri.modules}/javamail-connector.jar${pathsep}${ri.modules}/javamail-runtime.jar${pathsep}${ri.modules}/jakarta.websocket-api.jar${pathsep}${ri.modules}/jakarta.enterprise.concurrent-api.jar${pathsep}${ri.modules}/jakarta.enterprise.cdi-api.jar${pathsep}${ri.modules}/jakarta.security.enterprise-api.jar${pathsep}${ri.modules}/resolver.jar${pathsep}${ri.modules}/jakarta.websocket-client-api.jar${pathsep}${ri.modules}/parsson.jar${pathsep}${s1as.modules}/parsson-media.jar${pathsep}${ri.modules}/angus-activation.jar${pathsep}${s1as.modules}/angus-mail.jar${pathsep}${s1as.modules}/expressly.jar${pathsep}${ri.modules}/webservices-extra-jdk-packages.jar${pathsep}${ri.modules}/webservices-connector.jar${pathsep}${ri.modules}/webservices-extra-xmlsec.jar${pathsep}${ri.modules}/webservices.security.jar + +javaee.classes=${s1as.modules}/jakarta.jms-api.jar${pathsep}${s1as.modules}/jakarta.json.jar${pathsep}${s1as.modules}/jakarta.json-api.jar${pathsep}${s1as.modules}/jakarta.json.bind-api.jar${pathsep}${s1as.modules}/jakarta.ejb-api.jar${pathsep}${s1as.modules}/jakarta.annotation-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.deploy-api.jar${pathsep}${s1as.modules}/jakarta.mail.jar${pathsep}${s1as.modules}/jakarta.mail-api.jar${pathsep}${s1as.modules}/jakarta.persistence.jar${pathsep}${s1as.modules}/jakarta.persistence-api.jar${pathsep}${s1as.modules}/jakarta.resource-api.jar${pathsep}${s1as.modules}/jakarta.security.auth.message-api.jar${pathsep}${s1as.modules}/jakarta.security.jacc-api.jar${pathsep}${s1as.modules}/jakarta.authentication-api.jar${pathsep}${s1as.modules}/jakarta.authorization-api.jar${pathsep}${s1as.modules}/jakarta.servlet-api.jar${pathsep}${s1as.modules}/el-impl.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp-api.jar${pathsep}${jtaJarClasspath}${pathsep}${s1as.modules}/jakarta.xml.bind-api.jar${pathsep}${s1as.modules}/jaxb-osgi.jar${pathsep}${s1as.modules}/jmxremote_optional-repackaged.jar${pathsep}${s1as.modules}/jakarta.faces.jar${pathsep}${s1as.modules}/jakarta.faces-api.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp.jstl.jar${pathsep}${ri.modules}/jakarta.servlet.jsp.jstl-api.jar${pathsep}${s1as.modules}/webservices-osgi.jar${pathsep}${s1as.modules}/webservices-api-osgi.jar${pathsep}${s1as.modules}/jakarta.management.j2ee-api.jar${pathsep}${s1as.modules}/ejb.security.jar${pathsep}${s1as.modules}/glassfish-corba-csiv2-idl.jar${pathsep}${s1as.modules}/weld-osgi-bundle.jar${pathsep}${implementation.classes}${pathsep}${s1as.modules}/javamail-connector.jar${pathsep}${s1as.modules}/javamail-runtime.jar${pathsep}${s1as.modules}/jakarta.websocket-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.concurrent-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.cdi-api.jar$${pathsep}${s1as.modules}/jakarta.xml.ws-api.jar${pathsep}${s1as.modules}/jakarta.xml.bind-api.jar${pathsep}${s1as.modules}/jakarta.security.enterprise-api.jar${pathsep}${s1as.modules}/jakarta.inject-api.jar${pathsep}${s1as.modules}/jakarta.activation-api.jar${pathsep}${s1as.modules}/jakarta.validation-api.jar${pathsep}${s1as.modules}/resolver.jar${pathsep}${s1as.modules}/jakarta.websocket-client-api.jar${pathsep}${s1as.modules}/parsson.jar${pathsep}${s1as.modules}/parsson-media.jar${pathsep}${s1as.modules}/angus-activation.jar${pathsep}${s1as.modules}/angus-mail.jar${pathsep}${s1as.modules}/expressly.jar${pathsep}${s1as.modules}/webservices-extra-jdk-packages.jar${pathsep}${s1as.modules}/webservices-connector.jar${pathsep}${s1as.modules}/webservices-extra-xmlsec.jar${pathsep}${s1as.modules}/webservices.security.jar + +ts.run.classpath.ri=${javaee.classes.ri}${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar + +ts.run.classpath=${pathsep}${javaee.classes}${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${jdbc.db.classes} + +ts.harness.classpath=${ts.home}/lib/jaxb-api.jar${pathsep}${ts.home}/lib/jaxb-core.jar${pathsep}${ts.home}/lib/jaxb-impl.jar${pathsep}${ts.home}/lib/jaxb-xjc.jar${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${ts.home}/lib/sigtest.jar${pathsep}${ts.run.classpath}${pathsep}${ts.home}/lib/javatest.jar${pathsep}${ts.home}/lib/jdom-1.1.3.jar${pathsep}${ant.home}/lib/ant.jar${pathsep}${ri.modules}/admin-cli.jar + +#classpath used for building CTS tests only (DO NOT MODIFY) +ts.classpath=${ts.home}/lib/commons-lang3-3.3.2.jar${pathsep}${javaee.home.ri}/javadb/lib/derby.jar${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${ts.home}/lib/sigtest.jar${pathsep}${ts.run.classpath}${pathsep}${ts.run.classpath.ri}${pathsep}${ts.home}/lib/javatest.jar${pathsep}${ts.home}/lib/jdom-1.1.3.jar${pathsep}${ant.home}/lib/ant.jar${pathsep}${ts.home}/lib/commons-httpclient-3.1.jar${pathsep}${ts.home}/lib/commons-logging-1.1.3.jar${pathsep}${ts.home}/lib/htmlunit-2.15.jar${pathsep}${ts.home}/lib/htmlunit-core-js-2.15.jar${pathsep}${ts.home}/lib/unboundid-ldapsdk.jar${pathsep}${ts.home}/lib/commons-codec-1.9.jar${pathsep}${ts.home}/lib/xml-apis-1.4.01.jar${pathsep}${ts.home}/lib/jaxb-api.jar +#classpath used for building cts.jar (DO NOT MODIFY) +ts.lib.classpath=${javaee.home.ri}/javadb/lib/derby.jar${pathsep}${ts.harness.classpath} + + +############################################################### +# @javaee.home.ri.classpathsuffix - The classpath suffix of +# the RI used in interop tests. Must contain the RI JDBC +# driver jars and the RMI interceptor classes. +############################################################### +javaee.home.ri.classpathsuffix=${javaee.home.ri}/lib/riinterceptors.jar${pathsep}${javaee.home.ri}/javadb/lib/derbyclient.jar + +############################################################### +# @s1as.classpathsuffix - The classpath suffix of +# the RI when being used as the app server under test. +############################################################### +s1as.classpathsuffix=${javaee.home}/lib/tsprovider.jar + +######################################################################## +## Common environment for both ts_unix and ts_win32 +# +# @command.testExecute - This command is used to execute any test +# clients which are not run inside an +# application client container. For example, +# any URL clients or standalone java clients +# would be executed with this command. Some +# test directories which make use of this command +# are servlet and jsp. +######################################################################## + +command.testExecute=com.sun.ts.lib.harness.ExecTSTestCmd \ + CLASSPATH=${ts.harness.classpath}${pathsep}${ts.home}/classes${pathsep}\ + ${JAVA_HOME}/../lib/tools.jar${pathsep}\ + ${ri.modules}/security-ee.jar${pathsep}\ + ${ts.home}/lib/commons-httpclient-3.1.jar${pathsep}\ + ${ts.home}/lib/commons-logging-1.1.3.jar${pathsep}\ + ${ts.home}/lib/commons-codec-1.9.jar${pathsep}\ + ${ts.home}/lib/cssparser-0.9.25.jar${pathsep}\ + ${ts.home}/lib/htmlunit-2.15.jar${pathsep}\ + ${ts.home}/lib/htmlunit-core-js-2.15.jar${pathsep}\ + ${ts.home}/lib/httpcore-4.4.9.jar${pathsep}\ + ${ts.home}/lib/httpclient-4.5.5.jar${pathsep}\ + ${ts.home}/lib/httpmime-4.5.5.jar${pathsep}\ + ${ts.home}/lib/commons-collections-3.2.1.jar${pathsep}\ + ${ts.home}/lib/commons-io-2.4.jar${pathsep}\ + ${ts.home}/lib/commons-lang3-3.3.2.jar${pathsep}\ + ${ts.home}/lib/jaxen-1.1.6.jar${pathsep}\ + ${ts.home}/lib/nekohtml-1.9.21.jar${pathsep}\ + ${ts.home}/lib/sac-1.3.jar${pathsep}\ + ${ts.home}/lib/saxpath.jar${pathsep}\ + ${ts.home}/lib/xercesImpl-2.11.0.jar${pathsep}\ + ${ts.home}/lib/xalan-2.7.2.jar${pathsep}\ + ${ts.home}/lib/serializer-2.7.2.jar${pathsep}\ + ${ts.home}/lib/xml-apis-1.4.01.jar${pathsep}\ + ${ts.home}/lib/unboundid-ldapsdk.jar${pathsep}\ + ${jdbc.db.classes} \ + DISPLAY=${ts.display} \ + HOME="${user.home}" \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + PATH="${javaee.home}/nativelib" \ + ${JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Xss2048k \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Djavax.net.ssl.trustStore=${s1as.domain}/${sjsas.instance.config.dir}/cacerts.jks \ + -Dcom.sun.aas.installRoot=${javaee.home} \ + -Dlog.file.location=${log.file.location} \ + -Dservlet.is.jsr115.compatible=${servlet.is.jsr115.compatible} \ + -Dprovider.configuration.file=${provider.configuration.file} \ + -Djava.security.properties=${s1as.domain}/${sjsas.instance.config.dir}/ts.java.security \ + -Dlogical.hostname.servlet=${logical.hostname.servlet} \ + -Dcom.sun.aas.configRoot=${javaee.home}/config \ + -Ddeliverable.class=${deliverable.class} $testExecuteClass $testExecuteArgs + +######################################################################## +## Appclient Command line for the App Server under test +## Licensees modify this command +# +# @command.testExecuteAppClient - This command is used to execute +# the application client container for +# the vendor implementation (vi). +# Please note that $TS_HOME/classes +# should not be in the classpath for +# this command since all client classes +# are self contained in the application +# archive (or referenced via the manifest). +######################################################################## +command.testExecuteAppClient= \ + com.sun.ts.lib.harness.ExecTSTestCmd DISPLAY=${ts.display} HOME="${user.home}" \ + LD_LIBRARY_PATH=${javaee.home}/lib \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + PATH="${javaee.home}/nativelib" \ + APPCPATH=${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${javaee.home}/lib/jpa_alternate_provider.jar${pathsep}${ts.home}/lib/tssv.jar${pathsep}${javaee.home}/modules/weld-osgi-bundle.jar${pathsep}${javaee.home}/modules/jakarta.enterprise.cdi-api.jar \ + TZ=${tz} \ + ${JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Djava.system.class.loader=org.glassfish.appclient.client.acc.agent.ACCAgentClassLoader \ + -Djava.security.policy=${javaee.home}/lib/appclient/client.policy \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.security.auth.login.config=${javaee.home}/lib/appclient/appclientlogin.conf \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Dcom.sun.enterprise.home=${javaee.home} \ + -Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Dcom.sun.aas.installRoot=${javaee.home} \ + -Dcom.sun.aas.imqLib=${javaee.home}/../mq/lib \ + -Djavax.net.ssl.trustStore=${s1as.domain}/${sjsas.instance.config.dir}/cacerts.jks \ + -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl \ + -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl \ + -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl \ + -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser \ + -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter \ + -Doracle.jdbc.J2EE13Compliant=true \ + -Doracle.jdbc.mapDateToTimestamp \ + -Dstartup.login=false \ + -Dauth.gui=false \ + -Dlog.file.location=${log.file.location} \ + -Dri.log.file.location=${ri.log.file.location} \ + -DwebServerHost.2=${webServerHost.2} \ + -DwebServerPort.2=${webServerPort.2} \ + -Dprovider.configuration.file=${provider.configuration.file} \ + -Djava.security.properties=${s1as.domain}/${sjsas.instance.config.dir}/ts.java.security \ + -Dcom.sun.aas.configRoot=${javaee.home}/config \ + -Ddeliverable.class=${deliverable.class} -javaagent:${javaee.home}/lib/gf-client.jar=arg=-configxml,arg=${ts.home}/tmp/appclient/s1as.sun-acc.xml,client=jar=$testExecuteArgs + +#-Ddeliverable.class=${deliverable.class} -javaagent:${javaee.home}/modules/gf-client.jar=arg=-configxml,arg=${s1as.domain}/config/sun-acc.xml,client=jar=$testExecuteArgs +#-Xbootclasspath/a:${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar + +######################################################################## +# @command.testExecuteEjbEmbed - Command line for standalone embedded EJB tests. +# Its classpath must include all the APIs required +# by EJB Lite, vendor's implementation classes and +# configuration for embeddable EJB container, and +# JDBC driver classes (e.g., ${db2.classes}, +# ${oracle.classes}, etc). +# +# Current test archives are dynamically added to +# the classpath by the harness, and need not be +# included in the classpath here. +# +# Most test directories contain one test archive, +# all named ejbembed_vehicle_ejb.jar. If certain +# tooling and pre-processing of test archives are +# needed, the resulting test archives must remain +# the same name and location. +# +# ${ts.home}/classes must not be in the classpath +# since all the required test classes are packaged +# in the test archive (ejbembed_vehicle_ejb.jar). In +# addition, including ${ts.home}/classes in the +# classpath would incorrectly expose all EJBs in +# cts to EJB container bootstrapping process. +######################################################################## +command.testExecuteEjbEmbed=com.sun.ts.lib.harness.ExecTSTestCmd \ + CLASSPATH=${ts.home}/lib/tsharness.jar${pathsep}\ + ${ts.home}/lib/cts.jar${pathsep}\ + ${ts.home}/lib/glassfishporting.jar${pathsep}\ + ${ts.home}/lib/commons-lang3-3.3.2.jar${pathsep}\ + ${jdbc.db.classes}${pathsep}\ + ${javaee.home}/lib/embedded/glassfish-embedded-static-shell.jar \ + DISPLAY=${ts.display} \ + HOME="${user.home}" \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + ${JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.util.logging.config.file=${TS_HOME}/bin/client-logging.properties \ + -Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds} \ + -Ddeliverable.class=${deliverable.class} $testExecuteClass $testExecuteArgs + + +######################################################################## +## Appclient Command line for the Java EE RI (Do not modify) +######################################################################## +command.testExecuteAppClient2= \ + com.sun.ts.lib.harness.ExecTSTestCmd DISPLAY=${ts.display} HOME="${user.home}" \ + LD_LIBRARY_PATH=${javaee.home.ri}/lib \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + PATH="${javaee.home.ri}/nativelib" \ + APPCPATH=${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${ts.home}/lib/riinterceptors.jar \ + TZ=${tz} \ + ${RI_JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Djava.system.class.loader=org.glassfish.appclient.client.acc.agent.ACCAgentClassLoader \ + -Djava.security.policy=${javaee.home.ri}/lib/appclient/client.policy \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.security.auth.login.config=${javaee.home.ri}/lib/appclient/appclientlogin.conf \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Dcom.sun.enterprise.home=${javaee.home.ri} \ + -Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Dcom.sun.aas.installRoot=${javaee.home.ri} \ + -Dcom.sun.aas.imqLib=${javaee.home.ri}/../mq/lib \ + -Djavax.net.ssl.trustStore=${ri.domain}/config/cacerts.jks \ + -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl \ + -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl \ + -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl \ + -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser \ + -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter \ + -Doracle.jdbc.J2EE13Compliant=true \ + -Doracle.jdbc.mapDateToTimestamp \ + -Dstartup.login=false \ + -Dauth.gui=false \ + -Dlog.file.location=${log.file.location} \ + -Dri.log.file.location=${ri.log.file.location} \ + -DwebServerHost.2=${webServerHost.2} \ + -DwebServerPort.2=${webServerPort.2} \ + -Dprovider.configuration.file=${provider.configuration.file} \ + -Djava.security.properties=${s1as.domain}/${sjsas.instance.config.dir}/ts.java.security \ + -Dcom.sun.aas.configRoot=${javaee.home.ri}/config \ + -Ddeliverable.class=${deliverable.class} -javaagent:${javaee.home.ri}/lib/gf-client.jar=arg=-configxml,arg=${ts.home}/tmp/appclient/ri.sun-acc.xml,client=jar=$testExecuteArgs + +######################################################################## +## Command line for standalone clients running against the +## Java EE RI (Do not modify) +######################################################################## +command.testExecute2=com.sun.ts.lib.harness.ExecTSTestCmd \ + CLASSPATH=${ts.harness.classpath}${pathsep}${ts.home}/classes${pathsep}\ + ${ts.home}/lib/commons-httpclient-3.1.jar${pathsep}\ + ${ts.home}/lib/commons-logging-1.1.3.jar${pathsep}\ + ${ts.home}/lib/commons-codec-1.9.jar${pathsep}\ + ${ts.home}/lib/cssparser-0.9.25.jar${pathsep}\ + ${ts.home}/lib/htmlunit-2.15.jar${pathsep}\ + ${ts.home}/lib/htmlunit-core-js-2.15.jar${pathsep}\ + ${ts.home}/lib/httpcore-4.4.9.jar${pathsep}\ + ${ts.home}/lib/httpclient-4.5.5.jar${pathsep}\ + ${ts.home}/lib/httpmime-4.5.5.jar${pathsep}\ + ${ts.home}/lib/commons-collections-3.2.1.jar${pathsep}\ + ${ts.home}/lib/commons-io-2.4.jar${pathsep}\ + ${ts.home}/lib/commons-lang3-3.3.2.jar${pathsep}\ + ${ts.home}/lib/jaxen-1.1.6.jar${pathsep}\ + ${ts.home}/lib/nekohtml-1.9.21.jar${pathsep}\ + ${ts.home}/lib/sac-1.3.jar${pathsep}\ + ${ts.home}/lib/saxpath.jar${pathsep}\ + ${ts.home}/lib/xercesImpl-2.11.0.jar${pathsep}\ + ${ts.home}/lib/xalan-2.7.2.jar${pathsep}\ + ${ts.home}/lib/serializer-2.7.2.jar${pathsep}\ + ${ts.home}/lib/xml-apis-1.4.01.jar \ + ${ts.home}/lib/unboundid-ldapsdk.jar\ + DISPLAY=${ts.display} \ + HOME="${user.home}" \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + PATH="${javaee.home}/nativelib" \ + ${RI_JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Djavax.net.ssl.trustStore=${ri.domain}/${ri.instance.config.dir}/cacerts.jks \ + -Ddeliverable.class=${deliverable.class} $testExecuteClass $testExecuteArgs + +######################################################################### +## Environment for ts_unix +## 3 test execution commands inherit from common environment +## defined above: testExecuteAppClient2, testExecuteAppClient, and +## testExecute. If you need to override them, uncomment them in the +## following section. +######################################################################### +env.ts_unix.menu=true +##env.ts_unix.command.testExecute= +##env.ts_unix.command.testExecuteAppClient= +##env.ts_unix.command.testExecuteAppClient2= + + +######################################################################## +## Environment for ts_win32 +## 3 test execution commands inherit from common environment +## defined above: testExecuteAppClient2, testExecuteAppClient, and +## testExecute. If you need to override them, uncomment them in the +## following section. +######################################################################## +env.ts_win32.menu=true +##env.ts_win32.command.testExecute= +##env.ts_win32.command.testExecuteAppClient= +##env.ts_win32.command.testExecuteAppClient2= + +######################################################################### +# @jimage.dir: This property specifies the directory where Java 11+ +# modules will be expanded by the jimage tool for use +# in sigTestClasspath +# @sigTestClasspath: This property must be set when running signature +# tests. This property should be set to a list of +# jar files and/or directories which contain your +# Java EE and Java SE classes. Paths must be +# separated by the appropriate path separator +# (';' windows, ':' Unixes). +######################################################################### + +jimage.dir=${ts.home}/tmp/jdk-bundles + +sigTestClasspath=${s1as.modules}/glassfish-corba-omgapi.jar${pathsep}${s1as.modules}/glassfish-corba-orb.jar${pathsep}${s1as.modules}/jakarta.enterprise.cdi-api.jar${pathsep}${s1as.modules}/jakarta.json-api.jar${pathsep}${s1as.modules}/jakarta.json.bind-api.jar${pathsep}${s1as.modules}/jakarta.batch-api.jar${pathsep}${s1as.modules}/jakarta.interceptor-api.jar${pathsep}${s1as.modules}/stax2-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.concurrent-api.jar${pathsep}${s1as.modules}/jakarta.websocket-api.jar${pathsep}${s1as.modules}/jakarta.websocket-client-api.jar${pathsep}${s1as.modules}/jakarta.jms-api.jar${pathsep}${s1as.modules}/jakarta.faces.jar${pathsep}${s1as.modules}/jakarta.validation-api.jar${pathsep}${s1as.modules}/jakarta.annotation-api.jar${pathsep}${s1as.modules}/jakarta.xml.bind-api.jar${pathsep}${s1as.modules}/webservices-api-osgi.jar${pathsep}${pathsep}${s1as.modules}/jakarta.ws.rs-api.jar${pathsep}${s1as.modules}/weld-osgi-bundle.jar${pathsep}${s1as.modules}/jakarta.ejb-api.jar${pathsep}${s1as.modules}/jakarta.mail-api.jar${pathsep}${s1as.modules}/jakarta.persistence-api.jar${pathsep}${s1as.modules}/jakarta.resource-api.jar${pathsep}${s1as.modules}/jakarta.authorization-api.jar${pathsep}${s1as.modules}/jakarta.authentication-api.jar${pathsep}${s1as.modules}/jakarta.servlet-api.jar${pathsep}${s1as.modules}/jakarta.inject-api.jar${pathsep}${s1as.modules}/jakarta.el-api.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp-api.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp.jstl-api.jar${pathsep}${jtaJarClasspath}${pathsep}${s1as.modules}/jakarta.security.enterprise-api.jar${pathsep}${s1as.modules}/jakarta.activation-api.jar${pathsep}${jimage.dir}/java.base${pathsep}${jimage.dir}/java.rmi${pathsep}${jimage.dir}/java.sql${pathsep}${jimage.dir}/java.naming + +######################################################################## +## This property is used to support the odd side case when we have an +## optional technology package that is used but should not be tested. +## +## This property (i.e. optional.tech.packages.to.ignore) must be a comma +## separated list of packages that are NOT to be validated/tested when +## during the sigtest utilities validation of Optional Technologies. +## Example Usage: +## optional.tech.packages.to.ignore=javax.foo.pkg1,javax.bar.pkg2,com.blah.foo.pkg3 +## +## Additional notes: +## - always ignore the optional JAXB packages: +## optional.tech.packages.to.ignore=jakarta.xml.bind +## +######################################################################### +optional.tech.packages.to.ignore=jakarta.xml.bind + +######################################################################## +## These properties are used by the harness. "harness.log.port" +## specifies the port that server components use to send logging +## output back to JavaTest. If the default port # is not available +## on the machine running JavaTest, then you can set it here. +## +# +# @harness.temp.directory directory location used by the +# harness to store temporary files +# +# @harness.log.port the port the harness listens on for log mesages +# from remote clients +# +# @harness.log.traceflag used to turn on/off verbose debugging output +# for the tests. +# +# @harness.executeMode used to run the harness in the following modes +# of execution: +# 0 - default (deploy, run, undeploy) +# 1 - deploy only +# 2 - run only +# 3 - undeploy only +# 4 - deploy and run only +# +# @harness.socket.retry.count - denotes the number of time we should +# attempt to create a server socket when intilizing a test +# client. The socket is used for logging purposes. +# +# @harness.log.delayseconds Number of seconds to delay to allow +# reporting from remote clients to finish. +# +# @harness.maxoutputsize Number of characters that the harness will use +# for a test's output. +######################################################################## +harness.temp.directory=${ts.home}/tmp +harness.log.port=2000 +harness.log.traceflag=true +harness.executeMode=0 +harness.socket.retry.count=10 +harness.log.delayseconds=1 +harness.maxoutputsize=200000 + + +######################################################################### +# @wsdlRepository1 Location to publish final wsdl files when using +# file URL publishing for Vendor Java EE implementation. +# @wsdlRepository2 Location to publish final wsdl files when using +# file URL publishing for Sun RI. +######################################################################### +wsdlRepository1=${harness.temp.directory}/wsdlRepository1 +wsdlRepository2=${harness.temp.directory}/wsdlRepository2 + +####################################################################### +# @deployment_host.1 name of machine running the JSR 88 deployment +# process for the vendor's Java EE implementation. +# @deployment_host.2 name of machine running the JSR 88 deployment +# process for the Java EE RI. +# @deployment_port.1 deployment port (if applicable) for the vendor's +# Java EE implementation. +# @deployment_port.2 deployment port (if applicable) for the +# Java EE RI. +####################################################################### +deployment_host.1=${orb.host} +deployment_host.2=${orb.host.ri} +deployment_port.1=${impl.vi.port} +deployment_port.2=${impl.ri.port} + +#################################################################### +# Implementation Property Settings for Vendor and RI. These properties +# are used when either porting.ts.deploy.class.1 or porting.ts.deploy.class.2 +# are set to com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeployment. +# Note: They are are also used when using the "ant deploy" and "ant undeploy" +# targets outside of running tests. +# +# The CTS provides the glassfish implementation out of the box. +# +# Here are the common properties that need to be defined for the common +# implementation functionality: +# +# @impl.vi This property must be set to the Vendor implementation +# under test. +# @impl.vi.deploy.dir This property must be set to the deploy directory for +# the Vendor implementation. +# @impl.vi.host This property must be set to the admin host where +# the Vendor implementation is running. +# @impl.vi.port This property must be set to the admin port where +# the Vendor implementation is running. +# @impl.ri This property must be set to the RI implementation +# under test. +# @impl.ri.deploy.dir This property must be set to the deploy directory for +# the RI implementation. +# @impl.ri.host This property must be set to the admin host where +# the RI implementation is running. +# @impl.ri.port This property must be set to the admin port where +# the RI implementation is running. +# +# @impl.deploy.timeout.multiplier The time it will wait for deployment to +# succeed or fail +#################################################################### +impl.vi=glassfish +impl.vi.deploy.dir=${s1as.domain}/autodeploy +impl.vi.host=${s1as.admin.host} +impl.vi.port=${s1as.admin.port} + +impl.ri=glassfish +impl.ri.deploy.dir=${ri.domain}/autodeploy +impl.ri.host=${ri.admin.host} +impl.ri.port=${ri.admin.port} + +impl.deploy.timeout.multiplier=240 + + +############################################################### +## These properties are implementations of the pre-1.4 Deployment +## porting interface. The impls defined below use those APIs. +# +# @porting.ts.deploy.class.1 This property must point to an implementation +# of com.sun.ts.lib.porting.TSDeploymentInterface. The default +# value for this property points to an impl that deploys via copying/deleting +# to/from the RI autodeploy directory. More details about setting +# porting.ts.deploy.class.1: +# +# 1. Set this property to deploy/undeploy to/from your impl in +# a custom way. In the case of the RI, it would be set to the following. +# This is the default setting for CTS 8. +# +# porting.ts.deploy.class.1=com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeployment +# +# 2. Note that Jakarta Deployment is removed, so do not use either of the following classes: +# com.sun.ts.lib.deliverable.cts.deploy.StandardDeployment14 +# com.sun.ts.lib.porting.TSDeploymentInterface2 +# com.sun.ts.lib.implementation.sun.javaee.SunRIDeployment2 +# +# +# @porting.ts.deploy.class.2 This property must point to an implementation +# of com.sun.ts.lib.porting.TSDeploymentInterface. +# The default value for this property points to an impl that deploys via copying/deleting +# to/from the RI autodeploy directory. This should be left unchanged... +# +# porting.ts.deploy.class.2=com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeployment +# +# +############################################################### +porting.ts.deploy.class.1=com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeployment +porting.ts.deploy.class.2=com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeploymentSeparateVM + +######################################################################## +# @deploy.delay.in.minutes is no longer used, it was for pruned Jakarta Deployment +######################################################################## + +######################################################################## +## Following are no longer used, were settings for pruned Jakarta Deployment +######################################################################## +#deployManagerJarFile.1 +#deployManageruri.1 +#deployManageruname.1 +#deployManagerpasswd.1 + +######################################################################## +## Following are no longer used, were settings for pruned Jakarta Deployment +######################################################################## +#deployManagerJarFile.2 +#deployManageruri.2 +#deployManageruname.2 +#deployManagerpasswd.2 +# +# @porting.ts.deploy2.class.1 +# @porting.ts.deploy2.class.2 +# porting.ts.deploy2.class.1=com.sun.ts.lib.implementation.sun.javaee.SunRIDeployment2 +# porting.ts.deploy2.class.2=com.sun.ts.lib.implementation.sun.javaee.SunRIDeployment2 + + +############################################################### +## These properties must be set to tell the Test harness the +## class names of your porting class implementations. By default +## both property sets below point to Sun RI specific classes. To +## run interoperability tests, the ".2" set of properties should +## always point to Sun RI classes. The ".1" set should point to +## implementations that work in your specific Java EE environment. +# +# @porting.ts.login.class.1 VI of +# com.sun.ts.lib.porting.TSLoginContextInterface +# @porting.ts.url.class.1 VI of +# com.sun.ts.lib.porting.TSURLInterface +# @porting.ts.jms.class.1 VI of +# com.sun.ts.lib.porting.TSJMSAdminInterface +# @porting.ts.HttpsURLConnection.class.1 VI of +# com.sun.ts.lib.porting.TSHttpsURLConnectionInterface +# @porting.ts.login.class.2 RI of +# com.sun.ts.lib.porting.TSLoginContextInterface +# @porting.ts.url.class.2 RI of +# com.sun.ts.lib.porting.TSURLInterface +# @porting.ts.jms.class.2 RI of +# com.sun.ts.lib.porting.TSJMSAdminInterface +# @porting.ts.HttpsURLConnection.class.2 RI of +# com.sun.ts.lib.porting.TSHttpsURLConnectionInterface +############################################################### +porting.ts.login.class.1=com.sun.ts.lib.implementation.sun.javaee.GlassFishLoginContext +porting.ts.url.class.1=com.sun.ts.lib.implementation.sun.common.SunRIURL +porting.ts.jms.class.1=com.sun.ts.lib.implementation.sun.javaee.SunRIJMSAdmin +porting.ts.HttpsURLConnection.class.1=com.sun.ts.lib.implementation.sun.javaee.SunRIHttpsURLConnection + +##Porting class names for Sun RI Java EE Implementation #2 (must be Sun's RI) +porting.ts.login.class.2=com.sun.ts.lib.implementation.sun.javaee.GlassFishLoginContext +porting.ts.url.class.2=com.sun.ts.lib.implementation.sun.common.SunRIURL +porting.ts.jms.class.2=com.sun.ts.lib.implementation.sun.javaee.SunRIJMSAdmin +porting.ts.HttpsURLConnection.class.2=com.sun.ts.lib.implementation.sun.javaee.SunRIHttpsURLConnection + +############################################################## +# @namingServiceHost1 Naming Service host name for the +# Vendor's Implementation (VI) +# @namingServicePort1 Naming Service port for the VI +# @namingServiceHost2 Naming Service host name for the +# Reference Implementation (RI) +# @ namingServicePort2 Naming Service port for the RI +############################################################## +namingServiceHost1=${orb.host} +namingServicePort1=${orb.port} +namingServiceHost2=${orb.host.ri} +namingServicePort2=${orb.port.ri} + +############################################################## +# @certLoginUserAlias User alias for certificate based login. +# This property is used in mutual authentication to pickup the +# certificate based on the user alias. +############################################################## +certLoginUserAlias=cts + +##################################################################### +## The following properties must be set prior to running the Servlet +## or JSP API tests and interoperability tests. +## +## These properties must specify the host and port of the web server, +## in which the servlets and JSPs are deployed. +# +# @webServerHost hostname for the Vendor's Java EE Web Server +# @webServerPort port number of the Vendor's Java EE Web Server +# @webServerHost.2 hostname for the Java EE RI Web Server +# @webServerPort.2 port number of the Java EE RI Web Server +# @ServletClientThreads The ServletClientThreads property configures +# the number of threads used by the client for +# the SingleThreadModel servlet test. If the +# container implementation supports pooling of +# SingleThreadModel servlets, set the value of +# ServletClientThreads to twice the value of +# the default servlet instance pool size. If +# the container implementation only maintains +# a single instance of a SingleTheadModel +# servlet, leave the default value of 2. +##################################################################### +webServerHost=${orb.host} +webServerPort=8080 +webServerHost.2=${orb.host.ri} +webServerPort.2=8181 +ServletClientThreads=2 + +#################################################################### +# @EJBServer1TxInteropEnabled Transaction interoperability settings +# for Vendor Java EE EJB Server +# @EJBServer2TxInteropEnabled Transaction interoperability settings +# for Java EE RI EJB Server +#################################################################### +EJBServer1TxInteropEnabled=true +EJBServer2TxInteropEnabled=true + +############################################################### +## These properties are used for the Connector specific tests. +## +## You must be able to deploy the following resource adapters +## on your Java EE server. +############################################################### + +## JNDI name bindings. You should not change these. The TSDeploymentInterface +## will pass these values as a properties object. See the SunRIDeployment.java +## file for usage patterns. +whitebox-tx=java:comp/env/eis/whitebox-tx +whitebox-notx=java:comp/env/eis/whitebox-notx +whitebox-xa=java:comp/env/eis/whitebox-xa +whitebox-tx-param=java:comp/env/eis/whitebox-tx-param +whitebox-notx-param=java:comp/env/eis/whitebox-notx-param +whitebox-xa-param=java:comp/env/eis/whitebox-xa-param +whitebox-anno_no_md=java:comp/env/eis/whitebox-anno_no_md +whitebox-ibanno_no_md=java:comp/env/eis/whitebox-ibanno_no_md +whitebox-mixedmode=java:comp/env/eis/whitebox-mixedmode +whitebox-multianno=java:comp/env/eis/whitebox-multianno +whitebox-mdcomplete=java:comp/env/eis/whitebox-mdcomplete +whitebox-permissiondd=java:comp/env/eis/whitebox-permissiondd + +## Embedded resource adapter property +whitebox-embed=java:comp/env/eis/ejb_Deployment_whitebox-tx.rar + +whitebox-embed-xa="__SYSTEM/resource/ejb_Tsr#whitebox-xa#com.sun.ts.tests.common.connector.whitebox.TSConnectionFactory" +tsrJndiName=java:comp/TransactionSynchronizationRegistry +tsrHomeJndiName="java:global/ejb_Tsr/ejb_Tsr_ejb/Tsr" + +## JNDI name bindings for JDBC Connector. +JDBCwhitebox-tx=java:comp/env/eis/JDBCwhitebox-tx +JDBCwhitebox-notx=java:comp/env/eis/JDBCwhitebox-notx +JDBCwhitebox-xa=java:comp/env/eis/JDBCwhitebox-xa +JDBCwhitebox-tx-param=java:comp/env/eis/JDBCwhitebox-tx-param +JDBCwhitebox-notx-param=java:comp/env/eis/JDBCwhitebox-notx-param +JDBCwhitebox-xa-param=java:comp/env/eis/JDBCwhitebox-xa-param + +######################################################################### +## Resource adapter configuration values. You must modify these values +## to plug your JDBC driver into the TS JDBCwhitebox resource adapter. +## +## When you run the XA tests (src/com/sun/ts/tests/xa), you must +## configure this resource adapter to use a database. +## +# @xa.properties: These are the properties required by the XA driver. The +# managed connection factory will set these properties via +# reflection on the class specified by the +# xa.xadatasource.class property. +# +# Note: The xa.properties value is the set of properties that will be set on +# your XA JDBC driver (the class denoted by the xa.xadatasource.class property). +# See section 9.4.1 of the JDBC 3.0 specification for more details. +# +# When specifying the xa.properties property please escape the appropriate +# characters. The xa.properties value needs to be treated as a single property +# even though it is made up of many properties. The properties need to be +# separated by :'s and the names and values to be separated by ='s. +# We also need any values that contain colons or equals that do not +# need to be interrpretted to be inside single quotes. Anything in +# single quotes will be treated as a string literal. +# +# For example: The following xa.properties property: +# +# xa.properties=user=admin:password=some-password:DatabaseName='jdbc:pointbase:server://localhost:9092/cts,new' +# +# Would result in the following setters being called on the supplied XA JDBC driver denoted +# by the xa.xadatasource.class property. +# +# XADataSource.setUser("admin"); +# XADataSource.setPassword("some-password"); +# XADataSource.setDatabaseName("jdbc:pointbase:server://localhost:9092/cts,new"); +# +# Please map the property xa.properties to the property name XAProps and map the +# xa.xadatasource.class property to the property name XADataSourceName. This will +# ensure the appropriate setters will be called to make these properties +# available to the managed connection factory. See section 17.4.2 of the Connector +# specification version 1.5. +# +# @xa.xadatasource.class: The implementation of the XADataSource interface. +# This class is your XA JDBC driver. +# Please note: this class and any dependent classes +# must be accessible by the CTS libraries in the app +# server's extension directory. +# +# @connector_connectionURL: The URL for your JDBC driver. Should be the +# same as the one used for the rest of the TS. +# +######################################################################### + +### Cloudscape/Derby properties for XA +xa.properties="user\\\=${derbyEmbedded.user}\\\:password\\\=${derbyEmbedded.passwd}\\\:DatabaseName\\\=${derbyEmbedded.dbName}" +xa.xadatasource.class=org.apache.derby.jdbc.EmbeddedXADataSource +connector_connectionURL="jdbc\\:derby\\:${derbyEmbedded.dbName}\\;create\\=true" + +######################################################################### +## The following properties must be set before running any security +## related tests. The properties user, password, authuser, authpassword, +## and nobodyuser must be set. +## +## The value for user, password, authuser, and authpassword need to be set +## exactly as they are set in the container/server. +# +# @user User defined to exercise rolemapping feature +# @password Associated password for the user +# @authuser User defined to exercise rolemapping feature +# @authpassword Associated password for the authuser +# @user_vi Username for the vendor implementation used in +# interop tests +# @password_vi Associated password for the VI user +# @user_ri Username for the reference implementation used in +# interop tests +# @password_ri Associated password for the RI user +# @nobodyuser This value must be the same value returned by a call to +# getCallerPrincipal().getName() from the ejb-tier when +# an unauthenticated caller in the web tier invokes an +# ejb method. +######################################################################### +user=j2ee +password=j2ee +authuser=javajoe +authpassword=javajoe +user_vi=j2ee_vi +password_vi=j2ee_vi +user_ri=j2ee_ri +password_ri=j2ee_ri +nobodyuser=guest + +############################################################### +# @securedWebServicePort must be set to run secbasicssl and +# csiv2 tests. Set this property with your application +# server's secured webservice port. +# @securedWebServicePort.2 points to the secured webservice +# port in Sun's Reference Implementation(RI). +############################################################### +securedWebServicePort=1044 +securedWebServicePort.2=1045 + +############################################################################### +# @client.cert.test.jdk.tls.client.protocols JDK 11 in TLSv1.3 does not support +# Post-Handshake Authentication, so TLSv1.2 must be used +# for client-cert authentication to work. +############################################################################### +client.cert.test.jdk.tls.client.protocols=TLSv1.2 + +############################################################### +# @login This property must be set to run appclient security +# tests +############################################################### +login=default + +################################################################################ +##These properties are needed for jms tests. +# +# @jms_timeout - this is the amount of time in milliseconds that synchronous +# receives will wait for a message +############################################################################### +jms_timeout=10000 + +######################################################################### + +############################################################################### +## These properties are needed for the EJB timer tests. +# +# @ejb_timeout - this is the amount of time in milliseconds that duration will +# be set for an ejbtimeout callback method +# +# @ejb_wait - this is the amount of time in milliseconds that the client will +# wait for ejbtimeout callback method results +############################################################################## +ejb_timeout=30000 +ejb_wait=60000 + +############################################################################### +## This property is needed for ejb30 stateful timeout tests. +# @test.ejb.stateful.timeout.wait.seconds - the minimum amount of time in seconds +# the test client waits before verifying the status of the target stateful +# bean. Its value must be an integer number. Its default value in ts.jte +# file is 480 seconds. It may be set to a smaller number (e.g., 240 seconds) +# to speed up testing, depending on the stateful timeout implementation +# strategy in the target server. +# +# For these stateful timeout tests, the property javatest.timeout.factor +# must be set to a value such that the JavaTest harness does not timeout +# before the test completes. Usually setting javatest.timeout.factor to +# 2.0 or greater should suffice. +############################################################################### +test.ejb.stateful.timeout.wait.seconds=480 + +################################################################### +# @log.file.location This property is used by JACC tests to create +# and analyze provider logs. Specify the log directory in which +# your appserver generates logs. +################################################################### +log.file.location=${vi.log.file.location} + + +################################################################### +################################################################### +################################################################### +## PROPERTIES USERS WILL NOT HAVE TO SET LIVE BELOW +################################################################### +################################################################### +################################################################### + +## +## The directory seperator for the platform. User should not change +## this property. +## +dirsep=/ + +##build level +##1: compile only +##2: compile and build component archives (e.g., jar's, war's) +##3: compile and build component and application archives +##default is set to 3 +build.level=3 + +deliverable.class=com.sun.ts.lib.deliverable.cts.CTSDeliverable + +################################################################### +## Deliverables wanting ts.* packaging tasks to add extension list +## attributes to the manifest files must set this property to true. +################################################################### +create.manifest.extension.entries=true + +###################################################################### +## Deliverables must set this property to the name of the deliverable +## specific library jar file (iff create.manifest.extension.entries +## is set to true) +###################################################################### +tslib.name=cts + +############################################################### +## These properties are used by connector tests and are non configurable +## and must specify valid username,password to establish TSeis connection. +############################################################### +rauser1=cts1 +rapassword1=cts1 +rauser2=cts2 +rapassword2=cts2 + +############################################################### +## These properties are for JSTL +############################################################### +jstl.db.user=${user1} +jstl.db.password=${password1} + +############################################################### +## This command is only used when quickly checking any servlet +## or jsp related tests. The test clients will be run in +## the same JVM as JavaTest in this case. This mode can be +## enabled by passing "-Dsame.jvm=true" to the runclient or gui +## targets. NOTE: This option is only to be used for sanity +## checking and not when running CTS for compatibility. +############################################################### +command.testExecuteSameJVM=com.sun.ts.lib.harness.ExecuteTSTestSameJVMCmd \ + $testExecuteClass $testExecuteArgs + +############################################################### +## These properties are used for the JDBC specific tests, +## they do not need to be changed. +############################################################### +DriverManager=yes +Driver=org.apache.derby.jdbc.ClientDriver +db1=jdbc:derby://localhost:1527/derbyDB;create=true +db2=jdbc:derby://localhost:1527/derbyDB;create=true +ptable=ctstable1 +ftable=ctstable2 +cofSize=5 +cofTypeSize=5 +binarySize=24 +varbinarySize=48 +longvarbinarySize=50 + +ts_home=${ts.home} + +####################################################################### +## platform.mode is used by jpa tests to know whether to use +## the Java EE Programming Model for service and port access. +## platform.mode=jakartaEE Java EE Programming Model +###################################################################### +platform.mode=jakartaEE + +########################################################################### +# tools.jar should be set to the location of the tools.jar from the installed +# jdk +########################################################################### +tools.jar=/home/jenkins/agent/workspace/jakartaee-tck_master/modules/webservices-tools.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/modules/webservices-api.jar + +########################################################################### +# various flags used by the generation tools +########################################################################### +wsgen.ant.classname= +wsgen.classpath=${javaee.classes}${pathsep}${tools.jar} +wsgen.verbose=true +wsgen.debug=false +wsimport.ant.classname= +wsimport.classpath=${javaee.classes}${pathsep}${tools.jar} +wsimport.verbose=true +wsimport.debug=false +wsimport.jvmargs= + +########################################################################### +# various flags used by Suns generation tools +# DO NOT EDIT +########################################################################### +ri.wsgen.ant.classname=com.sun.tools.ws.ant.WsGen +ri.wsgen.classpath=${javaee.classes.ri}${pathsep}${tools.jar} +ri.wsgen.verbose=true +ri.wsgen.debug=false +ri.wsimport.ant.classname=com.sun.tools.ws.ant.WsImport +ri.wsimport.classpath=${javaee.classes.ri}${pathsep}${tools.jar} +ri.wsimport.verbose=true +ri.wsimport.debug=false +ri.wsimport.jvmargs= + +################################# +## Packaging properties for DAOs +################################# +ts.dao.root=com/sun/ts/tests/common/dao + +ts.dao.classes.base=\ + ${ts.dao.root}/InvalidDAOSettingException.class, \ + ${ts.dao.root}/DAOException.class, \ + ${ts.dao.root}/DAO.class, \ + ${ts.dao.root}/DataSourceDAO*.class, \ + ${ts.dao.root}/DAOFactory.class, \ + ${ts.dao.root}/TSDAOFactory*.class, \ + ${ts.dao.root}/coffee/CoffeeBean.class, \ + ${ts.dao.root}/coffee/CoffeeDAO.class, \ + ${ts.dao.root}/coffee/TxCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/StringPKCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/LongPKCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/FloatPKCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/CompoundPK.class, \ + ${ts.dao.root}/coffee/variants/CompoundPKCoffeeDAO.class + +ts.dao.classes.impl=\ + ${ts.dao.root}/coffee/DataSourceCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/StringPKDSCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/LongPKDSCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/FloatPKDSCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/CompoundPKDSCoffeeDAO.class + +ts.dao.classes.coffee.standard=\ + ${ts.dao.classes.base}, \ + ${ts.dao.classes.impl} + +ts.dao.classes.coffee.txaware=\ + ${ts.dao.classes.base}, \ + ${ts.dao.classes.impl} + +ts.dao.classes.coffee.variants=\ + ${ts.dao.classes.base}, \ + ${ts.dao.classes.impl} + +##################################### +## Packaging properties for Wrappers +##################################### + +ts.wrappers.ejb.root=com/sun/ts/tests/common/ejb/wrappers + +ts.wrappers.web.root=com/sun/ts/tests/common/web + +## Classes to package in ejb-jar for EJB Stateless wrapper +ts.wrappers.classes.stateless.ejb=\ + ${ts.wrappers.ejb.root}/StatelessWrapper.class + +## Classes to package in ejb-jar for EJB Stateful wrapper +ts.wrappers.classes.stateful.ejb=\ + ${ts.wrappers.ejb.root}/StatefulWrapper.class + +## Classes to package in ejb-jar for EJB BMP wrapper +ts.wrappers.classes.bmp.ejb=\ + ${ts.dao.classes.coffee.standard}, \ + ${ts.wrappers.ejb.root}/BMPWrapper.class + +## Classes to package in ejb-jar for EJB CMP 1.1 wrapper +ts.wrappers.classes.cmp11.ejb=${ts.wrappers.ejb.root}/CMP11Wrapper.class + +## Classes to package in ejb-jar for EJB CMP 2.0 wrapper +ts.wrappers.classes.cmp20.ejb=${ts.wrappers.ejb.root}/CMP20Wrapper.class + +## Classes to package in ejb-jar for EJB MDB wrapper +ts.wrappers.classes.mdb.ejb=\ + com/sun/ts/tests/jms/common/JmsUtil.class, \ + com/sun/ts/tests/jms/commonee/ParentMsgBean.class, \ + ${ts.wrappers.ejb.root}/MDBWrapper.class + +## Classes to package in client module for EJB MDB wrapper +ts.wrappers.classes.mdb.client=com/sun/ts/tests/jms/commonee/Client.class + +## Classes to package in ejb-jar for all EJB wrappers +ts.wrappers.classes.all.ejb=\ + ${ts.wrappers.classes.stateless.ejb}, \ + ${ts.wrappers.classes.stateful.ejb}, \ + ${ts.wrappers.classes.bmp.ejb}, \ + ${ts.wrappers.classes.cmp11.ejb}, \ + ${ts.wrappers.classes.cmp20.ejb}, \ + ${ts.wrappers.classes.mdb.ejb} + +## Classes to package in client module for all WEB wrappers +ts.wrappers.classes.web.client=\ + ${ts.wrappers.web.root}/WebServer.class + +## Classes to package in war for all WEB wrappers +ts.wrappers.classes.web.server=\ + ${ts.wrappers.web.root}/WebUtil.class, \ + ${ts.wrappers.web.root}/JSPBeanWrapper.class, \ + ${ts.wrappers.web.root}/ServletWrapper.class + +## Classes to package in client module for Servlet wrapper +ts.wrappers.classes.servlet.client=${ts.wrappers.classes.web.client} + +## Classes to package in war for Servlet wrappers +ts.wrappers.classes.servlet.server=\ + ${ts.wrappers.web.root}/WebUtil.class, \ + ${ts.wrappers.web.root}/ServletWrapper.class + +## Classes to package in client module for JSP wrapper +ts.wrappers.classes.jsp.client=${ts.wrappers.classes.web.client} + +## Classes to package in war for JSP wrappers +ts.wrappers.classes.jsp.server=\ + ${ts.wrappers.web.root}/WebUtil.class, \ + ${ts.wrappers.web.root}/JSPBeanWrapper.class + + +############################################################################### +## DO NOT MODIFY ANY PROPERTIES BELOW THIS LINE. +############################################################################### + +#classpath used by standard deployment server to deploy to the RI in a separate +#VM (DO NOT MODIFY) +ts.standard.deployment.server.classpath=${ant.jars}:${pathsep}${ts.run.classpath.ri}${pathsep}${ts.home}/lib/javatest.jar${pathsep}${ts.home}/lib/jdom-1.1.3.jar${pathsep}${ri.modules}/admin-cli.jar + +harness.deployment.server.port=2002 + +java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory +org.omg.CORBA.ORBClass=foo +undeploy_redeploy_apps=${UNDEPLOY_REDEPLOY_FLAG} + +############################################################################### +# The following properties are aliases for the old J2EE properties. These +# properties are now named javaee instead of j2ee and will eventually be phased +# out of the CTS. These props are necessary until the props are renamed +# through out all CTS. +############################################################################### +j2ee.home=${javaee.home} +j2ee.home.ri=${javaee.home.ri} + +#################################################################### +## This propertry is passed to any test +## that needs to programatically login from with the appclient +## container and propogate that login context to test code running +## within the EJB container. The value is a no-op. The fact that +## the test includes the property is sufficient to cause the +## EJBVehicleRunner to programatically login. To have a test +## include this property simply add it to the javatest props list +## of the test. +#################################################################### +secured.ejb.vehicle.client=true + +#################################################################### +# This property is used to point to the location of the +# implementation of VariableMapper. The value for sjsas 9.x is +# +# variable.mapper=org.glassfish.expressly.lang.VariableMapperImpl +# +#################################################################### +variable.mapper=org.glassfish.expressly.lang.VariableMapperImpl + +####################################################################### +# Endpoint API test +# +# Port info is obtained dynamically for Endpoint API test. +# Uncomment port range min/max if you want to specify port range +# for Endpoint publish test. +# Server endpoints will be published on ports within this range. +# If you do not want to dynamically obtain the port but wish to publish +# to a fixed static port than make the values below both equal to the +# specific port. +####################################################################### +port.range.min=1025 +port.range.max=10000 + +################################################################ +# @http.server.supports.endpoint.publish +# Does HTTP server-side support endpoint publish API's. +# @http.server.supports.endpoint.publish.2 +# Does the RI HTTP server-side support endpoint publish API's. +# +# http.server.supports.endpoint.publish=(true|false) +# DO NOT TOUCH - value MUST be false for managed environments like Java EE +################################################################ +http.server.supports.endpoint.publish=false +http.server.supports.endpoint.publish.2=false + +########################################################################### +# This property is used by some test clients that need a delay between +# method invocations to server endpoints. The value specified is the amount +# of time the client will delay in seconds. +########################################################################### +client.delay=1 + +####################################################################### +## This persistence unit name is used by jpa/ee/pluggability tests. Its value is the +## same as the name attribute in persistence.xml +###################################################################### +persistence.unit.name=CTS-EM + +############################################################### +# @db.supports.sequence +# +# - This property is used to determine if a database supports +# the use of SEQUENCE. If it does not, this property +# should be set to false so the test is not run. The +# default value is true. +# This value should be set to false for the following databases: +# sybase, mysql, and mssqlserver. +############################################################### +db.supports.sequence=true + +####################################################################### +## @persistence.second.level.caching.supported +## - This property is used to determine if the persistence provider supports +## second level caching. +###################################################################### +persistence.second.level.caching.supported=true + +########################################################################## +## This section contains all properties that are specific to JAX-RS Tests. +## All default values are specific to GlassFish and Jersey. +## +## servlet_adaptor - implementation specific servlet for JAX-RS +## jaxrs_impl_class.dir - Directory that servlet_adaptor locates +## jaxrs_impl_name - used to tag intermediate file names +########################################################################## +servlet_adaptor=org/glassfish/jersey/servlet/ServletContainer.class +jaxrs_impl_lib=${javaee.home}/modules/jakarta.ws.rs-api.jar +jaxrs_impl_name=jersey + + +########################################################################## +# This section contains all properties that are specific to JSR-196 Tests. +# All default values are specific to GlassFish. +# +# @servlet.is.jsr115.compatible This property is used by JASPIC tests +# to determine if the servlet container is a jsr 115 compatible +# container. (true = compatible to JSR 115, false = not compatible.) +# +# @soap.is.jsr115.compatible This may used by JASPIC tests to +# determin if the SOAP container is JSR 115 compatible. This is +# only used when running SOAP profile tests. +# +# @provider.configuration.file +# This property is used by JASPIC tests to configure TestSuite's +# AuthConfig Provider and points at an xml file which is used +# to register the JASPIC test providers into the current +# ACF. This file contaiins known/expected test provider info. +# Only app-context-id element can be edited to suit the +# impl under test. +# +# @schema.file.location +# This points to the directory that the provider-configuration.xsd +# file will live. The provider-configuration.xsd is used to +# describe the provider.configuration.file (above). +# +# @logical.hostname.servlet +# This used to identify the the name of a logical host that +# processes Servlet requests. Servlet requests may be directed to +# a logical host using various physical or virtual host names or +# addresses, and a message processing runtime may be composed of +# multiple logical hosts (This is required to properly identify +# the servlet profiles AppContextId hostname.) +# If a logical.hostname.servlet does not exist, you can set this +# to the default hostname (eg webServerHost). +# +# @logical.hostname.soap +# This property is used to identify the name of the logical host +# that processes soap requests. This hostname is used in server +# side Application context Identifier in soap profile. +# +# @appclient.log.output +# The client logging level for appclient container depends on the +# log level specified in sun-acc.xml +# +# This log level directly affects the output of TSLogger which +# logs the JSR196 SPI calls made in appclient container. +# +# using this property we enable the appclient container's +# logging level to INFO +# +# @vendor.authconfig.factory +# This property specifies vendor's authconfig factory class +# this will be used by JASPIC tests to register TestSuite's +# provider in Vendor's AuthConfig Factory. +# +# For example for SJSAS RI this value is +# +# vendor.authconfig.factory= +# com.sun.enterprise.security.jmac.config.GFAuthConfigFactory +# +########################################################################## +servlet.is.jsr115.compatible=true +soap.is.jsr115.compatible=false +provider.configuration.file=${javaee.home}/domains/domain1/config/ProviderConfiguration.xml +schema.file.location=${javaee.home}/lib/schemas +logical.hostname.servlet=server +logical.hostname.soap=localhost +appclient.log.output=true +vendor.authconfig.factory=com.sun.enterprise.security.jmac.config.GFAuthConfigFactory + +########################################################################## +# @servlet_waittime: Time in seconds to wait after HttpSession expires +# to access the session +# @servlet_async_wait: Time in seconds to wait between sending asynchronous messages +########################################################################## +servlet_waittime=10 +servlet_async_wait=4 + +########################################################################################## +# The following properties are ONLY used if testing a Standalone JMS Resource Adapter. +# Since support for a JMS Resource Adapter is OPTIONAL by the JMS 2.0 Specification +# this funtionality is USE AT YOUR OWN RISK. We WILL NOT support it. Its here in the +# case that a vendor wants to test a Standalone JMS Resource Adapter which is OPTIONAL. +# +# test.sa.jmsra // Set to true ONLY if testing a standalone JMS Resource Adapter +# jmsra.rarfile // Location of the standalone JMS Resource Adapter RAR file +# jmsra.jarfile // Location of the standalone JMS Resource Adapter JAR file +# +# A standalone JMS Resource Adapter requires deployment/configuration to the Vendor +# Implementation under test (Example: Java EE 8 RI). If not testing a standalone JMS +# Resource Adapter then these properties MUST NOT be used and the value of the property +# (test.sa.jmsra) MUST BE SET to false (which is the DEFAULT setting). If you set the +# property (test.sa.jmsra=true) then you are testing a standalone JMS Resource Adapter +# and the (jmsra.rarfile and jmsra.jarfile) properties must point to the location of +# the standalone JMS Resource Adapter RAR and JAR files. During CTS configuration the +# (config.vi) ant task will call another script that will deploy the standalone JMS +# Resource Adapter, configure the standalone JMS Resource Adapter, create the JMS +# connector connection pools, create the JMS connector resources, and finally create +# the JMS administration objects. The ant scripts that handles all of these steps for +# the (Java EE 8 RI) are the following: +# +# $TS_HOME/bin/xml/impl/glassfish/jmsra.xml +# $TS_HOME/bin/xml/impl/glassfish/templates/create.jmsra.template +# +# These scripts work for the Standalone Generic JMS Resource Adapter (GenericJMSRA) +# located at: (http://genericjmsra.java.net/). If testing another standalone JMS +# Resource Adapter then these scripts will need to be rewritten/modified for that +# JMS Resource Adapter. +# +# Here is the summary of steps of what the (jmsra.xml) script does. It configures the JMS +# resource adapter by doing a resource-adapter-config, it deploys the JMS resource adapter +# RAR file specified in the "jmsra.rarfile" property to the (Java EE 8 RI), it copies the +# JMS Resource Adapter JAR file specified in the "jmsra.jarfile" property to the (Java EE +# 8 RI) lib directory under $JAVAEE_HOME/lib. It copies some of the JMS client library jars +# to the $JAVAEE_HOME/lib directory. it then creates the JMS connector connection pools, +# the JMS connector resources, and the JMS administration objects that are needed by CTS. +# When the (config.vi) ant task completes the Java EE 8 environment will be ready to run +# the JMS CTS tests. One final step is needed to the JMS MDB CTS tests which is to modify +# the sun-ejb-jar runtime xml files by adding the deployment info. +# +# Here are the manual steps for the Standalone Generic JMS Resource Adapter (GenericJMSRA) +# after the (config.vi) ant task completes. +# +# (1) Edit the ts.jte file and add the following: +# Add "-Dgenericra.inAppClientContainer=true" to the "command.testExecuteAppClient" +# property and then add "${pathsep}${jmsra.jarfile}" to the end of APPCPATH variable +# in the same "command.testExecuteAppClient" property. You can refer to the Generic +# JMS Resource Adapter (GenericJMSRA) user guide for more information on this. +# (2) Modify the sun-ejb-jar runtime xml files for the JMS MDB tests by adding the +# deployment info. +# cd $TS_HOME/bin +# ant -f xml/impl/glassfish/jmsra.xml modify-jmsmdbejbxml +# (3) Now you can run the JMS CTS tests. After you are done running the JMS CTS tests ypu +# can unconfigure the Java EE 8 RI and restore the original sun-ejb-jar runtime xml +# files. +# cd $TS_HOME/bin +# ant -f xml/impl/glassfish/jmsra.xml restore-jmsmdbejbxml +# ant clean.vi +# (4) Finally reset the properties back to there defaults. Set (test.sa.jmsra=false) and unset +# (jmsra.rarfile and jmsra.jarfile). Remove the "-Dgenericra.inAppClientContainer=true" +# and "${pathsep}${jmsra.jarfile}" from the ts.jte file from step 1. +# +# If using a different Java EE environment from the Java EE RI than a vendor will need to +# provide his own JMS Resource Adapter support scripts needed for that Java EE environment. +# It can reuse/modify the (Java EE 8 RI) scripts above or simply write their own scripts. A +# vendor can use the Java EE 8 RI or any Java EE 8 implementation of its choice as the Java +# EE 8 environment for testing its Standalone JMS Resource Adapter. The Standalone JMS Resource +# Adapter MUST pass all of the JMS CTS tests under: (TS_HOME/src/com/sun/ts/tests/jms) in order +# to be declared fully JMS 2.0 compliant. +# +# See the JMS 2.0 Specification and the CTS 8 User's Guide for more information. +########################################################################################## +test.sa.jmsra=false +jmsra.rarfile= +jmsra.jarfile= + +########################################################################################## +# The following property specifies the name of the JMS Resource Adapter under test. The +# Java EE 8 RI contains its own builtin JMS Resource Adapter (JMSRA). Its name is "jmsra". +# So we set (jmsra.name=jmsra) as the default value for the Java EE 8 RI. +# +# Change the value of this property for the JMS Resource Adapter that is under test. This +# hardcoded value is specific to the Java EE 8 RI. +# +# jmsra.name // Name of JMS Resource Adapter for the implementation under test +########################################################################################## +jmsra.name=jmsra + + +########################################################################## +# The following property is for WebSocket tests. +# +# @ws_wait: waiting time in seconds for socket to send/receive a message +########################################################################## +ws_wait=5 + +############################################################################################ +# These following properties are needed for Javamail tests. +# +# @mailHost hostname of the mail server +# @mailuser1 must be set to a valid email address where test mails will be sent to. +# @mailFrom reply to address set in the email messages generated by the javamail tests +# @javamail.username user account name on server +# @javamail.password password for the mailuser1 +# +############################################################################################ + +mailHost= +mailuser1= +mailFrom= +javamail.password= +smtp.port=25 +imap.port=143 + +### User need not change the following javamail properties + +javamail.username=${mailuser1} +transport_protocol=smtp + +# mail server used to run tests against. +javamail.server=${mailHost} + +# protocol used to run the Store tests +javamail.protocol=imap + +# mail server used to run tests against. +javamail.transport.server=$javamail.server + +# rootpath of test mailboxes +javamail.root.path="" + +# note the mailbox 'test1' +javamail.mailbox=test1 + +# search pattern used by list tests in Folder +javamail.listpattern=test + +# your own login account name +smtp.username=$javamail.username + +# smtp domain name ; i.e. oracle.com +smtp.domain=$javamail.server + +# smtp From address +smtp.from=$smtp.username + +# smtp To address +smtp.to=$smtp.username + +# io file +iofile=MailIOFile.txt + +##################################################################################################### +#### Properties used by ldap installation +# @ldap.server -- The type of ldap server. unboundid is supported by now +# @ldap.install.server -- Install ldap server by CTS script or not +# @ldap.ldif.file -- The ldif file containing data seeded in ldap server +# +# @unboundid.installation.package -- The package for installing Unboundid ldap server +######################################################################################################## +ldap.server=unboundid +ldap.install.server=true +ldap.ldif.file=${ts.home}/bin/ldap.ldif + +unboundid.installation.package=${ts.home}/lib/unboundid-ldapsdk.jar + +##################################################################################################### +# Properties used for JPA 2.2 Tests +######################################################################################################## +persistencs.properties.file=${bin.dir}/jpa-provider.properties +persistence.unit.name.2=JPATCK2 + +jpa.provider.implementation.specific.properties=eclipselink.logging.level\=OFF +jakarta.persistence.provider=org.eclipse.persistence.jpa.PersistenceProvider +jakarta.persistence.jdbc.driver=${derby.driver} +jakarta.persistence.jdbc.url=${derby.url} +jakarta.persistence.jdbc.user=${derby.user} +jakarta.persistence.jdbc.password=${derby.passwd} diff --git a/glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/tssql.stmt b/glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/tssql.stmt new file mode 100644 index 0000000000..2d279c5402 --- /dev/null +++ b/glassfish-runner/jdbc-platform-tck/jakartaeetck/bin/tssql.stmt @@ -0,0 +1,805 @@ +# @(#)ctssql.dml.derby 1.16 01/06/20 +#------------------------------------------------- +#All sql DML statements used in the test cases against derby +#------------------------------------------------- + + + +Dbschema_Tab1_Insert=insert into ctstable2 values(?, ?, ?, ?) +Dbschema_Tab2_Insert=insert into ctstable1 values(?, ?) + +Dbschema_Tab1_Delete=delete from ctstable2 +Dbschema_Tab2_Delete=delete from ctstable1 + +Dbschema_Concur_Insert=insert into concurrencetable values(?, ?) +Dbschema_Concur_Delete=delete from concurrencetable + +#****************************************************************** +# SQL Statements for creating procedures in side the test. +#****************************************************************** + +UpdCoffee_Proc=create method alias UpdCoffee_Proc for com.sun.ts.lib.tests.jdbc.CS_Procs.UpdCoffee_Proc + +#****************************************************************** +# SQL Statements for deleting tables for appropriate JDBC Datatypes +#****************************************************************** + +Numeric_Tab_Delete=delete from Numeric_Tab + +Decimal_Tab_Delete=delete from Decimal_Tab + +Double_Tab_Delete=delete from Double_Tab + +Float_Tab_Delete=delete from Float_Tab + +Real_Tab_Delete=delete from Real_Tab + +Bit_Tab_Delete=delete from Bit_Tab + +Smallint_Tab_Delete=delete from Smallint_Tab + +Tinyint_Tab_Delete=delete from Tinyint_Tab + +Integer_Tab_Delete=delete from Integer_Tab + +Bigint_Tab_Delete=delete from Bigint_Tab + +Char_Tab_Delete=delete from Char_Tab + +Varchar_Tab_Delete=delete from Varchar_Tab + +Longvarchar_Tab_Delete=delete from Longvarchar_Tab + +Longvarcharnull_Tab_Delete=delete from Longvarcharnull_Tab + +Date_Tab_Delete=delete from Date_Tab + +Time_Tab_Delete=delete from Time_Tab + +Timestamp_Tab_Delete=delete from Timestamp_Tab + +Binary_Tab_Delete=delete from Binary_Tab + +Varbinary_Tab_Delete=delete from Varbinary_Tab + +Longvarbinary_Tab_Delete=delete from Longvarbinary_Tab + + + +#**************************************************** +# SQL Statements for inserting values into the tables +#**************************************************** + +Numeric_Tab_Insert=insert into Numeric_Tab values(999999999999999,0.000000000000001, null) + +Decimal_Tab_Insert= insert into Decimal_Tab values(999999999999999,0.000000000000001, null) + +#Double_Tab_Insert=insert into Double_Tab values(1.7976931348623157E308,4.9E-324,null) +Double_Tab_Insert=insert into Double_Tab values(1.0E125,1.0E-130,null) + +Float_Tab_Insert=insert into Float_Tab values(3.4028235E37,1.4E-45,null) + +Real_Tab_Insert= insert into Real_Tab values(3.402E38,1.4E-37, null) + +Bit_Tab_Insert=insert into Bit_Tab values(true,false,null) + +Smallint_Tab_Insert= insert into Smallint_Tab values(32767,-32768,null) + +Tinyint_Tab_Insert=insert into Tinyint_Tab values(127,0,null) + +Integer_Tab_Insert=insert into Integer_Tab values(2147483647,-2147483648,null) + +Bigint_Tab_Insert= insert into Bigint_Tab values(9223372036854775807,-9223372036854775808,null) + +Char_Tab_Insert= insert into Char_Tab values('Test Coffee', null) + +Varchar_Tab_Insert= insert into Varchar_Tab values('Test Coffee',null) + +Longvarchar_Tab_Insert= insert into Longvarchar_Tab values('Test Coffee') + +Longvarcharnull_Tab_Insert= insert into Longvarcharnull_Tab values(null) + +Date_Tab_Insert=insert into Date_Tab values({d '1999-05-05'}, null) + +Time_Tab_Insert= insert into Time_Tab values({t '12:59:59'}, null) + +Timestamp_Tab_Insert= insert into Timestamp_Tab values({ts '1999-12-31 12:59:59'}, null) + +Binary_Tab_Insert= insert into Binary_Tab values(null) + +Varbinary_Tab_Insert= insert into Varbinary_Tab values(null) + +Longvarbinary_Tab_Insert= insert into Longvarbinary_Tab values(null) + +Boolean_Tab_Insert = insert into Boolean_Tab values(true,false,null) + + +#***************************************************** +# SQL Statements for retrieving values from the tables +#***************************************************** + +SelCoffeeAll=SELECT COF_NAME, PRICE FROM ctstable2 +SelCoffeeNull=select * from ctstable2 where TYPE_ID=0 + +Numeric_Query_Max=Select MAX_VAL from Numeric_Tab +Numeric_Query_Min=Select MIN_VAL from Numeric_Tab +Numeric_Query_Null=Select NULL_VAL from Numeric_Tab + +Decimal_Query_Max=Select MAX_VAL from Decimal_Tab +Decimal_Query_Min=Select MIN_VAL from Decimal_Tab +Decimal_Query_Null=Select NULL_VAL from Decimal_Tab + +Double_Query_Max=Select MAX_VAL from Double_Tab +Double_Query_Min=Select MIN_VAL from Double_Tab +Double_Query_Null=Select NULL_VAL from Double_Tab + +Float_Query_Max=Select MAX_VAL from Float_Tab +Float_Query_Min=Select MIN_VAL from Float_Tab +Float_Query_Null=Select NULL_VAL from Float_Tab + +Real_Query_Max=Select MAX_VAL from Real_Tab +Real_Query_Min=Select MIN_VAL from Real_Tab +Real_Query_Null=Select NULL_VAL from Real_Tab + +Bit_Query_Max=Select MAX_VAL from Bit_Tab +Bit_Query_Min=Select MIN_VAL from Bit_Tab +Bit_Query_Null=Select NULL_VAL from Bit_Tab + +Smallint_Query_Max=Select MAX_VAL from Smallint_Tab +Smallint_Query_Min=Select MIN_VAL from Smallint_Tab +Smallint_Query_Null=Select NULL_VAL from Smallint_Tab + +Tinyint_Query_Max=Select MAX_VAL from Tinyint_Tab +Tinyint_Query_Min=Select MIN_VAL from Tinyint_Tab +Tinyint_Query_Null=Select NULL_VAL from Tinyint_Tab + +Integer_Query_Max=Select MAX_VAL from Integer_Tab +Integer_Query_Min=Select MIN_VAL from Integer_Tab +Integer_Query_Null=Select NULL_VAL from Integer_Tab + +Bigint_Query_Max=Select MAX_VAL from Bigint_Tab +Bigint_Query_Min=Select MIN_VAL from Bigint_Tab +Bigint_Query_Null=Select NULL_VAL from Bigint_Tab + +Char_Query_Name=Select COFFEE_NAME from Char_Tab +Char_Query_Null=Select NULL_VAL from Char_Tab + +Varchar_Query_Name=Select COFFEE_NAME from Varchar_Tab +Varchar_Query_Null=Select NULL_VAL from Varchar_Tab + +Longvarchar_Query_Name=Select COFFEE_NAME from Longvarchar_Tab +Longvarchar_Query_Null=Select NULL_VAL from Longvarcharnull_Tab + +Date_Query_Mfg=Select MFG_DATE from Date_Tab +Date_Query_Null=Select NULL_VAL from Date_Tab + +Time_Query_Brk=Select BRK_TIME from Time_Tab +Time_Query_Null=Select NULL_VAL from Time_Tab + +Timestamp_Query_In=Select IN_TIME from Timestamp_Tab +Timestamp_Query_Null=Select NULL_VAL from Timestamp_Tab + +Binary_Query_Val=Select BINARY_VAL from Binary_Tab +Varbinary_Query_Val=Select VARBINARY_VAL from Varbinary_Tab +Longvarbinary_Query_Val=Select LONGVARBINARY_VAL from Longvarbinary_Tab + + + + + +#*************************************** +# SQL Statements for updating the tables +#*************************************** + +Numeric_Tab_Max_Update=update Numeric_Tab set MAX_VAL=? +Numeric_Tab_Min_Update=update Numeric_Tab set MIN_VAL=? +Numeric_Tab_Null_Update=update Numeric_Tab set NULL_VAL=? + +Decimal_Tab_Max_Update=update Decimal_Tab set MAX_VAL=? +Decimal_Tab_Min_Update=update Decimal_Tab set MIN_VAL=? +Decimal_Tab_Null_Update=update Decimal_Tab set NULL_VAL=? + +Double_Tab_Max_Update=update Double_Tab set MAX_VAL=? +Double_Tab_Min_Update=update Double_Tab set MIN_VAL=? +Double_Tab_Null_Update=update Double_Tab set NULL_VAL=? + +Float_Tab_Max_Update=update Float_Tab set MAX_VAL=? +Float_Tab_Min_Update=update Float_Tab set MIN_VAL=? +Float_Tab_Null_Update=update Float_Tab set NULL_VAL=? + +Real_Tab_Max_Update=update Real_Tab set MAX_VAL=? +Real_Tab_Min_Update=update Real_Tab set MIN_VAL=? +Real_Tab_Null_Update=update Real_Tab set NULL_VAL=? + +Bit_Tab_Max_Update=update Bit_Tab set MAX_VAL=? +Bit_Tab_Min_Update=update Bit_Tab set MIN_VAL=? +Bit_Tab_Null_Update=update Bit_Tab set NULL_VAL=? + +Smallint_Tab_Max_Update=update Smallint_Tab set MAX_VAL=? +Smallint_Tab_Min_Update=update Smallint_Tab set MIN_VAL=? +Smallint_Tab_Null_Update=update Smallint_Tab set NULL_VAL=? + +Tinyint_Tab_Max_Update=update Tinyint_Tab set MAX_VAL=? +Tinyint_Tab_Min_Update=update Tinyint_Tab set MIN_VAL=? +Tinyint_Tab_Null_Update=update Tinyint_Tab set NULL_VAL=? + +Integer_Tab_Max_Update=update Integer_Tab set MAX_VAL=? +Integer_Tab_Min_Update=update Integer_Tab set MIN_VAL=? +Integer_Tab_Null_Update=update Integer_Tab set NULL_VAL=? + +Bigint_Tab_Max_Update=update Bigint_Tab set MAX_VAL=? +Bigint_Tab_Min_Update=update Bigint_Tab set MIN_VAL=? +Bigint_Tab_Null_Update=update Bigint_Tab set NULL_VAL=? + +Char_Tab_Name_Update=update Char_Tab set COFFEE_NAME=? +Char_Tab_Null_Update=update Char_Tab set NULL_VAL=? + +Varchar_Tab_Name_Update=update Varchar_Tab set COFFEE_NAME=? +Varchar_Tab_Null_Update=update Varchar_Tab set NULL_VAL=? + +Longvarchar_Tab_Name_Update=update Longvarchar_Tab set COFFEE_NAME=? +Longvarchar_Tab_Null_Update=update Longvarcharnull_Tab set NULL_VAL=? + +Date_Tab_Mfgdate_Update=update Date_Tab set MFG_DATE=? +Date_Tab_Null_Update=update Date_Tab set NULL_VAL=? + +Time_Tab_Brktime_Update=update Time_Tab set BRK_TIME=? +Time_Tab_Null_Update=update Time_Tab set NULL_VAL=? + +Timestamp_Tab_Intime_Update=update Timestamp_Tab set IN_TIME=? +Timestamp_Tab_Null_Update=update Timestamp_Tab set NULL_VAL=? + +Binary_Tab_Val_Update=update Binary_Tab set BINARY_VAL=? +Varbinary_Tab_Val_Update=update Varbinary_Tab set VARBINARY_VAL=? +Longvarbinary_Tab_Val_Update=update Longvarbinary_Tab set LONGVARBINARY_VAL=? + +CoffeeTab_Query=select COF_NAME,PRICE from ctstable2 where TYPE_ID=? +CoffeeTab_Delete=delete from ctstable2 where KEY_ID=? + +CoffeeTab_Select=select PRICE from ctstable2 where KEY_ID=? +CoffeeTab_Update=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=? + +Ins_Coffee_Tab=insert into ctstable2 values (9,'COFFEE-9',9.0,5) +Del_Coffee_Tab=delete from ctstable2 where KEY_ID=9 +Upd_Coffee_Tab=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=1 +Sel_Coffee_Tab=select PRICE from ctstable2 where KEY_ID>4 + +#********************************************************************************** +# is used in ResultSet. To update with BIT value. +#********************************************************************************** +Update_decimal_tab=update Decimal_Tab set MAX_VAL=1.0, MIN_VAL=0.0, NULL_VAL=null +Update_numeric_tab=update Numeric_Tab set MAX_VAL=1.0, MIN_VAL=0.0, NULL_VAL=null +Update_char_tab1=update Char_Tab set COFFEE_NAME=1, NULL_VAL=null +Update_char_tab2=update Char_Tab set COFFEE_NAME=0, NULL_VAL=null +Update_varchar_tab1=update Varchar_Tab set COFFEE_NAME=1, NULL_VAL=null +Update_varchar_tab2=update Varchar_Tab set COFFEE_NAME=0, NULL_VAL=null + +#********************************************************************************** +# is used in BatchUpdate Tests. +#********************************************************************************** +BatchUpdate_Query=select count(*) from ctstable2 where TYPE_ID=? +BatchUpdate_Delete=delete from ctstable2 +BatchInsert_String=insert into ctstable2 values(?,?,?,?) + +#********************************************************************************** +# is used in BatchUpdate exception +#********************************************************************************** +Coffee_InsTab=insert into ctstable2 values (9,'COFFEE-9',9.0,5) +Coffee_DelTab=delete from ctstable2 where KEY_ID=2 +Coffee_UpdTab=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=1 +Coffee_SelTab=select PRICE from ctstable2 where KEY_ID>4 +Coffee_Inscount_Query=select count(*) from ctstable2 where KEY_ID=9 +Coffee_Delcount_Query=select count(*) from ctstable2 where KEY_ID=2 +Coffee_Updcount_Query=select count(*) from ctstable2 where TYPE_ID=1 +CoffeeTab_Continue1=update ctstable2 set KEY_ID=?, COF_NAME=? where COF_NAME=? +CoffeeTab_ContinueSelect1=Select count(*) from ctstable2 where COF_NAME in ('Continue-1') +CoffeeTab_Continue2=update ctstable2 set KEY_ID=1,COF_NAME = 'Continue-1' where COF_NAME='COFFEE-1' +CoffeeTab_Continue3=update ctstable2 set KEY_ID=1 ,COF_NAME = 'Invalid' where COF_NAME='COFFEE-3' +CoffeeTab_Continue4=update ctstable2 set KEY_ID=2,COF_NAME = 'Continue-3' where COF_NAME='COFFEE-2' +Coffee_Proc1=create procedure Coffee_Proc1(keyid in Numeric) as begin update ctstable2 set KEY_ID=keyid,COF_NAME = 'Continue-1' where KEY_ID=1;end; +Coffee_Proc1_Delete=Drop procedure Coffee_Proc1 +#********************************************************************************** +# is used in DataTruncation exception +#********************************************************************************** +DTrunc_Ins_Coffee=insert into ctstable2 values (10,'kumarjadjsjdhsjhdjsjdajhdjasdsdsdsd',21.00,1) + +#********************************************************************************** +# is used in SQLException +#********************************************************************************** +Error_Query=select * from + +#********************************************************************************** +# Constructor arguments for exceptions +#********************************************************************************** +Reason_BatUpdExec=Message +SQLState_BatUpdExec=S100 +VendorCode_BatUpdExec=10 +IntialValue_BatUpdExec={1,1,1} +Index_DataTrunc=1 +Param_DataTrunc=true +Read_DataTrunc=true +DataSize_DataTrunc=100 +TranSize_DataTrunc=50 + +#********************************************************************************** +# is used to print a message to the current logging writer +#********************************************************************************** +JDBCLogstream_Message=Hello World + + +#********************************************************************************** +#The following pair of values are related and so must be changed simultaneously +#The first one is a reference value and the second one is a equivalent in millisecond after epoch +#********************************************************************************** +DateTime_Str_Val1=1970-01-02 00:00:00.001 +DateTime_Long_Val1=86400001 + +#********************************************************************************** +#The following pair of values are related and so must be changed simultaneously +#The first one is a reference value and the second one is a equivalent in millisecond after epoch +#********************************************************************************** +DateTime_Str_Val2=1969-12-30 23:59:59.999 +DateTime_Long_Val2=-86400001 + +#********************************************************************************** +#value in millisecond for testing after() and before() in Timestamp +#********************************************************************************** +Ref_Milli_Val = 86400000 + +#********************************************************************************** +#Value in nanoseconds for testing time values +#********************************************************************************** +Ref_Nano_Val = 999999999 + + +#********************************************************************************** +#Value in nanoseconds and must be equivalent equivalent to multiples of milliseconds +#********************************************************************************** +Ref_Nano_Val2 = 1000000 + +Trial_String=TrialSetting +Escape_Seq_Query=select count(*) from ctstable2 where cof_name like '\%-%' { escape '\\' } +Escape_Seq_ChkQuery=select count(*) from ctstable2 +Max_Set_Val=10 + + +#********************************************************************************** +#The SQL Statements which are used to test the Scalar functions using escape syntax +#********************************************************************************** +Concat_Fn_Query=SELECT {FN CONCAT(STRING1,STRING2)} FROM ctstable3 +Ascii_Fn_Query=SELECT {FN ASCII(STRING1)} FROM ctstable3 +Insert_Fn_Query=SELECT {FN INSERT(STRING1,2,4,STRING2)} FROM ctstable3 +Lcase_Fn_Query=SELECT {FN LCASE(STRING1)} FROM ctstable3 +Left_Fn_Query=SELECT {FN LEFT(STRING1,2)} FROM ctstable3 +Length_Fn_Query=SELECT {FN LENGTH(STRING1)} FROM ctstable3 +Locate_Fn_Query=SELECT {FN LOCATE(STRING1,STRING2)} FROM ctstable3 +Ltrim_Fn_Query=SELECT {FN LTRIM(STRING2)} FROM ctstable3 +Repeat_Fn_Query=SELECT {FN REPEAT(STRING1,3)} FROM ctstable3 +Right_Fn_Query=SELECT {FN RIGHT(STRING1,3)} FROM ctstable3 +Rtrim_Fn_Query=SELECT {FN RTRIM(STRING2)} FROM ctstable3 +Soundex_Fn_Query=SELECT {FN SOUNDEX(STRING1)} FROM ctstable3 +Space_Fn_Query=SELECT {FN SPACE(5)} FROM ctstable3 +Substring_Fn_Query=SELECT {FN SUBSTR(STRING2,2,3)} FROM ctstable3 +Ucase_Fn_Query=SELECT {FN UCASE(STRING1)} FROM ctstable3 +Char_Fn_Query=SELECT {FN CHAR(NUMCOL)} FROM ctstable3 +Replace_Fn_Query=SELECT {FN REPLACE(STRING2,STRING1,STRING3)} FROM ctstable3 +User_Fn_Query=SELECT {FN USER()} FROM ctstable3 +Ifnull_Fn_Query=SELECT {FN IFNULL(STRING1,100)} FROM ctstable3 +Sin_Fn_Query=SELECT {FN SIN(0)} FROM ctstable3 +Abs_Fn_Query=SELECT {FN ABS(NUMCOL)} FROM ctstable3 +Power_Fn_Query=SELECT {FN POWER(NUMCOL,2)} FROM ctstable3 +Round_Fn_Query=SELECT {FN ROUND(FLOATCOL,2)} FROM ctstable3 +Sign_Fn_Query=SELECT {FN SIGN(NUMCOL)} FROM ctstable3 +Sqrt_Fn_Query=SELECT {FN SQRT(FLOATCOL)} FROM ctstable3 +Truncate_Fn_Query=SELECT {FN TRUNCATE(FLOATCOL,1)} FROM ctstable3 +Mod_Fn_Query=SELECT {FN MOD(NUMCOL,7)} FROM ctstable3 +Floor_Fn_Query=SELECT {FN FLOOR(FLOATCOL)} FROM ctstable3 +Ceiling_Fn_Query=SELECT {FN CEILING(NUMCOL)} FROM ctstable3 +Log10_Fn_Query=SELECT {FN LOG10(NUMCOL)} FROM ctstable3 +Log_Fn_Query=SELECT {FN LOG(NUMCOL)} FROM ctstable3 +Exp_Fn_Query=SELECT {FN EXP(FLOATCOL)} FROM ctstable3 +Cos_Fn_Query=SELECT {FN COS(FLOATCOL)} FROM ctstable3 +Tan_Fn_Query=SELECT {FN TAN(FLOATCOL)} FROM ctstable3 +Cot_Fn_Query=SELECT {FN COT(FLOATCOL)} FROM ctstable3 +Curdate_Fn_Query=SELECT {FN CURDATE()} FROM ctstable3 +Dayname_Fn_Query=SELECT {FN DAYNAME(DATECOL)} FROM ctstable3 +Dayofmonth_Fn_Query=SELECT {FN DAYOFMONTH(DATECOL)} FROM ctstable3 +Dayofweek_Fn_Query=SELECT {FN DAYOFWEEK(DATECOL)} FROM ctstable3 +Dayofyear_Fn_Query=SELECT {FN DAYOFYEAR(DATECOL)} FROM ctstable3 +Week_Fn_Query=SELECT {FN WEEK(DATECOL)} FROM ctstable3 +Month_Fn_Query=SELECT {FN MONTH(DATECOL)} FROM ctstable3 +Year_Fn_Query=SELECT {FN YEAR(DATECOL)} FROM ctstable3 +Monthname_Fn_Query=SELECT {FN MONTHNAME(DATECOL)} FROM ctstable3 +Quarter_Fn_Query=SELECT {FN QUARTER(DATECOL)} FROM ctstable3 +Now_Fn_Query=SELECT {FN NOW()} FROM ctstable3 +Hour_Fn_Query=SELECT {FN HOUR(TIMECOL)} FROM ctstable3 +Minute_Fn_Query=SELECT {FN MINUTE(TIMECOL)} FROM ctstable3 +Second_Fn_Query=SELECT {FN SECOND(TIMECOL)} FROM ctstable3 +Database_Fn_Query=SELECT {FN DATABASE()} FROM ctstable3 +Acos_Fn_Query=SELECT {FN ACOS(FLOATCOL)} FROM ctstable3 +Asin_Fn_Query=SELECT {FN ASIN(FLOATCOL)} FROM ctstable3 +Atan_Fn_Query=SELECT {FN ATAN(FLOATCOL)} FROM ctstable3 +Atan2_Fn_Query=SELECT {FN ATAN2(FLOATCOL,FLOATCOL)} FROM ctstable3 +Degrees_Fn_Query=SELECT {FN DEGREES(NUMCOL)} FROM ctstable3 +Radians_Fn_Query=SELECT {FN RADIANS(NUMCOL)} FROM ctstable3 +Pi_Fn_Query=SELECT {FN PI()} FROM ctstable3 +Rand_Fn_Query=SELECT {FN RAND(NUMCOL)} FROM ctstable3 +Difference_Fn_Query=SELECT {FN DIFFERENCE(STRING1,STRING2)} FROM ctstable3 +Locate_Fn_Query=SELECT {FN LOCATE(STRING1,STRING2,2)} FROM ctstable3 +Timestampaddfrac_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_FRAC_SECOND,2,TSCOL1)} FROM ctstable3 +Timestampaddsecond_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_SECOND,2,TSCOL1)} FROM ctstable3 +Timestampaddminute_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_MINUTE,2,TSCOL1)} FROM ctstable3 +Timestampaddhour_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_HOUR,2,TSCOL1)} FROM ctstable3 +Timestampaddday_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_DAY,2,TSCOL1)} FROM ctstable3 +Timestampaddweek_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_WEEK,2,TSCOL1)} FROM ctstable3 +Timestampaddmonth_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_MONTH,2,TSCOL1)} FROM ctstable3 +Timestampaddquarter_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_QUARTER,2,TSCOL1)} FROM ctstable3 +Timestampaddyear_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_YEAR,2,TSCOL1)} FROM ctstable3 +Timestampdifffrac_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_FRAC_SECOND,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffsecond_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_SECOND,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffminute_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_MINUTE,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffhour_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_HOUR,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffday_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_DAY,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffweek_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_WEEK,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffmonth_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_MONTH,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffquarter_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_QUARTER,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffyear_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_YEAR,TSCOL1,TSCOL2)} FROM ctstable3 + + +#***************************************************************************** +#The SQL Statements which are used to test the Outer Joins using escape syntax +#***************************************************************************** +Left_Oj_Query=SELECT * FROM {OJ ctstable3 LEFT OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} +Right_Oj_Query=SELECT * FROM {OJ ctstable3 RIGHT OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} +Full_Oj_Query=SELECT * FROM {OJ ctstable3 FULL OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} + + +#***************************************************************************** +#The SQL Statements for creating, inserting and dropping the tables which are +#used in testing the scalar functions and outer joins using escape syntax +#***************************************************************************** + +Fnschema_Tab1_Insert=INSERT INTO ctstable3 VALUES ('Java',' HotJava ','JAVA',100,0.5,{d '1993-07-13'},{t '10:30:55'},{ts '1996-05-10 10:07:04'},{ts '1996-05-10 10:07:05'}) +Fnschema_Tab2_Insert=INSERT INTO ctstable4 VALUES ('STRING3',100) + +Fnschema_Tab1_Delete=delete from ctstable3 +Fnschema_Tab2_Delete=delete from ctstable4 + +#***************************************************************************** +#The SQL Statements which are used in TxBean (Session bean) +#***************************************************************************** +TxBean_insert1=insert into TxBean_Tab1 values(?, ?, ?) +TxBean_insert2=insert into TxBean_Tab2 values(?, ?, ?) + +TxBean_delete1=delete from TxBean_Tab1 where KEY_ID = ? +TxBean_delete2=delete from TxBean_Tab2 where KEY_ID = ? + +TxBean_update1=update TxBean_Tab1 set TABONE_NAME = ? where KEY_ID = ? +TxBean_update2=update TxBean_Tab2 set TABTWO_NAME = ? where KEY_ID = ? +TxBean_update3=update TxBean_Tab1 set PRICE = ? where KEY_ID = ? +TxBean_update4=update TxBean_Tab2 set PRICE = ? where KEY_ID = ? + +TxBean_query1=select * from TxBean_Tab1 +TxBean_query2=select * from TxBean_Tab2 +TxBean_query3=select KEY_ID, TABONE_NAME, PRICE from TxBean_Tab1 where KEY_ID = ? +TxBean_query4=select KEY_ID, TABTWO_NAME, PRICE from TxBean_Tab2 where KEY_ID = ? + + +TxBean_Tab1_Delete=delete from TxBean_Tab1 +TxBean_Tab2_Delete=delete from TxBean_Tab2 + +#***************************************************************************** +#The SQL Statements which are used in TxEBean (Entity bean) +#***************************************************************************** +TxEBean_updateString1=insert into TxEBean_Tab values(?, ?, ?) +TxEBean_updateString2=delete from TxEBean_Tab where KEY_ID = ? +TxEBean_updateString3=update TxEBean_Tab set BRAND_NAME = ?, PRICE = ? where KEY_ID = ? + +TxEBean_selectString1=select KEY_ID from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString2=select KEY_ID from TxEBean_Tab where BRAND_NAME = ? +TxEBean_selectString3=select KEY_ID from TxEBean_Tab where PRICE = ? +TxEBean_selectString4=select KEY_ID, BRAND_NAME, PRICE from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString5=select BRAND_NAME from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString6=select PRICE from TxEBean_Tab where KEY_ID = ? + +TxEBean_queryStr1=select KEY_ID from TxEBean_Tab where KEY_ID = ? + +TxEBean_Delete=delete from TxEBean_Tab + +#***************************************************************************** +#The SQL Statements which are used in the integration/session and +#integration/entity tests +#***************************************************************************** +Integration_Tab_Delete=delete from Integration_Tab +Integration_Insert=insert into Integration_Tab values(?, ?) +Integration_Insert1=insert into Integration_Tab values(1000, 50000.0) +Integration_Insert2=insert into Integration_Tab values(1075, 10490.75) +Integration_Insert3=insert into Integration_Tab values(40, 200.50) +Integration_Insert4=insert into Integration_Tab values(30564, 25000.0) +Integration_Insert5=insert into Integration_Tab values(387, 1000000.0) +Integration_Select_Account=select * from Integration_Tab WHERE ACCOUNT = ? +Integration_Select_All=select * from Integration_Tab +Integration_Update_Account=update Integration_Tab set BALANCE = ? where ACCOUNT = ? +Integration_Delete_Account=delete from Integration_Tab where ACCOUNT = ? + +#***************************************************************************** +#The SQL Statements which are used in the integration/sec tests +#***************************************************************************** +Integration_Sec_Tab_Delete=delete from Integration_Sec_Tab +Integration_Sec_Tab_Insert=insert into Integration_Sec_Tab values(?, ?, ?) +Integration_Sec_Tab_Delete1=delete from Integration_Sec_Tab WHERE LOG_NO=? +Integration_Sec_Tab_Delete2=delete FROM Integration_Sec_Tab where LOG_NO=? and not ( LINE_NO = ? ) +Integration_Sec_Tab_Update=update Integration_Sec_Tab set MESSAGE= ? where LOG_NO = ? and LINE_NO = ? +Integration_Sec_Tab_Select1=select MESSAGE, LINE_NO from Integration_Sec_Tab where LOG_NO = ? and not( LINE_NO= ? ) order by LINE_NO +Integration_Sec_Tab_Select2=select MESSAGE FROM Integration_Sec_Tab where LOG_NO = ? and LINE_NO = ? +Integration_Sec_Tab_Select3=select MAX(LOG_NO) FROM Integration_Sec_Tab +Integration_Sec_Tab_Select4=select LOG_NO from Integration_Sec_Tab where MESSAGE = ? and LINE_NO = ? +Integration_Sec_Tab_Select5=select LINE_NO from Integration_Sec_Tab where LOG_NO = ? and LINE_NO= ? + + +#***************************************************************************** +#The SQL Statements which are used in DBSupport used by ejb/ee/bb tests +#***************************************************************************** +BB_Tab_Delete=delete from BB_Tab +BB_Insert1=insert into BB_Tab values(?, ?, ?) +BB_Select1=select KEY_ID from BB_Tab where KEY_ID = ? +BB_Select2=select KEY_ID from BB_Tab where BRAND_NAME = ? +BB_Select3=select KEY_ID from BB_Tab where PRICE = ? +BB_Select4=select KEY_ID from BB_Tab where PRICE >= ? and PRICE <= ? +BB_Select5=select KEY_ID from BB_Tab where KEY_ID >= ? and KEY_ID <= ? +BB_Select6=select PRICE from BB_Tab where KEY_ID = ? +BB_Update1=update BB_Tab set PRICE = ? where KEY_ID = ? +BB_Delete1=delete from BB_Tab where KEY_ID = ? + +#***************************************************************************** +#The SQL Statements which are used in DAO by ejb/ee/bb tests +#***************************************************************************** +COFFEE_BB_Tab_Delete=delete from BB_Tab +COFFEE_BB_Insert1=insert into BB_Tab values(?, ?, ?) +COFFEE_BB_Select1=select KEY_ID from BB_Tab where KEY_ID = ? +COFFEE_BB_Select2=select KEY_ID from BB_Tab where BRAND_NAME = ? +COFFEE_BB_Select3=select KEY_ID from BB_Tab where PRICE = ? +COFFEE_BB_Select4=select KEY_ID from BB_Tab where PRICE >= ? and PRICE <= ? +COFFEE_BB_Select5=select KEY_ID from BB_Tab where KEY_ID >= ? and KEY_ID <= ? +COFFEE_BB_Select6=select PRICE from BB_Tab where KEY_ID = ? +COFFEE_BB_Update1=update BB_Tab set PRICE = ? where KEY_ID = ? +COFFEE_BB_Delete1=delete from BB_Tab where KEY_ID = ? + +#***************************************************************************** +#The SQL Statements which are used in DBSupport in jta/ee/txpropagationtest +#***************************************************************************** +JTA_Tab1_Delete=delete from JTA_Tab1 +JTA_Tab2_Delete=delete from JTA_Tab2 + +JTA_Tab1_Insert=insert into JTA_Tab1 values(?, ?, ?) +JTA_Tab2_Insert=insert into JTA_Tab2 values(?, ?, ?) + +JTA_Delete1=delete from JTA_Tab1 where KEY_ID = ? +JTA_Delete2=delete from JTA_Tab2 where KEY_ID = ? + +JTA_Tab1_Update1=update JTA_Tab1 set COF_NAME = ? where KEY_ID = ? +JTA_Tab2_Update1=update JTA_Tab2 set CHOC_NAME = ? where KEY_ID = ? + +JTA_Tab1_Update2=update JTA_Tab1 set PRICE = ? where KEY_ID = ? +JTA_Tab2_Update2=update JTA_Tab2 set PRICE = ? where KEY_ID = ? + +JTA_Tab1_Select=select * from JTA_Tab1 +JTA_Tab2_Select=select * from JTA_Tab2 + +JTA_Tab1_Select1=select KEY_ID, COF_NAME, PRICE FROM JTA_Tab1 where KEY_ID = ? +JTA_Tab2_Select1=select KEY_ID, CHOC_NAME, PRICE FROM JTA_Tab2 where KEY_ID = ? + + +#***************************************************************************** +# SQL Statements used by deployment tests +# +# See /tests/assembly/util/dbsupport for more details +# +#***************************************************************************** + +# +# BMP table with Integer Primary Key +# +DEPLOY_intPKTable_Insert=insert into Deploy_Tab1 values(?, ?, ?) +DEPLOY_intPKTable_Select_PK=select KEY_ID from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Select_Price=select PRICE from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Update=update Deploy_Tab1 set PRICE = ? where KEY_ID = ? +DEPLOY_intPKTable_Delete=delete from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Cleanup=delete from Deploy_Tab1 + +# +# BMP table with String Primary Key +# +DEPLOY_strPKTable_Insert=insert into Deploy_Tab2 values(?, ?, ?) +DEPLOY_strPKTable_Select_PK=select KEY_ID from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Select_Price=select PRICE from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Update=update Deploy_Tab2 set PRICE = ? where KEY_ID = ? +DEPLOY_strPKTable_Delete=delete from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Cleanup=delete from Deploy_Tab2 + +# +# BMP table with Long Primary Key +# +DEPLOY_longPKTable_Insert=insert into Deploy_Tab3 values(?, ?, ?) +DEPLOY_longPKTable_Select_PK=select KEY_ID from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Select_Price=select PRICE from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Update=update Deploy_Tab3 set PRICE = ? where KEY_ID = ? +DEPLOY_longPKTable_Delete=delete from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Cleanup=delete from Deploy_Tab3 + +# +# BMP table with Float Primary Key +# +DEPLOY_floatPKTable_Insert=insert into Deploy_Tab4 values(?, ?, ?) +DEPLOY_floatPKTable_Select_PK=select KEY_ID from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Select_Price=select PRICE from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Update=update Deploy_Tab4 set PRICE = ? where KEY_ID = ? +DEPLOY_floatPKTable_Delete=delete from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Cleanup=delete from Deploy_Tab4 + +# +# BMP table with Compound Primary Key +# +DEPLOY_compoundPKTable_Insert=insert into Deploy_Tab5 values(?, ?, ?, ?, ?) +DEPLOY_compoundPKTable_Select_PK=select KEY_ID1, KEY_ID2, KEY_ID3 from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Select_Price=select PRICE from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Update=update Deploy_Tab5 set PRICE = ? where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Delete=delete from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Cleanup=delete from Deploy_Tab5 + +#***************************************************************************** +#The SQL Statements which are used in DBSupport2 used by secpropagation tests +#***************************************************************************** +SEC_Insert1=insert into SEC_Tab1 values(?, ?, ?) +SEC_Select1=select KEY_ID from SEC_Tab1 where KEY_ID = ? +SEC_Select2=select KEY_ID from SEC_Tab1 where BRAND = ? +SEC_Select3=select KEY_ID from SEC_Tab1 where PRICE = ? +SEC_Select4=select KEY_ID from SEC_Tab1 where PRICE >= ? and PRICE <= ? +SEC_Select5=select KEY_ID from SEC_Tab1 where KEY_ID >= ? and KEY_ID <= ? +SEC_Select6=select PRICE from SEC_Tab1 where KEY_ID = ? +SEC_Update1=update SEC_Tab1 set PRICE = ? where KEY_ID = ? +SEC_Delete1=delete from SEC_Tab1 where KEY_ID = ? +SEC_Tab1_Delete=delete from SEC_Tab1 + +#***************************************************************************** +# Connector tests in src/tests/connector +#***************************************************************************** +ConnectorTable_Insert=insert into Connector_Tab values(?, ?, ?) +ConnectorTable_Delete=delete from Connector_Tab + +#***************************************************************************** +# insert values EIS +#***************************************************************************** +TSEIS_insert_init=1 +TSEIS_insert1=2 +TSEIS_insert2=3 + +#***************************************************************************** +#The SQL Statements which are used in xa multires tests +#***************************************************************************** + +Xa_Tab1_Select=select * from Xa_Tab1 + +# insert values +Xa_Tab1_Insert=insert into Xa_Tab1 values(?, ?, ?) + +# delete using id +Xa_Tab1_Delete1=delete from Xa_Tab1 where col1 = ? + +Xa_Tab1_Delete=delete from Xa_Tab1 +Xa_Tab2_Delete=delete from Xa_Tab2 + +#initial insert +Xa_Tab1_insert_init=insert into Xa_Tab1 values (1, 'Table1 Line one ', '1.0' ) +Xa_Tab2_insert_init=insert into Xa_Tab2 values (1, 'Table2 Line one ', '2.0' ) + +#subsequent insert +Xa_Tab1_insert1=insert into Xa_Tab1 values (2, 'Table1 Line two ', '11.0' ) +Xa_Tab1_insert2=insert into Xa_Tab1 values (3, 'Table1 Line three ','111.0' ) + +Xa_Tab2_insert1=insert into Xa_Tab2 values (2, 'Table2 Line two ', '22.0' ) +Xa_Tab2_insert2=insert into Xa_Tab2 values (3, 'Table2 Line three ', '222.0' ) + +#get results + +Xa_Tab1_query=select col1 from Xa_Tab1 order by col1 +Xa_Tab2_query=select col1 from Xa_Tab2 order by col1 + + + +#***************************************************************************** +# Coffee DAO SQL statements +#***************************************************************************** + +# +# Standard Coffee DAO +# +COFFEE_insert=insert into Coffee_Table values(?, ?, ?) +COFFEE_select=select BRAND_NAME, PRICE from Coffee_Table where KEY_ID = ? +COFFEE_select_pk_by_name=select KEY_ID from Coffee_Table where BRAND_NAME = ? +COFFEE_select_pk_by_price=select KEY_ID from Coffee_Table where PRICE = ? +COFFEE_select_pk_by_price_range=select KEY_ID from Coffee_Table where PRICE >= ? and PRICE <= ? +COFFEE_select_pk_by_pk_range=select KEY_ID from Coffee_Table where KEY_ID >= ? and KEY_ID <= ? +COFFEE_select_price=select PRICE from Coffee_Table where KEY_ID = ? +COFFEE_update=update Coffee_Table set BRAND_NAME = ?, PRICE = ? where KEY_ID = ? +COFFEE_update_price=update Coffee_Table set PRICE = ? where KEY_ID = ? +COFFEE_delete=delete from Coffee_Table where KEY_ID = ? +COFFEE_delete_all=delete from Coffee_Table + + +# +# Coffee DAO variant with String Primary Key +# +COFFEE_STRING_PK_insert=insert into Coffee_StringPK_Table values(?, ?, ?) +COFFEE_STRING_PK_select=select KEY_ID from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_select_price=select PRICE from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_update_price=update Coffee_StringPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_STRING_PK_delete=delete from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_delete_all=delete from Coffee_StringPK_Table + +# +# Coffee DAO variant with Long Primary Key +# +COFFEE_LONG_PK_insert=insert into Coffee_LongPK_Table values(?, ?, ?) +COFFEE_LONG_PK_select=select KEY_ID from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_select_price=select PRICE from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_update_price=update Coffee_LongPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_LONG_PK_delete=delete from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_delete_all=delete from Coffee_LongPK_Table + +# +# Coffee DAO variant with Float Primary Key +# +COFFEE_FLOAT_PK_insert=insert into Coffee_FloatPK_Table values(?, ?, ?) +COFFEE_FLOAT_PK_select=select KEY_ID from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_select_price=select PRICE from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_update_price=update Coffee_FloatPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_FLOAT_PK_delete=delete from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_delete_all=delete from Coffee_FloatPK_Table + +# +# Coffee DAO variant with Compound Primary Key +# +COFFEE_COMPOUND_PK_insert=insert into Coffee_CompoundPK_Table values(?, ?, ?, ?, ?) +COFFEE_COMPOUND_PK_select=select KEY_ID1, KEY_ID2, KEY_ID3 from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_select_price=select PRICE from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_update_price=update Coffee_CompoundPK_Table set PRICE = ? where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_delete=delete from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_delete_all=delete from Coffee_CompoundPK_Table + + +Simple_Select_Query= SELECT * FROM jstl_tab1 +Select_NoRows_Query= SELECT * FROM jstl_tab1 WHERE idNum = -9999 +Select_Jstl_Tab1_OneRow_Query= SELECT * FROM jstl_tab1 where idNum = 1 +Select_Jstl_Tab1_By_Id_Query= SELECT * FROM jstl_tab1 ORDER BY idNum +Select_Jstl_Tab1_Using_Param_Query= SELECT * FROM jstl_tab1 WHERE idNum = ? +Select_Jstl_Tab2_Using_Param_Query= SELECT idNum, lastName FROM jstl_tab2 WHERE idNum = ? + +Update_Jstl_Tab2_Using_Param_Query= UPDATE jstl_tab2 SET lastName= ? WHERE idNum = ? + +Delete_NoRows_Query= DELETE FROM jstl_tab2 WHERE idNum = -9999 +Delete_AllRows_Query= DELETE FROM jstl_tab2 + +Insert_Row_Query= INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (1, {d '1961-08-30'}, 'Clark', 'Kent', 1, 4.5) +Insert2_Row_Query= INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (2, {d '1980-12-30'}, 'Fred', 'Flinstone', 2, 4.5) +Insert3_Row_Query= INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (3, {d '1961-01-01'}, 'Scooby', 'Doo', 4, 4.5) +Insert4_Row_Query= INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (4, {d '1990-03-15'}, 'Bruce', 'Wayne', 3, 4.5) +Delete_Jstl_Tab2_Using_Param_Query=DELETE FROM jstl_tab2 where idNum = ? +Failed_Insert_Query=INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (2, '1992-02-03'}, NULL,NULL, 2, 4.5) +Select_Jstl_Tab2_AllRows_Query=SELECT * from jstl_tab2 +Invalid_SQL_Query=This Will Fail on Any RDBMS I Hope! +Select_Jstl_Tab1_MultiParam_Query=SELECT idNum, firstName, lastName from jstl_tab1 where idNum= ? and lastName = ? +Delete_Jstl_Tab2_MultiParam_Query=DELETE FROM jstl_tab2 where idNum = ? and lastName = ? +Select_Jstl_Tab3_Date_Query=SELECT * from jstl_tab3 where aDate= ? +Select_Jstl_Tab3_Time_Query=SELECT * from jstl_tab3 where aTime= ? +Select_Jstl_Tab3_Timestamp_Query=SELECT * from jstl_tab3 where aTimestamp= ? +Insert_Jstl_Tab3_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(1, {d '2001-08-30'}, {t '20:20:20'}, {ts '2001-08-30 20:20:20'}) +Insert_Jstl_Tab3_Date_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(1, ?, {t '20:20:20'}, {ts '2001-08-30 20:20:20'}) +Insert_Jstl_Tab3_Time_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(1, {d '2001-08-30'}, ?, {ts '2001-08-30 20:20:20'}) +Insert_Jstl_Tab3_Timestamp_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(1, {d '2001-08-30'}, {t '20:20:20'}, ?) +Delete_Jstl_Tab3_AllRows_Query= DELETE FROM jstl_tab3 + +Insert_Jstl_Tab3_Null_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(99, null, null, null) +Select_Jstl_Tab2_NullParam_Query= SELECT * FROM jstl_tab2 WHERE rank = ? +Insert_Jstl_Tab2_Null_Query=INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (5, {d '1970-07-04'}, 'Peter', 'Parker', 5, null) +Insert_Jstl_Tab2_NullParam_Query=INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (5, {d '1970-07-04'}, 'Peter', 'Parker', 5, ?) diff --git a/glassfish-runner/jdbc-platform-tck/pom.xml b/glassfish-runner/jdbc-platform-tck/pom.xml new file mode 100644 index 0000000000..ce5f57d2f8 --- /dev/null +++ b/glassfish-runner/jdbc-platform-tck/pom.xml @@ -0,0 +1,548 @@ + + + + 4.0.0 + + org.glassfish + standalone-tck + 11.0.0-SNAPSHOT + ../pom.xml + + jakarta + glassfish.jdbc-platform-tck + 11.0.0-SNAPSHOT + jar + + 1.9.1.Final + cts-derby-pool + org.apache.derby.jdbc.ClientDataSource + ; + derbyDB + cts1 + 1527 + localhost + cts1 + ${glassfish.home}/glassfish/bin/asadmin + ${project.build.directory}/glassfish7 + ${glassfish.home}/glassfish/lib + ${glassfish.home}/glassfish/modules + ${glassfish.home}/javadb/lib + derby + org.apache.derby.jdbc.ClientDriver + ${javadb.lib}/derbyclient.jar:${javadb.lib}/derbyshared.jar:${javadb.lib}/derbytools.jar + 64 + cts1 + 32 + jdbc:derby://localhost:1527/derbyDB;create=true + cts1 + jdbc/DB1 + 5.9.1 + DatabaseName=${derby.dbName}:user=${derby.user}:password=${derby.passwd}:serverName=${derby.server}:portNumber=${derby.port} + cts-derby-pool + javax.sql.DataSource + ./sql + jakarta.tck.jdbc + 11.0.0-SNAPSHOT + 1.0.0-M16 + + + + + org.junit + junit-bom + ${junit.jupiter.version} + pom + import + + + + + + org.junit.jupiter + junit-jupiter + ${junit.jupiter.version} + + + jakarta.tck + common + ${project.version} + + + jakarta.tck + libutil + ${project.version} + + + jakarta.tck + runtime + ${project.version} + + + jakarta.tck + jdbc + 11.0.0-SNAPSHOT + + + jakarta.tck + dbprocedures + 3.2.0 + test + + + jakarta.persistence + jakarta.persistence-api + + + + + org.jboss.arquillian.container + arquillian-container-test-spi + ${arquillian.core.version} + + + org.jboss.arquillian.junit5 + arquillian-junit5-container + ${arquillian.core.version} + test + + + org.junit.vintage + junit-vintage-engine + test + + + jakarta.tck.arquillian + arquillian-protocol-appclient + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + arquillian-protocol-common + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + arquillian-protocol-javatest + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + arquillian-protocol-lib + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + tck-porting-lib + ${version.jakarta.tck.arquillian} + + + org.omnifaces.arquillian + arquillian-glassfish-server-managed + 1.6 + test + + + org.apache.derby + derbyclient + 10.15.2.0 + + + org.apache.derby + derbytools + 10.15.2.0 + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.2.0 + + + 1-unpack + + unpack + + pre-integration-test + + + + org.glassfish.main.distributions + ${glassfish-artifact-id} + ${glassfish.container.version} + zip + true + ${project.build.directory} + + + + + + 2-copy-lib + + copy + + pre-integration-test + + + + jakarta.tck.arquillian + arquillian-protocol-lib + true + ${glassfish.lib.dir} + arquillian-protocol-lib.jar + + + jakarta.tck + libutil + true + ${glassfish.lib.dir} + libutil.jar + + + jakarta.tck.arquillian + tck-porting-lib + true + ${glassfish.lib.dir} + tck-porting-lib.jar + + + jakarta.tck + runtime + true + ${glassfish.lib.dir} + runtime.jar + + + jakarta.tck + jdbc + true + ${glassfish.lib.dir} + jdbc-tck.jar + + + org.apache.derby + derbyclient + true + ${glassfish.lib.dir} + derbyclient.jar + + + org.apache.derby + derbytools + true + ${glassfish.lib.dir} + derbytools.jar + + + jakarta.tck.arquillian + arquillian-protocol-lib + true + ${project.build.directory}/protocol + protocol.jar + + + + + + + + org.codehaus.mojo + exec-maven-plugin + + + 1-stop-domain + + exec + + pre-integration-test + + ${exec.asadmin} + + stop-domain + + + + + 2-start-domain + + exec + + pre-integration-test + + ${exec.asadmin} + + start-domain + + + + + 3-start-database + + exec + + pre-integration-test + + ${exec.asadmin} + + start-database + + + + + 4-create-jdbc-pool + + exec + + pre-integration-test + + ${exec.asadmin} + + create-jdbc-connection-pool + --restype + ${restype} + --datasourceclassname + ${datasourceclassname} + --property + ${pool.properties} + --steadypoolsize + ${jdbc.steadypoolsize} + --maxpoolsize + ${jdbc.maxpoolsize} + ${poolName} + + + + + 5-create-jndi + + exec + + pre-integration-test + + ${exec.asadmin} + + create-jdbc-resource + --connectionpoolid + ${poolName} + ${jndiName} + + + + + 6-list-jdbc-connection-pools + + exec + + pre-integration-test + + ${exec.asadmin} + + list-jdbc-connection-pools + + + + + 7-list-jdbc-resources + + exec + + pre-integration-test + + ${exec.asadmin} + + list-jdbc-resources + + + + + 8-stop-domain + + exec + + pre-integration-test + + ${exec.asadmin} + + stop-domain + + + + + 9-start-database + + exec + + pre-integration-test + + ${exec.asadmin} + + start-database + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + initdb + + run + + pre-integration-test + + + + + + + + + + + CALL sqlj.remove_jar('CTS1.dbprocedures', 0); + CALL sqlj.install_jar('${glassfish.lib.dir}/jdbc-tck.jar', 'CTS1.dbprocedures', 0); + CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.database.classpath', 'CTS1.dbprocedures'); + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.2.0 + + + unpack + + unpack + + pre-integration-test + + + + org.glassfish.main.distributions + ${glassfish-artifact-id} + ${glassfish.container.version} + zip + true + ${project.build.directory} + + + + + + + + maven-failsafe-plugin + 3.0.0-M5 + + + jdbc-tests-appclient + + integration-test + verify + + + jakarta.tck:jdbc + + **/*EJB*.* + **/*AppClient*.* + + + ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbytools.jar + ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbyclient.jar + ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derby.jar + ${project.build.directory}/${glassfish.toplevel.dir}/glassfish/modules/glassfish-naming.jar + + + ${project.build.directory}/${glassfish.toplevel.dir} + com.sun.enterprise.naming.impl.SerialInitContextFactory + ${env.TS_HOME} + ${project.basedir} + appclient-arquillian.xml + + + ${project.build.directory}/${glassfish.toplevel.dir} + + + + + + + maven-failsafe-plugin + 3.0.0-M5 + + + jdbc-tests-javatest + + integration-test + verify + + + jakarta.tck:jdbc + + **/*Servlet*.* + **/*JSP*.* + + + ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbytools.jar + ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbyclient.jar + ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derby.jar + ${project.build.directory}/${glassfish.toplevel.dir}/glassfish/modules/glassfish-naming.jar + + + ${project.build.directory}/${glassfish.toplevel.dir} + com.sun.enterprise.naming.impl.SerialInitContextFactory + ${env.TS_HOME} + ${project.basedir} + arquillian.xml + + + ${project.build.directory}/${glassfish.toplevel.dir} + + + + + + + + + + full + + true + + + glassfish + + + + web + + web + + + + diff --git a/glassfish-runner/jdbc-platform-tck/sql/derby/derby.ddl.sprocs.sql b/glassfish-runner/jdbc-platform-tck/sql/derby/derby.ddl.sprocs.sql new file mode 100644 index 0000000000..e1054cc968 --- /dev/null +++ b/glassfish-runner/jdbc-platform-tck/sql/derby/derby.ddl.sprocs.sql @@ -0,0 +1,347 @@ +drop procedure Numeric_Proc ; +create procedure Numeric_Proc(out MAX_PARAM NUMERIC(30,15), out MIN_PARAM NUMERIC(30,15), out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_Proc' parameter style java; + +drop procedure Decimal_Proc ; +create procedure Decimal_Proc(out MAX_PARAM DECIMAL(30,15), out MIN_PARAM DECIMAL(30,15), out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_Proc' parameter style java; + +drop procedure Double_Proc ; +create procedure Double_Proc (out MAX_PARAM DOUBLE PRECISION, out MIN_PARAM DOUBLE PRECISION, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_Proc' parameter style java; + +drop procedure Float_Proc ; +create procedure Float_Proc (out MAX_PARAM FLOAT, out MIN_PARAM FLOAT, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_Proc' parameter style java; + +drop procedure Real_Proc ; +create procedure Real_Proc (out MAX_PARAM REAL, out MIN_PARAM REAL, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_Proc' parameter style java; + +drop procedure Bit_Proc ; +create procedure Bit_Proc (out MAX_PARAM BOOLEAN, out MIN_PARAM BOOLEAN, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_Proc' parameter style java; + +drop procedure Smallint_Proc ; +create procedure Smallint_Proc (out MAX_PARAM SMALLINT, out MIN_PARAM SMALLINT, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_Proc' parameter style java; + +drop procedure Tinyint_Proc ; +create procedure Tinyint_Proc (out MAX_PARAM INTEGER, out MIN_PARAM INTEGER, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_Proc' parameter style java; + +drop procedure Integer_Proc ; +create procedure Integer_Proc (out MAX_PARAM INTEGER, out MIN_PARAM INTEGER, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_Proc' parameter style java; + +drop procedure Bigint_Proc ; +create procedure Bigint_Proc (out MAX_PARAM BIGINT, out MIN_PARAM BIGINT, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_Proc' parameter style java; + +drop procedure Char_Proc ; +create procedure Char_Proc (out NAME_PARAM CHAR(30), out NULL_PARAM CHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Char_Proc' parameter style java; + +drop procedure Varchar_Proc ; +create procedure Varchar_Proc (out NAME_PARAM VARCHAR(30), out NULL_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varchar_Proc' parameter style java; + +drop procedure Longvarchar_Proc ; +create procedure Longvarchar_Proc (out NAME_PARAM VARCHAR(448)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarchar_Proc' parameter style java; + +drop procedure Lvarcharnull_Proc ; +create procedure Lvarcharnull_Proc (out NULL_PARAM VARCHAR(448)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarcharnull_Proc' parameter style java; + +drop procedure Date_Proc ; +create procedure Date_Proc (out MFG_PARAM DATE, out NULL_PARAM DATE) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Date_Proc' parameter style java; + +drop procedure Time_Proc ; +create procedure Time_Proc (out BRK_PARAM TIME, out NULL_PARAM TIME) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Time_Proc' parameter style java; + +drop procedure Timestamp_Proc ; +create procedure Timestamp_Proc (out IN_PARAM TIMESTAMP, out NULL_PARAM TIMESTAMP) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Timestamp_Proc' parameter style java; + +drop procedure Binary_Proc ; +create procedure Binary_Proc (out BINARY_PARAM VARCHAR(24) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Binary_Proc' parameter style java; + +drop procedure Varbinary_Proc ; +create procedure Varbinary_Proc (out VARBINARY_PARAM VARCHAR(255) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varbinary_Proc' parameter style java; + +drop procedure Longvarbinary_Proc ; +create procedure Longvarbinary_Proc (out LONGVARBINARY_PARAM VARCHAR(255) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarbinary_Proc' parameter style java; + +drop procedure Integer_In_Proc ; +create procedure Integer_In_Proc (IN_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_In_Proc' parameter style java; + +drop procedure Integer_InOut_Proc ; +create procedure Integer_InOut_Proc (inout INOUT_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_InOut_Proc' parameter style java; + +drop procedure UpdCoffee_Proc ; +create procedure UpdCoffee_Proc (in TYPE_PARAM NUMERIC) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.UpdCoffee_Proc' parameter style java; + +drop procedure SelCoffee_Proc ; +create procedure SelCoffee_Proc (out KEYID_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.SelCoffee_Proc' parameter style java; + +drop procedure IOCoffee_Proc ; +create procedure IOCoffee_Proc (inout PRICE_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.IOCoffee_Proc' parameter style java; + +drop procedure Coffee_Proc ; +create procedure Coffee_Proc (in TYPE_PARAM Numeric) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Coffee_Proc' parameter style java; + +drop procedure Numeric_Io_Max ; +create procedure Numeric_Io_Max (inout MAX_PARAM NUMERIC(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_Io_Max' parameter style java; + +drop procedure Numeric_Io_Min ; +create procedure Numeric_Io_Min (inout MIN_PARAM NUMERIC(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_Io_Min' parameter style java; + +drop procedure Numeric_Io_Null ; +create procedure Numeric_Io_Null (inout NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_Io_Null' parameter style java; + +drop procedure Decimal_Io_Max ; +create procedure Decimal_Io_Max (inout MAX_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_Io_Max' parameter style java; + +drop procedure Decimal_Io_Min ; +create procedure Decimal_Io_Min (inout MIN_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_Io_Min' parameter style java; + +drop procedure Decimal_Io_Null ; +create procedure Decimal_Io_Null (inout NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_Io_Null' parameter style java; + +drop procedure Double_Io_Max ; +create procedure Double_Io_Max (inout MAX_PARAM DOUBLE PRECISION) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_Io_Max' parameter style java; + +drop procedure Double_Io_Min ; +create procedure Double_Io_Min (inout MIN_PARAM DOUBLE PRECISION) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_Io_Min' parameter style java; + +drop procedure Double_Io_Null ; +create procedure Double_Io_Null (inout NULL_PARAM DOUBLE PRECISION) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_Io_Null' parameter style java; + +drop procedure Float_Io_Max ; +create procedure Float_Io_Max (inout MAX_PARAM FLOAT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_Io_Max' parameter style java; + +drop procedure Float_Io_Min ; +create procedure Float_Io_Min (inout MIN_PARAM FLOAT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_Io_Min' parameter style java; + +drop procedure Float_Io_Null ; +create procedure Float_Io_Null (inout NULL_PARAM FLOAT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_Io_Null' parameter style java; + +drop procedure Real_Io_Max ; +create procedure Real_Io_Max (inout MAX_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_Io_Max' parameter style java; + +drop procedure Real_Io_Min ; +create procedure Real_Io_Min (inout MIN_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_Io_Min' parameter style java; + +drop procedure Real_Io_Null ; +create procedure Real_Io_Null (inout NULL_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_Io_Null' parameter style java; + +drop procedure Bit_Io_Max ; +create procedure Bit_Io_Max (inout MAX_PARAM BOOLEAN) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_Io_Max' parameter style java; + +drop procedure Bit_Io_Min ; +create procedure Bit_Io_Min (inout MIN_PARAM BOOLEAN) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_Io_Min' parameter style java; + +drop procedure Bit_Io_Null ; +create procedure Bit_Io_Null (inout NULL_PARAM BOOLEAN) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_Io_Null' parameter style java; + +drop procedure Smallint_Io_Max ; +create procedure Smallint_Io_Max (inout MAX_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_Io_Max' parameter style java; + +drop procedure Smallint_Io_Min ; +create procedure Smallint_Io_Min (inout MIN_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_Io_Min' parameter style java; + +drop procedure Smallint_Io_Null ; +create procedure Smallint_Io_Null (inout NULL_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_Io_Null' parameter style java; + +drop procedure Tinyint_Io_Max ; +create procedure Tinyint_Io_Max (inout MAX_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_Io_Max' parameter style java; + +drop procedure Tinyint_Io_Min ; +create procedure Tinyint_Io_Min (inout MIN_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_Io_Min' parameter style java; + +drop procedure Tinyint_Io_Null ; +create procedure Tinyint_Io_Null (inout NULL_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_Io_Null' parameter style java; + +drop procedure Integer_Io_Max ; +create procedure Integer_Io_Max (inout MAX_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_Io_Max' parameter style java; + +drop procedure Integer_Io_Min ; +create procedure Integer_Io_Min (inout MIN_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_Io_Min' parameter style java; + +drop procedure Integer_Io_Null ; +create procedure Integer_Io_Null (inout NULL_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_Io_Null' parameter style java; + +drop procedure Bigint_Io_Max ; +create procedure Bigint_Io_Max (inout MAX_PARAM BIGINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_Io_Max' parameter style java; + +drop procedure Bigint_Io_Min ; +create procedure Bigint_Io_Min (inout MIN_PARAM BIGINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_Io_Min' parameter style java; + +drop procedure Bigint_Io_Null ; +create procedure Bigint_Io_Null (inout NULL_PARAM BIGINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_Io_Null' parameter style java; + +drop procedure Char_Io_Name ; +create procedure Char_Io_Name (inout NAME_PARAM CHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Char_Io_Name' parameter style java; + +drop procedure Char_Io_Null ; +create procedure Char_Io_Null (inout NULL_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Char_Io_Null' parameter style java; + +drop procedure Varchar_Io_Name ; +create procedure Varchar_Io_Name (inout NAME_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varchar_Io_Name' parameter style java; + +drop procedure Varchar_Io_Null ; +create procedure Varchar_Io_Null (inout NULL_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varchar_Io_Null' parameter style java; + +drop procedure Lvarchar_Io_Name ; +create procedure Lvarchar_Io_Name (inout NAME_PARAM VARCHAR(448)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarchar_Io_Name' parameter style java; + +drop procedure Lvarchar_Io_Null ; +create procedure Lvarchar_Io_Null (inout NULL_PARAM VARCHAR(448)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarchar_Io_Null' parameter style java; + +drop procedure Date_Io_Mfg ; +create procedure Date_Io_Mfg (inout MFG_PARAM DATE) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Date_Io_Mfg' parameter style java; + +drop procedure Date_Io_Null ; +create procedure Date_Io_Null (inout NULL_PARAM DATE) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Date_Io_Null' parameter style java; + +drop procedure Time_Io_Brk ; +create procedure Time_Io_Brk (inout BRK_PARAM TIME) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Time_Io_Brk' parameter style java; + +drop procedure Time_Io_Null ; +create procedure Time_Io_Null (inout NULL_PARAM TIME) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Time_Io_Null' parameter style java; + +drop procedure Timestamp_Io_Intime ; +create procedure Timestamp_Io_Intime (inout INTIME_PARAM TIMESTAMP) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Timestamp_Io_Intime' parameter style java; + +drop procedure Timestamp_Io_Null ; +create procedure Timestamp_Io_Null (inout NULL_PARAM TIMESTAMP) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Timestamp_Io_Null' parameter style java; + +drop procedure Binary_Proc_Io ; +create procedure Binary_Proc_Io (inout BINARY_PARAM VARCHAR(24) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Binary_Proc_Io' parameter style java; + +drop procedure Varbinary_Proc_Io ; +create procedure Varbinary_Proc_Io (inout VARBINARY_PARAM VARCHAR(255) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varbinary_Proc_Io' parameter style java; + +drop procedure Longvarbinary_Io ; +create procedure Longvarbinary_Io (inout LONGVARBINARY_PARAM VARCHAR(255) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarbinary_Io' parameter style java; + +drop procedure Numeric_In_Max ; +create procedure Numeric_In_Max (in MAX_PARAM NUMERIC(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_In_Max' parameter style java; + +drop procedure Numeric_In_Min ; +create procedure Numeric_In_Min (in MIN_PARAM NUMERIC(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_In_Min' parameter style java; + +drop procedure Numeric_In_Null ; +create procedure Numeric_In_Null (in NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_In_Null' parameter style java; + +drop procedure Decimal_In_Max ; +create procedure Decimal_In_Max (in MAX_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_In_Max' parameter style java; + +drop procedure Decimal_In_Min ; +create procedure Decimal_In_Min (in MIN_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_In_Min' parameter style java; + +drop procedure Decimal_In_Null ; +create procedure Decimal_In_Null (in NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_In_Null' parameter style java; + +drop procedure Double_In_Max ; +create procedure Double_In_Max (in MAX_PARAM DOUBLE PRECISION) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_In_Max' parameter style java; + +drop procedure Double_In_Min ; +create procedure Double_In_Min (in MIN_PARAM DOUBLE PRECISION) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_In_Min' parameter style java; + +drop procedure Double_In_Null ; +create procedure Double_In_Null (in NULL_PARAM DOUBLE PRECISION) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_In_Null' parameter style java; + +drop procedure Float_In_Max ; +create procedure Float_In_Max (in MAX_PARAM FLOAT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_In_Max' parameter style java; + +drop procedure Float_In_Min ; +create procedure Float_In_Min (in MIN_PARAM FLOAT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_In_Min' parameter style java; + +drop procedure Float_In_Null ; +create procedure Float_In_Null (in NULL_PARAM FLOAT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_In_Null' parameter style java; + +drop procedure Real_In_Max ; +create procedure Real_In_Max (in MAX_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_In_Max' parameter style java; + +drop procedure Real_In_Min ; +create procedure Real_In_Min (in MIN_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_In_Min' parameter style java; + +drop procedure Real_In_Null ; +create procedure Real_In_Null (in NULL_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_In_Null' parameter style java; + +drop procedure Bit_In_Max ; +create procedure Bit_In_Max (in MAX_PARAM BOOLEAN) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_In_Max' parameter style java; + +drop procedure Bit_In_Min ; +create procedure Bit_In_Min (in MIN_PARAM BOOLEAN) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_In_Min' parameter style java; + +drop procedure Bit_In_Null ; +create procedure Bit_In_Null (in NULL_PARAM BOOLEAN) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_In_Null' parameter style java; + +drop procedure Smallint_In_Max ; +create procedure Smallint_In_Max (in MAX_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_In_Max' parameter style java; + +drop procedure Smallint_In_Min ; +create procedure Smallint_In_Min (in MIN_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_In_Min' parameter style java; + +drop procedure Smallint_In_Null ; +create procedure Smallint_In_Null (in NULL_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_In_Null' parameter style java; + +drop procedure Tinyint_In_Max ; +create procedure Tinyint_In_Max (in MAX_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_In_Max' parameter style java; + +drop procedure Tinyint_In_Min ; +create procedure Tinyint_In_Min (in MIN_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_In_Min' parameter style java; + +drop procedure Tinyint_In_Null ; +create procedure Tinyint_In_Null (in NULL_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_In_Null' parameter style java; + +drop procedure Integer_In_Max ; +create procedure Integer_In_Max (in MAX_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_In_Max' parameter style java; + +drop procedure Integer_In_Min ; +create procedure Integer_In_Min (in MIN_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_In_Min' parameter style java; + +drop procedure Integer_In_Null ; +create procedure Integer_In_Null (in NULL_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_In_Null' parameter style java; + +drop procedure Bigint_In_Max ; +create procedure Bigint_In_Max (in MAX_PARAM BIGINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_In_Max' parameter style java; + +drop procedure Bigint_In_Min ; +create procedure Bigint_In_Min (in MIN_PARAM BIGINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_In_Min' parameter style java; + +drop procedure Bigint_In_Null ; +create procedure Bigint_In_Null (in NULL_PARAM BIGINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_In_Null' parameter style java; + +drop procedure Char_In_Name ; +create procedure Char_In_Name (in NAME_PARAM CHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Char_In_Name' parameter style java; + +drop procedure Char_In_Null ; +create procedure Char_In_Null (in NULL_PARAM CHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Char_In_Null' parameter style java; + +drop procedure Varchar_In_Name ; +create procedure Varchar_In_Name (in NAME_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varchar_In_Name' parameter style java; + +drop procedure Varchar_In_Null ; +create procedure Varchar_In_Null (in NULL_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varchar_In_Null' parameter style java; + +drop procedure Lvarchar_In_Name ; +create procedure Lvarchar_In_Name (in NAME_PARAM VARCHAR(448)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarchar_In_Name' parameter style java; + +drop procedure Lvarchar_In_Null ; +create procedure Lvarchar_In_Null (in NULL_PARAM VARCHAR(448)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarchar_In_Null' parameter style java; + +drop procedure Date_In_Mfg ; +create procedure Date_In_Mfg (in MFG_PARAM DATE) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Date_In_Mfg' parameter style java; + +drop procedure Date_In_Null ; +create procedure Date_In_Null (in NULL_PARAM DATE) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Date_In_Null' parameter style java; + +drop procedure Time_In_Brk ; +create procedure Time_In_Brk (in BRK_PARAM TIME) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Time_In_Brk' parameter style java; + +drop procedure Time_In_Null ; +create procedure Time_In_Null (in NULL_PARAM TIME) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Time_In_Null' parameter style java; + +drop procedure Timestamp_In_Intime ; +create procedure Timestamp_In_Intime (in INTIME_PARAM TIMESTAMP) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Timestamp_In_Intime' parameter style java; + +drop procedure Timestamp_In_Null ; +create procedure Timestamp_In_Null (in NULL_PARAM TIMESTAMP) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Timestamp_In_Null' parameter style java; + +drop procedure Binary_Proc_In ; +create procedure Binary_Proc_In (in BINARY_PARAM VARCHAR(24) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Binary_Proc_In' parameter style java; + +drop procedure Varbinary_Proc_In ; +create procedure Varbinary_Proc_In (in VARBINARY_PARAM VARCHAR(255) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varbinary_Proc_In' parameter style java; + +drop procedure Longvarbinary_In ; +create procedure Longvarbinary_In (in LONGVARBINARY_PARAM VARCHAR(255) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarbinary_Proc_In' parameter style java; diff --git a/glassfish-runner/jdbc-platform-tck/sql/derby/derby.ddl.sql b/glassfish-runner/jdbc-platform-tck/sql/derby/derby.ddl.sql new file mode 100644 index 0000000000..b2bd297182 --- /dev/null +++ b/glassfish-runner/jdbc-platform-tck/sql/derby/derby.ddl.sql @@ -0,0 +1,176 @@ +drop table ctstable2 ; +drop table ctstable1 ; +create table ctstable1 (TYPE_ID int NOT NULL, TYPE_DESC varchar(32), primary key(TYPE_ID)) ; +create table ctstable2 (KEY_ID int NOT NULL, COF_NAME varchar(32), PRICE float, TYPE_ID int, primary key(KEY_ID), foreign key(TYPE_ID) references ctstable1) ; + +drop table concurrencetable ; +create table concurrencetable (TYPE_ID int NOT NULL, TYPE_DESC varchar(32), primary key(TYPE_ID)) ; + +drop table Numeric_Tab ; +create table Numeric_Tab (MAX_VAL NUMERIC(30,15), MIN_VAL NUMERIC(30,15), NULL_VAL NUMERIC(30,15)) ; + +drop table Decimal_Tab ; + create table Decimal_Tab (MAX_VAL DECIMAL(30,15),MIN_VAL DECIMAL(30,15), NULL_VAL DECIMAL(30,15)) ; + +drop table Double_Tab ; +create table Double_Tab (MAX_VAL DOUBLE PRECISION, MIN_VAL DOUBLE PRECISION, NULL_VAL DOUBLE PRECISION) ; + +drop table Float_Tab ; +create table Float_Tab (MAX_VAL FLOAT, MIN_VAL FLOAT, NULL_VAL FLOAT) ; + +drop table Real_Tab ; +create table Real_Tab (MAX_VAL REAL, MIN_VAL REAL,NULL_VAL REAL) ; + +drop table Bit_Tab ; +create table Bit_Tab (MAX_VAL BOOLEAN, MIN_VAL BOOLEAN, NULL_VAL SMALLINT) ; + +drop table Smallint_Tab ; +create table Smallint_Tab (MAX_VAL SMALLINT, MIN_VAL SMALLINT, NULL_VAL SMALLINT) ; + +drop table Tinyint_Tab ; +create table Tinyint_Tab (MAX_VAL SMALLINT, MIN_VAL SMALLINT, NULL_VAL SMALLINT) ; + +drop table Integer_Tab ; +create table Integer_Tab (MAX_VAL INTEGER, MIN_VAL INTEGER, NULL_VAL INTEGER) ; + +drop table Bigint_Tab ; +create table Bigint_Tab (MAX_VAL BIGINT, MIN_VAL BIGINT, NULL_VAL BIGINT) ; + +drop table Char_Tab ; +create table Char_Tab (COFFEE_NAME CHAR(30), NULL_VAL CHAR(30)) ; + +drop table Varchar_Tab ; +create table Varchar_Tab (COFFEE_NAME VARCHAR(30), NULL_VAL VARCHAR(30)) ; + +drop table Longvarchar_Tab ; +create table Longvarchar_Tab (COFFEE_NAME LONG VARCHAR) ; + +drop table Longvarcharnull_Tab ; +create table Longvarcharnull_Tab (NULL_VAL LONG VARCHAR) ; + +drop table Date_Tab ; +create table Date_Tab (MFG_DATE DATE, NULL_VAL DATE) ; + +drop table Time_Tab ; +create table Time_Tab (BRK_TIME TIME, NULL_VAL TIME) ; + +drop table Timestamp_Tab ; +create table Timestamp_Tab (IN_TIME TIMESTAMP, NULL_VAL TIMESTAMP) ; + +drop table Binary_Tab ; +create table Binary_Tab (BINARY_VAL VARCHAR(24) FOR BIT DATA) ; + +drop table Varbinary_Tab ; +create table Varbinary_Tab (VARBINARY_VAL VARCHAR(255) FOR BIT DATA) ; + +drop table Longvarbinary_Tab ; +create table Longvarbinary_Tab (LONGVARBINARY_VAL VARCHAR(255) FOR BIT DATA) ; + +drop table ctstable3 ; +create table ctstable3(STRING1 VARCHAR(20), STRING2 VARCHAR(20), STRING3 VARCHAR(20), NUMCOL INTEGER, FLOATCOL FLOAT, DATECOL DATE, TIMECOL TIME, TSCOL1 TIMESTAMP, TSCOL2 TIMESTAMP) ; + +drop table ctstable4 ; +create table ctstable4(STRING4 VARCHAR(20), NUMCOL NUMERIC) ; + + +drop table TxBean_Tab1 ; +create table TxBean_Tab1 (KEY_ID int, TABONE_NAME varchar(32), PRICE float) ; + +drop table TxBean_Tab2 ; +create table TxBean_Tab2 (KEY_ID int, TABTWO_NAME varchar(32), PRICE float) ; + ; +drop table TxEBean_Tab ; +create table TxEBean_Tab (KEY_ID INTEGER NOT NULL, BRAND_NAME VARCHAR(32), PRICE FLOAT, primary key(KEY_ID)) ; + +drop table Integration_Tab ; +create table Integration_Tab (ACCOUNT INTEGER NOT NULL, BALANCE FLOAT, primary key(ACCOUNT)) ; + +drop table BB_Tab ; +create table BB_Tab (KEY_ID INTEGER NOT NULL, BRAND_NAME varchar(32), PRICE float, primary key(KEY_ID)) ; + +drop table JTA_Tab1 ; +create table JTA_Tab1 (KEY_ID int, COF_NAME varchar(32), PRICE float) ; + +drop table JTA_Tab2 ; +create table JTA_Tab2 (KEY_ID int, CHOC_NAME varchar(32), PRICE float) ; + +drop table Deploy_Tab1 ; +create table Deploy_Tab1 (KEY_ID INTEGER NOT NULL, BRAND_NAME varchar(32), PRICE float, primary key(KEY_ID)) ; + +drop table Deploy_Tab2 ; +create table Deploy_Tab2 (KEY_ID VARCHAR(100) NOT NULL, BRAND_NAME varchar(32), PRICE float, primary key(KEY_ID)) ; + +drop table Deploy_Tab3 ; +create table Deploy_Tab3 (KEY_ID BIGINT NOT NULL, BRAND_NAME varchar(32), PRICE float, primary key(KEY_ID)) ; + +drop table Deploy_Tab4 ; +create table Deploy_Tab4 (KEY_ID FLOAT NOT NULL, BRAND_NAME varchar(32), PRICE float, primary key(KEY_ID)) ; + +drop table Deploy_Tab5 ; +create table Deploy_Tab5 (KEY_ID1 int NOT NULL, KEY_ID2 varchar(100) NOT NULL, KEY_ID3 float NOT NULL, BRAND_NAME varchar(32), PRICE float, primary key(KEY_ID1, KEY_ID2, KEY_ID3)) ; + +drop table Xa_Tab1 ; +create table Xa_Tab1 (col1 int NOT NULL, col2 varchar(32), col3 varchar(32), primary key(col1)) ; + +drop table Xa_Tab2 ; +create table Xa_Tab2 (col1 int NOT NULL, col2 varchar(32), col3 varchar(32), primary key(col1)) ; + +drop table SEC_Tab1 ; +create table SEC_Tab1 (KEY_ID INTEGER NOT NULL, PRICE float, BRAND varchar(32), primary key(KEY_ID)) ; + +drop table Connector_Tab ; +create table Connector_Tab (KEY_ID int, PRODUCT_NAME varchar(32), PRICE float) ; + +drop table Coffee_Table ; +create table Coffee_Table (KEY_ID INTEGER NOT NULL, BRAND_NAME varchar(32) NOT NULL, PRICE float NOT NULL, primary key(KEY_ID)) ; + +drop table Coffee_StringPK_Table ; +create table Coffee_StringPK_Table (KEY_ID VARCHAR(100) NOT NULL, BRAND_NAME varchar(32) NOT NULL, PRICE float NOT NULL, primary key(KEY_ID)) ; + +drop table Coffee_LongPK_Table ; +create table Coffee_LongPK_Table (KEY_ID BIGINT NOT NULL, BRAND_NAME varchar(32) NOT NULL, PRICE float NOT NULL, primary key(KEY_ID)) ; + +drop table Coffee_FloatPK_Table ; +create table Coffee_FloatPK_Table (KEY_ID FLOAT NOT NULL, BRAND_NAME varchar(32) NOT NULL, PRICE float NOT NULL, primary key(KEY_ID)) ; + +drop table Coffee_CompoundPK_Table ; +create table Coffee_CompoundPK_Table (KEY_ID1 int NOT NULL, KEY_ID2 varchar(100) NOT NULL, KEY_ID3 float NOT NULL, BRAND_NAME varchar(32) NOT NULL, PRICE float NOT NULL, primary key(KEY_ID1, KEY_ID2, KEY_ID3)) ; + +DROP TABLE COFFEEEJBLITE; +CREATE TABLE COFFEEEJBLITE (ID INT NOT NULL, BRANDNAME VARCHAR(25), PRICE REAL, CONSTRAINT PK_COFFEEEJBLITE PRIMARY KEY (ID)); + + +DROP TABLE EJB_AUTOCLOSE_TAB ; +CREATE TABLE EJB_AUTOCLOSE_TAB (NAME VARCHAR(25) NOT NULL, MESSAGE VARCHAR(25) NOT NULL); + + +DROP TABLE caller ; +DROP TABLE caller_groups ; + +CREATE TABLE caller(name VARCHAR(64) PRIMARY KEY, password VARCHAR(1024)) ; +CREATE TABLE caller_groups(caller_name VARCHAR(64), group_name VARCHAR(64)) ; + +INSERT INTO caller VALUES('tom', 'secret1') ; +INSERT INTO caller VALUES('emma', 'secret2') ; +INSERT INTO caller VALUES('bob', 'secret3') ; + +INSERT INTO caller_groups VALUES('tom', 'Administrator') ; +INSERT INTO caller_groups VALUES('tom', 'Manager') ; + +INSERT INTO caller_groups VALUES('emma', 'Administrator') ; +INSERT INTO caller_groups VALUES('emma', 'Employee') ; + +INSERT INTO caller_groups VALUES('bob', 'Administrator') ; + + INSERT INTO caller VALUES('tom_hash512_saltsize16', 'PBKDF2WithHmacSHA512:1024:DbjXqT9p8VhJ7OtU6DrqDw==:p/qihG8IZKkz03JzKd6XXA==') ; + INSERT INTO caller VALUES('tom_hash256_saltsize32', 'PBKDF2WithHmacSHA256:2048:suVayUIJMQMc6wCgckvAIgKRlo1UkxyFXhXbTxX6C7s=:cvdHkBXVUCN2WL3LRAYodeCdNZxEM4RLlNCCYP68Kmg=') ; + INSERT INTO caller VALUES('tom_hash512_saltsize32', 'PBKDF2WithHmacSHA512:2048:dPTjUfiklfyg2bas/KOQKqEfdtoXK8YvbBscIxA8tNg=:ixBg0wr3ySBI86y8HP7+Yw==') ; + + INSERT INTO caller_groups VALUES('tom_hash512_saltsize16', 'Administrator') ; + INSERT INTO caller_groups VALUES('tom_hash512_saltsize16', 'Manager') ; + + INSERT INTO caller_groups VALUES('tom_hash256_saltsize32', 'Administrator') ; + INSERT INTO caller_groups VALUES('tom_hash256_saltsize32', 'Manager') ; + + INSERT INTO caller_groups VALUES('tom_hash512_saltsize32', 'Administrator') ; + INSERT INTO caller_groups VALUES('tom_hash512_saltsize32', 'Manager') ; diff --git a/glassfish-runner/jdbc-platform-tck/sql/derby/derby.dml.sql b/glassfish-runner/jdbc-platform-tck/sql/derby/derby.dml.sql new file mode 100644 index 0000000000..f1ccdae780 --- /dev/null +++ b/glassfish-runner/jdbc-platform-tck/sql/derby/derby.dml.sql @@ -0,0 +1,770 @@ +# @(#)ctssql.dml.derby 1.16 01/06/20 +#------------------------------------------------- +#All sql DML statements used in the test cases against derby +#------------------------------------------------- + + + +Dbschema_Tab1_Insert=insert into ctstable2 values(?, ?, ?, ?) +Dbschema_Tab2_Insert=insert into ctstable1 values(?, ?) + +Dbschema_Tab1_Delete=delete from ctstable2 +Dbschema_Tab2_Delete=delete from ctstable1 + +Dbschema_Concur_Insert=insert into concurrencetable values(?, ?) +Dbschema_Concur_Delete=delete from concurrencetable + +#****************************************************************** +# SQL Statements for creating procedures in side the test. +#****************************************************************** + +UpdCoffee_Proc=create method alias UpdCoffee_Proc for com.sun.ts.lib.tests.jdbc.CS_Procs.UpdCoffee_Proc + +#****************************************************************** +# SQL Statements for deleting tables for appropriate JDBC Datatypes +#****************************************************************** + +Numeric_Tab_Delete=delete from Numeric_Tab + +Decimal_Tab_Delete=delete from Decimal_Tab + +Double_Tab_Delete=delete from Double_Tab + +Float_Tab_Delete=delete from Float_Tab + +Real_Tab_Delete=delete from Real_Tab + +Bit_Tab_Delete=delete from Bit_Tab + +Smallint_Tab_Delete=delete from Smallint_Tab + +Tinyint_Tab_Delete=delete from Tinyint_Tab + +Integer_Tab_Delete=delete from Integer_Tab + +Bigint_Tab_Delete=delete from Bigint_Tab + +Char_Tab_Delete=delete from Char_Tab + +Varchar_Tab_Delete=delete from Varchar_Tab + +Longvarchar_Tab_Delete=delete from Longvarchar_Tab + +Longvarcharnull_Tab_Delete=delete from Longvarcharnull_Tab + +Date_Tab_Delete=delete from Date_Tab + +Time_Tab_Delete=delete from Time_Tab + +Timestamp_Tab_Delete=delete from Timestamp_Tab + +Binary_Tab_Delete=delete from Binary_Tab + +Varbinary_Tab_Delete=delete from Varbinary_Tab + +Longvarbinary_Tab_Delete=delete from Longvarbinary_Tab + + + +#**************************************************** +# SQL Statements for inserting values into the tables +#**************************************************** + +Numeric_Tab_Insert=insert into Numeric_Tab values(9999999999,0.000000000000001, null) + +Decimal_Tab_Insert= insert into Decimal_Tab values(9999999999,0.000000000000001, null) + +#Double_Tab_Insert=insert into Double_Tab values(1.7976931348623157E308,4.9E-324,null) +Double_Tab_Insert=insert into Double_Tab values(1.0E125,1.0E-130,null) + +Float_Tab_Insert=insert into Float_Tab values(3.4028235E37,1.4E-45,null) + +Real_Tab_Insert= insert into Real_Tab values(3.402E38,1.4E-37, null) + +Bit_Tab_Insert=insert into Bit_Tab values(true,false,null) + +Smallint_Tab_Insert= insert into Smallint_Tab values(32767,-32768,null) + +Tinyint_Tab_Insert=insert into Tinyint_Tab values(127,0,null) + +Integer_Tab_Insert=insert into Integer_Tab values(2147483647,-2147483648,null) + +Bigint_Tab_Insert= insert into Bigint_Tab values(9223372036854775807,-9223372036854775808,null) + +Char_Tab_Insert= insert into Char_Tab values('Test Coffee', null) + +Varchar_Tab_Insert= insert into Varchar_Tab values('Test Coffee',null) + +Longvarchar_Tab_Insert= insert into Longvarchar_Tab values('Test Coffee') + +Longvarcharnull_Tab_Insert= insert into Longvarcharnull_Tab values(null) + +Date_Tab_Insert=insert into Date_Tab values({d '1999-05-05'}, null) + +Time_Tab_Insert= insert into Time_Tab values({t '12:59:59'}, null) + +Timestamp_Tab_Insert= insert into Timestamp_Tab values({ts '1999-12-31 12:59:59'}, null) + +Binary_Tab_Insert= insert into Binary_Tab values(null) + +Varbinary_Tab_Insert= insert into Varbinary_Tab values(null) + +Longvarbinary_Tab_Insert= insert into Longvarbinary_Tab values(null) + +Boolean_Tab_Insert = insert into Boolean_Tab values(true,false,null) + + +#***************************************************** +# SQL Statements for retrieving values from the tables +#***************************************************** + +SelCoffeeAll=SELECT COF_NAME, PRICE FROM ctstable2 +SelCoffeeNull=select * from ctstable2 where TYPE_ID=0 + +Numeric_Query_Max=Select MAX_VAL from Numeric_Tab +Numeric_Query_Min=Select MIN_VAL from Numeric_Tab +Numeric_Query_Null=Select NULL_VAL from Numeric_Tab + +Decimal_Query_Max=Select MAX_VAL from Decimal_Tab +Decimal_Query_Min=Select MIN_VAL from Decimal_Tab +Decimal_Query_Null=Select NULL_VAL from Decimal_Tab + +Double_Query_Max=Select MAX_VAL from Double_Tab +Double_Query_Min=Select MIN_VAL from Double_Tab +Double_Query_Null=Select NULL_VAL from Double_Tab + +Float_Query_Max=Select MAX_VAL from Float_Tab +Float_Query_Min=Select MIN_VAL from Float_Tab +Float_Query_Null=Select NULL_VAL from Float_Tab + +Real_Query_Max=Select MAX_VAL from Real_Tab +Real_Query_Min=Select MIN_VAL from Real_Tab +Real_Query_Null=Select NULL_VAL from Real_Tab + +Bit_Query_Max=Select MAX_VAL from Bit_Tab +Bit_Query_Min=Select MIN_VAL from Bit_Tab +Bit_Query_Null=Select NULL_VAL from Bit_Tab + +Smallint_Query_Max=Select MAX_VAL from Smallint_Tab +Smallint_Query_Min=Select MIN_VAL from Smallint_Tab +Smallint_Query_Null=Select NULL_VAL from Smallint_Tab + +Tinyint_Query_Max=Select MAX_VAL from Tinyint_Tab +Tinyint_Query_Min=Select MIN_VAL from Tinyint_Tab +Tinyint_Query_Null=Select NULL_VAL from Tinyint_Tab + +Integer_Query_Max=Select MAX_VAL from Integer_Tab +Integer_Query_Min=Select MIN_VAL from Integer_Tab +Integer_Query_Null=Select NULL_VAL from Integer_Tab + +Bigint_Query_Max=Select MAX_VAL from Bigint_Tab +Bigint_Query_Min=Select MIN_VAL from Bigint_Tab +Bigint_Query_Null=Select NULL_VAL from Bigint_Tab + +Char_Query_Name=Select COFFEE_NAME from Char_Tab +Char_Query_Null=Select NULL_VAL from Char_Tab + +Varchar_Query_Name=Select COFFEE_NAME from Varchar_Tab +Varchar_Query_Null=Select NULL_VAL from Varchar_Tab + +Longvarchar_Query_Name=Select COFFEE_NAME from Longvarchar_Tab +Longvarchar_Query_Null=Select NULL_VAL from Longvarcharnull_Tab + +Date_Query_Mfg=Select MFG_DATE from Date_Tab +Date_Query_Null=Select NULL_VAL from Date_Tab + +Time_Query_Brk=Select BRK_TIME from Time_Tab +Time_Query_Null=Select NULL_VAL from Time_Tab + +Timestamp_Query_In=Select IN_TIME from Timestamp_Tab +Timestamp_Query_Null=Select NULL_VAL from Timestamp_Tab + +Binary_Query_Val=Select BINARY_VAL from Binary_Tab +Varbinary_Query_Val=Select VARBINARY_VAL from Varbinary_Tab +Longvarbinary_Query_Val=Select LONGVARBINARY_VAL from Longvarbinary_Tab + + + + + +#*************************************** +# SQL Statements for updating the tables +#*************************************** + +Numeric_Tab_Max_Update=update Numeric_Tab set MAX_VAL=? +Numeric_Tab_Min_Update=update Numeric_Tab set MIN_VAL=? +Numeric_Tab_Null_Update=update Numeric_Tab set NULL_VAL=? + +Decimal_Tab_Max_Update=update Decimal_Tab set MAX_VAL=? +Decimal_Tab_Min_Update=update Decimal_Tab set MIN_VAL=? +Decimal_Tab_Null_Update=update Decimal_Tab set NULL_VAL=? + +Double_Tab_Max_Update=update Double_Tab set MAX_VAL=? +Double_Tab_Min_Update=update Double_Tab set MIN_VAL=? +Double_Tab_Null_Update=update Double_Tab set NULL_VAL=? + +Float_Tab_Max_Update=update Float_Tab set MAX_VAL=? +Float_Tab_Min_Update=update Float_Tab set MIN_VAL=? +Float_Tab_Null_Update=update Float_Tab set NULL_VAL=? + +Real_Tab_Max_Update=update Real_Tab set MAX_VAL=? +Real_Tab_Min_Update=update Real_Tab set MIN_VAL=? +Real_Tab_Null_Update=update Real_Tab set NULL_VAL=? + +Bit_Tab_Max_Update=update Bit_Tab set MAX_VAL=? +Bit_Tab_Min_Update=update Bit_Tab set MIN_VAL=? +Bit_Tab_Null_Update=update Bit_Tab set NULL_VAL=? + +Smallint_Tab_Max_Update=update Smallint_Tab set MAX_VAL=? +Smallint_Tab_Min_Update=update Smallint_Tab set MIN_VAL=? +Smallint_Tab_Null_Update=update Smallint_Tab set NULL_VAL=? + +Tinyint_Tab_Max_Update=update Tinyint_Tab set MAX_VAL=? +Tinyint_Tab_Min_Update=update Tinyint_Tab set MIN_VAL=? +Tinyint_Tab_Null_Update=update Tinyint_Tab set NULL_VAL=? + +Integer_Tab_Max_Update=update Integer_Tab set MAX_VAL=? +Integer_Tab_Min_Update=update Integer_Tab set MIN_VAL=? +Integer_Tab_Null_Update=update Integer_Tab set NULL_VAL=? + +Bigint_Tab_Max_Update=update Bigint_Tab set MAX_VAL=? +Bigint_Tab_Min_Update=update Bigint_Tab set MIN_VAL=? +Bigint_Tab_Null_Update=update Bigint_Tab set NULL_VAL=? + +Char_Tab_Name_Update=update Char_Tab set COFFEE_NAME=? +Char_Tab_Null_Update=update Char_Tab set NULL_VAL=? + +Varchar_Tab_Name_Update=update Varchar_Tab set COFFEE_NAME=? +Varchar_Tab_Null_Update=update Varchar_Tab set NULL_VAL=? + +Longvarchar_Tab_Name_Update=update Longvarchar_Tab set COFFEE_NAME=? +Longvarchar_Tab_Null_Update=update Longvarcharnull_Tab set NULL_VAL=? + +Date_Tab_Mfgdate_Update=update Date_Tab set MFG_DATE=? +Date_Tab_Null_Update=update Date_Tab set NULL_VAL=? + +Time_Tab_Brktime_Update=update Time_Tab set BRK_TIME=? +Time_Tab_Null_Update=update Time_Tab set NULL_VAL=? + +Timestamp_Tab_Intime_Update=update Timestamp_Tab set IN_TIME=? +Timestamp_Tab_Null_Update=update Timestamp_Tab set NULL_VAL=? + +Binary_Tab_Val_Update=update Binary_Tab set BINARY_VAL=? +Varbinary_Tab_Val_Update=update Varbinary_Tab set VARBINARY_VAL=? +Longvarbinary_Tab_Val_Update=update Longvarbinary_Tab set LONGVARBINARY_VAL=? + +CoffeeTab_Query=select COF_NAME,PRICE from ctstable2 where TYPE_ID=? +CoffeeTab_Delete=delete from ctstable2 where KEY_ID=? + +CoffeeTab_Select=select PRICE from ctstable2 where KEY_ID=? +CoffeeTab_Update=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=? + +Ins_Coffee_Tab=insert into ctstable2 values (9,'COFFEE-9',9.0,5) +Del_Coffee_Tab=delete from ctstable2 where KEY_ID=9 +Upd_Coffee_Tab=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=1 +Sel_Coffee_Tab=select PRICE from ctstable2 where KEY_ID>4 + +#********************************************************************************** +# is used in ResultSet. To update with BIT value. +#********************************************************************************** +Update_decimal_tab=update Decimal_Tab set MAX_VAL=1.0, MIN_VAL=0.0, NULL_VAL=null +Update_numeric_tab=update Numeric_Tab set MAX_VAL=1.0, MIN_VAL=0.0, NULL_VAL=null +Update_char_tab1=update Char_Tab set COFFEE_NAME=1, NULL_VAL=null +Update_char_tab2=update Char_Tab set COFFEE_NAME=0, NULL_VAL=null +Update_varchar_tab1=update Varchar_Tab set COFFEE_NAME=1, NULL_VAL=null +Update_varchar_tab2=update Varchar_Tab set COFFEE_NAME=0, NULL_VAL=null + +#********************************************************************************** +# is used in BatchUpdate Tests. +#********************************************************************************** +BatchUpdate_Query=select count(*) from ctstable2 where TYPE_ID=? +BatchUpdate_Delete=delete from ctstable2 +BatchInsert_String=insert into ctstable2 values(?,?,?,?) + +#********************************************************************************** +# is used in BatchUpdate exception +#********************************************************************************** +Coffee_InsTab=insert into ctstable2 values (9,'COFFEE-9',9.0,5) +Coffee_DelTab=delete from ctstable2 where KEY_ID=2 +Coffee_UpdTab=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=1 +Coffee_SelTab=select PRICE from ctstable2 where KEY_ID>4 +Coffee_Inscount_Query=select count(*) from ctstable2 where KEY_ID=9 +Coffee_Delcount_Query=select count(*) from ctstable2 where KEY_ID=2 +Coffee_Updcount_Query=select count(*) from ctstable2 where TYPE_ID=1 +CoffeeTab_Continue1=update ctstable2 set KEY_ID=?, COF_NAME=? where COF_NAME=? +CoffeeTab_ContinueSelect1=Select count(*) from ctstable2 where COF_NAME in ('Continue-1') +CoffeeTab_Continue2=update ctstable2 set KEY_ID=1,COF_NAME = 'Continue-1' where COF_NAME='COFFEE-1' +CoffeeTab_Continue3=update ctstable2 set KEY_ID=1 ,COF_NAME = 'Invalid' where COF_NAME='COFFEE-3' +CoffeeTab_Continue4=update ctstable2 set KEY_ID=2,COF_NAME = 'Continue-3' where COF_NAME='COFFEE-2' +Coffee_Proc1=create procedure Coffee_Proc1(keyid in Numeric) as begin update ctstable2 set KEY_ID=keyid,COF_NAME = 'Continue-1' where KEY_ID=1;end; +Coffee_Proc1_Delete=Drop procedure Coffee_Proc1 +#********************************************************************************** +# is used in DataTruncation exception +#********************************************************************************** +DTrunc_Ins_Coffee=insert into ctstable2 values (10,'kumarjadjsjdhsjhdjsjdajhdjasdsdsdsd',21.00,1) + +#********************************************************************************** +# is used in SQLException +#********************************************************************************** +Error_Query=select * from + +#********************************************************************************** +# Constructor arguments for exceptions +#********************************************************************************** +Reason_BatUpdExec=Message +SQLState_BatUpdExec=S100 +VendorCode_BatUpdExec=10 +IntialValue_BatUpdExec={1,1,1} +Index_DataTrunc=1 +Param_DataTrunc=true +Read_DataTrunc=true +DataSize_DataTrunc=100 +TranSize_DataTrunc=50 + +#********************************************************************************** +# is used to print a message to the current logging writer +#********************************************************************************** +JDBCLogstream_Message=Hello World + + +#********************************************************************************** +#The following pair of values are related and so must be changed simultaneously +#The first one is a reference value and the second one is a equivalent in millisecond after epoch +#********************************************************************************** +DateTime_Str_Val1=1970-01-02 00:00:00.001 +DateTime_Long_Val1=86400001 + +#********************************************************************************** +#The following pair of values are related and so must be changed simultaneously +#The first one is a reference value and the second one is a equivalent in millisecond after epoch +#********************************************************************************** +DateTime_Str_Val2=1969-12-30 23:59:59.999 +DateTime_Long_Val2=-86400001 + +#********************************************************************************** +#value in millisecond for testing after() and before() in Timestamp +#********************************************************************************** +Ref_Milli_Val = 86400000 + +#********************************************************************************** +#Value in nanoseconds for testing time values +#********************************************************************************** +Ref_Nano_Val = 999999999 + + +#********************************************************************************** +#Value in nanoseconds and must be equivalent equivalent to multiples of milliseconds +#********************************************************************************** +Ref_Nano_Val2 = 1000000 + +Trial_String=TrialSetting +Escape_Seq_Query=select count(*) from ctstable2 where cof_name like '\%-%' { escape '\\' } +Escape_Seq_ChkQuery=select count(*) from ctstable2 +Max_Set_Val=10 + + +#********************************************************************************** +#The SQL Statements which are used to test the Scalar functions using escape syntax +#********************************************************************************** +Concat_Fn_Query=SELECT {FN CONCAT(STRING1,STRING2)} FROM ctstable3 +Ascii_Fn_Query=SELECT {FN ASCII(STRING1)} FROM ctstable3 +Insert_Fn_Query=SELECT {FN INSERT(STRING1,2,4,STRING2)} FROM ctstable3 +Lcase_Fn_Query=SELECT {FN LCASE(STRING1)} FROM ctstable3 +Left_Fn_Query=SELECT {FN LEFT(STRING1,2)} FROM ctstable3 +Length_Fn_Query=SELECT {FN LENGTH(STRING1)} FROM ctstable3 +Locate_Fn_Query=SELECT {FN LOCATE(STRING1,STRING2)} FROM ctstable3 +Ltrim_Fn_Query=SELECT {FN LTRIM(STRING2)} FROM ctstable3 +Repeat_Fn_Query=SELECT {FN REPEAT(STRING1,3)} FROM ctstable3 +Right_Fn_Query=SELECT {FN RIGHT(STRING1,3)} FROM ctstable3 +Rtrim_Fn_Query=SELECT {FN RTRIM(STRING2)} FROM ctstable3 +Soundex_Fn_Query=SELECT {FN SOUNDEX(STRING1)} FROM ctstable3 +Space_Fn_Query=SELECT {FN SPACE(5)} FROM ctstable3 +Substring_Fn_Query=SELECT {FN SUBSTR(STRING2,2,3)} FROM ctstable3 +Ucase_Fn_Query=SELECT {FN UCASE(STRING1)} FROM ctstable3 +Char_Fn_Query=SELECT {FN CHAR(NUMCOL)} FROM ctstable3 +Replace_Fn_Query=SELECT {FN REPLACE(STRING2,STRING1,STRING3)} FROM ctstable3 +User_Fn_Query=SELECT {FN USER()} FROM ctstable3 +Ifnull_Fn_Query=SELECT {FN IFNULL(STRING1,100)} FROM ctstable3 +Sin_Fn_Query=SELECT {FN SIN(0)} FROM ctstable3 +Abs_Fn_Query=SELECT {FN ABS(NUMCOL)} FROM ctstable3 +Power_Fn_Query=SELECT {FN POWER(NUMCOL,2)} FROM ctstable3 +Round_Fn_Query=SELECT {FN ROUND(FLOATCOL,2)} FROM ctstable3 +Sign_Fn_Query=SELECT {FN SIGN(NUMCOL)} FROM ctstable3 +Sqrt_Fn_Query=SELECT {FN SQRT(FLOATCOL)} FROM ctstable3 +Truncate_Fn_Query=SELECT {FN TRUNCATE(FLOATCOL,1)} FROM ctstable3 +Mod_Fn_Query=SELECT {FN MOD(NUMCOL,7)} FROM ctstable3 +Floor_Fn_Query=SELECT {FN FLOOR(FLOATCOL)} FROM ctstable3 +Ceiling_Fn_Query=SELECT {FN CEILING(NUMCOL)} FROM ctstable3 +Log10_Fn_Query=SELECT {FN LOG10(NUMCOL)} FROM ctstable3 +Log_Fn_Query=SELECT {FN LOG(NUMCOL)} FROM ctstable3 +Exp_Fn_Query=SELECT {FN EXP(FLOATCOL)} FROM ctstable3 +Cos_Fn_Query=SELECT {FN COS(FLOATCOL)} FROM ctstable3 +Tan_Fn_Query=SELECT {FN TAN(FLOATCOL)} FROM ctstable3 +Cot_Fn_Query=SELECT {FN COT(FLOATCOL)} FROM ctstable3 +Curdate_Fn_Query=SELECT {FN CURDATE()} FROM ctstable3 +Dayname_Fn_Query=SELECT {FN DAYNAME(DATECOL)} FROM ctstable3 +Dayofmonth_Fn_Query=SELECT {FN DAYOFMONTH(DATECOL)} FROM ctstable3 +Dayofweek_Fn_Query=SELECT {FN DAYOFWEEK(DATECOL)} FROM ctstable3 +Dayofyear_Fn_Query=SELECT {FN DAYOFYEAR(DATECOL)} FROM ctstable3 +Week_Fn_Query=SELECT {FN WEEK(DATECOL)} FROM ctstable3 +Month_Fn_Query=SELECT {FN MONTH(DATECOL)} FROM ctstable3 +Year_Fn_Query=SELECT {FN YEAR(DATECOL)} FROM ctstable3 +Monthname_Fn_Query=SELECT {FN MONTHNAME(DATECOL)} FROM ctstable3 +Quarter_Fn_Query=SELECT {FN QUARTER(DATECOL)} FROM ctstable3 +Now_Fn_Query=SELECT {FN NOW()} FROM ctstable3 +Hour_Fn_Query=SELECT {FN HOUR(TIMECOL)} FROM ctstable3 +Minute_Fn_Query=SELECT {FN MINUTE(TIMECOL)} FROM ctstable3 +Second_Fn_Query=SELECT {FN SECOND(TIMECOL)} FROM ctstable3 +Database_Fn_Query=SELECT {FN DATABASE()} FROM ctstable3 +Acos_Fn_Query=SELECT {FN ACOS(FLOATCOL)} FROM ctstable3 +Asin_Fn_Query=SELECT {FN ASIN(FLOATCOL)} FROM ctstable3 +Atan_Fn_Query=SELECT {FN ATAN(FLOATCOL)} FROM ctstable3 +Atan2_Fn_Query=SELECT {FN ATAN2(FLOATCOL,FLOATCOL)} FROM ctstable3 +Degrees_Fn_Query=SELECT {FN DEGREES(NUMCOL)} FROM ctstable3 +Radians_Fn_Query=SELECT {FN RADIANS(NUMCOL)} FROM ctstable3 +Pi_Fn_Query=SELECT {FN PI()} FROM ctstable3 +Rand_Fn_Query=SELECT {FN RAND(NUMCOL)} FROM ctstable3 +Difference_Fn_Query=SELECT {FN DIFFERENCE(STRING1,STRING2)} FROM ctstable3 +Locate_Fn_Query=SELECT {FN LOCATE(STRING1,STRING2,2)} FROM ctstable3 +Timestampaddfrac_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_FRAC_SECOND,2,TSCOL1)} FROM ctstable3 +Timestampaddsecond_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_SECOND,2,TSCOL1)} FROM ctstable3 +Timestampaddminute_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_MINUTE,2,TSCOL1)} FROM ctstable3 +Timestampaddhour_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_HOUR,2,TSCOL1)} FROM ctstable3 +Timestampaddday_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_DAY,2,TSCOL1)} FROM ctstable3 +Timestampaddweek_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_WEEK,2,TSCOL1)} FROM ctstable3 +Timestampaddmonth_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_MONTH,2,TSCOL1)} FROM ctstable3 +Timestampaddquarter_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_QUARTER,2,TSCOL1)} FROM ctstable3 +Timestampaddyear_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_YEAR,2,TSCOL1)} FROM ctstable3 +Timestampdifffrac_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_FRAC_SECOND,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffsecond_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_SECOND,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffminute_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_MINUTE,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffhour_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_HOUR,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffday_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_DAY,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffweek_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_WEEK,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffmonth_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_MONTH,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffquarter_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_QUARTER,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffyear_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_YEAR,TSCOL1,TSCOL2)} FROM ctstable3 + + +#***************************************************************************** +#The SQL Statements which are used to test the Outer Joins using escape syntax +#***************************************************************************** +Left_Oj_Query=SELECT * FROM {OJ ctstable3 LEFT OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} +Right_Oj_Query=SELECT * FROM {OJ ctstable3 RIGHT OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} +Full_Oj_Query=SELECT * FROM {OJ ctstable3 FULL OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} + + +#***************************************************************************** +#The SQL Statements for creating, inserting and dropping the tables which are +#used in testing the scalar functions and outer joins using escape syntax +#***************************************************************************** + +Fnschema_Tab1_Insert=INSERT INTO ctstable3 VALUES ('Java',' HotJava ','JAVA',100,0.5,{d '1993-07-13'},{t '10:30:55'},{ts '1996-05-10 10:07:04'},{ts '1996-05-10 10:07:05'}) +Fnschema_Tab2_Insert=INSERT INTO ctstable4 VALUES ('STRING3',100) + +Fnschema_Tab1_Delete=delete from ctstable3 +Fnschema_Tab2_Delete=delete from ctstable4 + +#***************************************************************************** +#The SQL Statements which are used in TxBean (Session bean) +#***************************************************************************** +TxBean_insert1=insert into TxBean_Tab1 values(?, ?, ?) +TxBean_insert2=insert into TxBean_Tab2 values(?, ?, ?) + +TxBean_delete1=delete from TxBean_Tab1 where KEY_ID = ? +TxBean_delete2=delete from TxBean_Tab2 where KEY_ID = ? + +TxBean_update1=update TxBean_Tab1 set TABONE_NAME = ? where KEY_ID = ? +TxBean_update2=update TxBean_Tab2 set TABTWO_NAME = ? where KEY_ID = ? +TxBean_update3=update TxBean_Tab1 set PRICE = ? where KEY_ID = ? +TxBean_update4=update TxBean_Tab2 set PRICE = ? where KEY_ID = ? + +TxBean_query1=select * from TxBean_Tab1 +TxBean_query2=select * from TxBean_Tab2 +TxBean_query3=select KEY_ID, TABONE_NAME, PRICE from TxBean_Tab1 where KEY_ID = ? +TxBean_query4=select KEY_ID, TABTWO_NAME, PRICE from TxBean_Tab2 where KEY_ID = ? + + +TxBean_Tab1_Delete=delete from TxBean_Tab1 +TxBean_Tab2_Delete=delete from TxBean_Tab2 + +#***************************************************************************** +#The SQL Statements which are used in TxEBean (Entity bean) +#***************************************************************************** +TxEBean_updateString1=insert into TxEBean_Tab values(?, ?, ?) +TxEBean_updateString2=delete from TxEBean_Tab where KEY_ID = ? +TxEBean_updateString3=update TxEBean_Tab set BRAND_NAME = ?, PRICE = ? where KEY_ID = ? + +TxEBean_selectString1=select KEY_ID from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString2=select KEY_ID from TxEBean_Tab where BRAND_NAME = ? +TxEBean_selectString3=select KEY_ID from TxEBean_Tab where PRICE = ? +TxEBean_selectString4=select KEY_ID, BRAND_NAME, PRICE from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString5=select BRAND_NAME from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString6=select PRICE from TxEBean_Tab where KEY_ID = ? + +TxEBean_queryStr1=select KEY_ID from TxEBean_Tab where KEY_ID = ? + +TxEBean_Delete=delete from TxEBean_Tab + +#***************************************************************************** +#The SQL Statements which are used in the integration/session and +#integration/entity tests +#***************************************************************************** +Integration_Tab_Delete=delete from Integration_Tab +Integration_Insert=insert into Integration_Tab values(?, ?) +Integration_Insert1=insert into Integration_Tab values(1000, 50000.0) +Integration_Insert2=insert into Integration_Tab values(1075, 10490.75) +Integration_Insert3=insert into Integration_Tab values(40, 200.50) +Integration_Insert4=insert into Integration_Tab values(30564, 25000.0) +Integration_Insert5=insert into Integration_Tab values(387, 1000000.0) +Integration_Select_Account=select * from Integration_Tab WHERE ACCOUNT = ? +Integration_Select_All=select * from Integration_Tab +Integration_Update_Account=update Integration_Tab set BALANCE = ? where ACCOUNT = ? +Integration_Delete_Account=delete from Integration_Tab where ACCOUNT = ? + +#***************************************************************************** +#The SQL Statements which are used in the integration/sec tests +#***************************************************************************** +Integration_Sec_Tab_Delete=delete from Integration_Sec_Tab +Integration_Sec_Tab_Insert=insert into Integration_Sec_Tab values(?, ?, ?) +Integration_Sec_Tab_Delete1=delete from Integration_Sec_Tab WHERE LOG_NO=? +Integration_Sec_Tab_Delete2=delete FROM Integration_Sec_Tab where LOG_NO=? and not ( LINE_NO = ? ) +Integration_Sec_Tab_Update=update Integration_Sec_Tab set MESSAGE= ? where LOG_NO = ? and LINE_NO = ? +Integration_Sec_Tab_Select1=select MESSAGE, LINE_NO from Integration_Sec_Tab where LOG_NO = ? and not( LINE_NO= ? ) order by LINE_NO +Integration_Sec_Tab_Select2=select MESSAGE FROM Integration_Sec_Tab where LOG_NO = ? and LINE_NO = ? +Integration_Sec_Tab_Select3=select MAX(LOG_NO) FROM Integration_Sec_Tab +Integration_Sec_Tab_Select4=select LOG_NO from Integration_Sec_Tab where MESSAGE = ? and LINE_NO = ? +Integration_Sec_Tab_Select5=select LINE_NO from Integration_Sec_Tab where LOG_NO = ? and LINE_NO= ? + + +#***************************************************************************** +#The SQL Statements which are used in DBSupport used by ejb/ee/bb tests +#***************************************************************************** +BB_Tab_Delete=delete from BB_Tab +BB_Insert1=insert into BB_Tab values(?, ?, ?) +BB_Select1=select KEY_ID from BB_Tab where KEY_ID = ? +BB_Select2=select KEY_ID from BB_Tab where BRAND_NAME = ? +BB_Select3=select KEY_ID from BB_Tab where PRICE = ? +BB_Select4=select KEY_ID from BB_Tab where PRICE >= ? and PRICE <= ? +BB_Select5=select KEY_ID from BB_Tab where KEY_ID >= ? and KEY_ID <= ? +BB_Select6=select PRICE from BB_Tab where KEY_ID = ? +BB_Update1=update BB_Tab set PRICE = ? where KEY_ID = ? +BB_Delete1=delete from BB_Tab where KEY_ID = ? + +#***************************************************************************** +#The SQL Statements which are used in DAO by ejb/ee/bb tests +#***************************************************************************** +COFFEE_BB_Tab_Delete=delete from BB_Tab +COFFEE_BB_Insert1=insert into BB_Tab values(?, ?, ?) +COFFEE_BB_Select1=select KEY_ID from BB_Tab where KEY_ID = ? +COFFEE_BB_Select2=select KEY_ID from BB_Tab where BRAND_NAME = ? +COFFEE_BB_Select3=select KEY_ID from BB_Tab where PRICE = ? +COFFEE_BB_Select4=select KEY_ID from BB_Tab where PRICE >= ? and PRICE <= ? +COFFEE_BB_Select5=select KEY_ID from BB_Tab where KEY_ID >= ? and KEY_ID <= ? +COFFEE_BB_Select6=select PRICE from BB_Tab where KEY_ID = ? +COFFEE_BB_Update1=update BB_Tab set PRICE = ? where KEY_ID = ? +COFFEE_BB_Delete1=delete from BB_Tab where KEY_ID = ? + +#***************************************************************************** +#The SQL Statements which are used in DBSupport in jta/ee/txpropagationtest +#***************************************************************************** +JTA_Tab1_Delete=delete from JTA_Tab1 +JTA_Tab2_Delete=delete from JTA_Tab2 + +JTA_Tab1_Insert=insert into JTA_Tab1 values(?, ?, ?) +JTA_Tab2_Insert=insert into JTA_Tab2 values(?, ?, ?) + +JTA_Delete1=delete from JTA_Tab1 where KEY_ID = ? +JTA_Delete2=delete from JTA_Tab2 where KEY_ID = ? + +JTA_Tab1_Update1=update JTA_Tab1 set COF_NAME = ? where KEY_ID = ? +JTA_Tab2_Update1=update JTA_Tab2 set CHOC_NAME = ? where KEY_ID = ? + +JTA_Tab1_Update2=update JTA_Tab1 set PRICE = ? where KEY_ID = ? +JTA_Tab2_Update2=update JTA_Tab2 set PRICE = ? where KEY_ID = ? + +JTA_Tab1_Select=select * from JTA_Tab1 +JTA_Tab2_Select=select * from JTA_Tab2 + +JTA_Tab1_Select1=select KEY_ID, COF_NAME, PRICE FROM JTA_Tab1 where KEY_ID = ? +JTA_Tab2_Select1=select KEY_ID, CHOC_NAME, PRICE FROM JTA_Tab2 where KEY_ID = ? + + +#***************************************************************************** +# SQL Statements used by deployment tests +# +# See /tests/assembly/util/dbsupport for more details +# +#***************************************************************************** + +# +# BMP table with Integer Primary Key +# +DEPLOY_intPKTable_Insert=insert into Deploy_Tab1 values(?, ?, ?) +DEPLOY_intPKTable_Select_PK=select KEY_ID from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Select_Price=select PRICE from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Update=update Deploy_Tab1 set PRICE = ? where KEY_ID = ? +DEPLOY_intPKTable_Delete=delete from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Cleanup=delete from Deploy_Tab1 + +# +# BMP table with String Primary Key +# +DEPLOY_strPKTable_Insert=insert into Deploy_Tab2 values(?, ?, ?) +DEPLOY_strPKTable_Select_PK=select KEY_ID from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Select_Price=select PRICE from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Update=update Deploy_Tab2 set PRICE = ? where KEY_ID = ? +DEPLOY_strPKTable_Delete=delete from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Cleanup=delete from Deploy_Tab2 + +# +# BMP table with Long Primary Key +# +DEPLOY_longPKTable_Insert=insert into Deploy_Tab3 values(?, ?, ?) +DEPLOY_longPKTable_Select_PK=select KEY_ID from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Select_Price=select PRICE from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Update=update Deploy_Tab3 set PRICE = ? where KEY_ID = ? +DEPLOY_longPKTable_Delete=delete from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Cleanup=delete from Deploy_Tab3 + +# +# BMP table with Float Primary Key +# +DEPLOY_floatPKTable_Insert=insert into Deploy_Tab4 values(?, ?, ?) +DEPLOY_floatPKTable_Select_PK=select KEY_ID from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Select_Price=select PRICE from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Update=update Deploy_Tab4 set PRICE = ? where KEY_ID = ? +DEPLOY_floatPKTable_Delete=delete from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Cleanup=delete from Deploy_Tab4 + +# +# BMP table with Compound Primary Key +# +DEPLOY_compoundPKTable_Insert=insert into Deploy_Tab5 values(?, ?, ?, ?, ?) +DEPLOY_compoundPKTable_Select_PK=select KEY_ID1, KEY_ID2, KEY_ID3 from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Select_Price=select PRICE from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Update=update Deploy_Tab5 set PRICE = ? where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Delete=delete from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Cleanup=delete from Deploy_Tab5 + +#***************************************************************************** +#The SQL Statements which are used in DBSupport2 used by secpropagation tests +#***************************************************************************** +SEC_Insert1=insert into SEC_Tab1 values(?, ?, ?) +SEC_Select1=select KEY_ID from SEC_Tab1 where KEY_ID = ? +SEC_Select2=select KEY_ID from SEC_Tab1 where BRAND = ? +SEC_Select3=select KEY_ID from SEC_Tab1 where PRICE = ? +SEC_Select4=select KEY_ID from SEC_Tab1 where PRICE >= ? and PRICE <= ? +SEC_Select5=select KEY_ID from SEC_Tab1 where KEY_ID >= ? and KEY_ID <= ? +SEC_Select6=select PRICE from SEC_Tab1 where KEY_ID = ? +SEC_Update1=update SEC_Tab1 set PRICE = ? where KEY_ID = ? +SEC_Delete1=delete from SEC_Tab1 where KEY_ID = ? +SEC_Tab1_Delete=delete from SEC_Tab1 + +#***************************************************************************** +# Connector tests in src/tests/connector +#***************************************************************************** +ConnectorTable_Insert=insert into Connector_Tab values(?, ?, ?) +ConnectorTable_Delete=delete from Connector_Tab + +#***************************************************************************** +# insert values EIS +#***************************************************************************** +TSEIS_insert_init=1 +TSEIS_insert1=2 +TSEIS_insert2=3 + +#***************************************************************************** +#The SQL Statements which are used in xa multires tests +#***************************************************************************** + +Xa_Tab1_Select=select * from Xa_Tab1 + +# insert values +Xa_Tab1_Insert=insert into Xa_Tab1 values(?, ?, ?) + +# delete using id +Xa_Tab1_Delete1=delete from Xa_Tab1 where col1 = ? + +Xa_Tab1_Delete=delete from Xa_Tab1 +Xa_Tab2_Delete=delete from Xa_Tab2 + +#initial insert +Xa_Tab1_insert_init=insert into Xa_Tab1 values (1, 'Table1 Line one ', '1.0' ) +Xa_Tab2_insert_init=insert into Xa_Tab2 values (1, 'Table2 Line one ', '2.0' ) + +#subsequent insert +Xa_Tab1_insert1=insert into Xa_Tab1 values (2, 'Table1 Line two ', '11.0' ) +Xa_Tab1_insert2=insert into Xa_Tab1 values (3, 'Table1 Line three ','111.0' ) + +Xa_Tab2_insert1=insert into Xa_Tab2 values (2, 'Table2 Line two ', '22.0' ) +Xa_Tab2_insert2=insert into Xa_Tab2 values (3, 'Table2 Line three ', '222.0' ) + +#get results + +Xa_Tab1_query=select col1 from Xa_Tab1 order by col1 +Xa_Tab2_query=select col1 from Xa_Tab2 order by col1 + + + +#***************************************************************************** +# Coffee DAO SQL statements +#***************************************************************************** + +# +# Standard Coffee DAO +# +COFFEE_insert=insert into Coffee_Table values(?, ?, ?) +COFFEE_select=select BRAND_NAME, PRICE from Coffee_Table where KEY_ID = ? +COFFEE_select_pk_by_name=select KEY_ID from Coffee_Table where BRAND_NAME = ? +COFFEE_select_pk_by_price=select KEY_ID from Coffee_Table where PRICE = ? +COFFEE_select_pk_by_price_range=select KEY_ID from Coffee_Table where PRICE >= ? and PRICE <= ? +COFFEE_select_pk_by_pk_range=select KEY_ID from Coffee_Table where KEY_ID >= ? and KEY_ID <= ? +COFFEE_select_price=select PRICE from Coffee_Table where KEY_ID = ? +COFFEE_update=update Coffee_Table set BRAND_NAME = ?, PRICE = ? where KEY_ID = ? +COFFEE_update_price=update Coffee_Table set PRICE = ? where KEY_ID = ? +COFFEE_delete=delete from Coffee_Table where KEY_ID = ? +COFFEE_delete_all=delete from Coffee_Table + + +# +# Coffee DAO variant with String Primary Key +# +COFFEE_STRING_PK_insert=insert into Coffee_StringPK_Table values(?, ?, ?) +COFFEE_STRING_PK_select=select KEY_ID from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_select_price=select PRICE from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_update_price=update Coffee_StringPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_STRING_PK_delete=delete from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_delete_all=delete from Coffee_StringPK_Table + +# +# Coffee DAO variant with Long Primary Key +# +COFFEE_LONG_PK_insert=insert into Coffee_LongPK_Table values(?, ?, ?) +COFFEE_LONG_PK_select=select KEY_ID from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_select_price=select PRICE from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_update_price=update Coffee_LongPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_LONG_PK_delete=delete from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_delete_all=delete from Coffee_LongPK_Table + +# +# Coffee DAO variant with Float Primary Key +# +COFFEE_FLOAT_PK_insert=insert into Coffee_FloatPK_Table values(?, ?, ?) +COFFEE_FLOAT_PK_select=select KEY_ID from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_select_price=select PRICE from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_update_price=update Coffee_FloatPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_FLOAT_PK_delete=delete from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_delete_all=delete from Coffee_FloatPK_Table + +# +# Coffee DAO variant with Compound Primary Key +# +COFFEE_COMPOUND_PK_insert=insert into Coffee_CompoundPK_Table values(?, ?, ?, ?, ?) +COFFEE_COMPOUND_PK_select=select KEY_ID1, KEY_ID2, KEY_ID3 from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_select_price=select PRICE from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_update_price=update Coffee_CompoundPK_Table set PRICE = ? where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_delete=delete from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_delete_all=delete from Coffee_CompoundPK_Table + + diff --git a/glassfish-runner/jdbc-platform-tck/src/test/java/arquillian/GlassfishTckExtension.java b/glassfish-runner/jdbc-platform-tck/src/test/java/arquillian/GlassfishTckExtension.java new file mode 100644 index 0000000000..413555b96a --- /dev/null +++ b/glassfish-runner/jdbc-platform-tck/src/test/java/arquillian/GlassfishTckExtension.java @@ -0,0 +1,13 @@ +package arquillian; + +import org.jboss.arquillian.container.test.spi.client.deployment.ApplicationArchiveProcessor; +import org.jboss.arquillian.core.spi.LoadableExtension; +import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; + +public class GlassfishTckExtension implements LoadableExtension { + @Override + public void register(ExtensionBuilder builder) { + builder.service(ResourceProvider.class, GlassfishXmlProcessor.class); + builder.observer(GlassfishXmlProcessor.class); + } +} \ No newline at end of file diff --git a/glassfish-runner/jdbc-platform-tck/src/test/java/arquillian/GlassfishXmlProcessor.java b/glassfish-runner/jdbc-platform-tck/src/test/java/arquillian/GlassfishXmlProcessor.java new file mode 100644 index 0000000000..0db6d11f0b --- /dev/null +++ b/glassfish-runner/jdbc-platform-tck/src/test/java/arquillian/GlassfishXmlProcessor.java @@ -0,0 +1,139 @@ +package arquillian; + +import org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor; +import org.jboss.arquillian.config.descriptor.api.ExtensionDef; +import org.jboss.arquillian.core.api.annotation.Observes; +import org.jboss.shrinkwrap.api.Archive; +import org.jboss.shrinkwrap.api.container.ManifestContainer; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import tck.arquillian.porting.lib.spi.AbstractTestArchiveProcessor; +import org.jboss.shrinkwrap.api.asset.StringAsset; + + +import java.io.File; +import java.io.IOException; +import java.net.URL; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.logging.Logger; + +public class GlassfishXmlProcessor extends AbstractTestArchiveProcessor { + static Logger log = Logger.getLogger(GlassfishXmlProcessor.class.getName()); + static HashSet sunXmlFiles = new HashSet(); + static { + sunXmlFiles.add("META-INF/sun-application-client.xml"); + sunXmlFiles.add("META-INF/sun-application.xml"); + sunXmlFiles.add("META-INF/sun-ra.xml"); + sunXmlFiles.add("WEB-INF/sun-web.xml"); + sunXmlFiles.add("META-INF/sun-ejb-jar.xml"); + } + + private Path descriptorDirRoot; + + /** + * Called on completion of the Arquillian configuration. + */ + public void initalize(@Observes ArquillianDescriptor descriptor) { + // Must call to setup the ResourceProvider + super.initalize(descriptor); + + // Get the descriptor path + ExtensionDef descriptorsDef = descriptor.extension("jboss-descriptors"); + String descriptorDir = descriptorsDef.getExtensionProperties().get("descriptorDir"); + if(descriptorDir == null) { + String msg = "Specify the descriptorDir property in arquillian.xml as extension:\n"+ + "\n" + + " path-to-descriptors-dir\n" + + ""; + //throw new IllegalStateException(msg); + } else { + this.descriptorDirRoot = Paths.get(descriptorDir); + if(!Files.exists(this.descriptorDirRoot)) { + //throw new RuntimeException("Descriptor directory does not exist: " + this.descriptorDirRoot); + } + } + } + + @Override + public void processClientArchive(JavaArchive clientArchive, Class testClass, URL sunXmlURL) { + String name = clientArchive.getName(); + addDescriptors(name, clientArchive, testClass); + } + + @Override + public void processWebArchive(WebArchive webArchive, Class testClass, URL sunXmlURL) { + String name = webArchive.getName(); + addDescriptors(name, webArchive, testClass); + } + + @Override + public void processRarArchive(JavaArchive warArchive, Class testClass, URL sunXmlURL) { + + } + + @Override + public void processParArchive(JavaArchive javaArchive, Class aClass, URL url) { + + } + + @Override + public void processEarArchive(EnterpriseArchive earArchive, Class testClass, URL sunXmlURL) { + String name = earArchive.getName(); + addDescriptors(name, earArchive, testClass); + } + + @Override + public void processEjbArchive(JavaArchive ejbArchive, Class testClass, URL sunXmlURL) { + String name = ejbArchive.getName(); + addDescriptors(name, ejbArchive, testClass); + } + + /** + * + * @param archiveName + * @param archive + * @param testClass + */ + protected void addDescriptors(String archiveName, ManifestContainer archive, Class testClass) { + /*String pkgName = testClass.getPackageName(); + Path pkgPath = Paths.get(pkgName.replace(".", "/")); + Path descriptorDir = descriptorDirRoot.resolve(pkgPath); + List files = findJBossDescriptors(descriptorDir); + for (File f : files) { + String name = f.getName(); + if(!name.startsWith(archiveName)) { + continue; + } + try { + URL url = f.toURL(); + // stateful_migration_threetwo_annotated.ear.jboss-deployment-structure.xml -> jboss-deployment-structure.xml + String descriptorName = name.replace(archiveName+".", ""); + if(archive instanceof WebArchive webArchive) { + webArchive.addAsWebInfResource(url, descriptorName); + } else { + + archive.addAsManifestResource(url, descriptorName); + } + } catch (IOException e) { + throw new RuntimeException(e); + } + }*/ + } + protected List findJBossDescriptors(Path pkgPath) { + try { + List files = Files.walk(pkgPath, 1) + .map(Path::toFile) + .filter(File::isFile) + .toList(); + return files; + } catch (Exception e) { + } + return Collections.emptyList(); + } +} diff --git a/glassfish-runner/jdbc-platform-tck/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension b/glassfish-runner/jdbc-platform-tck/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension new file mode 100644 index 0000000000..213f7f5aa9 --- /dev/null +++ b/glassfish-runner/jdbc-platform-tck/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension @@ -0,0 +1 @@ +arquillian.GlassfishTckExtension \ No newline at end of file diff --git a/glassfish-runner/jdbc-platform-tck/src/test/resources/appclient-arquillian.xml b/glassfish-runner/jdbc-platform-tck/src/test/resources/appclient-arquillian.xml new file mode 100644 index 0000000000..0c311e2a65 --- /dev/null +++ b/glassfish-runner/jdbc-platform-tck/src/test/resources/appclient-arquillian.xml @@ -0,0 +1,64 @@ + + + + + + true + true + target/appclient + true + + ${glassfish.home}/glassfish/bin/appclient \ + -Djdk.tls.client.enableSessionTicketExtension=false \ + -Djdk.tls.server.enableSessionTicketExtension=false \ + -Djava.security.policy=${glassfish.home}/glassfish/lib/appclient/client.policy \ + -Dcts.tmp=${ts.home}/tmp \ + -Djava.security.auth.login.config=${glassfish.home}/glassfish/lib/appclient/appclientlogin.conf \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Djavax.net.ssl.keyStore=${ts.home}/bin/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Djavax.net.ssl.trustStore=${glassfish.home}/glassfish/domains/domain1/config/cacerts.jks \ + -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl \ + -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl \ + -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl \ + -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser \ + -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter \ + -Doracle.jdbc.J2EE13Compliant=true \ + -Doracle.jdbc.mapDateToTimestamp \ + -Dstartup.login=false \ + -Dauth.gui=false \ + -Dlog.file.location=${glassfish.home}/glassfish/domains/domain1/logs \ + -Dri.log.file.location=${glassfish.home}/glassfish/domains/domain1/logs \ + -DwebServerHost.2=localhost \ + -DwebServerPort.2=8080 \ + -Ddeliverable.class=com.sun.ts.lib.deliverable.cts.CTSDeliverable \ + -jar \ + ${clientEarDir}/${clientAppArchive} + + \\ + + PATH=${env.PATH};LD_LIBRARY_PATH=${glassfish.home}/lib;AS_DEBUG=true; + APPCPATH=${glassfish.home}/glassfish/lib/arquillian-protocol-lib.jar:target/appclient/lib/arquillian-core.jar:target/appclient/lib/arquillian-junit5.jar:${glassfish.home}/glassfish/modules/security.jar + ${project.basedir} + ${ts.home}/tmp + ${ts.home}/bin/ts.jte + ${ts.home}/bin/tssql.stmt + true + 20000 + + + \ No newline at end of file diff --git a/glassfish-runner/jdbc-platform-tck/src/test/resources/arquillian.xml b/glassfish-runner/jdbc-platform-tck/src/test/resources/arquillian.xml new file mode 100644 index 0000000000..02ab1a7c68 --- /dev/null +++ b/glassfish-runner/jdbc-platform-tck/src/test/resources/arquillian.xml @@ -0,0 +1,32 @@ + + + + + + true + true + target/appclient + true + ${project.basedir} + ${ts.home}/tmp + ${ts.home}/bin/ts.jte + ${ts.home}/bin/tssql.stmt + true + 20000 + + + \ No newline at end of file diff --git a/glassfish-runner/jdbc-platform-tck/src/test/resources/logging.properties b/glassfish-runner/jdbc-platform-tck/src/test/resources/logging.properties new file mode 100644 index 0000000000..5139b6bf9d --- /dev/null +++ b/glassfish-runner/jdbc-platform-tck/src/test/resources/logging.properties @@ -0,0 +1,15 @@ +handlers=java.util.logging.FileHandler,java.util.logging.ConsoleHandler + +tck.jakarta.platform.ant.level = FINER +org.glassfish.appclient.client.level = FINER + +java.util.logging.FileHandler.pattern = tck-run.log +java.util.logging.FileHandler.level = FINEST +#java.util.logging.FileHandler.formatter = tck.conversion.log.TestLogFormatter +java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter +# date(1), source(2), logger(3), level(4), message(5), thrown(6) +java.util.logging.SimpleFormatter.format = [%1$tH:%tM:%1$tS.%1$tL] %2$.12s/%4$s %5$s %n + +# Limit the message that are printed on the console to INFO and above. +java.util.logging.ConsoleHandler.level = FINEST +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter \ No newline at end of file diff --git a/glassfish-runner/mail-platform-tck/jakartaeetck/bin/certificates/clientcert.jks b/glassfish-runner/mail-platform-tck/jakartaeetck/bin/certificates/clientcert.jks new file mode 100644 index 0000000000000000000000000000000000000000..09f5569c47a3e472d830625a54508a94d5f98054 GIT binary patch literal 2257 zcmc&#XH%027tNCbl2DY;K}w{F?FmJtC;?PL5JHs@6hxLL5Lzf|YE(mO15ac6dB|H1p=%-nPDmpkX)IcI-=M$ zK6zXTfgm7Y2z(dhW<#E01K@xH^cVmjAn*|QG(D4)8fZRb!S$JcFw^uoGNaQ}r#xbT*+A-m%u z2VdIk)9j%evc|LL9EVd1;;@J0zkXv-N3j?z!TDBi)JoJ$+${`BB5t3SMh=a}xS= zZ#?tI!KL#V(x-Nn9+zBuK;GszKVf7?{J~#wscX(Rp469MP9G5d427(jRGn6X5bZn0 zW*BwKfld>J<8|C|8Vieq>y3JZx|PY8xM(L@f^>Tju)REK2Md<&{!{bZg=Smf&d^nm zg-i|2$f+N!ik3C=Jh{5j;TCo9EK4b~`*NF{*ps^zVGPj?KwAW%Kkq6vlSSECvM4u3 z7MnHZ%xV@_=Z@FElNcOk#SDC~#EPz0x)dF_s9mL98MvkHuOar^tv1&|{Alt0wDk5I zeeEfqm`+|yV>9szMzf?0t>|E_E)K4vv4WPO0@+Lx5uwdT*x(3J6}`$+mr(b_ELLzoi%77GAP|beC#VQpaAAO!H3( zHjCiqg06W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b1zxf4wjJsK0mB`*4VQ!!=0UNj*}=4wuM*XV`4Cbzoxxi2=$8I-t(oWX>NrACjV aN2^xEnzd)x&M^H7bqrttb?%;#-pt>D`u9=* literal 0 HcmV?d00001 diff --git a/glassfish-runner/mail-platform-tck/jakartaeetck/bin/certificates/clientcert.p12 b/glassfish-runner/mail-platform-tck/jakartaeetck/bin/certificates/clientcert.p12 new file mode 100644 index 0000000000000000000000000000000000000000..409e41e673587e2381ded8fdfe7958c5b2c616ae GIT binary patch literal 1615 zcmV-V2C(@sf(A2kx;s>GcIZ0;*S|y~<-^X=pwb0lP;Qtti>gC};O4;iJ9ZYc8h`9X{A8TqL=AoL- z?9N+iX5$_Ayw`nsB^=zGN~DUW?Y72c(I)0rKZXRbF=P*Cx`nsB+Ej+?;HAX~exhIzg4w3hxwIjNG=iz= z%|X^`1R-ZKc{)KA5(6h)EzyaC!>-v*Obr7E*ZiCY`W!^5>W_G}%y`3F&mi<3Kj_Sa zUo$ydR%%HTn(oiVGq$t^%qvdGaIt%hYuRSys>w(S)ROYxk(Xg9$6gZW)~ybmpZVwK zIC>#fGDg)SkNI|7JxBhjm1S~1%->>3wv~%;l+byf8+;u9^;=qPGmoZwK?K%N7%IOQu|x=w_mfDX zIAg9im~Fp4hJ1d(lzQvbKxw|H?D_b2zx7IIY|pVHQcX}T>kTL;Gl1)j?}%2M+KijB zsX!tkQ0*vLy;64d)9`aO0bFUf$u}~VF!8q-V%ew%6MruW!LyDURZ%5rC}8(o!`eEo z7STB=JT1jN%o$k>r>eNhd-*-U4>wG7(NASH3e3c8rRr{aG#YMaM02R0Lt`ntgDNI{ zUw9y61g=PJy%A0ff!aeKsTh{AHE?j6GWUK0sHz;NBhWdXf5;IGXXXZ3P%2Ta zkYX!*Ll1F|tCgf$dok}u0tLw;K`WtTQ_%%qF3bu47%S`8f~8d$`JY#t3~KXlxR_1j z+32VdcefI^NqT2MB@uKmE4Ef6S5qNamP1a-f0SEPu-m|=Z&+ibF`t4pwd<|*zW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/bin/ts.jte b/glassfish-runner/mail-platform-tck/jakartaeetck/bin/ts.jte new file mode 100644 index 0000000000..11ee73d42f --- /dev/null +++ b/glassfish-runner/mail-platform-tck/jakartaeetck/bin/ts.jte @@ -0,0 +1,2462 @@ +# +# Copyright (c) 2006, 2022 Oracle and/or its affiliates and others. +# All rights reserved. +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License v. 2.0, which is available at +# http://www.eclipse.org/legal/epl-2.0. +# +# This Source Code may also be made available under the following Secondary +# Licenses when the conditions for such availability set forth in the +# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, +# version 2 with the GNU Classpath Exception, which is available at +# https://www.gnu.org/software/classpath/license.html. +# +# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 +# + +######################################################################### +## +## JavaTest Environment file for Java EE Compatibility Test Suite +## +## Environment specific properties in this file will likely +## have to be modified prior to running the Java EE CTS. +## Instructions for modifying these properties are contained in this +## file. +## +## This file is processed by an external tool that helps generate the +## CTS documents. Therefore this file has a standard format that must +## be followed. This file is a standard Java Properties file with +## very specific comment formatting. Users can write property specific +## comments by using the property name and an ampersand (@). As an +## example the following comment applies to the foo.bar property: +## # @foo.bar - This is a comment pertaining to foo.bar +## # that spans multiple lines. +## This comment must be preceded by a single hash (#) character and +## the property name must be prepended with an ampersand (@). The +## comment can appear anywhere in the ts.jte file. If users have +## comments that belong in ts.jte but DO NOT pertain to a particular +## property the user must start the comment with at least 2 hash (#) +## characters. The following is a valid non-property comment: +## ## A valid non-property comment +## ## that spans multiple lines. +######################################################################### + +######################################################################### +## @jte.version This version denotes the bundle this JTE was +## originally included with. The version matches the ID +## in the bundle name. It can be used to identify a +## mismatched JTE file. This value is filled in during +## the build process as part of sanitizing the jte file. +######################################################################### +jte.version=@JTE_VERSION@ + +######################################################################## +## Javatest batch mode work directory and report directory, and policy for +## handling existing work and report directories. These properties affects +## runclient and report targets, but not gui target. +## To disable generating test report, unset report.dir, or set it to "none" +## either here or from command line, as in the following command: +## ant runclient -Dreport.dir="none" +## +# @work.dir The directory used to store Javatest test results and test +# information. +# @report.dir The directory used to store Javatest summary reports of +# test results. +# @if.existing.work.report.dirs specifies how existing work.dir and +# report.dir will be handled, and it must be one of the following values: +# overwrite overwrites all content in work.dir and report.dir +# backup moves all content in work.dir and report.dir to +# work.dir_time_day_bak and report.dir_time_day_bak, +# respectively +# append reuses and preserves the existing work.dir and report.dir +# auto lets the build files decide which mode to use +# (overwrite, backup or append). the value is determined +# like this: +# if.existing.work.report.dirs == auto +# if in CTS workspace +# if.existing.work.report.dirs = overwrite +# else we are in a distribution bundle +# if.existing.work.report.dirs = append +# end if +# else +# if.existing.work.report.dirs = value in this file +# end if +######################################################################## +work.dir=/home/jenkins/agent/workspace/jakartaee-tck_master/JTWork +report.dir=/home/jenkins/agent/workspace/jakartaee-tck_master/JTReport +if.existing.work.report.dirs=auto + +######################################################################## +# @javatest.timeout.factor This property specifies the scale factor used by +# Javatest to adjust the time JavaTest will wait for a given test to +# complete before returning failure. For instance if the default test timeout +# is 5 minutes, this value will be multiplied by 5 minutes to determine +# the total timeout delay. Note: this value only works with Javatest's +# batch mode (runclient). When using the Javatest GUI users must change +# this timeout factor in the GUI. Configure -> Edit Configuration -> View +# -> choose Standard Values -> select tab Execution -> set Time Factor. +# +# Note that javatest.timeout.factor can be a positive real number, such as 1.5 +######################################################################## +javatest.timeout.factor=1 + +######################################################################## +## Level of Vendor Java EE Implementation +# @javaee.level The level of Java EE support for the implementation under test. +# This property serves two purposes: First, it is used to determine +# whether the impl under test is a Java EE Full profile (full) or Java +# EE Web profile (web). Either "full" or "web" must be specified in +# the list values. "full" will tell the harness to deploy ears. "web" +# will tell the harness to deploy wars. +# This property is also used to help determine which apis (in the +# signature tests) are to be tested. +# +# NOTE: This property does not determine which CTS tests to run for +# different profiles and optional technologies. That is done using +# keywords. Please refer to the keywords functionality in the CTS +# User's Guide for information on how to use keywords when +# running CTS tests. +# +# Currently, there are 4 settings supported for this property: +# 1. full: This is the minimal set of signature requirements that vendors +# must support. Specifying a javaee.level of "full" with nothing +# else implies there are NO additional technologies existing within +# the vendors implementation. Again, "full" only covers the +# REQUIRED Technologies for Jakarta EE 8 Full profile +# ex/ javaee.level=full +# +# 2. web : This is the minimal set of signature requirements that vendors +# must support for Web Profile. Specifying a javaee.level of "web" +# with nothing else implies there are NO additional technologies +# existing within the vendors implementation. Again, "web" only +# covers REQUIRED Technologies for Jakarta EE 8 Web profile +# ex/ javaee.level=web +# +# 3. full + optional_technologies: This covers REQUIRED Technologies for +# Java EE 8 Full Profile and any combination of the optional +# technologies. +# Known optional technologies for CTS8 full profile include: +# "jaxr". +# ex 1/ javaee.level=full jaxr +# ex 2/ javaee.level=full jaxr +# ex 3/ javaee.level=full +# ex 4/ etc... +# +# 4. web + optional_technologies: This covers REQUIRED Technologies for +# Java EE 8 Web Profile and any combination of optional +# technologies. +# Known optional technologies for Web Profile include: +# "jaxr", "connector", "jaxb", +# "jms", "javamail", "jacc", "jaspic", "wsmd" +# ex 1/ javaee.level=web connector jms jacc +# ex 2/ javaee.level=web jaspic +# ex 3/ javaee.level=web jms connector +# ex 4/ etc... +# +# Note 1: spaces separate multiple entries +# +# Note 2: optional technologies for full/javaee profile are listed +# in the Java EE 8 spec, in Table EE.6-1. Currently, the only +# optional technologies for full profile are: "jaxr" (JAXR 1.0) +# +# Note 3: The list of optional technologies for Web Profile includes any OPTIONAL +# technology explicitly called out in the Web Profile spec (if applicable) +# as well as any additional technology which is listed within +# JavaEE Profile 8 spec *but* not included/Required in the +# Web Profile spec. +# +# Note 4: Two different examples of javaee.level are provided immediately +# following this comment block. One is for running CTS8 against +# the EE 8 (full) Profile RI and the other is for running CTS8 +# against the EE 8 Web Profile RI. Notice that optional technologies +# are supplied here since the RI for CTS8 contains those optional +# technologies in it. It's very possible vendors may provider different +# optional technologies in their implementations. If so, the list of +# optional technologies will need to be adjusted here to suite each +# vendors implementation. +# +# Note 5: For EE 8 (RI) Web Profile, you can uncomment and use the line +# below which starts with: javaee.level=web .... +# +# IMPORTANT: when testing Web Profile - be sure to adjust the +# "optional.tech.packages.to.ignore" property accordingly. +# (see comments for optional.tech.packages.to.ignore below) +# +############################################################################### +#javaee.level=web connector jaxws jaxb javamail jacc jaspic wsmd +javaee.level=full + + +######################################################################## +## Settings for Vendor Java EE Implementation +# @javaee.home The location of the vendor's Java EE platform +# implementation. +# @orb.host Hostname of the machine running the vendor's +# implementation. +# @orb.port The port number the vendor implementation is listening +# to for service requests. +######################################################################## +javaee.home= +orb.host=localhost +orb.port=3699 + +######################################################################## +## JVMOPTS_RUNTESTCOMMAND is a marker that implementations may replace with +# the JVM options to pass when starting JVMs for running tests. +# This is intended to be used for implementations convencience. +# See file docker/run_jakartaeetck.sh for an example. +######################################################################## + +######################################################################## +## Settings for Sun RI Java EE Implementation +# @javaee.home.ri The location of the RI. +# @orb.host Hostname of the machine running the RI. +# @orb.port The port number the RI is listening to for service +# requests. +######################################################################## +javaee.home.ri= +orb.host.ri=localhost +orb.port.ri=3700 + +################################################################### +################################################################### +################################################################### +## RI SPECIFIC PROPERTIES LIVE BELOW +################################################################### +################################################################### +################################################################### + +############################################################### +# @ts.display -- location to display CTS output on Unix +############################################################### +ts.display=:0.0 + +########################################################################### +# @endorsed.dirs using Java SE 6 or above and you provide newer versions +# of technologies than those contained in Java SE 6, verify +# that the property endorsed.dirs is set to the location of +# the VI api jars for those technologies you wish to +# override. For example, Java SE 6 contains an +# implementation of JAXWS 2.0 which will conflict with +# JAXWS 2.1, therefore this property would need to be set +# so that JAXWS 2.1 would be used during the building of +# tests and during test execution. +# +# @endorsed.dirs.ri If using Java SE 6 or above and you provide newer versions +# of technologies than those contained in Java SE 6, verify +# that the property endorsed.dirs is set to the location of +# the RI api jars for those technologies you wish to +# override. For example, Java SE 6 contains an +# implementation of JAXWS 2.0 which will conflict with +# JAXWS 2.1, therefore this property would need to be set +# so that JAXWS 2.1 would be used during the building of +# tests and during test execution. +########################################################################### +endorsed.dirs=${javaee.home}/modules/endorsed +endorsed.dirs.ri=${javaee.home.ri}/modules/endorsed + +############################################################### +## Config params needed for Java EE RI asadmin +## You must change these values as needed +## +# @ri.admin.user -- The Java EE RI asadmin user id +# @ri.admin.passwd -- The Java EE RI asadmin user password +# @ri.admin.host -- The Java EE RI host +# @ri.admin.port -- The Java EE RI port +# @ri.admin -- The Java EE RI admin command +# @ri.server -- The Java EE RI server instance being used +# @ri.domain.dir -- Points to where your domains are installed. +# @ri.domain.name -- The Java EE RI domain being used +# @ri.domain -- The Java EE RI domain path being used +# @ri.asenv.loc -- location of asenv.conf or asenv.bat +# @ri.imqbin.loc -- location of the IMQ bin directory +# @ri.lib -- Library directory for other Java EE RI +# jars +# @ri.imq.share.lib -- Shared library directory for imq +# @ri.jvm.options -- Java options needed by the Java EE RI +# note, the second option is not needed +# but is required to work around asadmin +# command line parsing issues. The +# xxxlogin and xxxpassword are used +# to set known server side creds for use +# with connector tests. +# @ri.applicationRoot-- Location of application repository +# Only needed when running on windows +# @ri.and.vi.run.on.same.host - set to true if interop tests are run +# with both RI and VI on same machine. set to +# false if they are run on different machines. +# This is used to work around an orb issue +# specific to running VI and RI on same box. +# +# @ri.orb.iiop.orbserverid - This is used to set a similarly +# named jvm option in the RI. It is only used +# when we are running interop where remote EJBs +# try to access target EJB's on the same host with +# zero port configuration for ssl. +# This only gets used when ri.and.vi.run.on.same.host=true. +# The value is to be an ORB server id. +############################################################### +ri.admin.user=admin +ri.admin.passwd= +ri.admin.host=${orb.host.ri} +ri.admin.port=4848 +ri.admin=${javaee.home.ri}/bin/asadmin +ri.server=server +ri.domain.dir=${javaee.home.ri}/domains +ri.domain.name=domain1 +ri.domain=${ri.domain.dir}/${ri.domain.name} +ri.asenv.loc=${javaee.home.ri}/config +ri.imqbin.loc=${javaee.home.ri}/../mq/bin +ri.lib=${javaee.home.ri}/lib +ri.log.file.location=${ri.domain}/logs +ri.modules=${javaee.home.ri}/modules +ri.imq.share.lib=${javaee.home.ri}/../mq/lib +ri.jvm.options=-Doracle.jdbc.J2EE13Compliant=true:-Xmx4096m:-Dj2eelogin.name=${user}:-Dj2eelogin.password=${password}:-Deislogin.name=${user1}:-Deislogin.password=${password1}:-Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds}:-DwebServerPort.2=${webServerPort.2}:-DwebServerHost.2=${webServerHost.2}:-Dcsiv2.save.log.file=${harness.log.traceflag}:-Djavax.xml.accessExternalStylesheet=all:-Djavax.xml.accessExternalDTD=file,http +ri.jvm.options.remove=-Xmx512m:${ri.jvm.options} +ri.java.endorsed.dirs=${endorsed.dirs.ri} +ri.applicationRoot=c: +ri.and.vi.run.on.same.host=true +ri.orb.iiop.orbserverid=200 + +############################################################### +## Config params needed for Java EE VI asadmin +## You must change these values as needed +## +# @vi.admin.user -- The Java EE VI asadmin user id +# @vi.admin.passwd -- The Java EE VI asadmin user password +# @vi.admin.host -- The Java EE VI host +# @vi.admin.port -- The Java EE VI port +# @vi.admin -- The Java EE VI admin command +# @vi.server -- The Java EE VI server instance being used +# @vi.domain.dir -- Points to where your domains are installed. +# @vi.domain.name -- The Java EE VI domain being used +# @vi.domain -- The Java EE VI domain path being used +# @vi.asenv.loc -- location of asenv.conf or asenv.bat +# @vi.imqbin.loc -- location of the IMQ bin directory +# @vi.lib -- Library directory for other Java EE VI +# jars +# @vi.imq.share.lib -- Shared library directory for imq +# @vi.jvm.options -- Java options needed by the Java EE VI +# note, the second option is not needed +# but is required to work around asadmin +# command line parsing issues. The +# xxxlogin and xxxpassword are used +# to set known server side creds for use +# with connector tests. +# @vi.applicationRoot-- Location of application repository +# Only needed when running on windows +############################################################### +vi.admin.user=admin +vi.admin.passwd= +vi.admin.host=${orb.host} +vi.admin.port=4848 +vi.admin=${javaee.home}/bin/asadmin +vi.server=server +vi.domain.dir=${javaee.home}/domains +vi.domain.name=domain1 +vi.domain=${vi.domain.dir}/${vi.domain.name} +vi.asenv.loc=${javaee.home}/config +vi.imqbin.loc=${javaee.home}/../mq/bin +vi.lib=${javaee.home}/server/lib +vi.log.file.location=${vi.domain}/logs +vi.modules=${javaee.home}/modules +vi.imq.share.lib=${javaee.home}/../mq/lib +vi.jvm.options=-Doracle.jdbc.J2EE13Compliant=true:-Xmx4096m:-Dj2eelogin.name=${user}:-Dj2eelogin.password=${password}:-Deislogin.name=${user1}:-Deislogin.password=${password1}:-Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds}:-DwebServerPort.2=${webServerPort.2}:-DwebServerHost.2=${webServerHost.2}:-Dcsiv2.save.log.file=${harness.log.traceflag}:-Djavax.xml.accessExternalStylesheet=all:-Djavax.xml.accessExternalDTD=file,http +vi.jvm.options.remove=-Xmx512m:${vi.jvm.options} +vi.java.endorsed.dirs=${endorsed.dirs} +vi.applicationRoot=c: + +############################################################### +## Config params needed for Sun Java System Application Server +## (SJSAS) asadmin. You must change these values as needed +## only if you are testing against SJSAS app server +## (javaee.home is pointing to SJSAS). +# +# @s1as.admin.user -- The SJSAS asadmin user id +# @s1as.admin.passwd -- The SJSAS asadmin user password +# @s1as.admin.host -- The SJSAS host +# @s1as.admin.port -- The SJSAS port +# @s1as.admin -- The SJSAS admin command +# @s1as.server -- The SJSAS server instance being used +# @s1as.domain.dir -- Points to where your domains are installed. +# @s1as.domain.name -- The SJSAS domain being used +# @s1as.domain -- The SJSAS domain path being used +# @s1as.asenv.loc -- location of asenv.conf or asenv.bat +# @s1as.imqbin.loc -- location of the IMQ bin directory +# @s1as.lib -- Library directory for other Java EE RI +# jars +# @s1as.imq.share.lib -- Shared library directory for imq +# @s1as.jvm.options -- Java options needed by SJSAS +# The xxxlogin and xxxpassword are used +# to set known server side creds for use +# with connector tests. +# @s1as.applicationRoot-- Location of application repository +# Only needed when running on windows +############################################################### +s1as.admin.user=admin +s1as.admin.passwd= +s1as.admin.host=${orb.host} +s1as.admin.port=4848 +s1as.admin=${javaee.home}/bin/asadmin +s1as.server=server +s1as.domain.dir=${javaee.home}/domains +s1as.domain.name=domain1 +s1as.domain=${s1as.domain.dir}/${s1as.domain.name} +s1as.asenv.loc=${javaee.home}/config +s1as.imqbin.loc=${javaee.home}/../mq/bin +s1as.lib=${javaee.home}/lib +s1as.modules=${javaee.home}/modules +s1as.imq.share.lib=${javaee.home}/../mq/lib +s1as.jvm.options=-Doracle.jdbc.J2EE13Compliant=true:-Xmx4096m:-Dj2eelogin.name=${user}:-Dj2eelogin.password=${password}:-Deislogin.name=${user1}:-Deislogin.password=${password1}:-Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds}:-DwebServerPort.2=${webServerPort.2}:-DwebServerHost.2=${webServerHost.2} +s1as.jvm.options.remove=-Xmx512m:${s1as.jvm.options} +s1as.java.endorsed.dirs=${endorsed.dirs} +s1as.applicationRoot=c: + +############################################################### +# @sjsas.das.orb.port -- ORB port number for the DAS +# @sjsas.das.orb.host -- ORB host name for the DAS +# @sjsas.das.webServerPort -- HTTP listener port for the DAS +# @sjsas.das.securedWebServicePort -- HTTPS listener port for the DAS +# @sjsas.nodeagent.name -- Name of node agent used by +# the remote instance. +# @sjsas.nodeinstance.name -- Name of the remote instance +# @sjsas.master.password -- Used to create a node agent only +# applicable to EE. Defaults to changeit. This +# can be changed at EE install time. +# @sjsas.instance.config.dir -- config directory used by the intsance +# being tested. +# For PE/DAS = config +# For remote instance = config +# @sjsas.cts.timer.resource -- Backend to use when we are using java2db with +# the CMP tests for the jdbc/DBTimer resource +# @sjsas.cmp.backend -- Backend to use when we are using java2db with +# the CMP tests +# @sjsas.node.agent.dir.name -- The name of the node agent directory to use. +# This value will be used on Windows only and +# ignored on non-Windows platforms. The default +# is 'n' meaning the create-node-agent command +# will pass the --agentdir argument with a value +# of ${s1as.applicationRoot}\${sjsas.node.agent.dir.name}. +# @sjsas.env.type -- CTS test configuration. Possible values are: +# das (for PE or DAS) +# remote (for remote intance) +# cluster (for cluster config not yet supported) +# @s1as.targets -- Instance(s) to deploy tests +# Supports multiple instances, For example: +# s1as.targets=server server-1 +############################################################### +sjsas.das.orb.port=3700 +sjsas.das.orb.host=${orb.host} +sjsas.das.webServerPort=8000 +sjsas.das.securedWebServicePort=1043 +sjsas.nodeagent.name=node-agent-1 +sjsas.nodeinstance.name=server-1 +sjsas.master.password=changeit +sjsas.instance.config.dir=config +sjsas.cts.timer.resource=derby +sjsas.cmp.backend=derby +sjsas.node.agent.dir.name=n + +sjsas.env.type=das +#sjsas.env.type=remote + +s1as.targets=${s1as.server} +#s1as.targets=${sjsas.nodeinstance.name} + +############################################################### +# @s1as.pe.jmsServer -- name of the JMS server the RI/PE +# @s1as.se.jmsServer -- name of the JMS server for SE/EE +############################################################### +s1as.pe.jmsServer=imqbroker +s1as.se.jmsServer=imqbroker +#s1as.se.jmsServer=${s1as.domain.name}_${s1as.server} + +############################################################### +# @extension.dir - The extension directory for the app +# server under test. This does not apply +# to the RI. +# +# Note: App server vendors will need to set this to their +# app server's extension directory. The CTS config.vi +# target will copy the CTS library jars to this location. +############################################################### +extension.dir=${s1as.domain}/lib + +############################################################### +# @instance.listenerName - Default value for the iiop listener +# for your instance. Users will +# most likely not need to change this. +############################################################### +instance.listenerName=orb-listener-1 + +############################################################### +# @tz - your local timezone. For valid values, consult your +# Operating System documentation. +############################################################### +tz=US/Eastern + +############################################################### +# @jdbc.lib.class.path - This property is used by the +# database.classes properties to point to +# where the JDBC drivers live. +############################################################### +jdbc.lib.class.path=${ts.home}/internal/lib + +############################################################### +## The following section is for CTS Database configuration +## For each database that you will test, configure the following: +## Here is an example using derby: Users will need to +## replace derby with the appropriate DB name. +# @derby.dbName -- Database Name +# @derby.server -- Database Server +# @derby.port -- Database Server port +# @derby.dml.file -- DML file used for CTS test cases +# @derby.user -- User Id configured +# @derby.passwd -- User password configured +# @derby.url -- URL to the cts database +# @derby.driver -- DriverManager driver +# @derby.classes -- CLASSPATH to JDBC driver classes +# @derby.poolName -- Name of pool configured in the Java EE +# RI (do not change!) +# @derby.dataSource -- DataSource driver +# @derby.properties -- Any additional JDBC driver required +# properties +# @derby.startup.delay-- delay to wait for DB to start + +############################################################### + +## +## Info for Cloudscape 10/Derby +## +derby.dbName=derbyDB +derby.server=${orb.host} +derby.port=1527 +derby.port.ri=1527 +derby.dml.file=derby/derby.dml.sql +derby.user=cts1 +derby.passwd=cts1 +derby.url=jdbc:derby://${derby.server}:${derby.port}/${derby.dbName};create=true +derby.driver=org.apache.derby.jdbc.ClientDriver +derby.home=${javaee.home}/../javadb +derby.system.home=${derby.home}/databases +derby.classpath=${ts.home}/lib/dbprocedures.jar${pathsep}${derby.home}/lib/derbynet.jar${pathsep}${derby.home}/lib/derbyshared.jar${pathsep}${derby.home}/lib/derbytools.jar +derby.classes=${derby.home}/lib/derbyclient.jar${pathsep}${derby.home}/lib/derbyshared.jar${pathsep}${derby.home}/lib/derbytools.jar +derby.poolName=cts-derby-pool +derby.dataSource=org.apache.derby.jdbc.ClientDataSource +derby.properties=DatabaseName\=\"${derby.dbName}\":user\=${derby.user}:password\=${derby.passwd}:serverName\=${derby.server}:portNumber=${derby.port} +derby.startup.delay=5 + +# +# Cloudscape 10 /Derby embedded driver +# +derbyEmbedded.dbName=/tmp/DerbyDB +derbyEmbedded.server=${orb.host} +derbyEmbedded.port=1527 +derbyEmbedded.dml.file=derby/derby.dml.sql +derbyEmbedded.user=cts1 +derbyEmbedded.passwd=cts1 +derbyEmbedded.url=jdbc:derby:${derbyEmbedded.dbName};create=true +derbyEmbedded.driver=org.apache.derby.jdbc.EmbeddedDriver +derbyEmbedded.classes=${javaee.home}/../javadb/lib/derby.jar${pathsep}${javaee.home}/../javadb/lib/derbyshared.jar${pathsep}${javaee.home}/../javadb/lib/derbytools.jar${pathsep}${ts.home}/lib/dbprocedures.jar +derbyEmbedded.poolName=cts-derbyEmbedded-pool +derbyEmbedded.dataSource=org.apache.derby.jdbc.EmbeddedDataSource +derbyEmbedded.pool.url='jdbc\\:derby\\:${derbyEmbedded.dbName}\\;create=true' +derbyEmbedded.properties=DatabaseName\=\"${derbyEmbedded.dbName}\":user\=${derbyEmbedded.user}:password\=${derbyEmbedded.passwd} + + +## +## Info for DB2 (8.1 type 2 driver) +## +db2.dbName=cts +db2.server=${orb.host} +db2.port=50000 +db2.dml.file=db2/db2.dml.sql +db2.user=db2inst1 +db2.passwd=ibmdb2 +db2.url=jdbc:db2:${db2.dbName} +db2.driver=com.ibm.db2.jcc.DB2Driver +db2.classes=${jdbc.lib.class.path}/db2jcc.jar:${jdbc.lib.class.path}/db2jcc_license_cu.jar:${jdbc.lib.class.path}/db2java.zip +db2.poolName=cts-db2-pool +db2.dataSource=com.ibm.db2.jcc.DB2SimpleDataSource +db2.properties=user=${db2.user}:password=${db2.passwd}:databaseName=${db2.dbName}:driverType=2:deferPrepares\=false + +## +## Info for db2 using the DataDirect driver +## +db2DD.dbName=cts +db2DD.server=${orb.host} +db2DD.port=50000 +db2DD.dml.file=db2/db2.dml.sql +db2DD.user=db2inst1 +db2DD.passwd=ibmdb2 +db2DD.url=jdbc:datadirect:db2://${db2DD.server}:${db2DD.port};DatabaseName\=${db2DD.dbName} +db2DD.driver=com.ddtek.jdbc.db2.DB2Driver +db2DD.classes=${jdbc.lib.class.path}/util.jar${pathsep}${jdbc.lib.class.path}/db2.jar${pathsep}${jdbc.lib.class.path}/base.jar +db2DD.poolName=cts-db2-DataDirect-pool +db2DD.dataSource=com.ddtek.jdbcx.db2.DB2DataSource +db2DD.properties=user\=${db2DD.user}:password\=${db2DD.passwd}:ServerName\=${db2DD.server}:portNumber\=${db2DD.port}:databasename\=${db2DD.dbName} + +## +## Info for db2 using the Sun driver +## +db2Sun.dbName=cts +db2Sun.server=${orb.host} +db2Sun.port=50000 +db2Sun.dml.file=db2/db2.dml.sql +db2Sun.user=db2inst1 +db2Sun.passwd=ibmdb2 +db2Sun.url=jdbc:sun:db2://${db2Sun.server}:${db2Sun.port};DatabaseName\=${db2Sun.dbName} +db2Sun.driver=com.sun.sql.jdbc.db2.DB2Driver +db2Sun.classes=${jdbc.lib.class.path}/smdb2.jar +db2Sun.poolName=cts-db2-Sun-pool +db2Sun.dataSource=com.sun.sql.jdbcx.db2.DB2DataSource +db2Sun.properties=user\=${db2Sun.user}:password\=${db2Sun.passwd}:ServerName\=${db2Sun.server}:portNumber\=${db2Sun.port}:databasename\=${db2Sun.dbName} + +## +## Info for Microsoft SQL Server +## +mssqlserver.dbName=cts +mssqlserver.server=${orb.host} +mssqlserver.port=1433 +mssqlserver.dml.file=mssqlserver/mssqlserver.dml.sql +mssqlserver.user=guest +mssqlserver.passwd=guest +mssqlserver.url=jdbc:microsoft:sqlserver://${mssqlserver.server}:${mssqlserver.port} +mssqlserver.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver +mssqlserver.classes=${jdbc.lib.class.path}/sqljdbc.jar +mssqlserver.poolName=cts-mssqlserver-pool +mssqlserver.dataSource=com.microsoft.sqlserver.jdbc.SQLServerDataSource +mssqlserver.properties=user\=${mssqlserver.user}:password\=${mssqlserver.passwd}:ServerName\=${mssqlserver.server}:portNumber\=${mssqlserver.port} + + +## +## Info for Microsoft SQL Server using the DataDirect driver +## +mssqlserverDD.dbName=cts +mssqlserverDD.server=${orb.host} +mssqlserverDD.port=1433 +mssqlserverDD.dml.file=mssqlserver/mssqlserver.dml.sql +mssqlserverDD.user=guest +mssqlserverDD.passwd=guest +mssqlserverDD.url=jdbc:datadirect:sqlserver://${mssqlserverDD.server}:${mssqlserverDD.port} +mssqlserverDD.driver=com.ddtek.jdbc.sqlserver.SQLServerDriver +mssqlserverDD.classes=${jdbc.lib.class.path}/util.jar${pathsep}${jdbc.lib.class.path}/sqlserver.jar${pathsep}${jdbc.lib.class.path}/base.jar +mssqlserverDD.poolName=cts-mssqlserver-DataDirect-pool +mssqlserverDD.dataSource=com.ddtek.jdbcx.sqlserver.SQLServerDataSource +mssqlserverDD.properties=user\=${mssqlserverDD.user}:password\=${mssqlserverDD.passwd}:ServerName\=${mssqlserverDD.server}:portNumber\=${mssqlserverDD.port}:selectMethod\=cursor + +## +## Info for Microsoft SQL Server using the Inet driver +## +mssqlserverInet.dbName=cts1 +mssqlserverInet.server=${orb.host} +mssqlserverInet.port=1433 +mssqlserverInet.dml.file=mssqlserver/mssqlserver.dml.sql +mssqlserverInet.user=cts1 +mssqlserverInet.passwd=cts1 +mssqlserverInet.url=jdbc:inetdae7:${mssqlserverInet.server}:${mssqlserverInet.port} +mssqlserverInet.driver=com.inet.tds.TdsDriver +mssqlserverInet.classes=${jdbc.lib.class.path}/Merlia.jar +mssqlserverInet.poolName=cts-mssqlserver-Inet-pool +mssqlserverInet.dataSource=com.inet.tds.TdsDataSource +mssqlserverInet.properties=user\=${mssqlserverInet.user}:password\=${mssqlserverInet.passwd}:ServerName\=${mssqlserverInet.server}:port\=${mssqlserverInet.port} + +## +## Info for Microsoft SQL Server using the Sun driver +## +mssqlserverSun.dbName=cts +mssqlserverSun.server=${orb.host} +mssqlserverSun.port=1433 +mssqlserverSun.dml.file=mssqlserver/mssqlserver.dml.sql +mssqlserverSun.user=guest +mssqlserverSun.passwd=guest +mssqlserverSun.url=jdbc:sun:sqlserver://${mssqlserverSun.server}:${mssqlserverSun.port} +mssqlserverSun.driver=com.sun.sql.jdbc.sqlserver.SQLServerDriver +mssqlserverSun.classes=${jdbc.lib.class.path}/smsqlserver.jar +mssqlserverSun.poolName=cts-mssqlserver-Sun-pool +mssqlserverSun.dataSource=com.sun.sql.jdbcx.sqlserver.SQLServerDataSource +mssqlserverSun.properties=user\=${mssqlserverSun.user}:password\=${mssqlserverSun.passwd}:ServerName\=${mssqlserverSun.server}:portNumber\=${mssqlserverSun.port}:selectMethod\=cursor + +## +## Info for MYSQL driver +## +mysql.dbName=cts +mysql.server=${orb.host} +mysql.port=3306 +mysql.dml.file=mysql/mysql.dml.sql +mysql.user=cts1 +mysql.passwd=cts1 +mysql.url=jdbc:mysql://${mysql.server}:${mysql.port}/${mysql.dbName} +mysql.driver=com.mysql.jdbc.Driver +mysql.classes=${jdbc.lib.class.path}/mysql-connector-java-5.1.42-bin.jar +mysql.poolName=cts-mysql-pool +mysql.dataSource=com.mysql.jdbc.jdbc2.optional.MysqlDataSource +mysql.properties=user\=${mysql.user}:password\=${mysql.passwd}:DatabaseName\=${mysql.dbName}\:ServerName\=${mysql.server}\:port\=${mysql.port}\:jdbcCompliantTruncation\=false + +## +## Info for Oracle DataDirect +## +oracleDD.dbName=ora817 +oracleDD.server=${orb.host} +oracleDD.port=1521 +oracleDD.dml.file=oracle/oracle.dml.sql +oracleDD.user=la +oracleDD.passwd=la +oracleDD.url=jdbc:datadirect:oracle://${oracleDD.server};SID=${oracleDD.dbName} +oracleDD.driver=com.ddtek.jdbc.oracle.OracleDriver +oracleDD.classes=${jdbc.lib.class.path}/base.jar${pathsep}${jdbc.lib.class.path}/oracle.jar${pathsep}${jdbc.lib.class.path}/util.jar +oracleDD.poolName=cts-oracle-DataDirect-pool +oracleDD.dataSource=com.ddtek.jdbcx.oracle.OracleDataSource +oracleDD.properties=user\=${oracleDD.user}:password\=${oracleDD.passwd}:SID\="${oracleDD.dbName}":serverName=${oracleDD.server}:portNumber=${oracleDD.port} + +## +## Info for Oracle thin +## +oracle.dbName=cts +oracle.server=${orb.host} +oracle.port=1521 +oracle.dml.file=oracle/oracle.dml.sql +oracle.user=cts1 +oracle.passwd=cts1 +oracle.url=jdbc:oracle:thin:@${oracle.server}:${oracle.port}:${oracle.dbName} +oracle.driver=oracle.jdbc.OracleDriver +oracle.classes=${jdbc.lib.class.path}/ojdbc8.jar +oracle.poolName=cts-oracle-pool +oracle.dataSource=oracle.jdbc.pool.OracleDataSource +oracle.pool.url=jdbc\\:oracle\\:thin\\:@${oracle.server}\\:${oracle.port}\\:${oracle.dbName} +oracle.properties=user\=${oracle.user}:password\=${oracle.passwd}:URL\=\"${oracle.pool.url}\" + +# +# Info for Oracle oci driver +# +oracleOCI.dbName=cts1 +oracleOCI.server=${orb.host} +oracleOCI.port=1521 +oracleOCI.dml.file=oracle/oracle.dml.sql +oracleOCI.user=cts1 +oracleOCI.passwd=cts1 +oracleOCI.url=jdbc:oracle:oci:@${oracleOCI.dbName} +oracleOCI.driver=oracle.jdbc.OracleDriver +oracleOCI.classes=${jdbc.lib.class.path}/ojdbc8.jar +oracleOCI.poolName=cts-oracle-oci-pool +oracleOCI.dataSource=oracle.jdbc.pool.OracleDataSource +oracleOCI.pool.url=jdbc\\:oracle\\:oci\\:@${oracleOCI.dbName} +oracleOCI.properties=user\=${oracleOCI.user}:password\=${oracleOCI.passwd}:URL\=\"${oracleOCI.pool.url}\" + +## +## Info for Oracle inet +## +oracleInet.dbName=cts1 +oracleInet.server=${orb.host} +oracleInet.port=1521 +oracleInet.dml.file=oracle/oracle.dml.sql +oracleInet.user=cts1 +oracleInet.passwd=cts1 +oracleInet.url=jdbc:inetora:${oracleInet.server}:${oracleInet.port}:${oracleInet.dbName} +oracleInet.driver=com.inet.ora.OraDriver +oracleInet.classes=${jdbc.lib.class.path}/Oranxo.jar +oracleInet.poolName=cts-oracle-Inet-pool +oracleInet.dataSource=com.inet.ora.OraDataSource +oracleInet.properties=user\=${oracleInet.user}:password\=${oracleInet.passwd}:serviceName\="${oracleInet.dbName}":serverName=${oracleInet.server}:port=${oracleInet.port} + +## +## Info for Oracle Sun +## +oracleSun.dbName=ora817 +oracleSun.server=${orb.host} +oracleSun.port=1521 +oracleSun.dml.file=oracle/oracle.dml.sql +oracleSun.user=la +oracleSun.passwd=la +oracleSun.url=jdbc:sun:oracle://${oracleSun.server};SID=${oracleSun.dbName} +oracleSun.driver=com.sun.sql.jdbc.oracle.OracleDriver +oracleSun.classes=${jdbc.lib.class.path}/smoracle.jar +oracleSun.poolName=cts-oracle-Sun-pool +oracleSun.dataSource=com.sun.sql.jdbcx.oracle.OracleDataSource +oracleSun.properties=user\=${oracleSun.user}:password\=${oracleSun.passwd}:SID\="${oracleSun.dbName}":serverName=${oracleSun.server}:portNumber=${oracleSun.port} + +## +## Info for Pointbase +## +pointbase.dbName=cts +pointbase.server=${orb.host} +pointbase.port=9092 +pointbase.dml.file=pointbase/pointbase.dml.sql +pointbase.user=PBPUBLIC +pointbase.passwd=PBPUBLIC +pointbase.url=jdbc:pointbase:server://${pointbase.server}:${pointbase.port}/${pointbase.dbName},new +pointbase.driver=com.pointbase.jdbc.jdbcUniversalDriver +pointbase.classes=${jdbc.lib.class.path}/pbclient.jar${pathsep}${jdbc.lib.class.path}/pbembedded.jar +pointbase.poolName=cts-pointbase-pool +pointbase.dataSource=com.pointbase.jdbc.jdbcDataSource +pointbase.pool.url="jdbc\\:pointbase\\:server\\:\/\/${pointbase.server}\\:${pointbase.port}\/${pointbase.dbName},new" +pointbase.properties=user\=${pointbase.user}:password\=${pointbase.passwd}:DatabaseName\=\"${pointbase.pool.url}\" + +## +## Info for Postgres +## +postgresql.dbName=CTS5 +postgresql.server=${orb.host} +postgresql.port=5432 +postgresql.dml.file=postgresql/postgresql.dml.sql +postgresql.user=cts1 +postgresql.passwd=cts1 +postgresql.url=jdbc:postgresql://${postgresql.server}:${postgresql.port}/${postgresql.dbName} +postgresql.driver=org.postgresql.Driver +postgresql.classes=${jdbc.lib.class.path}/postgresql-8.4-701.jdbc4.jar +postgresql.poolName=cts-postgresql-pool +postgresql.pool.url="jdbc\\:postgresql\\:server\\:\/\/${postgresql.server}\\:${postgresql.port}\/${postgresql.dbName},new" +postgresql.dataSource=org.postgresql.ds.PGSimpleDataSource +postgresql.properties=user\=${postgresql.user}:password\=${postgresql.passwd}:DatabaseName\=${postgresql.dbName}\:ServerName\=${postgresql.server}\:port\=${postgresql.port} + +## +## Info for Sybase (jConnect Driver) +## +sybase.dbName=cts2 +sybase.server=${orb.host} +sybase.port=4100 +sybase.dml.file=sybase/sybase.dml.sql +sybase.user=cts1 +sybase.passwd=cts1 +sybase.url=jdbc:sybase:Tds:${sybase.server}:${sybase.port}/${sybase.dbName} +sybase.driver=com.sybase.jdbc2.jdbc.SybDriver +sybase.classes=${jdbc.lib.class.path}/jconn2.jar +sybase.poolName=cts-sybase-pool +sybase.dataSource= com.sybase.jdbc2.jdbc.SybDataSource +sybase.properties=user\=${sybase.user}:password\=${sybase.passwd}:DatabaseName\=${sybase.dbName}\:ServerName\=${sybase.server}\:PortNumber\=${sybase.port}\:BE_AS_JDBC_COMPLIANT_AS_POSSIBLE\=true\:FAKE_METADATA\=true + +## +## Info for Sybase (Inet Driver) +## +sybaseInet.dbName=cts2 +sybaseInet.server=${orb.host} +sybaseInet.port=4100 +sybaseInet.dml.file=sybase/sybase.dml.sql +sybaseInet.user=cts1 +sybaseInet.passwd=cts1 +sybaseInet.url=jdbc:inetsyb:${sybaseInet.server}:${sybaseInet.port}?database=${sybaseInet.dbName} +sybaseInet.driver=com.inet.syb.SybDriver +sybaseInet.classes=${jdbc.lib.class.path}/Sybelux.jar +sybaseInet.poolName=cts-sybase-Inet-pool +sybaseInet.dataSource= com.inet.syb.SybDataSource +sybaseInet.properties=user\=${sybaseInet.user}:password\=${sybaseInet.passwd}:DatabaseName\=${sybaseInet.dbName}\:ServerName\=${sybaseInet.server}\:PortNumber\=${sybaseInet.port} + + +## +## Info for Sybase using the DataDirect driver +## +sybaseDD.dbName=cts2 +sybaseDD.server=${orb.host} +sybaseDD.port=4100 +sybaseDD.dml.file=sybase/sybase.dml.sql +sybaseDD.user=cts1 +sybaseDD.passwd=cts1 +sybaseDD.url=jdbc:datadirect:sybase://${sybaseDD.server}:${sybaseDD.port} +sybaseDD.driver=com.ddtek.jdbc.sybase.SybaseDriver +sybaseDD.classes=${jdbc.lib.class.path}/util.jar${pathsep}${jdbc.lib.class.path}/sybase.jar${pathsep}${jdbc.lib.class.path}/base.jar +sybaseDD.poolName=cts-sybase-DataDirect-pool +sybaseDD.dataSource=com.ddtek.jdbcx.sybase.SybaseDataSource +sybaseDD.properties=user\=${sybaseDD.user}:password\=${sybaseDD.passwd}:ServerName\=${sybaseDD.server}:portNumber\=${sybaseDD.port}:selectMethod\=cursor:DatabaseName\=${sybaseDD.dbName} + +## +## Info for Sybase using the Sun driver +## +sybaseSun.dbName=cts2 +sybaseSun.server=${orb.host} +sybaseSun.port=4100 +sybaseSun.dml.file=sybase/sybase.dml.sql +sybaseSun.user=cts1 +sybaseSun.passwd=cts1 +sybaseSun.url=jdbc:sun:sybase://${sybaseSun.server}:${sybaseSun.port} +sybaseSun.driver=com.sun.sql.jdbc.sybase.SybaseDriver +sybaseSun.classes=${jdbc.lib.class.path}/smsybase.jar +sybaseSun.poolName=cts-sybase-Sun-pool +sybaseSun.dataSource=com.sun.sql.jdbcx.sybase.SybaseDataSource +sybaseSun.properties=user\=${sybaseSun.user}:password\=${sybaseSun.passwd}:ServerName\=${sybaseSun.server}:portNumber\=${sybaseSun.port}:selectMethod\=cursor:DatabaseName\=${sybaseSun.dbName} + +############################################################### +## The following database configuration section is for the CTS +## interop tests which require a database that is used by the +## reference implementation. These entries should not be changed. +# @derby.dbName.ri -- Database Name +# @derby.server.ri -- Database Server +# @derby.port.ri -- Database Server port +# @derby.dml.file.ri -- DML file used for CTS test cases +# @derby.user.ri -- User Id configured +# @derby.passwd.ri -- User password configured +# @derby.url.ri -- URL to the cts database +# @derby.driver.ri -- DriverManager driver +# @derby.classes.ri -- CLASSPATH to JDBC driver classes +# @derby.poolName.ri -- Name of pool configured in the Java EE +# RI (do not change!) +# @derby.dataSource.ri -- DataSource driver +# @derby.properties.ri -- Any additional JDBC driver required +# properties +# @derby.startup.delay.ri -- delay to wait for DB to start +############################################################### +derby.dbName.ri=derbyDBri +derby.server.ri=${orb.host.ri} +derby.port.ri=1527 +derby.dml.file.ri=derby/derby.dml.sql +derby.user.ri=cts1 +derby.passwd.ri=cts1 +derby.url.ri=jdbc:derby://${derby.server.ri}:${derby.port.ri}/${derby.dbName.ri};create=true +derby.driver.ri=org.apache.derby.jdbc.ClientDriver +derby.home.ri=${javaee.home.ri}/../javadb +derby.system.home.ri=${derby.home.ri}/databases +derby.classpath.ri=${ts.home}/lib/dbprocedures.jar${pathsep}${derby.home.ri}/lib/derbynet.jar${pathsep}${derby.home.ri}/lib/derbyshared.jar${pathsep}${derby.home.ri}/lib/derbytools.jar +derby.classes.ri=${derby.home.ri}/lib/derbyclient.jar{pathsep}${derby.home.ri}/lib/derbyshared.jar${pathsep}${derby.home.ri}/lib/derbytools.jar +derby.poolName.ri=cts-derby-pool +derby.dataSource.ri=org.apache.derby.jdbc.ClientDataSource +derby.properties.ri=DatabaseName\=\"${derby.dbName.ri}\":user\=${derby.user.ri}:password\=${derby.passwd.ri}:serverName\=${derby.server.ri}:portNumber=${derby.port.ri} +derby.startup.delay.ri=5 +############################################################### +# @alt.dtd.dir DTD location for Java EE and RI xml files. Used +# for xml validation when building tests. If +# javaee.home.ri is set, /lib/dtds +# will be used and alt.dtd.dir is ignored. +# @alt.schema.dir schema location for Java EE and RI xml files. +# Used for xml validation when building tests. +# If javaee.home.ri is set, +# /lib/schemas will be used and +# alt.schema.dir is ignored. +############################################################### +alt.dtd.dir=${ts.home}/lib/dtds +alt.schema.dir=${ts.home}/lib/schemas + +############################################################### +## Configure the behavior of which tables CTS will create when +## ant init.[datbaseName] is invoked. +# +# @create.cmp.tables - When set to false, the appserver is +# responsible for creating cmp tables +# at deployment of the ejb/ear +# When set to true, init.[datbaseName] +# will create the tables used by CMP +# EJBs. The sql for the CMP tables are +# contained in: +# $TS_HOME/[datbaseName]/sql/[databaseName].ddl.cmp.sql +# $TS_HOME/[datbaseName]/sql/[databaseName].ddl.interop.sql +# +############################################################### +create.cmp.tables=true + +############################################################### +# @jdbc.poolName - Configure the connection pool that will be +# tested in this cts test run. +# +# @jdbc.maxpoolsize - This property defines the max pool size +# when creating JDBC connection pools. +# +# @jdbc.steadypoolsize - This property defines the steady pool size +# when creating JDBC connection pools. +############################################################### +jdbc.poolName=${derby.poolName} +jdbc.maxpoolsize=64 +jdbc.steadypoolsize=32 + +############################################################### +## These properties are use for the CTS +## interop tests which require a database that is used by the +## reference implementation. +# +# @jdbc.poolName.ri - Configure the connection pool that will be +# use when configuring the JDBC connection +# pools for the reference implemetation. +# +# @jdbc.maxpoolsize.ri - This property defines the max pool size +# when creating JDBC connection pools. +# +# @jdbc.steadypoolsize.ri - This property defines the steady pool size +# when creating JDBC connection pools. +############################################################### +jdbc.poolName.ri=${derby.poolName.ri} +jdbc.maxpoolsize.ri=96 +jdbc.steadypoolsize.ri=32 + +############################################################### +# @jdbc.datasource.props - Used to to specify Vendor specific +# properties and less commonly used DataSource properties. +# Its value is a comma-separated array of name-value pairs. +# Each property pair follows the format of "name=value", +# including the surrounding double quotes. +# +# The value of this property must not contain any extra spaces. +# +# In most cases, this property is not needed and therefore +# commented out. +# +############################################################### +#jdbc.datasource.props="driverType=thin","name2=value2" + +############################################################### +# @jdbc.db - The name of the currently configured DB. This +# value is the prefix of the DB properties currently +# being used. Some valid values are; derby and +# derbyEmbedded. See the other DB property +# names for other valid values. +############################################################### +jdbc.db=derby +jdbc.db.classes=${derby.classes} + +############################################################### +## These properties are configurable and must specify valid +## usernames and passwords to establish JDBC connections to +## backend RDBMS. +## +# @user1 - Set this to the user for the jdbc/DB1 resource +# @password1 - Set this to the password for the jdbc/DB1 resource +# @user2 - Set this to the user for the jdbc/DB2 resource +# @password2 - Set this to the password for the jdbc/DB2 resource +# @user3 - Set this to the user for the jdbc/DBTimer resource +# @password3 - Set this to the password for the jdbc/DBTimer resource +############################################################### +user1=${derby.user} +password1=${derby.passwd} +user2=${derby.user} +password2=${derby.passwd} +user3=${derby.user} +password3=${derby.passwd} + +############################################################### +## Configure the dml file to use +# @db.dml.file - dml file for VI +# @db.dml.file.ri - dml file for RI +############################################################### +db.dml.file=${derby.dml.file} +db.dml.file.ri=${derby.dml.file} + +############################################################### +## Configure the DB specific information needed by JSTL +# @jstl.db.driver - JDBC driver +# @jstl.db.url - DB URL +############################################################### +jstl.db.driver=${derby.driver} +jstl.db.url=${derby.url} + +######################################################################## +# +# @jtaJarClasspath: This property must be set when running signature +# tests. This property should be set to the Path +# for the JTA API jar. +# +######################################################################## +jtaJarClasspath=${s1as.modules}/jakarta.transaction-api.jar + +############################################################### +## Classpath properties required by CTS: +# @javaee.classes.ri -- Classes required by Java EE RI +# @ts.run.classpath.ri -- Classpath required by Java EE RI +# appclient container. +# @ts.run.classpath -- Classpath required by the vendor +# appclient container. +# @ts.harness.classpath -- Classes required by javatest +# @ts.classpath -- Classes used to build the CTS tests +# @ts.lib.classpath -- Classes used to build cts.jar +############################################################### +implementation.classes.ri=${ri.modules}/orb-connector.jar${pathsep}${ri.modules}/deployment-client.jar${pathsep}${ri.modules}/security-ee.jar${pathsep}${ri.modules}/security.jar${pathsep}${ri.modules}/common-util.jar${pathsep}${ri.modules}/glassfish-corba-omgapi.jar${pathsep}${ri.modules}/glassfish-corba-orb.jar${pathsep}${ri.modules}/internal-api.jar${pathsep}${ri.modules}/deployment-common.jar${pathsep}${ri.modules}/gmbal.jar${pathsep}${ri.modules}/bean-validator.jar${pathsep}${ri.modules}/jersey-client.jar${pathsep}${ri.modules}/jersey-common.jar${pathsep}${ri.modules}/jersey-hk2.jar${pathsep}${ri.modules}/jersey-media-jaxb.jar${pathsep}${ri.modules}/jersey-media-sse.jar${pathsep}${ri.modules}/jersey-media-json-processing.jar${pathsep}${ri.modules}/jsonp-jaxrs.jar${pathsep}${ri.modules}/jersey-media-json-binding.jar${pathsep}${ri.modules}/jersey-server.jar${pathsep}${ri.modules}/jersey-container-servlet.jar${pathsep}${ri.modules}/jersey-container-servlet-core.jar${pathsep}${ri.modules}/guava.jar${pathsep}${ri.modules}/jakarta.el.jar${pathsep}${ri.modules}/jakarta.el-api.jar${pathsep}${ri.modules}/tyrus-websocket-core.jar${pathsep}${ri.modules}/tyrus-client.jar${pathsep}${ri.modules}/tyrus-container-grizzly-client.jar${pathsep}${ri.modules}/tyrus-core.jar${pathsep}${ri.modules}/tyrus-container-grizzly.jar${pathsep}${ri.modules}/tyrus-container-grizzly-client.jar${pathsep}${ri.modules}/glassfish-grizzly-extra-all.jar${pathsep}${ri.modules}/nucleus-grizzly-all.jar${pathsep}${ri.modules}/tyrus-server.jar${pathsep}${ri.modules}/tyrus-container-servlet.jar${pathsep}${ri.modules}/tyrus-spi.jar${pathsep}${ri.modules}/yasson.jar${pathsep}${ri.modules}/jakarta.websocket-client-api.jar${pathsep}${ri.modules}/parsson.jar${pathsep}${ri.modules}/parsson-media.jar${pathsep}${ri.modules}/angus-activation.jar${pathsep}${ri.modules}/angus-mail.jar${pathsep}${ri.modules}/expressly.jar + +implementation.classes=${s1as.modules}/deployment-client.jar${pathsep}${s1as.modules}/security.jar${pathsep}${s1as.modules}/common-util.jar${pathsep}${s1as.modules}/glassfish-corba-omgapi.jar${pathsep}${s1as.modules}/deployment-common.jar${pathsep}${s1as.modules}/gmbal.jar${pathsep}${s1as.modules}/bean-validator.jar${pathsep}${s1as.modules}/jakarta.ws.rs-api.jar${pathsep}${s1as.modules}/jersey-client.jar${pathsep}${s1as.modules}/jersey-common.jar${pathsep}${s1as.modules}/jersey-hk2.jar${pathsep}${s1as.modules}/jersey-media-jaxb.jar${pathsep}${s1as.modules}/jersey-media-sse.jar${pathsep}${s1as.modules}/jersey-media-json-processing.jar${pathsep}${s1as.modules}/jsonp-jaxrs.jar${pathsep}${s1as.modules}/jersey-media-json-binding.jar${pathsep}${s1as.modules}/jersey-server.jar${pathsep}${s1as.modules}/jersey-container-servlet.jar${pathsep}${s1as.modules}/jersey-container-servlet-core.jar${pathsep}${s1as.modules}/guava.jar${pathsep}${s1as.modules}/jakarta.el.jar${pathsep}${s1as.modules}/jakarta.el-api.jar${pathsep}${s1as.modules}/tyrus-websocket-core.jar${pathsep}${s1as.modules}/tyrus-client.jar${pathsep}${s1as.modules}/tyrus-core.jar${pathsep}${s1as.modules}/tyrus-container-grizzly.jar${pathsep}${s1as.modules}/tyrus-container-grizzly-client.jar${pathsep}${s1as.modules}/glassfish-grizzly-extra-all.jar${pathsep}${s1as.modules}/nucleus-grizzly-all.jar${pathsep}${s1as.modules}/tyrus-server.jar${pathsep}${s1as.modules}/tyrus-container-servlet.jar${pathsep}${s1as.modules}/tyrus-spi.jar${pathsep}${s1as.modules}/yasson.jar${pathsep}${s1as.modules}/jakarta.websocket-client-api.jar${pathsep}${s1as.modules}/parsson.jar${pathsep}${s1as.modules}/parsson-media.jar${pathsep}${s1as.modules}/angus-activation.jar${pathsep}${s1as.modules}/angus-mail.jar${pathsep}${s1as.modules}/expressly.jar + +javaee.classes.ri=${ri.modules}/jakarta.jms-api.jar${pathsep}${ri.modules}/jakarta.json.jar${pathsep}${ri.modules}/jakarta.json-api.jar${pathsep}${ri.modules}/jakarta.json.bind-api.jar${pathsep}${ri.modules}/jakarta.ejb-api.jar${pathsep}${ri.modules}/jakarta.annotation-api.jar${pathsep}${ri.modules}/jakarta.enterprise.deploy-api.jar${pathsep}${ri.modules}/jakarta.mail.jar${pathsep}${ri.modules}/jakarta.mail-api.jar${pathsep}${ri.modules}/jakarta.persistence.jar${pathsep}${ri.modules}/jakarta.persistence-api.jar${pathsep}${ri.modules}/jakarta.resource-api.jar${pathsep}${ri.modules}/jakarta.security.auth.message-api.jar${pathsep}${ri.modules}/jakarta.authentication-api.jar${pathsep}${ri.modules}/jakarta.security.jacc-api.jar${pathsep}${ri.modules}/jakarta.authorization-api.jar${pathsep}${ri.modules}/jakarta.interceptor-api.jar${pathsep}${ri.modules}/jakarta.servlet-api.jar${pathsep}${ri.modules}/jakarta.servlet.jsp-api.jar${pathsep}${ri.modules}/jakarta.transaction-api.jar${pathsep}${ri.modules}/jakarta.xml.bind-api.jar${pathsep}${ri.modules}/jaxb-osgi.jar${pathsep}${ri.modules}/jmxremote_optional-repackaged.jar${pathsep}${ri.modules}/jakarta.faces.jar${pathsep}${ri.modules}/jakarta.faces-api.jar${pathsep}${ri.modules}/jakarta.servlet.jsp.jstl.jar${pathsep}${ri.modules}/jakarta.servlet.jsp.jstl-api.jar${pathsep}${ri.modules}/webservices-osgi.jar${pathsep}${ri.modules}/webservices-api-osgi.jar${pathsep}${ri.modules}/ejb.security.jar${pathsep}${ri.modules}/glassfish-corba-csiv2-idl.jar${pathsep}${ri.modules}/weld-osgi-bundle.jar${pathsep}${implementation.classes.ri}${pathsep}${ri.modules}/javamail-connector.jar${pathsep}${ri.modules}/javamail-runtime.jar${pathsep}${ri.modules}/jakarta.websocket-api.jar${pathsep}${ri.modules}/jakarta.enterprise.concurrent-api.jar${pathsep}${ri.modules}/jakarta.enterprise.cdi-api.jar${pathsep}${ri.modules}/jakarta.security.enterprise-api.jar${pathsep}${ri.modules}/resolver.jar${pathsep}${ri.modules}/jakarta.websocket-client-api.jar${pathsep}${ri.modules}/parsson.jar${pathsep}${s1as.modules}/parsson-media.jar${pathsep}${ri.modules}/angus-activation.jar${pathsep}${s1as.modules}/angus-mail.jar${pathsep}${s1as.modules}/expressly.jar${pathsep}${ri.modules}/webservices-extra-jdk-packages.jar${pathsep}${ri.modules}/webservices-connector.jar${pathsep}${ri.modules}/webservices-extra-xmlsec.jar${pathsep}${ri.modules}/webservices.security.jar + +javaee.classes=${s1as.modules}/jakarta.jms-api.jar${pathsep}${s1as.modules}/jakarta.json.jar${pathsep}${s1as.modules}/jakarta.json-api.jar${pathsep}${s1as.modules}/jakarta.json.bind-api.jar${pathsep}${s1as.modules}/jakarta.ejb-api.jar${pathsep}${s1as.modules}/jakarta.annotation-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.deploy-api.jar${pathsep}${s1as.modules}/jakarta.mail.jar${pathsep}${s1as.modules}/jakarta.mail-api.jar${pathsep}${s1as.modules}/jakarta.persistence.jar${pathsep}${s1as.modules}/jakarta.persistence-api.jar${pathsep}${s1as.modules}/jakarta.resource-api.jar${pathsep}${s1as.modules}/jakarta.security.auth.message-api.jar${pathsep}${s1as.modules}/jakarta.security.jacc-api.jar${pathsep}${s1as.modules}/jakarta.authentication-api.jar${pathsep}${s1as.modules}/jakarta.authorization-api.jar${pathsep}${s1as.modules}/jakarta.servlet-api.jar${pathsep}${s1as.modules}/el-impl.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp-api.jar${pathsep}${jtaJarClasspath}${pathsep}${s1as.modules}/jakarta.xml.bind-api.jar${pathsep}${s1as.modules}/jaxb-osgi.jar${pathsep}${s1as.modules}/jmxremote_optional-repackaged.jar${pathsep}${s1as.modules}/jakarta.faces.jar${pathsep}${s1as.modules}/jakarta.faces-api.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp.jstl.jar${pathsep}${ri.modules}/jakarta.servlet.jsp.jstl-api.jar${pathsep}${s1as.modules}/webservices-osgi.jar${pathsep}${s1as.modules}/webservices-api-osgi.jar${pathsep}${s1as.modules}/jakarta.management.j2ee-api.jar${pathsep}${s1as.modules}/ejb.security.jar${pathsep}${s1as.modules}/glassfish-corba-csiv2-idl.jar${pathsep}${s1as.modules}/weld-osgi-bundle.jar${pathsep}${implementation.classes}${pathsep}${s1as.modules}/javamail-connector.jar${pathsep}${s1as.modules}/javamail-runtime.jar${pathsep}${s1as.modules}/jakarta.websocket-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.concurrent-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.cdi-api.jar$${pathsep}${s1as.modules}/jakarta.xml.ws-api.jar${pathsep}${s1as.modules}/jakarta.xml.bind-api.jar${pathsep}${s1as.modules}/jakarta.security.enterprise-api.jar${pathsep}${s1as.modules}/jakarta.inject-api.jar${pathsep}${s1as.modules}/jakarta.activation-api.jar${pathsep}${s1as.modules}/jakarta.validation-api.jar${pathsep}${s1as.modules}/resolver.jar${pathsep}${s1as.modules}/jakarta.websocket-client-api.jar${pathsep}${s1as.modules}/parsson.jar${pathsep}${s1as.modules}/parsson-media.jar${pathsep}${s1as.modules}/angus-activation.jar${pathsep}${s1as.modules}/angus-mail.jar${pathsep}${s1as.modules}/expressly.jar${pathsep}${s1as.modules}/webservices-extra-jdk-packages.jar${pathsep}${s1as.modules}/webservices-connector.jar${pathsep}${s1as.modules}/webservices-extra-xmlsec.jar${pathsep}${s1as.modules}/webservices.security.jar + +ts.run.classpath.ri=${javaee.classes.ri}${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar + +ts.run.classpath=${pathsep}${javaee.classes}${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${jdbc.db.classes} + +ts.harness.classpath=${ts.home}/lib/jaxb-api.jar${pathsep}${ts.home}/lib/jaxb-core.jar${pathsep}${ts.home}/lib/jaxb-impl.jar${pathsep}${ts.home}/lib/jaxb-xjc.jar${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${ts.home}/lib/sigtest.jar${pathsep}${ts.run.classpath}${pathsep}${ts.home}/lib/javatest.jar${pathsep}${ts.home}/lib/jdom-1.1.3.jar${pathsep}${ant.home}/lib/ant.jar${pathsep}${ri.modules}/admin-cli.jar + +#classpath used for building CTS tests only (DO NOT MODIFY) +ts.classpath=${ts.home}/lib/commons-lang3-3.3.2.jar${pathsep}${javaee.home.ri}/javadb/lib/derby.jar${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${ts.home}/lib/sigtest.jar${pathsep}${ts.run.classpath}${pathsep}${ts.run.classpath.ri}${pathsep}${ts.home}/lib/javatest.jar${pathsep}${ts.home}/lib/jdom-1.1.3.jar${pathsep}${ant.home}/lib/ant.jar${pathsep}${ts.home}/lib/commons-httpclient-3.1.jar${pathsep}${ts.home}/lib/commons-logging-1.1.3.jar${pathsep}${ts.home}/lib/htmlunit-2.15.jar${pathsep}${ts.home}/lib/htmlunit-core-js-2.15.jar${pathsep}${ts.home}/lib/unboundid-ldapsdk.jar${pathsep}${ts.home}/lib/commons-codec-1.9.jar${pathsep}${ts.home}/lib/xml-apis-1.4.01.jar${pathsep}${ts.home}/lib/jaxb-api.jar +#classpath used for building cts.jar (DO NOT MODIFY) +ts.lib.classpath=${javaee.home.ri}/javadb/lib/derby.jar${pathsep}${ts.harness.classpath} + + +############################################################### +# @javaee.home.ri.classpathsuffix - The classpath suffix of +# the RI used in interop tests. Must contain the RI JDBC +# driver jars and the RMI interceptor classes. +############################################################### +javaee.home.ri.classpathsuffix=${javaee.home.ri}/lib/riinterceptors.jar${pathsep}${javaee.home.ri}/javadb/lib/derbyclient.jar + +############################################################### +# @s1as.classpathsuffix - The classpath suffix of +# the RI when being used as the app server under test. +############################################################### +s1as.classpathsuffix=${javaee.home}/lib/tsprovider.jar + +######################################################################## +## Common environment for both ts_unix and ts_win32 +# +# @command.testExecute - This command is used to execute any test +# clients which are not run inside an +# application client container. For example, +# any URL clients or standalone java clients +# would be executed with this command. Some +# test directories which make use of this command +# are servlet and jsp. +######################################################################## + +command.testExecute=com.sun.ts.lib.harness.ExecTSTestCmd \ + CLASSPATH=${ts.harness.classpath}${pathsep}${ts.home}/classes${pathsep}\ + ${JAVA_HOME}/../lib/tools.jar${pathsep}\ + ${ri.modules}/security-ee.jar${pathsep}\ + ${ts.home}/lib/commons-httpclient-3.1.jar${pathsep}\ + ${ts.home}/lib/commons-logging-1.1.3.jar${pathsep}\ + ${ts.home}/lib/commons-codec-1.9.jar${pathsep}\ + ${ts.home}/lib/cssparser-0.9.25.jar${pathsep}\ + ${ts.home}/lib/htmlunit-2.15.jar${pathsep}\ + ${ts.home}/lib/htmlunit-core-js-2.15.jar${pathsep}\ + ${ts.home}/lib/httpcore-4.4.9.jar${pathsep}\ + ${ts.home}/lib/httpclient-4.5.5.jar${pathsep}\ + ${ts.home}/lib/httpmime-4.5.5.jar${pathsep}\ + ${ts.home}/lib/commons-collections-3.2.1.jar${pathsep}\ + ${ts.home}/lib/commons-io-2.4.jar${pathsep}\ + ${ts.home}/lib/commons-lang3-3.3.2.jar${pathsep}\ + ${ts.home}/lib/jaxen-1.1.6.jar${pathsep}\ + ${ts.home}/lib/nekohtml-1.9.21.jar${pathsep}\ + ${ts.home}/lib/sac-1.3.jar${pathsep}\ + ${ts.home}/lib/saxpath.jar${pathsep}\ + ${ts.home}/lib/xercesImpl-2.11.0.jar${pathsep}\ + ${ts.home}/lib/xalan-2.7.2.jar${pathsep}\ + ${ts.home}/lib/serializer-2.7.2.jar${pathsep}\ + ${ts.home}/lib/xml-apis-1.4.01.jar${pathsep}\ + ${ts.home}/lib/unboundid-ldapsdk.jar${pathsep}\ + ${jdbc.db.classes} \ + DISPLAY=${ts.display} \ + HOME="${user.home}" \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + PATH="${javaee.home}/nativelib" \ + ${JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Xss2048k \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Djavax.net.ssl.trustStore=${s1as.domain}/${sjsas.instance.config.dir}/cacerts.jks \ + -Dcom.sun.aas.installRoot=${javaee.home} \ + -Dlog.file.location=${log.file.location} \ + -Dservlet.is.jsr115.compatible=${servlet.is.jsr115.compatible} \ + -Dprovider.configuration.file=${provider.configuration.file} \ + -Djava.security.properties=${s1as.domain}/${sjsas.instance.config.dir}/ts.java.security \ + -Dlogical.hostname.servlet=${logical.hostname.servlet} \ + -Dcom.sun.aas.configRoot=${javaee.home}/config \ + -Ddeliverable.class=${deliverable.class} $testExecuteClass $testExecuteArgs + +######################################################################## +## Appclient Command line for the App Server under test +## Licensees modify this command +# +# @command.testExecuteAppClient - This command is used to execute +# the application client container for +# the vendor implementation (vi). +# Please note that $TS_HOME/classes +# should not be in the classpath for +# this command since all client classes +# are self contained in the application +# archive (or referenced via the manifest). +######################################################################## +command.testExecuteAppClient= \ + com.sun.ts.lib.harness.ExecTSTestCmd DISPLAY=${ts.display} HOME="${user.home}" \ + LD_LIBRARY_PATH=${javaee.home}/lib \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + PATH="${javaee.home}/nativelib" \ + APPCPATH=${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${javaee.home}/lib/jpa_alternate_provider.jar${pathsep}${ts.home}/lib/tssv.jar${pathsep}${javaee.home}/modules/weld-osgi-bundle.jar${pathsep}${javaee.home}/modules/jakarta.enterprise.cdi-api.jar \ + TZ=${tz} \ + ${JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Djava.system.class.loader=org.glassfish.appclient.client.acc.agent.ACCAgentClassLoader \ + -Djava.security.policy=${javaee.home}/lib/appclient/client.policy \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.security.auth.login.config=${javaee.home}/lib/appclient/appclientlogin.conf \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Dcom.sun.enterprise.home=${javaee.home} \ + -Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Dcom.sun.aas.installRoot=${javaee.home} \ + -Dcom.sun.aas.imqLib=${javaee.home}/../mq/lib \ + -Djavax.net.ssl.trustStore=${s1as.domain}/${sjsas.instance.config.dir}/cacerts.jks \ + -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl \ + -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl \ + -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl \ + -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser \ + -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter \ + -Doracle.jdbc.J2EE13Compliant=true \ + -Doracle.jdbc.mapDateToTimestamp \ + -Dstartup.login=false \ + -Dauth.gui=false \ + -Dlog.file.location=${log.file.location} \ + -Dri.log.file.location=${ri.log.file.location} \ + -DwebServerHost.2=${webServerHost.2} \ + -DwebServerPort.2=${webServerPort.2} \ + -Dprovider.configuration.file=${provider.configuration.file} \ + -Djava.security.properties=${s1as.domain}/${sjsas.instance.config.dir}/ts.java.security \ + -Dcom.sun.aas.configRoot=${javaee.home}/config \ + -Ddeliverable.class=${deliverable.class} -javaagent:${javaee.home}/lib/gf-client.jar=arg=-configxml,arg=${ts.home}/tmp/appclient/s1as.sun-acc.xml,client=jar=$testExecuteArgs + +#-Ddeliverable.class=${deliverable.class} -javaagent:${javaee.home}/modules/gf-client.jar=arg=-configxml,arg=${s1as.domain}/config/sun-acc.xml,client=jar=$testExecuteArgs +#-Xbootclasspath/a:${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar + +######################################################################## +# @command.testExecuteEjbEmbed - Command line for standalone embedded EJB tests. +# Its classpath must include all the APIs required +# by EJB Lite, vendor's implementation classes and +# configuration for embeddable EJB container, and +# JDBC driver classes (e.g., ${db2.classes}, +# ${oracle.classes}, etc). +# +# Current test archives are dynamically added to +# the classpath by the harness, and need not be +# included in the classpath here. +# +# Most test directories contain one test archive, +# all named ejbembed_vehicle_ejb.jar. If certain +# tooling and pre-processing of test archives are +# needed, the resulting test archives must remain +# the same name and location. +# +# ${ts.home}/classes must not be in the classpath +# since all the required test classes are packaged +# in the test archive (ejbembed_vehicle_ejb.jar). In +# addition, including ${ts.home}/classes in the +# classpath would incorrectly expose all EJBs in +# cts to EJB container bootstrapping process. +######################################################################## +command.testExecuteEjbEmbed=com.sun.ts.lib.harness.ExecTSTestCmd \ + CLASSPATH=${ts.home}/lib/tsharness.jar${pathsep}\ + ${ts.home}/lib/cts.jar${pathsep}\ + ${ts.home}/lib/glassfishporting.jar${pathsep}\ + ${ts.home}/lib/commons-lang3-3.3.2.jar${pathsep}\ + ${jdbc.db.classes}${pathsep}\ + ${javaee.home}/lib/embedded/glassfish-embedded-static-shell.jar \ + DISPLAY=${ts.display} \ + HOME="${user.home}" \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + ${JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.util.logging.config.file=${TS_HOME}/bin/client-logging.properties \ + -Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds} \ + -Ddeliverable.class=${deliverable.class} $testExecuteClass $testExecuteArgs + + +######################################################################## +## Appclient Command line for the Java EE RI (Do not modify) +######################################################################## +command.testExecuteAppClient2= \ + com.sun.ts.lib.harness.ExecTSTestCmd DISPLAY=${ts.display} HOME="${user.home}" \ + LD_LIBRARY_PATH=${javaee.home.ri}/lib \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + PATH="${javaee.home.ri}/nativelib" \ + APPCPATH=${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${ts.home}/lib/riinterceptors.jar \ + TZ=${tz} \ + ${RI_JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Djava.system.class.loader=org.glassfish.appclient.client.acc.agent.ACCAgentClassLoader \ + -Djava.security.policy=${javaee.home.ri}/lib/appclient/client.policy \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.security.auth.login.config=${javaee.home.ri}/lib/appclient/appclientlogin.conf \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Dcom.sun.enterprise.home=${javaee.home.ri} \ + -Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Dcom.sun.aas.installRoot=${javaee.home.ri} \ + -Dcom.sun.aas.imqLib=${javaee.home.ri}/../mq/lib \ + -Djavax.net.ssl.trustStore=${ri.domain}/config/cacerts.jks \ + -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl \ + -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl \ + -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl \ + -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser \ + -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter \ + -Doracle.jdbc.J2EE13Compliant=true \ + -Doracle.jdbc.mapDateToTimestamp \ + -Dstartup.login=false \ + -Dauth.gui=false \ + -Dlog.file.location=${log.file.location} \ + -Dri.log.file.location=${ri.log.file.location} \ + -DwebServerHost.2=${webServerHost.2} \ + -DwebServerPort.2=${webServerPort.2} \ + -Dprovider.configuration.file=${provider.configuration.file} \ + -Djava.security.properties=${s1as.domain}/${sjsas.instance.config.dir}/ts.java.security \ + -Dcom.sun.aas.configRoot=${javaee.home.ri}/config \ + -Ddeliverable.class=${deliverable.class} -javaagent:${javaee.home.ri}/lib/gf-client.jar=arg=-configxml,arg=${ts.home}/tmp/appclient/ri.sun-acc.xml,client=jar=$testExecuteArgs + +######################################################################## +## Command line for standalone clients running against the +## Java EE RI (Do not modify) +######################################################################## +command.testExecute2=com.sun.ts.lib.harness.ExecTSTestCmd \ + CLASSPATH=${ts.harness.classpath}${pathsep}${ts.home}/classes${pathsep}\ + ${ts.home}/lib/commons-httpclient-3.1.jar${pathsep}\ + ${ts.home}/lib/commons-logging-1.1.3.jar${pathsep}\ + ${ts.home}/lib/commons-codec-1.9.jar${pathsep}\ + ${ts.home}/lib/cssparser-0.9.25.jar${pathsep}\ + ${ts.home}/lib/htmlunit-2.15.jar${pathsep}\ + ${ts.home}/lib/htmlunit-core-js-2.15.jar${pathsep}\ + ${ts.home}/lib/httpcore-4.4.9.jar${pathsep}\ + ${ts.home}/lib/httpclient-4.5.5.jar${pathsep}\ + ${ts.home}/lib/httpmime-4.5.5.jar${pathsep}\ + ${ts.home}/lib/commons-collections-3.2.1.jar${pathsep}\ + ${ts.home}/lib/commons-io-2.4.jar${pathsep}\ + ${ts.home}/lib/commons-lang3-3.3.2.jar${pathsep}\ + ${ts.home}/lib/jaxen-1.1.6.jar${pathsep}\ + ${ts.home}/lib/nekohtml-1.9.21.jar${pathsep}\ + ${ts.home}/lib/sac-1.3.jar${pathsep}\ + ${ts.home}/lib/saxpath.jar${pathsep}\ + ${ts.home}/lib/xercesImpl-2.11.0.jar${pathsep}\ + ${ts.home}/lib/xalan-2.7.2.jar${pathsep}\ + ${ts.home}/lib/serializer-2.7.2.jar${pathsep}\ + ${ts.home}/lib/xml-apis-1.4.01.jar \ + ${ts.home}/lib/unboundid-ldapsdk.jar\ + DISPLAY=${ts.display} \ + HOME="${user.home}" \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + PATH="${javaee.home}/nativelib" \ + ${RI_JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Djavax.net.ssl.trustStore=${ri.domain}/${ri.instance.config.dir}/cacerts.jks \ + -Ddeliverable.class=${deliverable.class} $testExecuteClass $testExecuteArgs + +######################################################################### +## Environment for ts_unix +## 3 test execution commands inherit from common environment +## defined above: testExecuteAppClient2, testExecuteAppClient, and +## testExecute. If you need to override them, uncomment them in the +## following section. +######################################################################### +env.ts_unix.menu=true +##env.ts_unix.command.testExecute= +##env.ts_unix.command.testExecuteAppClient= +##env.ts_unix.command.testExecuteAppClient2= + + +######################################################################## +## Environment for ts_win32 +## 3 test execution commands inherit from common environment +## defined above: testExecuteAppClient2, testExecuteAppClient, and +## testExecute. If you need to override them, uncomment them in the +## following section. +######################################################################## +env.ts_win32.menu=true +##env.ts_win32.command.testExecute= +##env.ts_win32.command.testExecuteAppClient= +##env.ts_win32.command.testExecuteAppClient2= + +######################################################################### +# @jimage.dir: This property specifies the directory where Java 11+ +# modules will be expanded by the jimage tool for use +# in sigTestClasspath +# @sigTestClasspath: This property must be set when running signature +# tests. This property should be set to a list of +# jar files and/or directories which contain your +# Java EE and Java SE classes. Paths must be +# separated by the appropriate path separator +# (';' windows, ':' Unixes). +######################################################################### + +jimage.dir=${ts.home}/tmp/jdk-bundles + +sigTestClasspath=${s1as.modules}/glassfish-corba-omgapi.jar${pathsep}${s1as.modules}/glassfish-corba-orb.jar${pathsep}${s1as.modules}/jakarta.enterprise.cdi-api.jar${pathsep}${s1as.modules}/jakarta.json-api.jar${pathsep}${s1as.modules}/jakarta.json.bind-api.jar${pathsep}${s1as.modules}/jakarta.batch-api.jar${pathsep}${s1as.modules}/jakarta.interceptor-api.jar${pathsep}${s1as.modules}/stax2-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.concurrent-api.jar${pathsep}${s1as.modules}/jakarta.websocket-api.jar${pathsep}${s1as.modules}/jakarta.websocket-client-api.jar${pathsep}${s1as.modules}/jakarta.jms-api.jar${pathsep}${s1as.modules}/jakarta.faces.jar${pathsep}${s1as.modules}/jakarta.validation-api.jar${pathsep}${s1as.modules}/jakarta.annotation-api.jar${pathsep}${s1as.modules}/jakarta.xml.bind-api.jar${pathsep}${s1as.modules}/webservices-api-osgi.jar${pathsep}${pathsep}${s1as.modules}/jakarta.ws.rs-api.jar${pathsep}${s1as.modules}/weld-osgi-bundle.jar${pathsep}${s1as.modules}/jakarta.ejb-api.jar${pathsep}${s1as.modules}/jakarta.mail-api.jar${pathsep}${s1as.modules}/jakarta.persistence-api.jar${pathsep}${s1as.modules}/jakarta.resource-api.jar${pathsep}${s1as.modules}/jakarta.authorization-api.jar${pathsep}${s1as.modules}/jakarta.authentication-api.jar${pathsep}${s1as.modules}/jakarta.servlet-api.jar${pathsep}${s1as.modules}/jakarta.inject-api.jar${pathsep}${s1as.modules}/jakarta.el-api.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp-api.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp.jstl-api.jar${pathsep}${jtaJarClasspath}${pathsep}${s1as.modules}/jakarta.security.enterprise-api.jar${pathsep}${s1as.modules}/jakarta.activation-api.jar${pathsep}${jimage.dir}/java.base${pathsep}${jimage.dir}/java.rmi${pathsep}${jimage.dir}/java.sql${pathsep}${jimage.dir}/java.naming + +######################################################################## +## This property is used to support the odd side case when we have an +## optional technology package that is used but should not be tested. +## +## This property (i.e. optional.tech.packages.to.ignore) must be a comma +## separated list of packages that are NOT to be validated/tested when +## during the sigtest utilities validation of Optional Technologies. +## Example Usage: +## optional.tech.packages.to.ignore=javax.foo.pkg1,javax.bar.pkg2,com.blah.foo.pkg3 +## +## Additional notes: +## - always ignore the optional JAXB packages: +## optional.tech.packages.to.ignore=jakarta.xml.bind +## +######################################################################### +optional.tech.packages.to.ignore=jakarta.xml.bind + +######################################################################## +## These properties are used by the harness. "harness.log.port" +## specifies the port that server components use to send logging +## output back to JavaTest. If the default port # is not available +## on the machine running JavaTest, then you can set it here. +## +# +# @harness.temp.directory directory location used by the +# harness to store temporary files +# +# @harness.log.port the port the harness listens on for log mesages +# from remote clients +# +# @harness.log.traceflag used to turn on/off verbose debugging output +# for the tests. +# +# @harness.executeMode used to run the harness in the following modes +# of execution: +# 0 - default (deploy, run, undeploy) +# 1 - deploy only +# 2 - run only +# 3 - undeploy only +# 4 - deploy and run only +# +# @harness.socket.retry.count - denotes the number of time we should +# attempt to create a server socket when intilizing a test +# client. The socket is used for logging purposes. +# +# @harness.log.delayseconds Number of seconds to delay to allow +# reporting from remote clients to finish. +# +# @harness.maxoutputsize Number of characters that the harness will use +# for a test's output. +######################################################################## +harness.temp.directory=${ts.home}/tmp +harness.log.port=2000 +harness.log.traceflag=true +harness.executeMode=0 +harness.socket.retry.count=10 +harness.log.delayseconds=1 +harness.maxoutputsize=200000 + + +######################################################################### +# @wsdlRepository1 Location to publish final wsdl files when using +# file URL publishing for Vendor Java EE implementation. +# @wsdlRepository2 Location to publish final wsdl files when using +# file URL publishing for Sun RI. +######################################################################### +wsdlRepository1=${harness.temp.directory}/wsdlRepository1 +wsdlRepository2=${harness.temp.directory}/wsdlRepository2 + +####################################################################### +# @deployment_host.1 name of machine running the JSR 88 deployment +# process for the vendor's Java EE implementation. +# @deployment_host.2 name of machine running the JSR 88 deployment +# process for the Java EE RI. +# @deployment_port.1 deployment port (if applicable) for the vendor's +# Java EE implementation. +# @deployment_port.2 deployment port (if applicable) for the +# Java EE RI. +####################################################################### +deployment_host.1=${orb.host} +deployment_host.2=${orb.host.ri} +deployment_port.1=${impl.vi.port} +deployment_port.2=${impl.ri.port} + +#################################################################### +# Implementation Property Settings for Vendor and RI. These properties +# are used when either porting.ts.deploy.class.1 or porting.ts.deploy.class.2 +# are set to com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeployment. +# Note: They are are also used when using the "ant deploy" and "ant undeploy" +# targets outside of running tests. +# +# The CTS provides the glassfish implementation out of the box. +# +# Here are the common properties that need to be defined for the common +# implementation functionality: +# +# @impl.vi This property must be set to the Vendor implementation +# under test. +# @impl.vi.deploy.dir This property must be set to the deploy directory for +# the Vendor implementation. +# @impl.vi.host This property must be set to the admin host where +# the Vendor implementation is running. +# @impl.vi.port This property must be set to the admin port where +# the Vendor implementation is running. +# @impl.ri This property must be set to the RI implementation +# under test. +# @impl.ri.deploy.dir This property must be set to the deploy directory for +# the RI implementation. +# @impl.ri.host This property must be set to the admin host where +# the RI implementation is running. +# @impl.ri.port This property must be set to the admin port where +# the RI implementation is running. +# +# @impl.deploy.timeout.multiplier The time it will wait for deployment to +# succeed or fail +#################################################################### +impl.vi=glassfish +impl.vi.deploy.dir=${s1as.domain}/autodeploy +impl.vi.host=${s1as.admin.host} +impl.vi.port=${s1as.admin.port} + +impl.ri=glassfish +impl.ri.deploy.dir=${ri.domain}/autodeploy +impl.ri.host=${ri.admin.host} +impl.ri.port=${ri.admin.port} + +impl.deploy.timeout.multiplier=240 + + +############################################################### +## These properties are implementations of the pre-1.4 Deployment +## porting interface. The impls defined below use those APIs. +# +# @porting.ts.deploy.class.1 This property must point to an implementation +# of com.sun.ts.lib.porting.TSDeploymentInterface. The default +# value for this property points to an impl that deploys via copying/deleting +# to/from the RI autodeploy directory. More details about setting +# porting.ts.deploy.class.1: +# +# 1. Set this property to deploy/undeploy to/from your impl in +# a custom way. In the case of the RI, it would be set to the following. +# This is the default setting for CTS 8. +# +# porting.ts.deploy.class.1=com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeployment +# +# 2. Note that Jakarta Deployment is removed, so do not use either of the following classes: +# com.sun.ts.lib.deliverable.cts.deploy.StandardDeployment14 +# com.sun.ts.lib.porting.TSDeploymentInterface2 +# com.sun.ts.lib.implementation.sun.javaee.SunRIDeployment2 +# +# +# @porting.ts.deploy.class.2 This property must point to an implementation +# of com.sun.ts.lib.porting.TSDeploymentInterface. +# The default value for this property points to an impl that deploys via copying/deleting +# to/from the RI autodeploy directory. This should be left unchanged... +# +# porting.ts.deploy.class.2=com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeployment +# +# +############################################################### +porting.ts.deploy.class.1=com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeployment +porting.ts.deploy.class.2=com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeploymentSeparateVM + +######################################################################## +# @deploy.delay.in.minutes is no longer used, it was for pruned Jakarta Deployment +######################################################################## + +######################################################################## +## Following are no longer used, were settings for pruned Jakarta Deployment +######################################################################## +#deployManagerJarFile.1 +#deployManageruri.1 +#deployManageruname.1 +#deployManagerpasswd.1 + +######################################################################## +## Following are no longer used, were settings for pruned Jakarta Deployment +######################################################################## +#deployManagerJarFile.2 +#deployManageruri.2 +#deployManageruname.2 +#deployManagerpasswd.2 +# +# @porting.ts.deploy2.class.1 +# @porting.ts.deploy2.class.2 +# porting.ts.deploy2.class.1=com.sun.ts.lib.implementation.sun.javaee.SunRIDeployment2 +# porting.ts.deploy2.class.2=com.sun.ts.lib.implementation.sun.javaee.SunRIDeployment2 + + +############################################################### +## These properties must be set to tell the Test harness the +## class names of your porting class implementations. By default +## both property sets below point to Sun RI specific classes. To +## run interoperability tests, the ".2" set of properties should +## always point to Sun RI classes. The ".1" set should point to +## implementations that work in your specific Java EE environment. +# +# @porting.ts.login.class.1 VI of +# com.sun.ts.lib.porting.TSLoginContextInterface +# @porting.ts.url.class.1 VI of +# com.sun.ts.lib.porting.TSURLInterface +# @porting.ts.jms.class.1 VI of +# com.sun.ts.lib.porting.TSJMSAdminInterface +# @porting.ts.HttpsURLConnection.class.1 VI of +# com.sun.ts.lib.porting.TSHttpsURLConnectionInterface +# @porting.ts.login.class.2 RI of +# com.sun.ts.lib.porting.TSLoginContextInterface +# @porting.ts.url.class.2 RI of +# com.sun.ts.lib.porting.TSURLInterface +# @porting.ts.jms.class.2 RI of +# com.sun.ts.lib.porting.TSJMSAdminInterface +# @porting.ts.HttpsURLConnection.class.2 RI of +# com.sun.ts.lib.porting.TSHttpsURLConnectionInterface +############################################################### +porting.ts.login.class.1=com.sun.ts.lib.implementation.sun.javaee.GlassFishLoginContext +porting.ts.url.class.1=com.sun.ts.lib.implementation.sun.common.SunRIURL +porting.ts.jms.class.1=com.sun.ts.lib.implementation.sun.javaee.SunRIJMSAdmin +porting.ts.HttpsURLConnection.class.1=com.sun.ts.lib.implementation.sun.javaee.SunRIHttpsURLConnection + +##Porting class names for Sun RI Java EE Implementation #2 (must be Sun's RI) +porting.ts.login.class.2=com.sun.ts.lib.implementation.sun.javaee.GlassFishLoginContext +porting.ts.url.class.2=com.sun.ts.lib.implementation.sun.common.SunRIURL +porting.ts.jms.class.2=com.sun.ts.lib.implementation.sun.javaee.SunRIJMSAdmin +porting.ts.HttpsURLConnection.class.2=com.sun.ts.lib.implementation.sun.javaee.SunRIHttpsURLConnection + +############################################################## +# @namingServiceHost1 Naming Service host name for the +# Vendor's Implementation (VI) +# @namingServicePort1 Naming Service port for the VI +# @namingServiceHost2 Naming Service host name for the +# Reference Implementation (RI) +# @ namingServicePort2 Naming Service port for the RI +############################################################## +namingServiceHost1=${orb.host} +namingServicePort1=${orb.port} +namingServiceHost2=${orb.host.ri} +namingServicePort2=${orb.port.ri} + +############################################################## +# @certLoginUserAlias User alias for certificate based login. +# This property is used in mutual authentication to pickup the +# certificate based on the user alias. +############################################################## +certLoginUserAlias=cts + +##################################################################### +## The following properties must be set prior to running the Servlet +## or JSP API tests and interoperability tests. +## +## These properties must specify the host and port of the web server, +## in which the servlets and JSPs are deployed. +# +# @webServerHost hostname for the Vendor's Java EE Web Server +# @webServerPort port number of the Vendor's Java EE Web Server +# @webServerHost.2 hostname for the Java EE RI Web Server +# @webServerPort.2 port number of the Java EE RI Web Server +# @ServletClientThreads The ServletClientThreads property configures +# the number of threads used by the client for +# the SingleThreadModel servlet test. If the +# container implementation supports pooling of +# SingleThreadModel servlets, set the value of +# ServletClientThreads to twice the value of +# the default servlet instance pool size. If +# the container implementation only maintains +# a single instance of a SingleTheadModel +# servlet, leave the default value of 2. +##################################################################### +webServerHost=${orb.host} +webServerPort=8080 +webServerHost.2=${orb.host.ri} +webServerPort.2=8181 +ServletClientThreads=2 + +#################################################################### +# @EJBServer1TxInteropEnabled Transaction interoperability settings +# for Vendor Java EE EJB Server +# @EJBServer2TxInteropEnabled Transaction interoperability settings +# for Java EE RI EJB Server +#################################################################### +EJBServer1TxInteropEnabled=true +EJBServer2TxInteropEnabled=true + +############################################################### +## These properties are used for the Connector specific tests. +## +## You must be able to deploy the following resource adapters +## on your Java EE server. +############################################################### + +## JNDI name bindings. You should not change these. The TSDeploymentInterface +## will pass these values as a properties object. See the SunRIDeployment.java +## file for usage patterns. +whitebox-tx=java:comp/env/eis/whitebox-tx +whitebox-notx=java:comp/env/eis/whitebox-notx +whitebox-xa=java:comp/env/eis/whitebox-xa +whitebox-tx-param=java:comp/env/eis/whitebox-tx-param +whitebox-notx-param=java:comp/env/eis/whitebox-notx-param +whitebox-xa-param=java:comp/env/eis/whitebox-xa-param +whitebox-anno_no_md=java:comp/env/eis/whitebox-anno_no_md +whitebox-ibanno_no_md=java:comp/env/eis/whitebox-ibanno_no_md +whitebox-mixedmode=java:comp/env/eis/whitebox-mixedmode +whitebox-multianno=java:comp/env/eis/whitebox-multianno +whitebox-mdcomplete=java:comp/env/eis/whitebox-mdcomplete +whitebox-permissiondd=java:comp/env/eis/whitebox-permissiondd + +## Embedded resource adapter property +whitebox-embed=java:comp/env/eis/ejb_Deployment_whitebox-tx.rar + +whitebox-embed-xa="__SYSTEM/resource/ejb_Tsr#whitebox-xa#com.sun.ts.tests.common.connector.whitebox.TSConnectionFactory" +tsrJndiName=java:comp/TransactionSynchronizationRegistry +tsrHomeJndiName="java:global/ejb_Tsr/ejb_Tsr_ejb/Tsr" + +## JNDI name bindings for JDBC Connector. +JDBCwhitebox-tx=java:comp/env/eis/JDBCwhitebox-tx +JDBCwhitebox-notx=java:comp/env/eis/JDBCwhitebox-notx +JDBCwhitebox-xa=java:comp/env/eis/JDBCwhitebox-xa +JDBCwhitebox-tx-param=java:comp/env/eis/JDBCwhitebox-tx-param +JDBCwhitebox-notx-param=java:comp/env/eis/JDBCwhitebox-notx-param +JDBCwhitebox-xa-param=java:comp/env/eis/JDBCwhitebox-xa-param + +######################################################################### +## Resource adapter configuration values. You must modify these values +## to plug your JDBC driver into the TS JDBCwhitebox resource adapter. +## +## When you run the XA tests (src/com/sun/ts/tests/xa), you must +## configure this resource adapter to use a database. +## +# @xa.properties: These are the properties required by the XA driver. The +# managed connection factory will set these properties via +# reflection on the class specified by the +# xa.xadatasource.class property. +# +# Note: The xa.properties value is the set of properties that will be set on +# your XA JDBC driver (the class denoted by the xa.xadatasource.class property). +# See section 9.4.1 of the JDBC 3.0 specification for more details. +# +# When specifying the xa.properties property please escape the appropriate +# characters. The xa.properties value needs to be treated as a single property +# even though it is made up of many properties. The properties need to be +# separated by :'s and the names and values to be separated by ='s. +# We also need any values that contain colons or equals that do not +# need to be interrpretted to be inside single quotes. Anything in +# single quotes will be treated as a string literal. +# +# For example: The following xa.properties property: +# +# xa.properties=user=admin:password=some-password:DatabaseName='jdbc:pointbase:server://localhost:9092/cts,new' +# +# Would result in the following setters being called on the supplied XA JDBC driver denoted +# by the xa.xadatasource.class property. +# +# XADataSource.setUser("admin"); +# XADataSource.setPassword("some-password"); +# XADataSource.setDatabaseName("jdbc:pointbase:server://localhost:9092/cts,new"); +# +# Please map the property xa.properties to the property name XAProps and map the +# xa.xadatasource.class property to the property name XADataSourceName. This will +# ensure the appropriate setters will be called to make these properties +# available to the managed connection factory. See section 17.4.2 of the Connector +# specification version 1.5. +# +# @xa.xadatasource.class: The implementation of the XADataSource interface. +# This class is your XA JDBC driver. +# Please note: this class and any dependent classes +# must be accessible by the CTS libraries in the app +# server's extension directory. +# +# @connector_connectionURL: The URL for your JDBC driver. Should be the +# same as the one used for the rest of the TS. +# +######################################################################### + +### Cloudscape/Derby properties for XA +xa.properties="user\\\=${derbyEmbedded.user}\\\:password\\\=${derbyEmbedded.passwd}\\\:DatabaseName\\\=${derbyEmbedded.dbName}" +xa.xadatasource.class=org.apache.derby.jdbc.EmbeddedXADataSource +connector_connectionURL="jdbc\\:derby\\:${derbyEmbedded.dbName}\\;create\\=true" + +######################################################################### +## The following properties must be set before running any security +## related tests. The properties user, password, authuser, authpassword, +## and nobodyuser must be set. +## +## The value for user, password, authuser, and authpassword need to be set +## exactly as they are set in the container/server. +# +# @user User defined to exercise rolemapping feature +# @password Associated password for the user +# @authuser User defined to exercise rolemapping feature +# @authpassword Associated password for the authuser +# @user_vi Username for the vendor implementation used in +# interop tests +# @password_vi Associated password for the VI user +# @user_ri Username for the reference implementation used in +# interop tests +# @password_ri Associated password for the RI user +# @nobodyuser This value must be the same value returned by a call to +# getCallerPrincipal().getName() from the ejb-tier when +# an unauthenticated caller in the web tier invokes an +# ejb method. +######################################################################### +user=j2ee +password=j2ee +authuser=javajoe +authpassword=javajoe +user_vi=j2ee_vi +password_vi=j2ee_vi +user_ri=j2ee_ri +password_ri=j2ee_ri +nobodyuser=guest + +############################################################### +# @securedWebServicePort must be set to run secbasicssl and +# csiv2 tests. Set this property with your application +# server's secured webservice port. +# @securedWebServicePort.2 points to the secured webservice +# port in Sun's Reference Implementation(RI). +############################################################### +securedWebServicePort=1044 +securedWebServicePort.2=1045 + +############################################################################### +# @client.cert.test.jdk.tls.client.protocols JDK 11 in TLSv1.3 does not support +# Post-Handshake Authentication, so TLSv1.2 must be used +# for client-cert authentication to work. +############################################################################### +client.cert.test.jdk.tls.client.protocols=TLSv1.2 + +############################################################### +# @login This property must be set to run appclient security +# tests +############################################################### +login=default + +################################################################################ +##These properties are needed for jms tests. +# +# @jms_timeout - this is the amount of time in milliseconds that synchronous +# receives will wait for a message +############################################################################### +jms_timeout=10000 + +######################################################################### + +############################################################################### +## These properties are needed for the EJB timer tests. +# +# @ejb_timeout - this is the amount of time in milliseconds that duration will +# be set for an ejbtimeout callback method +# +# @ejb_wait - this is the amount of time in milliseconds that the client will +# wait for ejbtimeout callback method results +############################################################################## +ejb_timeout=30000 +ejb_wait=60000 + +############################################################################### +## This property is needed for ejb30 stateful timeout tests. +# @test.ejb.stateful.timeout.wait.seconds - the minimum amount of time in seconds +# the test client waits before verifying the status of the target stateful +# bean. Its value must be an integer number. Its default value in ts.jte +# file is 480 seconds. It may be set to a smaller number (e.g., 240 seconds) +# to speed up testing, depending on the stateful timeout implementation +# strategy in the target server. +# +# For these stateful timeout tests, the property javatest.timeout.factor +# must be set to a value such that the JavaTest harness does not timeout +# before the test completes. Usually setting javatest.timeout.factor to +# 2.0 or greater should suffice. +############################################################################### +test.ejb.stateful.timeout.wait.seconds=480 + +################################################################### +# @log.file.location This property is used by JACC tests to create +# and analyze provider logs. Specify the log directory in which +# your appserver generates logs. +################################################################### +log.file.location=${vi.log.file.location} + + +################################################################### +################################################################### +################################################################### +## PROPERTIES USERS WILL NOT HAVE TO SET LIVE BELOW +################################################################### +################################################################### +################################################################### + +## +## The directory seperator for the platform. User should not change +## this property. +## +dirsep=/ + +##build level +##1: compile only +##2: compile and build component archives (e.g., jar's, war's) +##3: compile and build component and application archives +##default is set to 3 +build.level=3 + +deliverable.class=com.sun.ts.lib.deliverable.cts.CTSDeliverable + +################################################################### +## Deliverables wanting ts.* packaging tasks to add extension list +## attributes to the manifest files must set this property to true. +################################################################### +create.manifest.extension.entries=true + +###################################################################### +## Deliverables must set this property to the name of the deliverable +## specific library jar file (iff create.manifest.extension.entries +## is set to true) +###################################################################### +tslib.name=cts + +############################################################### +## These properties are used by connector tests and are non configurable +## and must specify valid username,password to establish TSeis connection. +############################################################### +rauser1=cts1 +rapassword1=cts1 +rauser2=cts2 +rapassword2=cts2 + +############################################################### +## These properties are for JSTL +############################################################### +jstl.db.user=${user1} +jstl.db.password=${password1} + +############################################################### +## This command is only used when quickly checking any servlet +## or jsp related tests. The test clients will be run in +## the same JVM as JavaTest in this case. This mode can be +## enabled by passing "-Dsame.jvm=true" to the runclient or gui +## targets. NOTE: This option is only to be used for sanity +## checking and not when running CTS for compatibility. +############################################################### +command.testExecuteSameJVM=com.sun.ts.lib.harness.ExecuteTSTestSameJVMCmd \ + $testExecuteClass $testExecuteArgs + +############################################################### +## These properties are used for the JDBC specific tests, +## they do not need to be changed. +############################################################### +DriverManager=no +Driver=DriverOnlyUsedIfDriverManagerIsYes +db1=db1OnlyUsedIfDriverManagerIsYes +db2=db1OnlyUsedIfDriverManagerIsYes +ptable=ctstable1 +ftable=ctstable2 +cofSize=5 +cofTypeSize=5 +binarySize=24 +varbinarySize=48 +longvarbinarySize=50 + +ts_home=${ts.home} + +####################################################################### +## platform.mode is used by jpa tests to know whether to use +## the Java EE Programming Model for service and port access. +## platform.mode=jakartaEE Java EE Programming Model +###################################################################### +platform.mode=jakartaEE + +########################################################################### +# tools.jar should be set to the location of the tools.jar from the installed +# jdk +########################################################################### +tools.jar=/home/jenkins/agent/workspace/jakartaee-tck_master/modules/webservices-tools.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/modules/webservices-api.jar + +########################################################################### +# various flags used by the generation tools +########################################################################### +wsgen.ant.classname= +wsgen.classpath=${javaee.classes}${pathsep}${tools.jar} +wsgen.verbose=true +wsgen.debug=false +wsimport.ant.classname= +wsimport.classpath=${javaee.classes}${pathsep}${tools.jar} +wsimport.verbose=true +wsimport.debug=false +wsimport.jvmargs= + +########################################################################### +# various flags used by Suns generation tools +# DO NOT EDIT +########################################################################### +ri.wsgen.ant.classname=com.sun.tools.ws.ant.WsGen +ri.wsgen.classpath=${javaee.classes.ri}${pathsep}${tools.jar} +ri.wsgen.verbose=true +ri.wsgen.debug=false +ri.wsimport.ant.classname=com.sun.tools.ws.ant.WsImport +ri.wsimport.classpath=${javaee.classes.ri}${pathsep}${tools.jar} +ri.wsimport.verbose=true +ri.wsimport.debug=false +ri.wsimport.jvmargs= + +################################# +## Packaging properties for DAOs +################################# +ts.dao.root=com/sun/ts/tests/common/dao + +ts.dao.classes.base=\ + ${ts.dao.root}/InvalidDAOSettingException.class, \ + ${ts.dao.root}/DAOException.class, \ + ${ts.dao.root}/DAO.class, \ + ${ts.dao.root}/DataSourceDAO*.class, \ + ${ts.dao.root}/DAOFactory.class, \ + ${ts.dao.root}/TSDAOFactory*.class, \ + ${ts.dao.root}/coffee/CoffeeBean.class, \ + ${ts.dao.root}/coffee/CoffeeDAO.class, \ + ${ts.dao.root}/coffee/TxCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/StringPKCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/LongPKCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/FloatPKCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/CompoundPK.class, \ + ${ts.dao.root}/coffee/variants/CompoundPKCoffeeDAO.class + +ts.dao.classes.impl=\ + ${ts.dao.root}/coffee/DataSourceCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/StringPKDSCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/LongPKDSCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/FloatPKDSCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/CompoundPKDSCoffeeDAO.class + +ts.dao.classes.coffee.standard=\ + ${ts.dao.classes.base}, \ + ${ts.dao.classes.impl} + +ts.dao.classes.coffee.txaware=\ + ${ts.dao.classes.base}, \ + ${ts.dao.classes.impl} + +ts.dao.classes.coffee.variants=\ + ${ts.dao.classes.base}, \ + ${ts.dao.classes.impl} + +##################################### +## Packaging properties for Wrappers +##################################### + +ts.wrappers.ejb.root=com/sun/ts/tests/common/ejb/wrappers + +ts.wrappers.web.root=com/sun/ts/tests/common/web + +## Classes to package in ejb-jar for EJB Stateless wrapper +ts.wrappers.classes.stateless.ejb=\ + ${ts.wrappers.ejb.root}/StatelessWrapper.class + +## Classes to package in ejb-jar for EJB Stateful wrapper +ts.wrappers.classes.stateful.ejb=\ + ${ts.wrappers.ejb.root}/StatefulWrapper.class + +## Classes to package in ejb-jar for EJB BMP wrapper +ts.wrappers.classes.bmp.ejb=\ + ${ts.dao.classes.coffee.standard}, \ + ${ts.wrappers.ejb.root}/BMPWrapper.class + +## Classes to package in ejb-jar for EJB CMP 1.1 wrapper +ts.wrappers.classes.cmp11.ejb=${ts.wrappers.ejb.root}/CMP11Wrapper.class + +## Classes to package in ejb-jar for EJB CMP 2.0 wrapper +ts.wrappers.classes.cmp20.ejb=${ts.wrappers.ejb.root}/CMP20Wrapper.class + +## Classes to package in ejb-jar for EJB MDB wrapper +ts.wrappers.classes.mdb.ejb=\ + com/sun/ts/tests/jms/common/JmsUtil.class, \ + com/sun/ts/tests/jms/commonee/ParentMsgBean.class, \ + ${ts.wrappers.ejb.root}/MDBWrapper.class + +## Classes to package in client module for EJB MDB wrapper +ts.wrappers.classes.mdb.client=com/sun/ts/tests/jms/commonee/Client.class + +## Classes to package in ejb-jar for all EJB wrappers +ts.wrappers.classes.all.ejb=\ + ${ts.wrappers.classes.stateless.ejb}, \ + ${ts.wrappers.classes.stateful.ejb}, \ + ${ts.wrappers.classes.bmp.ejb}, \ + ${ts.wrappers.classes.cmp11.ejb}, \ + ${ts.wrappers.classes.cmp20.ejb}, \ + ${ts.wrappers.classes.mdb.ejb} + +## Classes to package in client module for all WEB wrappers +ts.wrappers.classes.web.client=\ + ${ts.wrappers.web.root}/WebServer.class + +## Classes to package in war for all WEB wrappers +ts.wrappers.classes.web.server=\ + ${ts.wrappers.web.root}/WebUtil.class, \ + ${ts.wrappers.web.root}/JSPBeanWrapper.class, \ + ${ts.wrappers.web.root}/ServletWrapper.class + +## Classes to package in client module for Servlet wrapper +ts.wrappers.classes.servlet.client=${ts.wrappers.classes.web.client} + +## Classes to package in war for Servlet wrappers +ts.wrappers.classes.servlet.server=\ + ${ts.wrappers.web.root}/WebUtil.class, \ + ${ts.wrappers.web.root}/ServletWrapper.class + +## Classes to package in client module for JSP wrapper +ts.wrappers.classes.jsp.client=${ts.wrappers.classes.web.client} + +## Classes to package in war for JSP wrappers +ts.wrappers.classes.jsp.server=\ + ${ts.wrappers.web.root}/WebUtil.class, \ + ${ts.wrappers.web.root}/JSPBeanWrapper.class + + +############################################################################### +## DO NOT MODIFY ANY PROPERTIES BELOW THIS LINE. +############################################################################### + +#classpath used by standard deployment server to deploy to the RI in a separate +#VM (DO NOT MODIFY) +ts.standard.deployment.server.classpath=${ant.jars}:${pathsep}${ts.run.classpath.ri}${pathsep}${ts.home}/lib/javatest.jar${pathsep}${ts.home}/lib/jdom-1.1.3.jar${pathsep}${ri.modules}/admin-cli.jar + +harness.deployment.server.port=2002 + +java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory +org.omg.CORBA.ORBClass=foo +undeploy_redeploy_apps=${UNDEPLOY_REDEPLOY_FLAG} + +############################################################################### +# The following properties are aliases for the old J2EE properties. These +# properties are now named javaee instead of j2ee and will eventually be phased +# out of the CTS. These props are necessary until the props are renamed +# through out all CTS. +############################################################################### +j2ee.home=${javaee.home} +j2ee.home.ri=${javaee.home.ri} + +#################################################################### +## This propertry is passed to any test +## that needs to programatically login from with the appclient +## container and propogate that login context to test code running +## within the EJB container. The value is a no-op. The fact that +## the test includes the property is sufficient to cause the +## EJBVehicleRunner to programatically login. To have a test +## include this property simply add it to the javatest props list +## of the test. +#################################################################### +secured.ejb.vehicle.client=true + +#################################################################### +# This property is used to point to the location of the +# implementation of VariableMapper. The value for sjsas 9.x is +# +# variable.mapper=org.glassfish.expressly.lang.VariableMapperImpl +# +#################################################################### +variable.mapper=org.glassfish.expressly.lang.VariableMapperImpl + +####################################################################### +# Endpoint API test +# +# Port info is obtained dynamically for Endpoint API test. +# Uncomment port range min/max if you want to specify port range +# for Endpoint publish test. +# Server endpoints will be published on ports within this range. +# If you do not want to dynamically obtain the port but wish to publish +# to a fixed static port than make the values below both equal to the +# specific port. +####################################################################### +port.range.min=1025 +port.range.max=10000 + +################################################################ +# @http.server.supports.endpoint.publish +# Does HTTP server-side support endpoint publish API's. +# @http.server.supports.endpoint.publish.2 +# Does the RI HTTP server-side support endpoint publish API's. +# +# http.server.supports.endpoint.publish=(true|false) +# DO NOT TOUCH - value MUST be false for managed environments like Java EE +################################################################ +http.server.supports.endpoint.publish=false +http.server.supports.endpoint.publish.2=false + +########################################################################### +# This property is used by some test clients that need a delay between +# method invocations to server endpoints. The value specified is the amount +# of time the client will delay in seconds. +########################################################################### +client.delay=1 + +####################################################################### +## This persistence unit name is used by jpa/ee/pluggability tests. Its value is the +## same as the name attribute in persistence.xml +###################################################################### +persistence.unit.name=CTS-EM + +############################################################### +# @db.supports.sequence +# +# - This property is used to determine if a database supports +# the use of SEQUENCE. If it does not, this property +# should be set to false so the test is not run. The +# default value is true. +# This value should be set to false for the following databases: +# sybase, mysql, and mssqlserver. +############################################################### +db.supports.sequence=true + +####################################################################### +## @persistence.second.level.caching.supported +## - This property is used to determine if the persistence provider supports +## second level caching. +###################################################################### +persistence.second.level.caching.supported=true + +########################################################################## +## This section contains all properties that are specific to JAX-RS Tests. +## All default values are specific to GlassFish and Jersey. +## +## servlet_adaptor - implementation specific servlet for JAX-RS +## jaxrs_impl_class.dir - Directory that servlet_adaptor locates +## jaxrs_impl_name - used to tag intermediate file names +########################################################################## +servlet_adaptor=org/glassfish/jersey/servlet/ServletContainer.class +jaxrs_impl_lib=${javaee.home}/modules/jakarta.ws.rs-api.jar +jaxrs_impl_name=jersey + + +########################################################################## +# This section contains all properties that are specific to JSR-196 Tests. +# All default values are specific to GlassFish. +# +# @servlet.is.jsr115.compatible This property is used by JASPIC tests +# to determine if the servlet container is a jsr 115 compatible +# container. (true = compatible to JSR 115, false = not compatible.) +# +# @soap.is.jsr115.compatible This may used by JASPIC tests to +# determin if the SOAP container is JSR 115 compatible. This is +# only used when running SOAP profile tests. +# +# @provider.configuration.file +# This property is used by JASPIC tests to configure TestSuite's +# AuthConfig Provider and points at an xml file which is used +# to register the JASPIC test providers into the current +# ACF. This file contaiins known/expected test provider info. +# Only app-context-id element can be edited to suit the +# impl under test. +# +# @schema.file.location +# This points to the directory that the provider-configuration.xsd +# file will live. The provider-configuration.xsd is used to +# describe the provider.configuration.file (above). +# +# @logical.hostname.servlet +# This used to identify the the name of a logical host that +# processes Servlet requests. Servlet requests may be directed to +# a logical host using various physical or virtual host names or +# addresses, and a message processing runtime may be composed of +# multiple logical hosts (This is required to properly identify +# the servlet profiles AppContextId hostname.) +# If a logical.hostname.servlet does not exist, you can set this +# to the default hostname (eg webServerHost). +# +# @logical.hostname.soap +# This property is used to identify the name of the logical host +# that processes soap requests. This hostname is used in server +# side Application context Identifier in soap profile. +# +# @appclient.log.output +# The client logging level for appclient container depends on the +# log level specified in sun-acc.xml +# +# This log level directly affects the output of TSLogger which +# logs the JSR196 SPI calls made in appclient container. +# +# using this property we enable the appclient container's +# logging level to INFO +# +# @vendor.authconfig.factory +# This property specifies vendor's authconfig factory class +# this will be used by JASPIC tests to register TestSuite's +# provider in Vendor's AuthConfig Factory. +# +# For example for SJSAS RI this value is +# +# vendor.authconfig.factory= +# com.sun.enterprise.security.jmac.config.GFAuthConfigFactory +# +########################################################################## +servlet.is.jsr115.compatible=true +soap.is.jsr115.compatible=false +provider.configuration.file=${javaee.home}/domains/domain1/config/ProviderConfiguration.xml +schema.file.location=${javaee.home}/lib/schemas +logical.hostname.servlet=server +logical.hostname.soap=localhost +appclient.log.output=true +vendor.authconfig.factory=com.sun.enterprise.security.jmac.config.GFAuthConfigFactory + +########################################################################## +# @servlet_waittime: Time in seconds to wait after HttpSession expires +# to access the session +# @servlet_async_wait: Time in seconds to wait between sending asynchronous messages +########################################################################## +servlet_waittime=10 +servlet_async_wait=4 + +########################################################################################## +# The following properties are ONLY used if testing a Standalone JMS Resource Adapter. +# Since support for a JMS Resource Adapter is OPTIONAL by the JMS 2.0 Specification +# this funtionality is USE AT YOUR OWN RISK. We WILL NOT support it. Its here in the +# case that a vendor wants to test a Standalone JMS Resource Adapter which is OPTIONAL. +# +# test.sa.jmsra // Set to true ONLY if testing a standalone JMS Resource Adapter +# jmsra.rarfile // Location of the standalone JMS Resource Adapter RAR file +# jmsra.jarfile // Location of the standalone JMS Resource Adapter JAR file +# +# A standalone JMS Resource Adapter requires deployment/configuration to the Vendor +# Implementation under test (Example: Java EE 8 RI). If not testing a standalone JMS +# Resource Adapter then these properties MUST NOT be used and the value of the property +# (test.sa.jmsra) MUST BE SET to false (which is the DEFAULT setting). If you set the +# property (test.sa.jmsra=true) then you are testing a standalone JMS Resource Adapter +# and the (jmsra.rarfile and jmsra.jarfile) properties must point to the location of +# the standalone JMS Resource Adapter RAR and JAR files. During CTS configuration the +# (config.vi) ant task will call another script that will deploy the standalone JMS +# Resource Adapter, configure the standalone JMS Resource Adapter, create the JMS +# connector connection pools, create the JMS connector resources, and finally create +# the JMS administration objects. The ant scripts that handles all of these steps for +# the (Java EE 8 RI) are the following: +# +# $TS_HOME/bin/xml/impl/glassfish/jmsra.xml +# $TS_HOME/bin/xml/impl/glassfish/templates/create.jmsra.template +# +# These scripts work for the Standalone Generic JMS Resource Adapter (GenericJMSRA) +# located at: (http://genericjmsra.java.net/). If testing another standalone JMS +# Resource Adapter then these scripts will need to be rewritten/modified for that +# JMS Resource Adapter. +# +# Here is the summary of steps of what the (jmsra.xml) script does. It configures the JMS +# resource adapter by doing a resource-adapter-config, it deploys the JMS resource adapter +# RAR file specified in the "jmsra.rarfile" property to the (Java EE 8 RI), it copies the +# JMS Resource Adapter JAR file specified in the "jmsra.jarfile" property to the (Java EE +# 8 RI) lib directory under $JAVAEE_HOME/lib. It copies some of the JMS client library jars +# to the $JAVAEE_HOME/lib directory. it then creates the JMS connector connection pools, +# the JMS connector resources, and the JMS administration objects that are needed by CTS. +# When the (config.vi) ant task completes the Java EE 8 environment will be ready to run +# the JMS CTS tests. One final step is needed to the JMS MDB CTS tests which is to modify +# the sun-ejb-jar runtime xml files by adding the deployment info. +# +# Here are the manual steps for the Standalone Generic JMS Resource Adapter (GenericJMSRA) +# after the (config.vi) ant task completes. +# +# (1) Edit the ts.jte file and add the following: +# Add "-Dgenericra.inAppClientContainer=true" to the "command.testExecuteAppClient" +# property and then add "${pathsep}${jmsra.jarfile}" to the end of APPCPATH variable +# in the same "command.testExecuteAppClient" property. You can refer to the Generic +# JMS Resource Adapter (GenericJMSRA) user guide for more information on this. +# (2) Modify the sun-ejb-jar runtime xml files for the JMS MDB tests by adding the +# deployment info. +# cd $TS_HOME/bin +# ant -f xml/impl/glassfish/jmsra.xml modify-jmsmdbejbxml +# (3) Now you can run the JMS CTS tests. After you are done running the JMS CTS tests ypu +# can unconfigure the Java EE 8 RI and restore the original sun-ejb-jar runtime xml +# files. +# cd $TS_HOME/bin +# ant -f xml/impl/glassfish/jmsra.xml restore-jmsmdbejbxml +# ant clean.vi +# (4) Finally reset the properties back to there defaults. Set (test.sa.jmsra=false) and unset +# (jmsra.rarfile and jmsra.jarfile). Remove the "-Dgenericra.inAppClientContainer=true" +# and "${pathsep}${jmsra.jarfile}" from the ts.jte file from step 1. +# +# If using a different Java EE environment from the Java EE RI than a vendor will need to +# provide his own JMS Resource Adapter support scripts needed for that Java EE environment. +# It can reuse/modify the (Java EE 8 RI) scripts above or simply write their own scripts. A +# vendor can use the Java EE 8 RI or any Java EE 8 implementation of its choice as the Java +# EE 8 environment for testing its Standalone JMS Resource Adapter. The Standalone JMS Resource +# Adapter MUST pass all of the JMS CTS tests under: (TS_HOME/src/com/sun/ts/tests/jms) in order +# to be declared fully JMS 2.0 compliant. +# +# See the JMS 2.0 Specification and the CTS 8 User's Guide for more information. +########################################################################################## +test.sa.jmsra=false +jmsra.rarfile= +jmsra.jarfile= + +########################################################################################## +# The following property specifies the name of the JMS Resource Adapter under test. The +# Java EE 8 RI contains its own builtin JMS Resource Adapter (JMSRA). Its name is "jmsra". +# So we set (jmsra.name=jmsra) as the default value for the Java EE 8 RI. +# +# Change the value of this property for the JMS Resource Adapter that is under test. This +# hardcoded value is specific to the Java EE 8 RI. +# +# jmsra.name // Name of JMS Resource Adapter for the implementation under test +########################################################################################## +jmsra.name=jmsra + + +########################################################################## +# The following property is for WebSocket tests. +# +# @ws_wait: waiting time in seconds for socket to send/receive a message +########################################################################## +ws_wait=5 + +############################################################################################ +# These following properties are needed for Javamail tests. +# +# @mailHost hostname of the mail server +# @mailuser1 must be set to a valid email address where test mails will be sent to. +# @mailFrom reply to address set in the email messages generated by the javamail tests +# @javamail.username user account name on server +# @javamail.password password for the mailuser1 +# +############################################################################################ + +mailHost=localhost +mailuser1=user01@james.local +mailFrom=user01@james.local +javamail.password=1234 +smtp.port=1025 +imap.port=1143 + +### User need not change the following javamail properties + +javamail.username=${mailuser1} +transport_protocol=smtp + +# mail server used to run tests against. +javamail.server=${mailHost} + +# protocol used to run the Store tests +javamail.protocol=imap + +# mail server used to run tests against. +javamail.transport.server=$javamail.server + +# rootpath of test mailboxes +javamail.root.path=mailboxes + +# note the mailbox 'test1' +javamail.mailbox=test1 + +# search pattern used by list tests in Folder +javamail.listpattern=test + +# your own login account name +smtp.username=$javamail.username + +# smtp domain name ; i.e. oracle.com +smtp.domain=$javamail.server + +# smtp From address +smtp.from=$smtp.username + +# smtp To address +smtp.to=$smtp.username + +# io file +iofile=MailIOFile.txt + +##################################################################################################### +#### Properties used by ldap installation +# @ldap.server -- The type of ldap server. unboundid is supported by now +# @ldap.install.server -- Install ldap server by CTS script or not +# @ldap.ldif.file -- The ldif file containing data seeded in ldap server +# +# @unboundid.installation.package -- The package for installing Unboundid ldap server +######################################################################################################## +ldap.server=unboundid +ldap.install.server=true +ldap.ldif.file=${ts.home}/bin/ldap.ldif + +unboundid.installation.package=${ts.home}/lib/unboundid-ldapsdk.jar + +##################################################################################################### +# Properties used for JPA 2.2 Tests +######################################################################################################## +persistencs.properties.file=${bin.dir}/jpa-provider.properties +persistence.unit.name.2=JPATCK2 + +jpa.provider.implementation.specific.properties=eclipselink.logging.level\=OFF +jakarta.persistence.provider=org.eclipse.persistence.jpa.PersistenceProvider +jakarta.persistence.jdbc.driver=${derby.driver} +jakarta.persistence.jdbc.url=${derby.url} +jakarta.persistence.jdbc.user=${derby.user} +jakarta.persistence.jdbc.password=${derby.passwd} diff --git a/glassfish-runner/mail-platform-tck/jakartaeetck/bin/tssql.stmt b/glassfish-runner/mail-platform-tck/jakartaeetck/bin/tssql.stmt new file mode 100644 index 0000000000..2d279c5402 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/jakartaeetck/bin/tssql.stmt @@ -0,0 +1,805 @@ +# @(#)ctssql.dml.derby 1.16 01/06/20 +#------------------------------------------------- +#All sql DML statements used in the test cases against derby +#------------------------------------------------- + + + +Dbschema_Tab1_Insert=insert into ctstable2 values(?, ?, ?, ?) +Dbschema_Tab2_Insert=insert into ctstable1 values(?, ?) + +Dbschema_Tab1_Delete=delete from ctstable2 +Dbschema_Tab2_Delete=delete from ctstable1 + +Dbschema_Concur_Insert=insert into concurrencetable values(?, ?) +Dbschema_Concur_Delete=delete from concurrencetable + +#****************************************************************** +# SQL Statements for creating procedures in side the test. +#****************************************************************** + +UpdCoffee_Proc=create method alias UpdCoffee_Proc for com.sun.ts.lib.tests.jdbc.CS_Procs.UpdCoffee_Proc + +#****************************************************************** +# SQL Statements for deleting tables for appropriate JDBC Datatypes +#****************************************************************** + +Numeric_Tab_Delete=delete from Numeric_Tab + +Decimal_Tab_Delete=delete from Decimal_Tab + +Double_Tab_Delete=delete from Double_Tab + +Float_Tab_Delete=delete from Float_Tab + +Real_Tab_Delete=delete from Real_Tab + +Bit_Tab_Delete=delete from Bit_Tab + +Smallint_Tab_Delete=delete from Smallint_Tab + +Tinyint_Tab_Delete=delete from Tinyint_Tab + +Integer_Tab_Delete=delete from Integer_Tab + +Bigint_Tab_Delete=delete from Bigint_Tab + +Char_Tab_Delete=delete from Char_Tab + +Varchar_Tab_Delete=delete from Varchar_Tab + +Longvarchar_Tab_Delete=delete from Longvarchar_Tab + +Longvarcharnull_Tab_Delete=delete from Longvarcharnull_Tab + +Date_Tab_Delete=delete from Date_Tab + +Time_Tab_Delete=delete from Time_Tab + +Timestamp_Tab_Delete=delete from Timestamp_Tab + +Binary_Tab_Delete=delete from Binary_Tab + +Varbinary_Tab_Delete=delete from Varbinary_Tab + +Longvarbinary_Tab_Delete=delete from Longvarbinary_Tab + + + +#**************************************************** +# SQL Statements for inserting values into the tables +#**************************************************** + +Numeric_Tab_Insert=insert into Numeric_Tab values(999999999999999,0.000000000000001, null) + +Decimal_Tab_Insert= insert into Decimal_Tab values(999999999999999,0.000000000000001, null) + +#Double_Tab_Insert=insert into Double_Tab values(1.7976931348623157E308,4.9E-324,null) +Double_Tab_Insert=insert into Double_Tab values(1.0E125,1.0E-130,null) + +Float_Tab_Insert=insert into Float_Tab values(3.4028235E37,1.4E-45,null) + +Real_Tab_Insert= insert into Real_Tab values(3.402E38,1.4E-37, null) + +Bit_Tab_Insert=insert into Bit_Tab values(true,false,null) + +Smallint_Tab_Insert= insert into Smallint_Tab values(32767,-32768,null) + +Tinyint_Tab_Insert=insert into Tinyint_Tab values(127,0,null) + +Integer_Tab_Insert=insert into Integer_Tab values(2147483647,-2147483648,null) + +Bigint_Tab_Insert= insert into Bigint_Tab values(9223372036854775807,-9223372036854775808,null) + +Char_Tab_Insert= insert into Char_Tab values('Test Coffee', null) + +Varchar_Tab_Insert= insert into Varchar_Tab values('Test Coffee',null) + +Longvarchar_Tab_Insert= insert into Longvarchar_Tab values('Test Coffee') + +Longvarcharnull_Tab_Insert= insert into Longvarcharnull_Tab values(null) + +Date_Tab_Insert=insert into Date_Tab values({d '1999-05-05'}, null) + +Time_Tab_Insert= insert into Time_Tab values({t '12:59:59'}, null) + +Timestamp_Tab_Insert= insert into Timestamp_Tab values({ts '1999-12-31 12:59:59'}, null) + +Binary_Tab_Insert= insert into Binary_Tab values(null) + +Varbinary_Tab_Insert= insert into Varbinary_Tab values(null) + +Longvarbinary_Tab_Insert= insert into Longvarbinary_Tab values(null) + +Boolean_Tab_Insert = insert into Boolean_Tab values(true,false,null) + + +#***************************************************** +# SQL Statements for retrieving values from the tables +#***************************************************** + +SelCoffeeAll=SELECT COF_NAME, PRICE FROM ctstable2 +SelCoffeeNull=select * from ctstable2 where TYPE_ID=0 + +Numeric_Query_Max=Select MAX_VAL from Numeric_Tab +Numeric_Query_Min=Select MIN_VAL from Numeric_Tab +Numeric_Query_Null=Select NULL_VAL from Numeric_Tab + +Decimal_Query_Max=Select MAX_VAL from Decimal_Tab +Decimal_Query_Min=Select MIN_VAL from Decimal_Tab +Decimal_Query_Null=Select NULL_VAL from Decimal_Tab + +Double_Query_Max=Select MAX_VAL from Double_Tab +Double_Query_Min=Select MIN_VAL from Double_Tab +Double_Query_Null=Select NULL_VAL from Double_Tab + +Float_Query_Max=Select MAX_VAL from Float_Tab +Float_Query_Min=Select MIN_VAL from Float_Tab +Float_Query_Null=Select NULL_VAL from Float_Tab + +Real_Query_Max=Select MAX_VAL from Real_Tab +Real_Query_Min=Select MIN_VAL from Real_Tab +Real_Query_Null=Select NULL_VAL from Real_Tab + +Bit_Query_Max=Select MAX_VAL from Bit_Tab +Bit_Query_Min=Select MIN_VAL from Bit_Tab +Bit_Query_Null=Select NULL_VAL from Bit_Tab + +Smallint_Query_Max=Select MAX_VAL from Smallint_Tab +Smallint_Query_Min=Select MIN_VAL from Smallint_Tab +Smallint_Query_Null=Select NULL_VAL from Smallint_Tab + +Tinyint_Query_Max=Select MAX_VAL from Tinyint_Tab +Tinyint_Query_Min=Select MIN_VAL from Tinyint_Tab +Tinyint_Query_Null=Select NULL_VAL from Tinyint_Tab + +Integer_Query_Max=Select MAX_VAL from Integer_Tab +Integer_Query_Min=Select MIN_VAL from Integer_Tab +Integer_Query_Null=Select NULL_VAL from Integer_Tab + +Bigint_Query_Max=Select MAX_VAL from Bigint_Tab +Bigint_Query_Min=Select MIN_VAL from Bigint_Tab +Bigint_Query_Null=Select NULL_VAL from Bigint_Tab + +Char_Query_Name=Select COFFEE_NAME from Char_Tab +Char_Query_Null=Select NULL_VAL from Char_Tab + +Varchar_Query_Name=Select COFFEE_NAME from Varchar_Tab +Varchar_Query_Null=Select NULL_VAL from Varchar_Tab + +Longvarchar_Query_Name=Select COFFEE_NAME from Longvarchar_Tab +Longvarchar_Query_Null=Select NULL_VAL from Longvarcharnull_Tab + +Date_Query_Mfg=Select MFG_DATE from Date_Tab +Date_Query_Null=Select NULL_VAL from Date_Tab + +Time_Query_Brk=Select BRK_TIME from Time_Tab +Time_Query_Null=Select NULL_VAL from Time_Tab + +Timestamp_Query_In=Select IN_TIME from Timestamp_Tab +Timestamp_Query_Null=Select NULL_VAL from Timestamp_Tab + +Binary_Query_Val=Select BINARY_VAL from Binary_Tab +Varbinary_Query_Val=Select VARBINARY_VAL from Varbinary_Tab +Longvarbinary_Query_Val=Select LONGVARBINARY_VAL from Longvarbinary_Tab + + + + + +#*************************************** +# SQL Statements for updating the tables +#*************************************** + +Numeric_Tab_Max_Update=update Numeric_Tab set MAX_VAL=? +Numeric_Tab_Min_Update=update Numeric_Tab set MIN_VAL=? +Numeric_Tab_Null_Update=update Numeric_Tab set NULL_VAL=? + +Decimal_Tab_Max_Update=update Decimal_Tab set MAX_VAL=? +Decimal_Tab_Min_Update=update Decimal_Tab set MIN_VAL=? +Decimal_Tab_Null_Update=update Decimal_Tab set NULL_VAL=? + +Double_Tab_Max_Update=update Double_Tab set MAX_VAL=? +Double_Tab_Min_Update=update Double_Tab set MIN_VAL=? +Double_Tab_Null_Update=update Double_Tab set NULL_VAL=? + +Float_Tab_Max_Update=update Float_Tab set MAX_VAL=? +Float_Tab_Min_Update=update Float_Tab set MIN_VAL=? +Float_Tab_Null_Update=update Float_Tab set NULL_VAL=? + +Real_Tab_Max_Update=update Real_Tab set MAX_VAL=? +Real_Tab_Min_Update=update Real_Tab set MIN_VAL=? +Real_Tab_Null_Update=update Real_Tab set NULL_VAL=? + +Bit_Tab_Max_Update=update Bit_Tab set MAX_VAL=? +Bit_Tab_Min_Update=update Bit_Tab set MIN_VAL=? +Bit_Tab_Null_Update=update Bit_Tab set NULL_VAL=? + +Smallint_Tab_Max_Update=update Smallint_Tab set MAX_VAL=? +Smallint_Tab_Min_Update=update Smallint_Tab set MIN_VAL=? +Smallint_Tab_Null_Update=update Smallint_Tab set NULL_VAL=? + +Tinyint_Tab_Max_Update=update Tinyint_Tab set MAX_VAL=? +Tinyint_Tab_Min_Update=update Tinyint_Tab set MIN_VAL=? +Tinyint_Tab_Null_Update=update Tinyint_Tab set NULL_VAL=? + +Integer_Tab_Max_Update=update Integer_Tab set MAX_VAL=? +Integer_Tab_Min_Update=update Integer_Tab set MIN_VAL=? +Integer_Tab_Null_Update=update Integer_Tab set NULL_VAL=? + +Bigint_Tab_Max_Update=update Bigint_Tab set MAX_VAL=? +Bigint_Tab_Min_Update=update Bigint_Tab set MIN_VAL=? +Bigint_Tab_Null_Update=update Bigint_Tab set NULL_VAL=? + +Char_Tab_Name_Update=update Char_Tab set COFFEE_NAME=? +Char_Tab_Null_Update=update Char_Tab set NULL_VAL=? + +Varchar_Tab_Name_Update=update Varchar_Tab set COFFEE_NAME=? +Varchar_Tab_Null_Update=update Varchar_Tab set NULL_VAL=? + +Longvarchar_Tab_Name_Update=update Longvarchar_Tab set COFFEE_NAME=? +Longvarchar_Tab_Null_Update=update Longvarcharnull_Tab set NULL_VAL=? + +Date_Tab_Mfgdate_Update=update Date_Tab set MFG_DATE=? +Date_Tab_Null_Update=update Date_Tab set NULL_VAL=? + +Time_Tab_Brktime_Update=update Time_Tab set BRK_TIME=? +Time_Tab_Null_Update=update Time_Tab set NULL_VAL=? + +Timestamp_Tab_Intime_Update=update Timestamp_Tab set IN_TIME=? +Timestamp_Tab_Null_Update=update Timestamp_Tab set NULL_VAL=? + +Binary_Tab_Val_Update=update Binary_Tab set BINARY_VAL=? +Varbinary_Tab_Val_Update=update Varbinary_Tab set VARBINARY_VAL=? +Longvarbinary_Tab_Val_Update=update Longvarbinary_Tab set LONGVARBINARY_VAL=? + +CoffeeTab_Query=select COF_NAME,PRICE from ctstable2 where TYPE_ID=? +CoffeeTab_Delete=delete from ctstable2 where KEY_ID=? + +CoffeeTab_Select=select PRICE from ctstable2 where KEY_ID=? +CoffeeTab_Update=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=? + +Ins_Coffee_Tab=insert into ctstable2 values (9,'COFFEE-9',9.0,5) +Del_Coffee_Tab=delete from ctstable2 where KEY_ID=9 +Upd_Coffee_Tab=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=1 +Sel_Coffee_Tab=select PRICE from ctstable2 where KEY_ID>4 + +#********************************************************************************** +# is used in ResultSet. To update with BIT value. +#********************************************************************************** +Update_decimal_tab=update Decimal_Tab set MAX_VAL=1.0, MIN_VAL=0.0, NULL_VAL=null +Update_numeric_tab=update Numeric_Tab set MAX_VAL=1.0, MIN_VAL=0.0, NULL_VAL=null +Update_char_tab1=update Char_Tab set COFFEE_NAME=1, NULL_VAL=null +Update_char_tab2=update Char_Tab set COFFEE_NAME=0, NULL_VAL=null +Update_varchar_tab1=update Varchar_Tab set COFFEE_NAME=1, NULL_VAL=null +Update_varchar_tab2=update Varchar_Tab set COFFEE_NAME=0, NULL_VAL=null + +#********************************************************************************** +# is used in BatchUpdate Tests. +#********************************************************************************** +BatchUpdate_Query=select count(*) from ctstable2 where TYPE_ID=? +BatchUpdate_Delete=delete from ctstable2 +BatchInsert_String=insert into ctstable2 values(?,?,?,?) + +#********************************************************************************** +# is used in BatchUpdate exception +#********************************************************************************** +Coffee_InsTab=insert into ctstable2 values (9,'COFFEE-9',9.0,5) +Coffee_DelTab=delete from ctstable2 where KEY_ID=2 +Coffee_UpdTab=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=1 +Coffee_SelTab=select PRICE from ctstable2 where KEY_ID>4 +Coffee_Inscount_Query=select count(*) from ctstable2 where KEY_ID=9 +Coffee_Delcount_Query=select count(*) from ctstable2 where KEY_ID=2 +Coffee_Updcount_Query=select count(*) from ctstable2 where TYPE_ID=1 +CoffeeTab_Continue1=update ctstable2 set KEY_ID=?, COF_NAME=? where COF_NAME=? +CoffeeTab_ContinueSelect1=Select count(*) from ctstable2 where COF_NAME in ('Continue-1') +CoffeeTab_Continue2=update ctstable2 set KEY_ID=1,COF_NAME = 'Continue-1' where COF_NAME='COFFEE-1' +CoffeeTab_Continue3=update ctstable2 set KEY_ID=1 ,COF_NAME = 'Invalid' where COF_NAME='COFFEE-3' +CoffeeTab_Continue4=update ctstable2 set KEY_ID=2,COF_NAME = 'Continue-3' where COF_NAME='COFFEE-2' +Coffee_Proc1=create procedure Coffee_Proc1(keyid in Numeric) as begin update ctstable2 set KEY_ID=keyid,COF_NAME = 'Continue-1' where KEY_ID=1;end; +Coffee_Proc1_Delete=Drop procedure Coffee_Proc1 +#********************************************************************************** +# is used in DataTruncation exception +#********************************************************************************** +DTrunc_Ins_Coffee=insert into ctstable2 values (10,'kumarjadjsjdhsjhdjsjdajhdjasdsdsdsd',21.00,1) + +#********************************************************************************** +# is used in SQLException +#********************************************************************************** +Error_Query=select * from + +#********************************************************************************** +# Constructor arguments for exceptions +#********************************************************************************** +Reason_BatUpdExec=Message +SQLState_BatUpdExec=S100 +VendorCode_BatUpdExec=10 +IntialValue_BatUpdExec={1,1,1} +Index_DataTrunc=1 +Param_DataTrunc=true +Read_DataTrunc=true +DataSize_DataTrunc=100 +TranSize_DataTrunc=50 + +#********************************************************************************** +# is used to print a message to the current logging writer +#********************************************************************************** +JDBCLogstream_Message=Hello World + + +#********************************************************************************** +#The following pair of values are related and so must be changed simultaneously +#The first one is a reference value and the second one is a equivalent in millisecond after epoch +#********************************************************************************** +DateTime_Str_Val1=1970-01-02 00:00:00.001 +DateTime_Long_Val1=86400001 + +#********************************************************************************** +#The following pair of values are related and so must be changed simultaneously +#The first one is a reference value and the second one is a equivalent in millisecond after epoch +#********************************************************************************** +DateTime_Str_Val2=1969-12-30 23:59:59.999 +DateTime_Long_Val2=-86400001 + +#********************************************************************************** +#value in millisecond for testing after() and before() in Timestamp +#********************************************************************************** +Ref_Milli_Val = 86400000 + +#********************************************************************************** +#Value in nanoseconds for testing time values +#********************************************************************************** +Ref_Nano_Val = 999999999 + + +#********************************************************************************** +#Value in nanoseconds and must be equivalent equivalent to multiples of milliseconds +#********************************************************************************** +Ref_Nano_Val2 = 1000000 + +Trial_String=TrialSetting +Escape_Seq_Query=select count(*) from ctstable2 where cof_name like '\%-%' { escape '\\' } +Escape_Seq_ChkQuery=select count(*) from ctstable2 +Max_Set_Val=10 + + +#********************************************************************************** +#The SQL Statements which are used to test the Scalar functions using escape syntax +#********************************************************************************** +Concat_Fn_Query=SELECT {FN CONCAT(STRING1,STRING2)} FROM ctstable3 +Ascii_Fn_Query=SELECT {FN ASCII(STRING1)} FROM ctstable3 +Insert_Fn_Query=SELECT {FN INSERT(STRING1,2,4,STRING2)} FROM ctstable3 +Lcase_Fn_Query=SELECT {FN LCASE(STRING1)} FROM ctstable3 +Left_Fn_Query=SELECT {FN LEFT(STRING1,2)} FROM ctstable3 +Length_Fn_Query=SELECT {FN LENGTH(STRING1)} FROM ctstable3 +Locate_Fn_Query=SELECT {FN LOCATE(STRING1,STRING2)} FROM ctstable3 +Ltrim_Fn_Query=SELECT {FN LTRIM(STRING2)} FROM ctstable3 +Repeat_Fn_Query=SELECT {FN REPEAT(STRING1,3)} FROM ctstable3 +Right_Fn_Query=SELECT {FN RIGHT(STRING1,3)} FROM ctstable3 +Rtrim_Fn_Query=SELECT {FN RTRIM(STRING2)} FROM ctstable3 +Soundex_Fn_Query=SELECT {FN SOUNDEX(STRING1)} FROM ctstable3 +Space_Fn_Query=SELECT {FN SPACE(5)} FROM ctstable3 +Substring_Fn_Query=SELECT {FN SUBSTR(STRING2,2,3)} FROM ctstable3 +Ucase_Fn_Query=SELECT {FN UCASE(STRING1)} FROM ctstable3 +Char_Fn_Query=SELECT {FN CHAR(NUMCOL)} FROM ctstable3 +Replace_Fn_Query=SELECT {FN REPLACE(STRING2,STRING1,STRING3)} FROM ctstable3 +User_Fn_Query=SELECT {FN USER()} FROM ctstable3 +Ifnull_Fn_Query=SELECT {FN IFNULL(STRING1,100)} FROM ctstable3 +Sin_Fn_Query=SELECT {FN SIN(0)} FROM ctstable3 +Abs_Fn_Query=SELECT {FN ABS(NUMCOL)} FROM ctstable3 +Power_Fn_Query=SELECT {FN POWER(NUMCOL,2)} FROM ctstable3 +Round_Fn_Query=SELECT {FN ROUND(FLOATCOL,2)} FROM ctstable3 +Sign_Fn_Query=SELECT {FN SIGN(NUMCOL)} FROM ctstable3 +Sqrt_Fn_Query=SELECT {FN SQRT(FLOATCOL)} FROM ctstable3 +Truncate_Fn_Query=SELECT {FN TRUNCATE(FLOATCOL,1)} FROM ctstable3 +Mod_Fn_Query=SELECT {FN MOD(NUMCOL,7)} FROM ctstable3 +Floor_Fn_Query=SELECT {FN FLOOR(FLOATCOL)} FROM ctstable3 +Ceiling_Fn_Query=SELECT {FN CEILING(NUMCOL)} FROM ctstable3 +Log10_Fn_Query=SELECT {FN LOG10(NUMCOL)} FROM ctstable3 +Log_Fn_Query=SELECT {FN LOG(NUMCOL)} FROM ctstable3 +Exp_Fn_Query=SELECT {FN EXP(FLOATCOL)} FROM ctstable3 +Cos_Fn_Query=SELECT {FN COS(FLOATCOL)} FROM ctstable3 +Tan_Fn_Query=SELECT {FN TAN(FLOATCOL)} FROM ctstable3 +Cot_Fn_Query=SELECT {FN COT(FLOATCOL)} FROM ctstable3 +Curdate_Fn_Query=SELECT {FN CURDATE()} FROM ctstable3 +Dayname_Fn_Query=SELECT {FN DAYNAME(DATECOL)} FROM ctstable3 +Dayofmonth_Fn_Query=SELECT {FN DAYOFMONTH(DATECOL)} FROM ctstable3 +Dayofweek_Fn_Query=SELECT {FN DAYOFWEEK(DATECOL)} FROM ctstable3 +Dayofyear_Fn_Query=SELECT {FN DAYOFYEAR(DATECOL)} FROM ctstable3 +Week_Fn_Query=SELECT {FN WEEK(DATECOL)} FROM ctstable3 +Month_Fn_Query=SELECT {FN MONTH(DATECOL)} FROM ctstable3 +Year_Fn_Query=SELECT {FN YEAR(DATECOL)} FROM ctstable3 +Monthname_Fn_Query=SELECT {FN MONTHNAME(DATECOL)} FROM ctstable3 +Quarter_Fn_Query=SELECT {FN QUARTER(DATECOL)} FROM ctstable3 +Now_Fn_Query=SELECT {FN NOW()} FROM ctstable3 +Hour_Fn_Query=SELECT {FN HOUR(TIMECOL)} FROM ctstable3 +Minute_Fn_Query=SELECT {FN MINUTE(TIMECOL)} FROM ctstable3 +Second_Fn_Query=SELECT {FN SECOND(TIMECOL)} FROM ctstable3 +Database_Fn_Query=SELECT {FN DATABASE()} FROM ctstable3 +Acos_Fn_Query=SELECT {FN ACOS(FLOATCOL)} FROM ctstable3 +Asin_Fn_Query=SELECT {FN ASIN(FLOATCOL)} FROM ctstable3 +Atan_Fn_Query=SELECT {FN ATAN(FLOATCOL)} FROM ctstable3 +Atan2_Fn_Query=SELECT {FN ATAN2(FLOATCOL,FLOATCOL)} FROM ctstable3 +Degrees_Fn_Query=SELECT {FN DEGREES(NUMCOL)} FROM ctstable3 +Radians_Fn_Query=SELECT {FN RADIANS(NUMCOL)} FROM ctstable3 +Pi_Fn_Query=SELECT {FN PI()} FROM ctstable3 +Rand_Fn_Query=SELECT {FN RAND(NUMCOL)} FROM ctstable3 +Difference_Fn_Query=SELECT {FN DIFFERENCE(STRING1,STRING2)} FROM ctstable3 +Locate_Fn_Query=SELECT {FN LOCATE(STRING1,STRING2,2)} FROM ctstable3 +Timestampaddfrac_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_FRAC_SECOND,2,TSCOL1)} FROM ctstable3 +Timestampaddsecond_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_SECOND,2,TSCOL1)} FROM ctstable3 +Timestampaddminute_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_MINUTE,2,TSCOL1)} FROM ctstable3 +Timestampaddhour_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_HOUR,2,TSCOL1)} FROM ctstable3 +Timestampaddday_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_DAY,2,TSCOL1)} FROM ctstable3 +Timestampaddweek_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_WEEK,2,TSCOL1)} FROM ctstable3 +Timestampaddmonth_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_MONTH,2,TSCOL1)} FROM ctstable3 +Timestampaddquarter_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_QUARTER,2,TSCOL1)} FROM ctstable3 +Timestampaddyear_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_YEAR,2,TSCOL1)} FROM ctstable3 +Timestampdifffrac_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_FRAC_SECOND,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffsecond_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_SECOND,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffminute_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_MINUTE,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffhour_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_HOUR,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffday_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_DAY,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffweek_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_WEEK,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffmonth_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_MONTH,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffquarter_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_QUARTER,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffyear_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_YEAR,TSCOL1,TSCOL2)} FROM ctstable3 + + +#***************************************************************************** +#The SQL Statements which are used to test the Outer Joins using escape syntax +#***************************************************************************** +Left_Oj_Query=SELECT * FROM {OJ ctstable3 LEFT OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} +Right_Oj_Query=SELECT * FROM {OJ ctstable3 RIGHT OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} +Full_Oj_Query=SELECT * FROM {OJ ctstable3 FULL OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} + + +#***************************************************************************** +#The SQL Statements for creating, inserting and dropping the tables which are +#used in testing the scalar functions and outer joins using escape syntax +#***************************************************************************** + +Fnschema_Tab1_Insert=INSERT INTO ctstable3 VALUES ('Java',' HotJava ','JAVA',100,0.5,{d '1993-07-13'},{t '10:30:55'},{ts '1996-05-10 10:07:04'},{ts '1996-05-10 10:07:05'}) +Fnschema_Tab2_Insert=INSERT INTO ctstable4 VALUES ('STRING3',100) + +Fnschema_Tab1_Delete=delete from ctstable3 +Fnschema_Tab2_Delete=delete from ctstable4 + +#***************************************************************************** +#The SQL Statements which are used in TxBean (Session bean) +#***************************************************************************** +TxBean_insert1=insert into TxBean_Tab1 values(?, ?, ?) +TxBean_insert2=insert into TxBean_Tab2 values(?, ?, ?) + +TxBean_delete1=delete from TxBean_Tab1 where KEY_ID = ? +TxBean_delete2=delete from TxBean_Tab2 where KEY_ID = ? + +TxBean_update1=update TxBean_Tab1 set TABONE_NAME = ? where KEY_ID = ? +TxBean_update2=update TxBean_Tab2 set TABTWO_NAME = ? where KEY_ID = ? +TxBean_update3=update TxBean_Tab1 set PRICE = ? where KEY_ID = ? +TxBean_update4=update TxBean_Tab2 set PRICE = ? where KEY_ID = ? + +TxBean_query1=select * from TxBean_Tab1 +TxBean_query2=select * from TxBean_Tab2 +TxBean_query3=select KEY_ID, TABONE_NAME, PRICE from TxBean_Tab1 where KEY_ID = ? +TxBean_query4=select KEY_ID, TABTWO_NAME, PRICE from TxBean_Tab2 where KEY_ID = ? + + +TxBean_Tab1_Delete=delete from TxBean_Tab1 +TxBean_Tab2_Delete=delete from TxBean_Tab2 + +#***************************************************************************** +#The SQL Statements which are used in TxEBean (Entity bean) +#***************************************************************************** +TxEBean_updateString1=insert into TxEBean_Tab values(?, ?, ?) +TxEBean_updateString2=delete from TxEBean_Tab where KEY_ID = ? +TxEBean_updateString3=update TxEBean_Tab set BRAND_NAME = ?, PRICE = ? where KEY_ID = ? + +TxEBean_selectString1=select KEY_ID from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString2=select KEY_ID from TxEBean_Tab where BRAND_NAME = ? +TxEBean_selectString3=select KEY_ID from TxEBean_Tab where PRICE = ? +TxEBean_selectString4=select KEY_ID, BRAND_NAME, PRICE from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString5=select BRAND_NAME from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString6=select PRICE from TxEBean_Tab where KEY_ID = ? + +TxEBean_queryStr1=select KEY_ID from TxEBean_Tab where KEY_ID = ? + +TxEBean_Delete=delete from TxEBean_Tab + +#***************************************************************************** +#The SQL Statements which are used in the integration/session and +#integration/entity tests +#***************************************************************************** +Integration_Tab_Delete=delete from Integration_Tab +Integration_Insert=insert into Integration_Tab values(?, ?) +Integration_Insert1=insert into Integration_Tab values(1000, 50000.0) +Integration_Insert2=insert into Integration_Tab values(1075, 10490.75) +Integration_Insert3=insert into Integration_Tab values(40, 200.50) +Integration_Insert4=insert into Integration_Tab values(30564, 25000.0) +Integration_Insert5=insert into Integration_Tab values(387, 1000000.0) +Integration_Select_Account=select * from Integration_Tab WHERE ACCOUNT = ? +Integration_Select_All=select * from Integration_Tab +Integration_Update_Account=update Integration_Tab set BALANCE = ? where ACCOUNT = ? +Integration_Delete_Account=delete from Integration_Tab where ACCOUNT = ? + +#***************************************************************************** +#The SQL Statements which are used in the integration/sec tests +#***************************************************************************** +Integration_Sec_Tab_Delete=delete from Integration_Sec_Tab +Integration_Sec_Tab_Insert=insert into Integration_Sec_Tab values(?, ?, ?) +Integration_Sec_Tab_Delete1=delete from Integration_Sec_Tab WHERE LOG_NO=? +Integration_Sec_Tab_Delete2=delete FROM Integration_Sec_Tab where LOG_NO=? and not ( LINE_NO = ? ) +Integration_Sec_Tab_Update=update Integration_Sec_Tab set MESSAGE= ? where LOG_NO = ? and LINE_NO = ? +Integration_Sec_Tab_Select1=select MESSAGE, LINE_NO from Integration_Sec_Tab where LOG_NO = ? and not( LINE_NO= ? ) order by LINE_NO +Integration_Sec_Tab_Select2=select MESSAGE FROM Integration_Sec_Tab where LOG_NO = ? and LINE_NO = ? +Integration_Sec_Tab_Select3=select MAX(LOG_NO) FROM Integration_Sec_Tab +Integration_Sec_Tab_Select4=select LOG_NO from Integration_Sec_Tab where MESSAGE = ? and LINE_NO = ? +Integration_Sec_Tab_Select5=select LINE_NO from Integration_Sec_Tab where LOG_NO = ? and LINE_NO= ? + + +#***************************************************************************** +#The SQL Statements which are used in DBSupport used by ejb/ee/bb tests +#***************************************************************************** +BB_Tab_Delete=delete from BB_Tab +BB_Insert1=insert into BB_Tab values(?, ?, ?) +BB_Select1=select KEY_ID from BB_Tab where KEY_ID = ? +BB_Select2=select KEY_ID from BB_Tab where BRAND_NAME = ? +BB_Select3=select KEY_ID from BB_Tab where PRICE = ? +BB_Select4=select KEY_ID from BB_Tab where PRICE >= ? and PRICE <= ? +BB_Select5=select KEY_ID from BB_Tab where KEY_ID >= ? and KEY_ID <= ? +BB_Select6=select PRICE from BB_Tab where KEY_ID = ? +BB_Update1=update BB_Tab set PRICE = ? where KEY_ID = ? +BB_Delete1=delete from BB_Tab where KEY_ID = ? + +#***************************************************************************** +#The SQL Statements which are used in DAO by ejb/ee/bb tests +#***************************************************************************** +COFFEE_BB_Tab_Delete=delete from BB_Tab +COFFEE_BB_Insert1=insert into BB_Tab values(?, ?, ?) +COFFEE_BB_Select1=select KEY_ID from BB_Tab where KEY_ID = ? +COFFEE_BB_Select2=select KEY_ID from BB_Tab where BRAND_NAME = ? +COFFEE_BB_Select3=select KEY_ID from BB_Tab where PRICE = ? +COFFEE_BB_Select4=select KEY_ID from BB_Tab where PRICE >= ? and PRICE <= ? +COFFEE_BB_Select5=select KEY_ID from BB_Tab where KEY_ID >= ? and KEY_ID <= ? +COFFEE_BB_Select6=select PRICE from BB_Tab where KEY_ID = ? +COFFEE_BB_Update1=update BB_Tab set PRICE = ? where KEY_ID = ? +COFFEE_BB_Delete1=delete from BB_Tab where KEY_ID = ? + +#***************************************************************************** +#The SQL Statements which are used in DBSupport in jta/ee/txpropagationtest +#***************************************************************************** +JTA_Tab1_Delete=delete from JTA_Tab1 +JTA_Tab2_Delete=delete from JTA_Tab2 + +JTA_Tab1_Insert=insert into JTA_Tab1 values(?, ?, ?) +JTA_Tab2_Insert=insert into JTA_Tab2 values(?, ?, ?) + +JTA_Delete1=delete from JTA_Tab1 where KEY_ID = ? +JTA_Delete2=delete from JTA_Tab2 where KEY_ID = ? + +JTA_Tab1_Update1=update JTA_Tab1 set COF_NAME = ? where KEY_ID = ? +JTA_Tab2_Update1=update JTA_Tab2 set CHOC_NAME = ? where KEY_ID = ? + +JTA_Tab1_Update2=update JTA_Tab1 set PRICE = ? where KEY_ID = ? +JTA_Tab2_Update2=update JTA_Tab2 set PRICE = ? where KEY_ID = ? + +JTA_Tab1_Select=select * from JTA_Tab1 +JTA_Tab2_Select=select * from JTA_Tab2 + +JTA_Tab1_Select1=select KEY_ID, COF_NAME, PRICE FROM JTA_Tab1 where KEY_ID = ? +JTA_Tab2_Select1=select KEY_ID, CHOC_NAME, PRICE FROM JTA_Tab2 where KEY_ID = ? + + +#***************************************************************************** +# SQL Statements used by deployment tests +# +# See /tests/assembly/util/dbsupport for more details +# +#***************************************************************************** + +# +# BMP table with Integer Primary Key +# +DEPLOY_intPKTable_Insert=insert into Deploy_Tab1 values(?, ?, ?) +DEPLOY_intPKTable_Select_PK=select KEY_ID from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Select_Price=select PRICE from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Update=update Deploy_Tab1 set PRICE = ? where KEY_ID = ? +DEPLOY_intPKTable_Delete=delete from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Cleanup=delete from Deploy_Tab1 + +# +# BMP table with String Primary Key +# +DEPLOY_strPKTable_Insert=insert into Deploy_Tab2 values(?, ?, ?) +DEPLOY_strPKTable_Select_PK=select KEY_ID from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Select_Price=select PRICE from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Update=update Deploy_Tab2 set PRICE = ? where KEY_ID = ? +DEPLOY_strPKTable_Delete=delete from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Cleanup=delete from Deploy_Tab2 + +# +# BMP table with Long Primary Key +# +DEPLOY_longPKTable_Insert=insert into Deploy_Tab3 values(?, ?, ?) +DEPLOY_longPKTable_Select_PK=select KEY_ID from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Select_Price=select PRICE from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Update=update Deploy_Tab3 set PRICE = ? where KEY_ID = ? +DEPLOY_longPKTable_Delete=delete from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Cleanup=delete from Deploy_Tab3 + +# +# BMP table with Float Primary Key +# +DEPLOY_floatPKTable_Insert=insert into Deploy_Tab4 values(?, ?, ?) +DEPLOY_floatPKTable_Select_PK=select KEY_ID from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Select_Price=select PRICE from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Update=update Deploy_Tab4 set PRICE = ? where KEY_ID = ? +DEPLOY_floatPKTable_Delete=delete from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Cleanup=delete from Deploy_Tab4 + +# +# BMP table with Compound Primary Key +# +DEPLOY_compoundPKTable_Insert=insert into Deploy_Tab5 values(?, ?, ?, ?, ?) +DEPLOY_compoundPKTable_Select_PK=select KEY_ID1, KEY_ID2, KEY_ID3 from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Select_Price=select PRICE from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Update=update Deploy_Tab5 set PRICE = ? where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Delete=delete from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Cleanup=delete from Deploy_Tab5 + +#***************************************************************************** +#The SQL Statements which are used in DBSupport2 used by secpropagation tests +#***************************************************************************** +SEC_Insert1=insert into SEC_Tab1 values(?, ?, ?) +SEC_Select1=select KEY_ID from SEC_Tab1 where KEY_ID = ? +SEC_Select2=select KEY_ID from SEC_Tab1 where BRAND = ? +SEC_Select3=select KEY_ID from SEC_Tab1 where PRICE = ? +SEC_Select4=select KEY_ID from SEC_Tab1 where PRICE >= ? and PRICE <= ? +SEC_Select5=select KEY_ID from SEC_Tab1 where KEY_ID >= ? and KEY_ID <= ? +SEC_Select6=select PRICE from SEC_Tab1 where KEY_ID = ? +SEC_Update1=update SEC_Tab1 set PRICE = ? where KEY_ID = ? +SEC_Delete1=delete from SEC_Tab1 where KEY_ID = ? +SEC_Tab1_Delete=delete from SEC_Tab1 + +#***************************************************************************** +# Connector tests in src/tests/connector +#***************************************************************************** +ConnectorTable_Insert=insert into Connector_Tab values(?, ?, ?) +ConnectorTable_Delete=delete from Connector_Tab + +#***************************************************************************** +# insert values EIS +#***************************************************************************** +TSEIS_insert_init=1 +TSEIS_insert1=2 +TSEIS_insert2=3 + +#***************************************************************************** +#The SQL Statements which are used in xa multires tests +#***************************************************************************** + +Xa_Tab1_Select=select * from Xa_Tab1 + +# insert values +Xa_Tab1_Insert=insert into Xa_Tab1 values(?, ?, ?) + +# delete using id +Xa_Tab1_Delete1=delete from Xa_Tab1 where col1 = ? + +Xa_Tab1_Delete=delete from Xa_Tab1 +Xa_Tab2_Delete=delete from Xa_Tab2 + +#initial insert +Xa_Tab1_insert_init=insert into Xa_Tab1 values (1, 'Table1 Line one ', '1.0' ) +Xa_Tab2_insert_init=insert into Xa_Tab2 values (1, 'Table2 Line one ', '2.0' ) + +#subsequent insert +Xa_Tab1_insert1=insert into Xa_Tab1 values (2, 'Table1 Line two ', '11.0' ) +Xa_Tab1_insert2=insert into Xa_Tab1 values (3, 'Table1 Line three ','111.0' ) + +Xa_Tab2_insert1=insert into Xa_Tab2 values (2, 'Table2 Line two ', '22.0' ) +Xa_Tab2_insert2=insert into Xa_Tab2 values (3, 'Table2 Line three ', '222.0' ) + +#get results + +Xa_Tab1_query=select col1 from Xa_Tab1 order by col1 +Xa_Tab2_query=select col1 from Xa_Tab2 order by col1 + + + +#***************************************************************************** +# Coffee DAO SQL statements +#***************************************************************************** + +# +# Standard Coffee DAO +# +COFFEE_insert=insert into Coffee_Table values(?, ?, ?) +COFFEE_select=select BRAND_NAME, PRICE from Coffee_Table where KEY_ID = ? +COFFEE_select_pk_by_name=select KEY_ID from Coffee_Table where BRAND_NAME = ? +COFFEE_select_pk_by_price=select KEY_ID from Coffee_Table where PRICE = ? +COFFEE_select_pk_by_price_range=select KEY_ID from Coffee_Table where PRICE >= ? and PRICE <= ? +COFFEE_select_pk_by_pk_range=select KEY_ID from Coffee_Table where KEY_ID >= ? and KEY_ID <= ? +COFFEE_select_price=select PRICE from Coffee_Table where KEY_ID = ? +COFFEE_update=update Coffee_Table set BRAND_NAME = ?, PRICE = ? where KEY_ID = ? +COFFEE_update_price=update Coffee_Table set PRICE = ? where KEY_ID = ? +COFFEE_delete=delete from Coffee_Table where KEY_ID = ? +COFFEE_delete_all=delete from Coffee_Table + + +# +# Coffee DAO variant with String Primary Key +# +COFFEE_STRING_PK_insert=insert into Coffee_StringPK_Table values(?, ?, ?) +COFFEE_STRING_PK_select=select KEY_ID from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_select_price=select PRICE from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_update_price=update Coffee_StringPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_STRING_PK_delete=delete from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_delete_all=delete from Coffee_StringPK_Table + +# +# Coffee DAO variant with Long Primary Key +# +COFFEE_LONG_PK_insert=insert into Coffee_LongPK_Table values(?, ?, ?) +COFFEE_LONG_PK_select=select KEY_ID from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_select_price=select PRICE from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_update_price=update Coffee_LongPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_LONG_PK_delete=delete from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_delete_all=delete from Coffee_LongPK_Table + +# +# Coffee DAO variant with Float Primary Key +# +COFFEE_FLOAT_PK_insert=insert into Coffee_FloatPK_Table values(?, ?, ?) +COFFEE_FLOAT_PK_select=select KEY_ID from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_select_price=select PRICE from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_update_price=update Coffee_FloatPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_FLOAT_PK_delete=delete from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_delete_all=delete from Coffee_FloatPK_Table + +# +# Coffee DAO variant with Compound Primary Key +# +COFFEE_COMPOUND_PK_insert=insert into Coffee_CompoundPK_Table values(?, ?, ?, ?, ?) +COFFEE_COMPOUND_PK_select=select KEY_ID1, KEY_ID2, KEY_ID3 from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_select_price=select PRICE from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_update_price=update Coffee_CompoundPK_Table set PRICE = ? where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_delete=delete from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_delete_all=delete from Coffee_CompoundPK_Table + + +Simple_Select_Query= SELECT * FROM jstl_tab1 +Select_NoRows_Query= SELECT * FROM jstl_tab1 WHERE idNum = -9999 +Select_Jstl_Tab1_OneRow_Query= SELECT * FROM jstl_tab1 where idNum = 1 +Select_Jstl_Tab1_By_Id_Query= SELECT * FROM jstl_tab1 ORDER BY idNum +Select_Jstl_Tab1_Using_Param_Query= SELECT * FROM jstl_tab1 WHERE idNum = ? +Select_Jstl_Tab2_Using_Param_Query= SELECT idNum, lastName FROM jstl_tab2 WHERE idNum = ? + +Update_Jstl_Tab2_Using_Param_Query= UPDATE jstl_tab2 SET lastName= ? WHERE idNum = ? + +Delete_NoRows_Query= DELETE FROM jstl_tab2 WHERE idNum = -9999 +Delete_AllRows_Query= DELETE FROM jstl_tab2 + +Insert_Row_Query= INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (1, {d '1961-08-30'}, 'Clark', 'Kent', 1, 4.5) +Insert2_Row_Query= INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (2, {d '1980-12-30'}, 'Fred', 'Flinstone', 2, 4.5) +Insert3_Row_Query= INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (3, {d '1961-01-01'}, 'Scooby', 'Doo', 4, 4.5) +Insert4_Row_Query= INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (4, {d '1990-03-15'}, 'Bruce', 'Wayne', 3, 4.5) +Delete_Jstl_Tab2_Using_Param_Query=DELETE FROM jstl_tab2 where idNum = ? +Failed_Insert_Query=INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (2, '1992-02-03'}, NULL,NULL, 2, 4.5) +Select_Jstl_Tab2_AllRows_Query=SELECT * from jstl_tab2 +Invalid_SQL_Query=This Will Fail on Any RDBMS I Hope! +Select_Jstl_Tab1_MultiParam_Query=SELECT idNum, firstName, lastName from jstl_tab1 where idNum= ? and lastName = ? +Delete_Jstl_Tab2_MultiParam_Query=DELETE FROM jstl_tab2 where idNum = ? and lastName = ? +Select_Jstl_Tab3_Date_Query=SELECT * from jstl_tab3 where aDate= ? +Select_Jstl_Tab3_Time_Query=SELECT * from jstl_tab3 where aTime= ? +Select_Jstl_Tab3_Timestamp_Query=SELECT * from jstl_tab3 where aTimestamp= ? +Insert_Jstl_Tab3_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(1, {d '2001-08-30'}, {t '20:20:20'}, {ts '2001-08-30 20:20:20'}) +Insert_Jstl_Tab3_Date_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(1, ?, {t '20:20:20'}, {ts '2001-08-30 20:20:20'}) +Insert_Jstl_Tab3_Time_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(1, {d '2001-08-30'}, ?, {ts '2001-08-30 20:20:20'}) +Insert_Jstl_Tab3_Timestamp_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(1, {d '2001-08-30'}, {t '20:20:20'}, ?) +Delete_Jstl_Tab3_AllRows_Query= DELETE FROM jstl_tab3 + +Insert_Jstl_Tab3_Null_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(99, null, null, null) +Select_Jstl_Tab2_NullParam_Query= SELECT * FROM jstl_tab2 WHERE rank = ? +Insert_Jstl_Tab2_Null_Query=INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (5, {d '1970-07-04'}, 'Peter', 'Parker', 5, null) +Insert_Jstl_Tab2_NullParam_Query=INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (5, {d '1970-07-04'}, 'Peter', 'Parker', 5, ?) diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/1 b/glassfish-runner/mail-platform-tck/mailboxes/test1/1 new file mode 100644 index 0000000000..c653c6eb8a --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/1 @@ -0,0 +1,13 @@ +From MAILER-DAEMON Thu May 14 18:11:59 1998 +Date: Thu, 14 May 1998 18:11:59 -0700 (PDT) +From: Mail System Internal Data +Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA +X-IMAP: 0884218660 0000000151 +Status: RO +Content-Length: 260 + +This text is part of the internal format of your mail folder, and is not +a real message. It is created automatically by the mail system software. +If deleted, important folder data will be lost, and it will be re-created +with the data reset to initial values. + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/10 b/glassfish-runner/mail-platform-tck/mailboxes/test1/10 new file mode 100644 index 0000000000..d65f20f9e6 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/10 @@ -0,0 +1,97 @@ +From demo@labyrinth.Eng.Sun.COM Wed Oct 16 14:14:42 1996 +Return-Path: +Received: from makai.Eng.Sun.COM by homey.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id OAA03119; Wed, 16 Oct 1996 14:14:41 -0700 +Received: from makai (localhost) by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17070; Wed, 16 Oct 1996 14:13:41 -0700 +Sender: tester@labyrinth.Eng.Sun.COM +Message-Id: <32655005.5828@labyrinth.eng.sun.com> +Date: Wed, 16 Oct 1996 14:13:41 -0700 +From: Demo Account +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0b6Gold (X11; I; SunOS 5.4 sun4m) +Mime-Version: 1.0 +To: tester@homey +Subject: Network Computers have arrived! +Content-Disposition: inline; filename="index.html" +Content-Base: "http://labyrinth/demomail/javacomputin + g/index.html" +Content-Type: multipart/mixed; boundary="=_AABrKQAAEFYyZVkC" +X-Lines: 43 +Content-Length: 2250 +Status: RO +X-Status: +X-Keywords: +X-UID: 126 + +--=_AABrKQAAEFYyZVkC +Content-Type: text/html; charset="us-ascii"; name="index.html" + +From demo@labyrinth.Eng.Sun.COM Wed Oct 16 14:14:42 1996 +Return-Path: +Received: from makai (localhost) by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17070; Wed, 16 Oct 1996 14:13:41 -0700 +Sender: tester@labyrinth.Eng.Sun.COM +Message-Id: <32655005.5828@labyrinth.eng.sun.com> +Date: Wed, 16 Oct 1996 14:13:41 -0700 +From: Demo Account +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0b6Gold (X11; I; SunOS 5.4 sun4m) +Mime-Version: 1.0 +To: tester@homey +Subject: Network Computers have arrived! +Content-Disposition: inline; filename="index.html" +Content-Base: "http://labyrinth/demomail/javacomputin + g/index.html" +Content-Length: 1427 +X-Sun-Content-Length: 1426 +Status: RO +X-Status: +X-Keywords: +X-UID: 127 + + + + + + + XXXX Xxxxxxxxx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Xxxxxxxxx xx xxxxxxxx xxxxxxxxx xxxx xxxxxxx? +xxxxxxxxx@xxx.xxx + +Xxxxxxxxx 1996 Xxx Xxxxxxxxxxxx, Xxx., 2550 Xxxxxx Xxx., Xxx. Xxxx, Xx 94043-1100 XXX. Xxx Xxxxxx Xxxxxxxx + + + + +--=_AABrKQAAEFYyZVkC-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/11 b/glassfish-runner/mail-platform-tck/mailboxes/test1/11 new file mode 100644 index 0000000000..b4ebd12c59 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/11 @@ -0,0 +1,155 @@ +From demo@labyrinth.Eng.Sun.COM Wed Oct 16 14:52:58 1996 +Return-Path: +Received: from makai.Eng.Sun.COM by homey.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id OAA03135; Wed, 16 Oct 1996 14:52:57 -0700 +Received: from makai (localhost) by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17074; Wed, 16 Oct 1996 14:51:58 -0700 +Sender: tester@labyrinth.Eng.Sun.COM +Message-Id: <326558FE.36FB@labyrinth.eng.sun.com> +Date: Wed, 16 Oct 1996 14:51:58 -0700 +From: Demo Account +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0b6Gold (X11; I; SunOS 5.4 sun4m) +Mime-Version: 1.0 +To: tester@homey +Subject: NC whitepaper - Read this +Content-Disposition: inline; filename="JavaPlatformIntro.html" +Content-Base: "http://labyrinth/demomail/javacomputin + g/finance/JavaPlatformIntro.html" +Content-Type: multipart/mixed; boundary="=_AAAr5wAASWUyZVpO" +X-Lines: 101 +Content-Length: 6156 +Status: RO +X-Status: +X-Keywords: +X-UID: 128 + +--=_AAAr5wAASWUyZVpO +Content-Type: text/html; charset="us-ascii"; name="JavaPlatformIntro.html" + +From demo@labyrinth.Eng.Sun.COM Wed Oct 16 14:52:58 1996 +Return-Path: +Received: from makai (localhost) by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17074; Wed, 16 Oct 1996 14:51:58 -0700 +Sender: tester@labyrinth.Eng.Sun.COM +Message-Id: <326558FE.36FB@labyrinth.eng.sun.com> +Date: Wed, 16 Oct 1996 14:51:58 -0700 +From: Demo Account +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0b6Gold (X11; I; SunOS 5.4 sun4m) +Mime-Version: 1.0 +To: tester@homey +Subject: NC whitepaper - Read this +Content-Disposition: inline; filename="JavaPlatformIntro.html" +Content-Base: "http://labyrinth/demomail/javacomputin + g/finance/JavaPlatformIntro.html" +Content-Length: 5295 +X-Sun-Content-Length: 5294 +Status: RO +X-Status: +X-Keywords: +X-UID: 129 + + + + + + Xxx XXXX Xxxxxxxx + + + + + + + + + + + Xxxxxxx 1:Xxxxxxxxxxxx + Xxxxxxx 2:Xxx Xxxxxxxxx xx Xxxxxxx Xxxx Xxxxxxxxxx + Xxxxxxx 3:Xxx Xxxxxx xx. Xxxxxxx Xxxxxxxx: X Xxxx-Xxxxxxx Xxxxxxxx + Xxxxxxx 4:Xxx Xxxx Xxxxxxxx xxx Xxxxxx Xxxxxxxxxx + Xxxxxxx 5:Xxxxxxxxx Xxxx xxx xxx Xxxx Xxxxxxx xx xxx Xxxxxxx Xxxxx + Xxxxxxx 6:Xxx Xxxxxxxxxx Xxxxxxxxxxxx xxx Xxxxxxxxx Xxxxxxxx + Xxxxxxxx 1 + Xxxxxxxxxxxx + + + + + +Xxxxxxxxxxxx +Xxxxxxx Xxxx Xxxxxxxxx: Xxxx xxx Xxxxxxx +Xxxx xxx xxxx xxx xxxxxxx, xxxxxxxxx xx xxxxxxxxx xxxxxxxxxxxxx xxx xxxxxxx xxxxxxxxxxxxx, xxxx +xxx xxxx xx xxxxxxxxxx xxxx xxxx xx xxxxxxxxxxx, xx xxx xxxxxx/xxxxxx 'xxxxxxx xx xxxxx xxxxxxx' +xxxxxxxxxxx xx xxxxx. Xxxxx xxxxxxx xxxx xxxxxxxx xx xxx xxxxxx xx xxxx xxxxxxxxxx xxx +xxxxxxxxxxxxx xxxxxxxxxxx. Xxx xxxxxxxxxx xxxxxxxxxxx xxxxxxx xxxx xxxxxxx xx xxxxxx xxxxx xx +xxxx xxxx-xxxxxxxx xxxxxxxxxx. Xxxxxxxxxxxxx xxxxxxxxxxx, xxxxxxx, xxxxxxx xxxx xxxxxxxx xxxx: +'xxxxxxxx xxxxx' - +x xxxxxxxxxx xxx xxx xx xxxxx xxxxxxxxx. Xxxxxxx xxxxxx xxxx xxxxx xx xxx +xxxxxxx xx xxxx xxxxxxxxx xx xxxxxxxxxxx xxxxxxxxx, xxx xxxxxxxxxxxxx xxxxxxxxxx xxxxx x xxx +xxxx xx xxxxx xxxxxx, xxx xxxxxxxxxxxxx xxx xxx xxxxxxxxxx. +Xxxxxxxxx, xx xxxxxxx xxxxxxxxx xxxxxx xxx xxxxx xxxxx: xxxx xxxx xxxx xxxx x xxxxx, xxxxxxxxx +xx xxxxxxx xxx xxxxxxx xxxxxx xxxx xx x xxxx xxxx xxxxxxxx xxxxxxx xxxx. Xxxx, xxxxxxx xxxx x +xxxxxxxxxxxxx xx xxx xxxxxxxxxx xx xxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxxx xx xxxx, xxx xxxxxxx x +xxxxxxxx xxxxxxxxx xxxxx xxx xxxxxxx xx xxxxxxx, xxxx-xxxxxxxxxxx xxxxxxx xxxx xxx xxxxxx xx +xxxxxxxxx xxxxxx xx xxxxxxxxxxx xxxxxxxxx. +Xxxxxxxxxxxx, xxxxx xxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxx xxxx xxx xxx xxxxx xxxxxxx xxxxxxxxx xx +xxxxxxxxx xx x xxxxxxxx xxxxxxx, xx xxxxxxxxx xx xxx xxxxx xx xxxxx xx xxx xxxxxx xxxxxxx. Xxxxxx, +xxxx xxxx xxxx xxxxxxxxx xxxx x xxxxxx xx xxxxxxxxxxxxx, xxxxxxxxxxx xxxxxxxxx. Xx xxxxxxxxx +xxxxxxxx, xxxx xx xxxxx XX 'xxxxxxx' (x.x. xxxxxxxx xxxxxxx, xxxx xxxxxxxxxx xxx xxxx xxxxxx +xxxxxxx), xxxxxxxx xxxxxxxxxxx xxxxx, xx xxxxxxxxxx, xxxxxxxxx xxx xxxxxxxxx xx xxx xxxxxxx xxxx +xxxxxxx xx xxxxxxxxx, xxxx xx xxxxxxxxxx xxxx, xxx xxxxxx xxxx xxxxxxxxxxx xxxxxxxxx xx xx xxxxx +xxxx xxxxxxxxx xxxx, xx: + +xxxxxxxxxxxx xxxxxx xxxxxxx xxxxxxxxxxx +xxxxxxxx xxxx xxxxxxxxxx xxxxxxxx xxx xxxxxx xxxxxxxx +xxxxxxxx xxxxxxxx xxxxxxxxx xx xxxxx xxxxxxxx xxxxxxxxxxxx (xxxxxxx xxxxxxxxxx xx xxxxxxxxxxxxxx xxxxx xxx xxx xxxxxx xxxxxxxxxxxx) +xxxxxxxxxxxx xxxxxxxx xxxx xxxxxx xxxxxxxxxx xxx xxxx xxxxxxxxxx xxxx xxxxxxxxxx +xxxxxxxxxx xxxxxx, xxxxx xxxx xxxxxxxx xxxxxxx xxxxxxx xxxxxxxx xxxxxxxxxxx xxxxxxxx + + + +Xxxxxxx Xxxx Xxxxxxxxx: Xxxxxxx Xxx Xxxxxxxxxx +Xxxxxxxxx xxxxxx xxxxxxxxxxxxx xxx xxx xxxxx xxxx xxxxxxxx xxxx xxxx xx xxxxxxxx xxx xxxxxxx +xxxxxxx xx xxxxxx xxxxx xx xxx xxxx xx xxxx xxxxxxxxx xx xxxxxxxx xxxxxxxxxxxxxxxxx (x/x/x xxxxx +xx xxxxx xxxxxxx), xxxxxx (xxxxx xxxx xxx) xxxxxxxxxx, xxxxxxxxxx xxxxxxx, xxxxxxxxxxxxx xxx +xxxxxxx xxxxxxxxxxxx. Xx xxxx xx xxxxx xxxxxx, xxxxxxxxxxx xxxxxxxxxx xxxx xx xxxxxxxxxxx +xxxxxxxx xx xxxxx xx xxxx xxx xxxxxxxxxx xx xxxxxxxxx xxxxxxx xxxxxxxxxx xxx xxxxxxxxxx xx +xxxxxxx xxxxxxx xxxxx xx xxx xxxxxxx xxxx. + +Xxxx xxxxx xx xxxxxxxx xx xxxxxxxxxxx x xxxxxxxxx xxxxxx xx xxx-xxxxx xxxxxxxxx xx x xxx xx +xxxxxxx xxxxxxxxx xxxxxx xxxxxxxxxx xxx xxxxxxxxxxxxx xxxx XX xxxxxxxxxxx. Xx xxxxxxxxx xxxx +xxxxxxxxx xxxxxxxx, xxxx xxx xxxxxxxxx xx xxx 'xxxx xxxxxx'/xxxxxx xxxxx, xx xxxxxxxxxxx xxx +xxx-xxxxx xxxxxxxxx, xxxxxxx xx xxx Xxxx xxxxxxxx, xxxxxxxx xxx xxxx xx xxxx xxxxxxxxx +xxxxxxxx. Xxxxxxxxxxx, xx xxxxxxxx xxx xxxxxxx xxxxxxx xxx xxxxxx xxxxxxxxxxxx xx Xxxx xxxx xxxxxx xxxxxxxxxxxx xx xxxx xxxxxxxxxxx xxxxxxx xx xxxxxxx xxx xxxxxx xxxxx xxxxxxxxx. Xxxxxxx, xx xxxxx x xxxxxxx xxx xxxxxxxxxxxxx xxxxxxxxx xxxx xxxxxxxxxx xx xxx xxxxxxx xxxxxxxxxxx xxx +xxxxxxxx xx xxx xxx xxxxxxxxxx xxx xx xxxxxxx. + + + + + + + + + + + + + + + + Xxxxxxxxx xx xxxxxxxx xxxxxxxxx xxxx xxxxxxx? +xxxxxxxxx@xxx.xxx + +Xxxxxxxxx 1996 Xxx Xxxxxxxxxxxx, Xxx., 2550 Xxxxxx Xxx., Xxx. Xxxx, Xx 94043-1100 XXX. Xxx Xxxxxx Xxxxxxxx + + + + + + + + +--=_AAAr5wAASWUyZVpO-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/12 b/glassfish-runner/mail-platform-tck/mailboxes/test1/12 new file mode 100644 index 0000000000..4a1ef6ef05 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/12 @@ -0,0 +1,230 @@ +From demo@labyrinth.Eng.Sun.COM Wed Oct 16 14:54:19 1996 +Return-Path: +Received: from makai.Eng.Sun.COM by homey.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id OAA03140; Wed, 16 Oct 1996 14:54:18 -0700 +Received: from makai (localhost) by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17077; Wed, 16 Oct 1996 14:53:19 -0700 +Sender: tester@labyrinth.Eng.Sun.COM +Message-Id: <3265594F.782B@labyrinth.eng.sun.com> +Date: Wed, 16 Oct 1996 14:53:19 -0700 +From: Demo Account +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0b6Gold (X11; I; SunOS 5.4 sun4m) +Mime-Version: 1.0 +To: tester@homey +Subject: Netra NFS server info +Content-Base: "http://labyrinth/demomail/netra-nfs/" +Content-Type: multipart/mixed; boundary="=_AAB6lgAASFsyZVpO" +X-Lines: 180 +Content-Length: 8783 +Status: RO +X-Status: +X-Keywords: +X-UID: 130 + +--=_AAB6lgAASFsyZVpO +Content-Type: text/html; charset="us-ascii" + +From demo@labyrinth.Eng.Sun.COM Wed Oct 16 14:54:19 1996 +Return-Path: +Received: from makai (localhost) by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17077; Wed, 16 Oct 1996 14:53:19 -0700 +Sender: tester@labyrinth.Eng.Sun.COM +Message-Id: <3265594F.782B@labyrinth.eng.sun.com> +Date: Wed, 16 Oct 1996 14:53:19 -0700 +From: Demo Account +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0b6Gold (X11; I; SunOS 5.4 sun4m) +Mime-Version: 1.0 +To: tester@homey +Subject: Netra NFS server info +Content-Base: "http://labyrinth/demomail/netra-nfs/" +Content-Length: 8056 +X-Sun-Content-Length: 8055 +Status: RO +X-Status: +X-Keywords: +X-UID: 131 + + + + + + + +Xxxxx XXX Xxxxxx + + + + + + + + + + + + + Xxxxx XXX Xxxxxx + + Xxxxx Xxxxxxx + Xxxxxxxx & Xxxxxxxx + Xxxxx + Xxxxxxxxxxxxxx + Xxxxxx Xxxxxxxxxx + Xxxxxxxxx & Xxxxxxx + + Xxxxx Xxxxxx + Xxxxxx Xxxxxxxx + + + + + + + +XxxxxXX XXXXX Xxxxxx +Xxx xxxxxxxx, xxxxxxxxxx, xxxxxxxx, xxxx xxxx xxxxxx xxxxxxxx xxx xxxxxxxxxx xxx xxxxxxxxxxx. +Xxxxxxxx xx xx xxx xxxxx xxx xx xx xxxx. + + +Xxxx xxx xxxxxxxx xxxxxxxx xx xxxxxxx xxxxxxxxxx xxx xxx xxxxx xxxxxx xx +xxxxxxxxxxx xxxxxxxxx, xxxx xxxxxxxxx xxxxx xxx xxxxxxxxxxxxx xxxxx +xxxxxxx-xxxxxxx xxxxxxx xx xxxxxxxxxxxx xxxxxx xxxx xxxxxxx xxxxx. Xxxxxx xxx +xxxxxxx xx xxxxxxxx xxx xxx xxxxx xxxx, xxx xxxxxxxx xx xxxxxxx xx xxxxx xx +xxxx xxxxxx, xxxx xxxxx xxxxxxxxxxxx xxxx xxxxxx, xxx xxxx xxxxx xxxxxx xxxx +xxxxxxxxxx. Xxx, xxx xxxxxxx xx xxxx xxxxxxx xxxxxxxxx xxx xxxxxxxx xx xxx +xxxxxxx xxxx xxxxxx (XXXXX) xxxxxxxx, xxx xxxx xxxx'xx xxxxxxx xxx: x +xxxx-xxxxxxxxx, xxxx-xx-xxxxxxxxxx, xxxxxx xxxxxxxx, xxxx xxxxxxxxx XXX +xxxxxx xxxxxxxx xxxx xx xxxxx xxx xxxxxxxxxx xxx xxxxxxxxxxx. + +Xxx Xxxxx XXXXX xxxxxx xx x xxxxxxxx xxxxxxxx/xxxxxxxx xxxxxx xxxxxxxx xxxx +xxxxxx xxxxxxxx-xxxxxxx xxxxx/xxxxxxxxxxx xxxxx xxxxxx xx xx xxxxxxxxx +xxxxxxxxxxxx xxxxx xxx XXX xxxxxxx. Xx xxxxxxxxxx xxxxxxxx xx XXX xxxxxxxxx, +xxx xxxxxxx, xxxx-xxxxxxxxx Xxxxx XXX xx xxxxxx xx xxxxxxx xxx xxxxxxxx, xxx +xxxxxxxx xxxxxxxx xxxxxxxxxxx xxx xxxxxxxxxxx. + +Xxxxx XXX xx xxxxxxxx xxx xxxx-xxx-xxxx xxxxxxxxxx -- xx'x xx xxx xxxxxxx xx +xxxx xxxx 30 xxxxxxx, xxx xxx xx xxxxxx xxxxxxxxxxxx xxxx xxx XX, XXXX &xxx +xxxxxxxxxxx, xx Xxxxxxxxx &xxx xx xxxx xxxxxxx, xxxxx x xxxxxxxx Xxx xxxxxxx. +Xxxx xxxxxx xxxx xxxxxx xx xxxxxxx xxxxxxxx, xxx xxxxxxx xx xxxx xxxxxx, +xxxxx xxx xxx xx xxx xxxxxxxxxxx xxxx xxxxxxxxx xxx xx xxxxxxxxxx xx xxxxx xx +xx xxxxx xxx xxxxx. Xx xxxxxxxx xx xxx xxxxxx XXXX xxxxx, xxx xxx xxxxx xxx +xxxxxx'x xxxxxx xx xxx XXX xxxxx xx xxxxx, xxxxx xxx xxxx xx xxxx xxx +xxxxxxxxx XX xxxxxxx, xxx xxxx, xxx xxxxxxxxx xxxxxx. + +Xxx xxxx xxxxxxx xx xxxxxxxx xx xxxxxxxx xxxx xxxxx xxxxx xxxxxxxxxxxx. Xxx +xx xxxxxxx xxxxxxxx xxxxxxxxxxxxxx, x xxxxxx xxxxxxxxxx xxxxx xxx xxxxx xxx +xxxxxxxxxxxxx xxxxxxx xxxx xxx xxxxx. + +Xxxxx xxx xxxx xxxxxxxxxxx - xxxx xxx xxxxxx xx. +X xxx-xxxx xxxxxxxx xxxx XxxXxxxxxx XX, XXXX5 xxxxxxxxxx, xxx xxx +xxxxxxxxxxx, xxxxxxxxxxxx, xxx xxxxxxxxxxxxxx (XXX) xxxxxxxx xxxx xxxx xxxx +Xxx xxxxxxx xxx xxxxxxxx xxxxxxx xxxxxx xxxx xxxx xx xxxxxxxxxx xxxx xxx +xxxxx xxx xxxx xx. Xx xxxx, xxxx xxx xxxxx-xx XxxxxXxxxx xxxxxxxx, Xxxxx XXX +xxxxxxxx xxxxxxxx xxxx xxxx xx xxxxxxx xxxx xxxx x xxxx xxxxx -- xxxxx xx +xxxx xxxxxxxxxx xxxx xxx xxxxxxx xxxxxxxx xxxxxxxx xxxxx xxxxxxx xxxxx. +XxxxxXxxxx xxxxxxxxxxxxxx xxx xxxxxxxxxx xxx xxxx xx x "xxxxx" XXXX +xxxxxxxxxxxxx xxxx x xxxxxx xxxxxxxxxx, xxxxxxxxx xxxxxx xxxxxxxxxxx xxx +xxxxxxxxxx xxxx xxxxxxxxxxxxxx. + +Xxxx'x xxxx, Xxxxx XXX xxxxxxxx xx xxxxxxxx XXX xxx xxxxxxxx xxxxxxxx xx xxx +xxxxx xx x xxxxx xxxxxxx. Xxx xxx xxxxxx xxxxxxxxxxxxx xxxxx xx xxxx xxxxx xx +xxxxxxxx. Xxx xxxx xxx xx x xxx xxxx-xxxxx xxx xxxxxxxxxx xxxxxx +xxxxxxxxxxxxxx. + +Xxx xxx xxxxxxxxxxxxx xxx xxxx -- xxx xxxx xxx xxx'x. + +Xxxxx xx xxx xxxxxx, xxxxxxxx, xxxxxx XxxxxxxXX xxxxxxxxx xxxxxx xxxx +xxxxxxxx xxx xxxxxxx xxxxxxxxxx xxxxxxxxxxx xx xxx xxxxxxxx, xxx XxxxxXxxxx +xxxxxxxx xx Xxxxx XXX xxxxx xxxx xxxxxxxxxx xxx xxxxxxxxxxx xxxx xxx +xxxxxxxxxxxxx xxxx xxxx. Xx xxx xxx xxxxxxxxxx xxxx XXXX xxxxxxxx, xxx xx +xxxxxxxxxxx xx xxxx xxx xxxxxxxxxx xxxx XXX xxxxxxxxxxx. + +XXXX xxxxxxx xxxxx xxx xxx xxxxxxx Xxxxx XXX xxxx x xxxxxx xxxxxxxxxx-xxxx +xxxxxx xxxxxxx, xxxxxxxxx XxxXxx XxxxxxxXX, XxxxXxxxXX, xxx xxxxxx. +XX-XXX &xxx xxxxxx xxxxxxxx xxxxx xx xxxxx xx xx xx xxxx XX-XXX xxxxxxxxxxxx. +Xxx xx xxxxxxxx xxxxxxxx xx xxxx xxxx-xx xxxxxx xxxx xxxx. + +Xxxxx xxxx Xxxxx XXX, Xxx xxx xxxxxxxxx xxxxx XXX xx xxx xxxx xxxx, xx +xxxxx'x xxxx xxxxxx xxxxxx. Xxxxx XXX xxxxxxxx xxxx XXX X2 xxx X3 xxxxxxx, xx +xxxx xxxxxxxxxx xx X2 xxxxxxx xx xxxxxxxxx xxxx xx xxx xxxxxxx xx X3 +xxxxxxxx. + +Xxxxxxxx xxxxxx xx xx xxx xxxxxxx xxx. + +Xxxx Xxxxx XXX, xxx'xx xxxxxxx xxx xxx xxxx xxx xxxxxxxxxxxxx xxx xxxx -- xxx +xxx xx xxxxxx, xxxxx xx'x xxxxx xx xx xxxxx xxx xx xxx xxx -- xxxx 64XX +xxxxxx, 8XX xxxxxxx, XXX, xxxxxx xxxxx, XX XXX, Xxxxx XXX XxxxxXxxxx +xxxxxxxx, x 10Xxxx Xxxxxxxx xxx x 10/100Xxxx Xxxxxxxx xxxxxxx xxxxxxxxx. Xx'x xxxx xxxxxx +xxxxxxxxxx, xxxx x xxxx-xx-x-xxxx xxxxxxxxx xxxxxxxxxxxxx xxxxxx. Xxx xx xxxx +xxxx xxxxxxxxxx xx xxxxxx xxxxxxxxxx, xx xxx xxx xxxxxxx xxxxxxx xxxxx xxx +xxxx-xxx-xxxx xxxxx. Xxxx xxxxx xxxx xxxxxxxxxx xx Xxxxx XXX xx xxxxxxxxx +xxxx xxxx xxx xxxxxx. + +Xx xxxx xxxxx xxxxx xxxx XXX xxxxxxxxxx xxxxxx xx xxxxxxx xx x xxxxxx +xxxxxxxx xxxxxxxx xxx xxxx xxxxxxx. Xx xxxx xxxxx xxxxx xxxx xx xxxxx xxxx +xxx xxxxxxx xxxx xxxxxxx xxx XXX xx xxx xxxxx xxxxx. Xx xxx xxxx xxx xxx +xxxxx xx Xxxxx XXX. + +Xxx Xxxxx XXX Xxxxxx xxxxxxxxxx xxxxxxxxxx xxxx XX xxx xxxxxxxxxx xxxxxxxxxx +xxx xxxxxxxxxxx, xxxxxxxxx xxxxxxxxxxxx xxxxxxx xxxx xxxxxxx. + + + + + + + + + +Xxxxxx Xxxxxxxxxxxxxx + + + +Xxxxxx Xxxxxx Xxxxxxxxxxxxxx +Xxxx xxx Xxx xxxxxxx xxxxxxxxx, xxx Xxxxx XXX xxxxxx xxxxxxxx xxxxxx xxxxxx +xxxxxxxxxxxxxx -- xxxxxx xx xxx xxxxxxxx'x xxxx xxxxxx xxxxxxxxxx xxxx +xxxxxx. + + + + + + + +Xxxx Xxxxxxxxxxxxxx + + + +Xxxx, Xxx-xxxxx Xxxxxxxxxxxxxx +Xxxxx x xxxxxxxxx xx XXXX xxxxx xxxxx xxxx x xxxxxx xxxxxxxxxx, XXX +xxxxxxxxxxxxxx xxx xxxx xxxxxxxxxxxx xxxxxxxxxx. Xxxxx'x xx xxxx xx xxxxxxxx +xxxxxxx XXXX xxxxxxxx. + + + + + + + + + + + + +Xxx xx xxxx + + XXXX'X XXXXXXXXX | XXXXXXX + + Xxxxxxxxx 1996 Xxxxxx xxx/xx xxx xxxxxxxxxx. Xxx xxxxxx xxxxxxxx. + + + + + + + + +--=_AAB6lgAASFsyZVpO-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/13 b/glassfish-runner/mail-platform-tck/mailboxes/test1/13 new file mode 100644 index 0000000000..23f7952b54 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/13 @@ -0,0 +1,31 @@ +From demo@labyrinth.Eng.Sun.COM Wed Oct 16 14:55:55 1996 +Return-Path: +Received: from makai.Eng.Sun.COM by homey.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id OAA03144; Wed, 16 Oct 1996 14:55:54 -0700 +Received: from makai (localhost) by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17080; Wed, 16 Oct 1996 14:54:55 -0700 +Sender: tester@labyrinth.Eng.Sun.COM +Message-Id: <326559AF.5693@labyrinth.eng.sun.com> +Date: Wed, 16 Oct 1996 14:54:55 -0700 +From: Demo Account +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0b6Gold (X11; I; SunOS 5.4 sun4m) +Mime-Version: 1.0 +To: tester@homey +Subject: press release +Content-Transfer-Encoding: 7bit +X-Lines: 6 +Content-Type: text/plain; charset="us-ascii" +Content-Length: 234 +Status: RO +X-Status: +X-Keywords: +X-UID: 132 + +The press release on the Netra product is up on my +local Web server. Look at +http://labyrinth/demomail/netra-nfs/pr.netra-nfs.html + +Please read it and let me know what you think. Once I +get your feedback we can push it externally. + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/14 b/glassfish-runner/mail-platform-tck/mailboxes/test1/14 new file mode 100644 index 0000000000..3d767acc06 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/14 @@ -0,0 +1,280 @@ +From demo@labyrinth.Eng.Sun.COM Mon Oct 14 12:24:03 1996 +Return-Path: +Received: from makai.Eng.Sun.COM by homey.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id MAA01982; Mon, 14 Oct 1996 12:24:02 -0700 +Received: from makai (localhost) by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA06872; Mon, 14 Oct 1996 12:23:01 -0700 +Sender: tester@labyrinth.Eng.Sun.COM +Message-Id: <32629315.1B9C@labyrinth.eng.sun.com> +Date: Mon, 14 Oct 1996 12:23:01 -0700 +From: Demo Account +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0b6Gold (X11; I; SunOS 5.4 sun4m) +Mime-Version: 1.0 +To: tester@homey +Subject: Read this first +Content-Type: multipart/mixed; boundary="------------265112906033" +X-Lines: 259 +Content-Length: 8551 +Status: RO +X-Status: +X-Keywords: +X-UID: 133 + +--------------265112906033 +Content-Type: text/plain; charset="us-ascii" +X-Sun-Content-Length: 53 + +Be sure to read the attached file before proceeding. + +--------------265112906033 +Content-Type: text/plain; charset="us-ascii"; name="README" +Content-Disposition: inline; filename="README" +X-Sun-Content-Length: 8207 + + XXXXXX: Xxx Xxxx Xxxxxxxxxx Xxx + + +Xxxx 1.0.2 xxxxxxx xx xxx Xxxx Xxxxxxxxxx Xxx (XXX) xxxx xxx +xxxxx xxxxxxx xxxx xxxxxxx xx xxx 1.0 Xxxx xxxxxx XXX. + + +Xxx XXX xxxxx xxx xx: +--------------------- + - Xxxxxxx xxxxxxx xxxx xxxxxxx xx xxx xxxxx xxxxxx XXX + - Xxxxxx xxxxxxx xxxx xxx xx xxx Xxxx-xxxxxxx xxxxxxxx + - Xxxxxxx Xxxx xxxxxxxxxxxx + - Xxxxxxxxxx xxxx xxx xxxxxxxx XXX (xxx x xxxxxxxxx + xxxxxxx-xxxx xxxxxxxx) + + +Xxxxxxxxx xxxxxxxxx +------------------- +Xxx XXX xx xxxxxxxxx xxx XXXXX Xxxxxxx, x86 Xxxxxxx, Xxxxxxx XX, +Xxxxxxx 95, xxx Xxx. + + +Xxx XXX xxxxxxxx: +----------------- + - xxxxxxx.xxx + XX XXX XXXXX XXXX XXXX! Xx xx xxxxxx xx xxx xxxxxxxx xxx + xxxxxxxxxxx. + + - xxx.xxx + Xxxx xx x xxx xx xxxxxx xxxxx xxxx xxx xx xxxxxxxx xx + xxxxxxx. Xxx xxx xxx x xxxx xxxx xx xxx xxxxxxx xxxxxxx + xx xxxxx xxxx xxx://xxx.xx.xxx/xxx/xxxxxxxxx/xxx/XXX32 . + + - Xxxx Xxxxxx Xxxxxx + xxx xxxxxxx xxx xxxxxxx xxxxxxx + + - Xxxx Xxxxxxxx XXX xxx Xxxxxxxxx Xxxxxxxx, + xx XXX (xxxx.xxxxx.xxxxx) xxx xxxxxxxxx + xx x xxxxxxx-xxxx xxxxxxxx xxxx xxxx xxx XXX + + - Xxxx Xxxxxxxx + + - Xxxx Xxxxxxxxxxx + +XXXX: Xxxx xxxxxxx xxxx XXX xxxxxxx x Xxx xxxxxxx. + + +Xxxx xx xxx xxxxx xxxxxx XXX? +------------------------------ +Xxx xxxxx xxxxxx XXX xxxxxxxx xx xxx xxxxxxxxx xxxxxxxx: xxxx.xxxx, +xxxx.xxxx, xxxx.xx, xxxx.xxx, xxxx.xxx, xxxx.xxx.xxxx, xxxx.xxx.xxxxx, +xxx xxxx.xxxxxx. Xx xxx xxx xxxxxxxx xxx xxxxxxxxx xx xxxxxxxxxx +xxxx XXX. + + +---------------------------------------------------------------------- +XXXXXXXXX: Xxxxxx xxxx xxxx xxx xxxxxxxxxx xxx Xxxxxxxxx xxx Xxxxxxx +xxxxxxxxxxx (xx xxx xxxx xxxxx XXXXXXXXX) xxxxxx xxxxx xxxx xxxxxxx. +---------------------------------------------------------------------- + + +Xxx xxxx xx xxxx xxxxxxxx xxx xxx xxxxxxxxx xxxxxxxx: + +- Xxxxx xx xxxx xxxx xxxxxxxxxxx +- Xxxxxxx xxxxxxx xxxx xxx Xxxxxx Xxxxxx +- Xxx XXXXXX xxx +- Xxxxxxxxx xxxxxxxx xxxx XXX + + +Xxxxx xx xxxx xxxx xxxxxxxxxxx +------------------------------ +Xxxx xxxx xx xxx xxxx xxxxxxxxxxxxx xxxxxxxx xx xxxx xxxxxxx. Xxx +xxxx xx xxx xxxxxxxxxxx xxx xxxx xx xx xxx xxxxxxx: + + xxxx://xxxx.xxx.xxx/xxxxxxxx/XXX/ + +Xx xxxxxxxx xxx xxxxxxxxx: + +- Xxxxxxxxxx xxxxx xxxxxxxxx +- Xxxxxx xxxxxxxx (xxxx xx xxxxx xxx xx xxxx xxxxxxx, xx xxxx) +- XXX xxxxxxxxxxxxx +- Xxxxxxxxxxxxx xxx xxx Xxxx xxxxxxxxxxx xxxxx (xxxxxxxxx xxxx, + xxxxx, xxx xxx) +- Xxx xxxxxx Xxxx Xxxxxxxx Xxxxxxxxxxxxx +- Xxxxxxx xxxxxxxx xxxxxxxxxxx + +Xx xxx xxxx xxxxxxxxx, xxxxxxxx, xx xxxxxxxx: + +1. Xxxxx xxx xxx XXX xx: + + xxxx://xxxx.xxx.xxx/xxxxxxxx/XXX/xxx.xxxx + +2. Xxxxxx xxxxxx x xxx xxxxxx, xxxxxx xxxxx xxx xxxxx xxxx xx: + + xxxx://xxxx.xxx.xxx/xxxxxxxx/XXX/1.0.2/XxxxxXxxx-XXX.xxxx + + Xxxx xxx xxxxxxx xxxxxxxxx xxx xxxxxxxxxxxx xx: + + xxxx://xxxx.xxx.xxx/XxxxxxxXxXxxxx/XxxXxxxxx.xxxx + +3. Xxx xxxxxxxxx xxxx.xxxx.xxxx xxx xxx Xxxx/XxxXxxx xxxxxxx xxxxx + xxx xxxxxx xxxxxx xxx xxxxxxx xxxxxxxxx xxx xxxxxxxxxx xxxxxxxxxxx + xxxx xxxxx Xxxx xxxxx. Xxx xxxx://xxxx.xxx.xxx/xxxx.xxxx xxx + xxxxxxxxxxx xx xxxxxxxxx xxx xxxxxxxxx xxx xxxxxxx xxxxx. + +4. Xxxxx xxxxxxxxx xxx xx xxxx xx xxxx@xxxx.xxx.xxx. + + +Xxxxxxx xxxxxxx xxxx xxx Xxxxxx Xxxxxx +-------------------------------------- +Xxxx xxx xxx xxxxxxxx xx xxxxx xxx Xxxxxx Xxxxxx: + + xxx/xxxxxxxxxxxx xxxx/XxxxxXxxxxx/xxxxxxx1.xxxx + xxx/xxxxxxxxxxxx xxxx://xxxx.xxx.xxx/xxxxxxx/xxxxxxx/XxxxxxxXxxx/xxxxxxx1.xxxx + (Xx xxx XX, xxx "xxx\xxxxxxxxxxxx" xxxxxxx xx "xxx/xxxxxxxxxxxx".) + +Xxx xxxxxxxx xx x xxxxxxxx xx XXX xxxx xxxxxx xx xx XXXX xxxx xxxx +xxxxxxxx xxx xx xxxx XXXXXX xxxx. Xxx Xxxxxx Xxxxxx xxxxx xxx XXXXXX +xxxx xx xxx XXXX xxxx xxx xxxx xxx xxxxxxx xx xxxxxxxxx xx xxx xxxx +(xx xxxxxxxx xxxxxxx). + + +Xxx XXXXXX xxx +-------------- +Xxx XXX xxx xx xxxxxxxx xxxxxxxx xx xxxx, xxxxxxxx xx xxx XXXXXX xxx. +Xxxx xx xx xxxxxxx xx x xxxxxx XXXXXX xxx: + + + +Xxxx xxxxx xxx xxxxxx xx xxxxxxx xx xxxx xxx xxxxxx xxxxx xxxxxxxx +xxxx xx xx XxXxxxxx.xxxxx (xx xxx xxxx xxxxxxxxx xx xxx xxxxxxx XXXX +xxxxxxxx), xxx xx xxx xxx xxxxxxx xxxx xx xxx xxxxxx xx 100 xxxxxx +xxxx xxx 140 xxxxxx xxxx. + +Xxxx'x x xxxx xxxxxxx xxxxxxx xx xx XXXXXX xxx: + + + + + + Xx xxx xxxx xxxxx x Xxxx-xxxxxxx xxxxxxx, + xxx xxxxx xxx xxxxxxx xxxx xxxxxxx xx xxxx xxxxxxxxx. + + + + +Xxxx xxxxx xxx xxxxxx xx xxxxxxx xx xxxx xxx xxxxxx xxxxx xxxxxxxx +xxxx xx xx xxx XXX +xxxx://xxxx.xxx.xxx/xxxxxxx/xxxxxxx/XxxxxxxXxxx/XxxxxxxXxxx.xxxxx, +xx xxx xxx xxxxxxx xxxx xx xxx xxxxxx xx 400x75 xxxxxx, xxx xx xxxxx +xxx xxxxxx xx xxx xxxxxx xx xxx xxxx. Xxx xxxxxx/xxxxxxx xxxx xxxx +xxx xxx xxxxxx'x "xxxx" xxxxxxxxx (xxxxx xxxxxxxxxx xxx xxxx xxxx +xxxxxx xxxxxxxx) xx xx "Xxxx xx xxx Xxxxxx Xxxxxx." Xx xxx xxxx xx +xxxxxx xx x xxxxxxx xxxx xxx'x xxxxxxx Xxxx xxxxxxx, xxxx xxx xxxxxxx +xxxx xxxxxx xxx XXXXXX xxx XXXXX xxxx, xxxxxxxxxx xxx XXXX xxxxxxx +xxx xxx xxxx. Xxxx-xxxxxxx xxxxxxxx +*xxxxxx* xxxx XXXX. + +Xxxx'x xxx xxxxxxxx xxxxxx xxx xxx XXXXXX xxx: + + '<' 'XXXXXX' + ['XXXXXXXX' '=' xxxxxxxxXXX] + 'XXXX' '=' xxxxxxXxxx + ['XXX' '=' xxxxxxxxxXxxx] + ['XXXX' '=' xxxxxxXxxxxxxxXxxx] + 'XXXXX' '=' xxxxxx 'XXXXXX' '=' xxxxxx + ['XXXXX' '=' xxxxxxxxx] + ['XXXXXX' '=' xxxxxx] ['XXXXXX' '=' xxxxxx] + '>' + ['<' 'XXXXX' 'XXXX' '=' xxxxxxXxxxxxxxx1 'XXXXX' '=' xxxxx '>'] + ['<' 'XXXXX' 'XXXX' '=' xxxxxxXxxxxxxxx2 'XXXXX' '=' xxxxx '>'] + . . . + [xxxxxxxxxXXXX] + '' + +'XXXXXXXX' '=' xxxxxxxxXXX + Xxxx xxxxxxxx xxxxxxxxx xxxxxxxxx xxx xxxx XXX xx xxx xxxxxx -- + xxx xxxxxxxxx xxxx xxxxxxxx xxx xxxxxx'x xxxx. Xx xxxx xxxxxxxxx + xx xxx xxxxxxxxx, xxxx xxx xxxxxxxx'x XXX xx xxxx. + +'XXXX' '=' xxxxxxXxxx + Xxxx xxxxxxxx xxxxxxxxx xxxxx xxx xxxx xx xxx xxxx xxxx xxxxxxxx + xxx xxxxxx'x xxxxxxxx Xxxxxx xxxxxxxx. Xxxx xxxx xx xxxxxxxx xx + xxx xxxx XXX xx xxx xxxxxx. Xx xxxxxx xx xxxxxxxx. + +'XXX' '=' xxxxxxxxxXxxx + Xxxx xxxxxxxx xxxxxxxxx xxxxxxxxx xxx xxxx xxxx xxxxxx xx + xxxxxxxxx xx xxx xxxxxxx xxxxxxxxxxx xxx XXXXXX xxx xxx xxx'x + xxx Xxxx xxxxxxx. + +'XXXX' '=' xxxxxxXxxxxxxxXxxx + Xxxx xxxxxxxx xxxxxxxxx xxxxxxxxx x xxxx xxx xxx xxxxxx xxxxxxxx, + xxxxx xxxxx xx xxxxxxxx xxx xxxxxxx xx xxx xxxx xxxx xx xxxx (xxx + xxxxxxxxxxx xxxx) xxxx xxxxx. + +'XXXXX' '=' xxxxxx 'XXXXXX' '=' xxxxxx + Xxxxx xxxxxxxx xxxxxxxxxx xxxx xxx xxxxxxx xxxxx xxx xxxxxx (xx + xxxxxx) xx xxx xxxxxx xxxxxxx xxxx, xxx xxxxxxxx xxx xxxxxxx xx + xxxxxxx xxxx xxx xxxxxx xxxxxx xx. + +'XXXXX' '=' xxxxxxxxx + Xxxx xxxxxxxx xxxxxxxxx xxxxxxxxx xxx xxxxxxxxx xx xxx xxxxxx. + Xxx xxxxxxxx xxxxxx xx xxxx xxxxxxxxx xxx xxx xxxx xx xxxxx xxx + xxx XXX xxx: xxxx, xxxxx, xxx, xxxxxxx, xxxxxx, xxxxxxxxx, + xxxxxxxx, xxxxxx, xxxxxxxxx. + +'XXXXXX' '=' xxxxxx 'XXXXXX' '=' xxxxxx + Xxxxx xxxxxx xxxxxxxxxx xxxxxxx xxx xxxxxx xx xxxxxx xxxxx xxx + xxxxx xxx xxxxxx (XXXXXX) xxx xx xxxx xxxx xx xxx xxxxxx (XXXXXX). + Xxxx'xx xxxxxxx xxx xxxx xxx xx xxx XXX xxx'x XXXXXX xxx XXXXXX + xxxxxxxxxx. + +'<' 'XXXXX' 'XXXX' '=' xxxxxxXxxxxxxxx1 'XXXXX' '=' xxxxx '>' . . . + Xxxx xxx xx xxx xxxx xxx xx xxxxxxx xx xxxxxx-xxxxxxxx xxxxxxxxx. + Xxxxxxx xxxxxx xxxxx xxxxxxxxxx xxxx xxx xxxXxxxxxxxx() xxxxxx. + + +Xxxxxxxxx xxxxxxxx xxxx XXX +--------------------------- +Xxxx xxxxxxx xxxxxxxx xxx Xxxx Xxxxxxxx (XXX), xx xxxxx-xxxxxxx +xxxxxxxxx xx x xxxxxxx-xxxx xxxxxxxx xxx Xxxx xxxxxxx. Xx xx +xxxxxxxx xx xxxx xxx Xxxx Xxxxxxxx XXX, xxxxx xx xx xxx xxxxxxx +xxxx.xxxxx.xxxxx. Xx xxxx xxxxxxx xx xxxxxxx xxxx xxxxxxxx xx +xxx xxxxxxxx XXX. + +Xxx xxx xxxxx xxxxxxx xxxxx xxx -xxxxx xxxxxx xx xxxxxxxxxxxx. +Xxxx xxxxxxxxx xxxxxxx, xx'x xxxx xx xxxxxx xxxxxxxxxxxx xxxx +xxx xxxxxxxxx xxxx xxxxxxxx xxx xxxxxx'x XXXX xxxx. Xxx xxxxxxx, +xx Xxxxxxx: + + xx xxxx/XxxXxxXxx + ../../xxx/xxxxxxxxxxxx -xxxxx xxxxxxx1.xxxx + +Xx xxx XX: + + xx xxxx\XxxXxxXxx + ..\..\xxx\xxxxxxxxxxxx -xxxxx xxxxxxx1.xxxx + +Xxx xxx xxxx xxxxxxxxxxxxx xx xxx xxxxxxxx xxx xxx XXX xx: + + xxxx://xxxx.xxx.xxx/xxxxxxxx/XXX/xxxxxxxxx/ + + +--------------265112906033-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/15 b/glassfish-runner/mail-platform-tck/mailboxes/test1/15 new file mode 100644 index 0000000000..fe5734ee3d --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/15 @@ -0,0 +1,28 @@ +From demo@labyrinth.Eng.Sun.COM Sat Oct 12 10:36:59 1996 +Return-Path: +Received: from makai.Eng.Sun.COM by homey.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id KAA01685; Sat, 12 Oct 1996 10:36:58 -0700 +Received: from makai (localhost) by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA04264; Sat, 12 Oct 1996 10:35:55 -0700 +Sender: tester@labyrinth.Eng.Sun.COM +Message-Id: <325FD6FB.59E0@labyrinth.eng.sun.com> +Date: Sat, 12 Oct 1996 10:35:55 -0700 +From: Demo Account +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0b6Gold (X11; I; SunOS 5.4 sun4m) +Mime-Version: 1.0 +To: tester@homey +Subject: hardware +Content-Transfer-Encoding: 7bit +X-Lines: 3 +Content-Type: text/plain; charset="us-ascii" +Content-Length: 104 +Status: RO +X-Status: +X-Keywords: +X-UID: 134 + +If your group is in need of more hardware browse +over to www.sun.com/sparc/ and pick out what +you want. + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/16 b/glassfish-runner/mail-platform-tck/mailboxes/test1/16 new file mode 100644 index 0000000000..16650bc374 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/16 @@ -0,0 +1,164 @@ +From demo@labyrinth.Eng.Sun.COM Mon Oct 14 16:59:36 1996 +Return-Path: +Received: from makai.Eng.Sun.COM by homey.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id QAA02099; Mon, 14 Oct 1996 16:59:34 -0700 +Received: from makai (localhost) by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA07482; Mon, 14 Oct 1996 16:58:34 -0700 +Sender: tester@labyrinth.Eng.Sun.COM +Message-Id: <3262D3AA.7CCD@labyrinth.eng.sun.com> +Date: Mon, 14 Oct 1996 16:58:34 -0700 +From: Demo Account +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0b6Gold (X11; I; SunOS 5.4 sun4m) +Mime-Version: 1.0 +To: tester@homey +Subject: Integrating Native Methods into Java Programs +Content-Type: multipart/mixed; boundary="------------689259C75BFE" +X-Lines: 143 +Content-Length: 5269 +Status: RO +X-Status: +X-Keywords: +X-UID: 135 + +--------------689259C75BFE +Content-Type: text/plain; charset="us-ascii" +X-Sun-Content-Length: 317 + +This is the information on native methods in Java I was telling +you about. It is possible to do what you want, but I would +strongly suggest you rethink your options. Your approach defeats +the entire "Write once, run anywhere" philosophy behind Java. + +http://www.javasoft.com/books/Series/Tutorial/native/index.html + +--------------689259C75BFE +Content-Type: text/html; charset="us-ascii"; name="index.html" +Content-Disposition: inline; filename="index.html" +Content-Base: "http://www.javasoft.com/books/Series/T + utorial/native/index.html" +X-Sun-Content-Length: 4571 + + + + + + +Xxxxxxxxxxx Xxxxxx Xxxxxxx xxxx Xxxx Xxxxxxxx + + + + + + + + +Xxxxx xx Xxxxxxxx + + + + + + + +Xxxxxxxxxxx Xxxxxx Xxxxxxx xxxx Xxxx Xxxxxxxx + + + + +X xxxxxx xxxxxx xx x Xxxx xxxxxx (xxxxxx xx xxxxxxxx +xxxxxx xx x xxxxx xxxxxx) xxxxx xxxxxxxxxxxxxx xx xxxxxxx xx +xxxxxxx xxxxxxxxxxx xxxxxxxx xxxx xx X. Xxx xxxxxxx xx xxxx +xxxxx xxxx xxx xxx xx xxxxxxxxx xxxxxx xxxxxxx xxxx xxxx Xxxx +xxxx. + +Xxxx xxxxxxxxxxx xxxxxxxxxxx xxxxxx xxxxxxx xx xxx +xxxxxx xxxxxxx! + +Xxxx xx X++ xxxxxxxxxxx: Xxxx xxxx xxxxxxxxx +xxx Xxxx xxxxxxxxxxx xxxxxxxxx X xxxxxx xxx xxxxxx xxxxx, xxxxx +xxxxxxx xxx xxxx xxx xxxxxxxxxxx X xxxx xxxx Xxxx xxxxxxxx. +Xxx xxx xxxxxxxxx X++ xxxx xxxx xxxx Xxxx xxxxxxxx xxxxx xxxxx +X xxxxxx xxx xxxxxx xxxxx. Xxx +Xxxxx X++ xx Xxxxxx Xxxxxx Xxxxxxxxxxxxxxx +xxx xxxxxxxxxxx (xxxx xxxx xxxx xxxx xxxxx xxxxx xxx'xx xxxx +xxxx xxxxxxx xx xxxx xxxxx). + + + +XXXXXXX! Xxx xxxxxxxxxxx xxxxxxxxx xxx xxxxxxxxxxxx +xxxxxx xxxxxxx xx Xxxx xx xxxxx xxxxxxxxxxxx. Xxx xxxxx xxxxxxxxxx +xx xxxx xxx xxxx xxx xx xxxx xxxxxxxxx xxxx xxxx xxxx xxxxxx xx xxxxxx +xxxxxxxx xx Xxxx. Xxx xxxxxxxx xxx xxxxxxxxxxx xxxxxxxxx xxxx xxxxxxx +xxx XXX 1.0 xxxxxxx. + + + + + + + +Xxxx Xx Xxxx + +xxxxx xxx xxxx xx xxxx xxxxxxx x xxxxxx xxxxxxx (xxx "Xxxxx Xxxxx!" xx +xxxxxx xxxxxxx) xx xxxxxxxxxx xxx xx xxxxx, xxxxxxx, xxx xxx x Xxxx xxxxxxx +xxxx xxxxxx xxxxxxx. + + + + + +Xxxxxxxxxxxx Xxxxxx Xxxxxxx + +xxxxx xxx xxx xx xxxxxxxxx xxxx xxx Xxxx xxxx xxx xxx xxxxxx xxxxxxxx +xxxx xx x xxxxxx xxxxxx. Xxxx xxxxxx xxxxxxxx xxxxxxxxxxx xxxxx xxxxxxx +xxxxxxxxx xx xxxxxxx xxxx xxxxx xxxx x xxxxxx xxxxxx xxx xxxxxxxxx xxxxxx +xx xxxxxxx xxxx xxxxx xxxx x xxxxxx xxxxxx. Xxxx xxxxxx xxxx xxxxxxxxx +xxxx xxxxxx xxxxxxxxx xxxx xxxx xxxxxx xxxxxxxx xxxx xxx xxx xx xxxxxx +Xxxx xxxxxxx xxx xxxxx xxxxxxx, xxxxxx Xxxx xxxxxxx, xxxxx xxxxxxxxxx, +xxx xxxx. + + + +Xxxxxxxx xxxxxxxxxxxxx: +Xxxx xxxx xxx xxxxxxx xx xxxx xxxxxxx xxxxxxxxx xx xxxxxxx xx +xxxxxxxx xx xxx xxxxxxx xxxxxxxx xxxxxxx. Xxxx xxxxxxx xxxx xxxxxx +xxxxxxx, xxx xxxx xxxx xxxxxxx xxxxxxxxx. Xx xxxxxxx xxx xxx xx +xxxx xx xxx xxxxxx xxxxxxx xxxxxxxxx xx +xxx xxxxxxx xx xxxxxx xxxx xxx xxxxxxx xx. Xxx +Xxxxxxxxxxxxx Xxxxxx Xxxxxxxxxxxx xxx Xxxxxxxxxxxxxxx xxxxxxxxxxx xxxxx xxx xxxxxxxx xxxxxxxxxxxx xxxxxx xx xxxxxxx. + + + + +Xxxx xx XxxXX xxxxxxxxxxx: +Xxx xxx'x xxxxxx xxx Xxxx xxxxxxx xx x 68X Xxxxxxxxx. +Xxxx xxx xxx'x xxxx xxxxxx xxxxxxxxx xxx xxx xxx'x xxx +xxxxxx xxxxxxx. + + + + + + + + + + + + +Xxxxx xx Xxxxxxxx + + + + + + +--------------689259C75BFE-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/17 b/glassfish-runner/mail-platform-tck/mailboxes/test1/17 new file mode 100644 index 0000000000..fcc6f709f6 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/17 @@ -0,0 +1,64 @@ +From demo@labyrinth.Eng.Sun.COM Mon Oct 14 18:04:49 1996 +Return-Path: +Received: from makai.Eng.Sun.COM by homey.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id SAA02171; Mon, 14 Oct 1996 18:04:48 -0700 +Received: from makai (localhost) by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA07582; Mon, 14 Oct 1996 18:03:48 -0700 +Sender: tester@labyrinth.Eng.Sun.COM +Message-Id: <3262E2F4.2F64@labyrinth.eng.sun.com> +Date: Mon, 14 Oct 1996 18:03:48 -0700 +From: Demo Account +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0b6Gold (X11; I; SunOS 5.4 sun4m) +Mime-Version: 1.0 +To: tester@homey +Subject: key settings +Content-Type: multipart/mixed; boundary="------------71D3762944B1" +X-Lines: 43 +Content-Length: 1012 +Status: RO +X-Status: +X-Keywords: +X-UID: 136 + +--------------71D3762944B1 +Content-Type: text/plain; charset="us-ascii" +X-Sun-Content-Length: 43 + +Here are the mappings for your keyboard... + +--------------71D3762944B1 +Content-Type: text/plain; charset="us-ascii"; name=".vts_motifbind" +Content-Disposition: inline; filename=".vts_motifbind" +X-Sun-Content-Length: 663 + +! xxxxxxxxxx xxxxx xxx xxxxxxxx +! @(#).xxxxxxxxx 1.7 Xxxx:12/20/91 +xxxXxxXxxx : X2 +xxxXxxxxXxxx : X5 +xxxXxxxxx : Xxxx X1 +xxxXxxx : Xxxx +xxxXx : Xx +xxxXxxxx : Xxxxx +xxxXxxx : Xxxx +xxxXxxxXx : Xxx1 x +xxxXxxxXxxx : Xxx1 x +xxxXxxxXxxxx : X1 +xxxXxxxxx : X8 +xxxXxxxxx : Xxx1 x +xxxXxxXxxx : Xxxxx X8 +xxxXxxx : Xxxxx X9 +xxxXxxx : X9 +xxxXxxxXxx : Xxxxx X10 +xxxXxxxxx : X6 +xxxXxxxxxxx : X7 +xxxXxxxxxxXxxxx : X4 +xxxXxxxxXxxxx : Xxx1 x +xxxXxxx : X3 +xxxXxx : Xxx1 x +xxxXxxxx : X12 +xxxXxxxx : X10 +xxxXxxx : Xxx1 x + +--------------71D3762944B1-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/18 b/glassfish-runner/mail-platform-tck/mailboxes/test1/18 new file mode 100644 index 0000000000..aea06ea32e --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/18 @@ -0,0 +1,208 @@ +From demo@labyrinth.Eng.Sun.COM Mon Oct 14 18:06:56 1996 +Return-Path: +Received: from makai.Eng.Sun.COM by homey.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id SAA02180; Mon, 14 Oct 1996 18:06:55 -0700 +Received: from makai (localhost) by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA07585; Mon, 14 Oct 1996 18:05:55 -0700 +Sender: tester@labyrinth.Eng.Sun.COM +Message-Id: <3262E372.6E2B@labyrinth.eng.sun.com> +Date: Mon, 14 Oct 1996 18:05:54 -0700 +From: Demo Account +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0b6Gold (X11; I; SunOS 5.4 sun4m) +Mime-Version: 1.0 +To: tester@homey +Subject: include file +Content-Type: multipart/mixed; boundary="------------77E8368B79BC" +X-Lines: 187 +Content-Length: 3407 +Status: RO +X-Status: +X-Keywords: +X-UID: 137 + +--------------77E8368B79BC +Content-Type: text/plain; charset="us-ascii" +X-Sun-Content-Length: 123 + +Check out this include file and modify it with your +source changes. + +Be sure to check it back in before you leave tonight! + +--------------77E8368B79BC +Content-Type: text/plain; charset="us-ascii"; name="generic.h" +Content-Disposition: inline; filename="generic.h" +X-Sun-Content-Length: 2986 + +/* +** @(#)xxxxxxx.x 1.1 91/02/25 +*/ + +/* +** Xxxxxxxxx (x) 1991 xx Xxx Xxxxxxxxxxxx, Xxx. +*/ + +/* +** xxxxxxx.x: +** Xxxx xxxx xxxxxxxx xxx #xxxxxxx xx xx xxxxx xxx xxxxxxxx xx x +** xxxxx "xxxxx" xxxxxxxxxxxxx. +** +** Xxxx xxxx xxxxxx xx xxxxxxxx xx xxx xxx xx xxxxx xxxxxx xxxxx xxxx xxx'x +** xxxxxx xx x xxxxxxxxxx xxxxx xx xxxx, x.x., xxxx xxx'x xxxxxx +** xx xxx "xxxxxx" xxxxx xx xxxx. Xxxx xx xxx xxx xx xxxxx xxx xxxxxxxxxxxxx +** xx xxxx "xxxxxxx" xxxxx xx xxxx xx xxxxxxxx. +** +** +** Xxxxxxxxx xxxxxxxxxxxxxx +** XXX4X +** XXX4 +** XXX386x +** XXX486x +** XX386 +*/ + +#xxxxxx _xxxxxxx_x_ +#xxxxxx _xxxxxxx_x_ + + +/* +** Xxxxxxx xxxxx xxx Xxx +*/ + +#xxxxx XXX4X_XXXX +# xxxxxx XXX4X +# xxxxxx XXXX_XXXX +#xxxxx + +#xxxxx XXX4_XXXX +# xxxxxx XXX4 +# xxxxxx XXXX_XXXX +#xxxxx + +#xxxxx XXX4X_XXX +# xxxxxx XXX4X +#xxxxx + +#xxxxx XXX4_XXX +# xxxxxx XXX4 +#xxxxx + +#xxxxx XXX4X /* XX1 + xx6/xx2/xx3 */ +# xxxxxx XXX +# xxxxxx XXXXXXXXX +# xxxxx XXXXXXXXXXXX +# xxxxxx XXXXXXXXXXXXX +# xxxxxx XXXXXX +#xxxxx /* XXX4X */ + +#xxxxx XXX4 /* 4/110, 4/260, ... */ +# xxxxxx XXX +# xxxxxx XXXXXXXXX +# xxxxx XXXXXXXXXXXX +# xxxxxx XXXXXXXXXXXXX +# xxxxxx XXXXXX +#xxxxx /* XXX4 */ + +#xxxxx XXX4XXX4 +# xxxxxx XXXX +# xxxxxx XXXX +# xxxxx +# xxxxxx XXX +# xxxxxx XXXXXXXXX +# xxxxx XXXXXXXXXXXX +# xxxxxx XXXXXXXXXXXXX +# xxxxx xxxxxx +# xxxxxx XXXXXX +# xxxxx +#xxxxx /* XXX4 */ + +#xx xxxxxxx(XXX386X) || xxxxxxx (XXX486X) /* Xxxxxxxxxx 386 xx 486 */ +# xxxxxx XXX +# xxxxx XXXXXXXXX +# xxxxxx XXXXXXXXXXXX +#xxxxx + +#xxxxx XX386 /* XX&X Xxxxxx Xx4 & XXX/XXX */ +#xxxxx + +/* +** Xxxxxx xxxxxxx +** +** XXXXX Xxxxxx xxxxxxx xx Xxx'x xxxxxx xxxxxx xxxxxx xxxx +** XX_XXXXX Xxxxxx xxxxxxxx xxxx +** XXXXXXXXXXX Xxxxxx xxxxxxx +** XXXXXXXXXXXXX Xxx Xxxxxx Xxxxxxxxxxx xxxxxxxxx +** XXXXXXXX_XX_XXXXXXXX +** XXXXX +** XXXXXXXXXX +** XXXXXXXXXXXXX xx xxxx xxx Xxxx xxxxxx xxxxxxx +** XXX_XXXXXX_XXX xx xxxx xx xxxxxx XXX xxxxx xxxxxxxxxxxxxx +** XXXXX +** X18XX3 Xxxxxx Xxxxxxxxxxxxxxxxxxxx xxxxx 3 xxxxxxxxx +*/ + +#xxxxxx XXXXX +#xxxxxx XXXXX +#xxxxx +#xxxxxx XX_XXXXX +#xxxxxx XX_XXXXX +#xxxxx +#xxxxxx XXXXX +#xxxxxx XXXXX +#xxxxx +#xxxxxx XXXXX +#xxxxxx XXXXX +#xxxxx + +#xxxxx XXX +#xxxxxx XXXXXXXXXXX +# xxxxxx XXXXXXXXXXX +#xxxxx +#xxxxxx XXXX +# xxxxxx XXXX +#xxxxx +#xxxxxx XXXX_XXXX_XXXXXX +# xxxxxx XXXX_XXXX_XXXXXX +#xxxxx +#xxxxxx XXXXX +# xxxxxx XXXXX +#xxxxx +# xxxxx XXXXXXXXXXXXX +#xxxxxx XXXXXXXXXX +# xxxxxx XXXXXXXXXX +#xxxxx +#xxxxxx XXXXXXX +# xxxxxx XXXXXXX +#xxxxx +#xxxxxx XXXXXXXX +# xxxxxx XXXXXXXX +#xxxxx +#xx !xxxxxxx(XXXX) && !xxxxxxx(XXXXXXXX) +# xxxxxx XXXXXXXX +#xxxxx +#xxxxxx XXX_XXXXXX_XXX +# xxxxxx XXX_XXXXXX_XXX +#xxxxx +#xxxxxx XXXXXXXX +# xxxxxx XXXXXXXX /* X11X4 xxxxx xxxxxxxxx */ +#xxxxx +#xxxxxx XXXXXXXX +# xxxxxx XXXXXXXX /* X11X4 xxxxxxxxxxxxxx xxxxxxxxx */ +#xxxxx +# xxxxx X18XX3 /* Xx xxxx xxxxxxxx() xxx xxxxxxx */ + + +/* + * Xxx xxxxxx xxxxxx xxxxxxxxxx xxx xxxxxx xxxxxxxxxxx xxx xxx + * xxxxxx xxxxxxxxxx. + */ +# xxxxxx XXXXXX_XXXXXX "X11/XxXX - Xxx Xxxxxxxxxxxx Xxx." + +#xxxxx /* XXX */ + +#xxxxx /*_xxxxxxx_x_*/ + + +--------------77E8368B79BC-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/19 b/glassfish-runner/mail-platform-tck/mailboxes/test1/19 new file mode 100644 index 0000000000..13578b3346 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/19 @@ -0,0 +1,2277 @@ +From tester@makai Mon Oct 14 18:15:25 1996 +Return-Path: +Received: from makai.Eng.Sun.COM by homey.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id SAA02189; Mon, 14 Oct 1996 18:15:22 -0700 +Received: by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA07597; Mon, 14 Oct 1996 18:14:22 -0700 +Date: Mon, 14 Oct 1996 18:14:22 -0700 +From: tester@makai (Tester Tester) +Message-Id: <9610150114.AA07597@makai.Eng.Sun.COM> +To: tester@homey +Subject: read this before you start +Mime-Version: 1.0 +Content-Type: multipart/mixed; boundary="3551_4569-6da5_7555-384e_60f4" +X-Lines: 2258 +Content-Length: 92901 +Status: RO +X-Status: +X-Keywords: +X-UID: 138 + +--3551_4569-6da5_7555-384e_60f4 +Content-Type: text +Content-MD5: 9WMwUDj8HB1x8H7xUM4cYQ== +X-Sun-Content-Length: 125 + +Be sure you go through the attached file before you start +rewiring your machine. Especially the part about the power +supply. +--3551_4569-6da5_7555-384e_60f4 +Content-Type: application/octet-stream +Content-Description: Hardware.info +Content-MD5: Z6E7cRoaT5z2LPH9GbxQDA== +X-Sun-Content-Length: 92451 + +Xxxxxxx: xxxx.xxxxxxx.x.xxxxxxxxxx Xxxxxxxxxx Xxxxx Xxxxxxxxx (XXX) +Xxxxxxxxxx: xxxx.xxxxxxx.x.xxxxxxxxxx,xxxx.xxxxxxx.x,xxxx.xxxxxxx,xxxx.xxxxxxx +Xxxxxxxx-Xx: xxxx.xxxxxxx.x.xxxxxxxxxx +Xxxxx-Xx: xxxx@xxx.xxxx-xxxxx.xxx +Xxxxxxx: Xxxxxxx xxxxx xxx X11 Xxxxxx Xxxxxx xxxxxxx xxx Xx Xxxxxxxxxx xxxxxxx +Xxxxxxxx: xxxx-xxxxxxx-xxxxxxx@XXX.Xxx + +Xxxxxxx-xxxx: Xx-XXX +Xxxxxxx: $Xx: XXX-Xx,x 1.38 1994/04/08 17:01:28 xxxx Xxx $ + + Xxx X Xxxxxxx Xxxxxxxxxx X.X.X + X xxxxxxx xxxxxxx + + +Xxxx xxxxxxx xxxxxxxx xxx xxxxxxx xx xxxx Xxxxxxxxxx Xxxxx Xxxxxxxxx +(XXX) xxxx xxxx.xxxxxxx.x xxxxx xxx X Xxxxxxx Xxxxxxxxxx. Xx xxxxxx +xxxxxxxxx (xxxxxxxxxx xxxx xx xxxxxx) xxxx xxxxx xx: + xxxx@xxx.xxxx-xxxxx.xxx + +Xxxx XXX xx xxxxxxxxx xx xxx xxxxxxx xxxx xxxx.xxx.xxx xx xxx xxxxxxxxx: + + xxx/xxxxxx/xxxx.xxxxxxx + +Xxx xxxx xxxxx xxxxx x XXX xx xxxxxxxx xxxxxxx xx xxx Xxxxxxx-xxxx +xxxx xx xxx xxx xx xxx xxxxxxx. Xxxx XXX xx xxxxxxxx xx Xx-XXX. + +Xxx xxxx xxxxxxxxx xxx xxxxxx xxxxxx. + + Xxxxxxxx + +0. Xx Xxxxxxxx +1. Xxxxxxxx Xxxxxxxx +2. Xxxxxxx XXX'x +3. Xxx xxxx xx xxx xxxx xxxx xxxx X xxx xxxxxxx/xxxxxx/xxxxxxxx? +4. Xxx xx X xxx x xxxxxxxxx xxxxxx xxxx xxx xxxxxxx? +5. Xxxxx xxxxxx xxxxxx xx xxxxxxxxxxx xxx? +6. Xxx xx xxxx Xxxxx xxxxxxx xxxx x Xxxxxx? +7. Xxxxx xxxxxx, xxxxx xxx xxxxxxxx xx Xxxxxx xxxxxxx? +8. X'xx xxxx xxx xxx xxxxx xxx X xxxxx xxx x XxxXxxxx xxxxx. Xxx? +9. Xxx xxxxx'x xx xxxxxx xxx xxxxxxxxx xxxx X xxxx XxXxxxxxxXxxxxx()? +10. Xxx xx X xxxx xxx xxxxx xxxxxxx xxx XxxxxxxXxxxxxxxx? +11. Xxx xx X xxxxxx x Xxxxx xxxxxx? +12. Xxx xxx'x XxXxxXxxXxxxx() xxxxxx xxxxx? +13. Xxxx xxxx xxxxx xxx xxxxxxxxx xxx xxxxx xx Xx? +14. Xxxx Xxxxxxx xxx xxxxxxxxx? +15. Xxxx xxxxxxxxxxxx xx xxx Xxxxxxxxxx xxx xxxxx? +16. Xxx xx X xxxx x xxxxx xxxxx xx XxXxxXxxxxx? +17. Xxx xx X xxxxx x xxxxxxxx xxxxxxxxx? +18. Xxx xx X xxxx xxxxxxxx xxxxxxxx? +19. Xxxx xxxxxxx xxxx X3 xx X4 xx X5? +20. Xxxxx xxx xxx xxxxxxxxx xxxxxx xxxx? +21. Xxxx xxxxx xxx xxxxxxxxx xxxxxxxx xx? +22. Xxx xx X xxxx xx x xxxxxx xx xxxxxxx? +23. Xxx xx X xxxxxxxx x xxxxxx xx Xx, x.x. XxXxxxxxxxXxxxxx()? +24. Xxx xxx XxXxxxxx, XxXxxx, xxx? +25. Xxx xx xxxxx xx Xx xxxxxxxxxxx? +26. Xxx xxx'x XxXxxXxxxx(), XxXxxXxxxxxx() xxx XxXxxXxxxXxxx() xxxx? +27. Xxxx xx xxx xxx xxx X xxxxxxxxx xxxx xxx xxxx? +28. Xxx xxx X xxx x X++ xxxxxx xxxxxxxx xx x xxxxxx xxxxxxxx? +29. Xxx xxx X xxxxxxxx xxx xxxxxxxx xx x xxxxxxx xxxxxx? +30. Xxx X xxx XxXxxxXxxxxx(), ... xx xxxx xxxxxxx X xxxxxxx? +31. Xxx xx XxXxxXxxxxx() xx XxXx, XxXx xx xx xxx xxxxx xxxxx xxxxx? +32. Xxx xx xxxx xxxxxx xxx XxX xx xxxxxxxx xxxxx? +33. Xxx xx X xxxx xx xxxx xxxxxx xxxx xxxxxxxxx xx xxxxxxxxxxx? +34. Xxx xxx'x X xxxxxxxx xxxxxxxxxxxx? Xxxx xxx xxxxx xxxx xxxxx. +35. Xxx xx X xxx "Xxxxxxx: Xxxxxx xxxxx xxxxxxx xxxxxxxx"? +36. Xxxxx xxx X xxx x xxxx xxxx-xxxxxxxx xxxxxx? +37. Xxxxx xxx X xxxx x xxxxxxxxx xxxxxx xx xxxxxx xxxx? +38. Xxxx xxxxxx xx xxxxxxxxxxx xx xxx xx x xxxxxxx xxxxxx? +39. Xxxx xx xxxx xxxx xxxxxxx xxxx _xxx_xxXxxxxXxxxxxXxxxx? +40. Xxx xxxx XxXxxXxxxxx xxx xxxx xxx xx (xxx)? +41. Xx xxxx x xxxxxx xxxx xx xxx X11X4 XxXxxxxxxXxxxxx()?! +42. Xx xxxx x xxxxxx xxxx xx xxx X11X4 xxxxxxxx xx xxxx xxxxx?! +43. Xxx xx X xxxxx xxx xxxx xxxxxxxxxxxxx xxxxx Xx? +44. Xxx xx X xxxxxxxx x xxxxxx xxxxx/xxxxxxx xxxxx xxx x xxxxxx? +45. Xxx xx xxx Xxxxxxxx xxxxxxxxx (xxx X xxxxxxx xxxxxx)? +46. Xxxx xx xxx xxxxxxxxx xxx xx xxxxxxx xxx xxxxxxxxxxx xxxxxxxxx? + +---------------------------------------------------------------------- +Xxxxxxx: 0. Xx Xxxxxxxx +---------------------------------------------------------------------- + +x Xxx Xx Xxxxxxxxxx xxxxxxxxx xx xxxxxx xxxxxxxx xxxxxxxxx xx X xxxx + xx xxxxx xxxxxx xxxxxxxxx xxxxxxxxxx xx xx xxxxxxx. Xxxxxxxx xxxx + xxxx xxx xxxxxxx xxxx xxxxxxx xxx xxxx xxxxxxxxxxxxx: Xxxxxx, + XxxxXxx, Xxxx, Xxxxxxxxx, Xxxxxxxxxx, Xxxxx, XxxxxxxxXxxxx, XXXxxxx, + xxx. Xxx xxxxx "Xx" xxx "Xxxxxxxxxx" xxx xxxx xxxxxxxxxxxxxxx, + xxxxxxx, xxxx xxx xxxx xxxx xxxxxxxxx xx xxxx x xxxxxxxx xxxxxxx xx xxx X + xxxxxx xxxxxx. Xx xxxxxxxxxx, xx xxxx xxx xxxxxxx xxx Xxxxxx, + Xxxxx, XXXX xx xxx xxxxx xxxxxx xxx. Xxxxxxx xxxxxxx xxxxxxx xxx + Xxxxxxxxxx xxx xxx xxxxxxxxxx xxxxxx. + +x X xxxxxx xxxxxx xx x xxxx xxxxxxxxx xxxxxxxxxxx xxxxxxx xxx Xx. Xxx + xxxxxxx xxx, xx xxx xxxxxx xxxx xx x xxxxxxxx xx xxx Xxxx xxxxx. Xx + xx xxxx xxxxxxx xx xxxxx xx xxxxxxxx xxxx xx x xxxxxxxx xx xxx + Xxxxxx xxxxx xxxxxxxx xxxxx xxx xxxx xxxxxxxxxx xxxxxx xxxxxxxxxx + xxxxxxx xx xxxxxxx. + +x Xxxx xx xxx X xxxxxxxxx xx xxx X11 xxxxxxxx. Xx xx xxx xxxxx xxxxx + xxx Xx Xxxxxxxxxx. Xxxxxxxxx x xxxxxx xxxx xxxxxxxxxx xxx Xxxx + xxxxxxxxx xxxxxxx Xx xxxxxxxx xxxx xxxx xxxxxxxx xxxxxxxx xx + xxxxxxxxxxxxx xx Xxxx xxxxx xxxx xxxxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 1. Xxxxxxxx Xxxxxxxx +---------------------------------------------------------------------- + +Xxx xxxxxxxxx xxx xxx xxxxxx xxxxxxxx xx Xx xxxxx xxxxxxxx: + _____________________________________________________________ + Xxxxxxxx Xxxxxxx Xxxxxxxx Xxxx Xxxxxxxx + _____________________________________________________________ + X11X4 xxxxx 18 (xxxx) + X11X5 xxxxx 26 11/3/93 ?? + Xxxxxx Xxxxxxx (xxx X11X5) + Xxxxx 1.2.3 9/16/93 ?? + XXXX ?? ?? ?? + Xxxx 2.5 6/15/92 ?? + Xx X11X4 (xxxx) + Xxx X11X5 (xxxx) + xxx 3.4 1/11/92 4/93 + _____________________________________________________________ + +---------------------------------------------------------------------- +Xxxxxxx: 2. Xxxxxxx XXX'x +---------------------------------------------------------------------- +Xxxxx X. Xxxxx (xxxxx!xxxxx!xxx) xxxxxxxxx xxx XXX xx X. Xx +xx xxxxxx xxxxxxx xx xxxx.xxxxxxx.x xxx xxxxxxx xx xxx.x.xxx xx xxxxxxx/XXX. + +Xxxx X. X. Xxxx (xxx@xx.xx.xxx) xxxxx xx XXX xxxx xx Xxxx Xxxx xx +xxxx.xxxxxxx.x. + +Xxxxx Xxxxx (xxxxx@xxxx.xxxx.xxxx.xxx) xxxxx xx XXX xxxx xx Xxxxx xx +xxxx.xxxxxxx.x.xxxxx. xx xx xxxx xx xxx.x.xxx xxxxx xxxxxxx/Xxxxx-XXX + +Xxxxx Xxxx (xxxx@xxx.xxxx-xxxxx.xxx) xxxxx xx XXX xxxx xxx +xxxx.xxxxxxx.x.xxxxxxxxxx; xx xx xx xxx.x.xxx xx xxxxxxx/XXX-Xx. + +---------------------------------------------------------------------- +Xxxxxxx: 3. Xxx xxxx xx xxx xxxx xxxx xxxx X xxx xxxxxxx/xxxxxx/xxxxxxxx? +---------------------------------------------------------------------- + +Xx xxxxx, Xxxx, Xx xxx xxxx xxxxxx xxxx xxxx xx xxxxxx xxxxxxxxx xxx +xxxxxxxx xxxxxxxx. Xxx xxxxxxxxx xxxxxxx xx xxxxxx xx xxxxx xxx xx +xxx xxxxx xxxxxxxxx xx xx xxxxxxxxxxxx xxxxx -- xxxx xx xxx xxx +xxxxxxxxxxx xxxxx xxx xxx xxx, xxxxxxxx xxxxxxxx, xx xxx xxxxxx xx x +xxxx xxxxxxxxx, xxx. Xxxx xxxx xxx XXXX X xxxxxxxx xxxxxx xxx xxxx +xxxxxxxx xx x xxxxxx xxxxxxx xx xxxxxxxxx xx xxx xxxxxx xxxxxxx xxxxx +xxx xxxxxxxx xxxxx xxxx xxxxxx() xxxxxx, xx xxxx xx xxx x xxxxxxx +xxxxxxxx xx Xxxx xxx Xx; xxx XXXXX xxxxxxxxxxxxx xxxxxxxx xxxxx +xxxxxxxxx xxxxx xxx xx xxxxxx xxxxxx xxx xx xxx xxx xx xxxxxxx xxxx +xxxxx xxxxxxxxx xxx xxxxxx xx Xxxx xx Xx xxxxxxxxx. + +Xxx xxxx xxxx xxx xx xxxx xxxx xxxxxxx xx xx xxx x xxxx xx xxx +xxxxxxxxx xxxxxxx. Xxxx xxxx xxxxx xxxxx xx xx xxxxxxx xxxxxx xx x +xxxx xxxxxxxxx xx x xxxxxxx xxxxxxxx. Xx xx xxxxxxxxx xx xxx xxxxxx +xx xxxxx xx xxx xxxxxxxxx xxxxxxx. Xx xxxxxxx xxxx, xx xx xxxxxxxxx +xx xxx x xxxx xxxxxxxxx xxxx xxxxx xxxxxxxx. Xxxx xxxxxxxxxxx +xxxxxxxx xxx xxxx xxxxxxxxxx xxxxxxxxxx xxxxx xxx xx xxxx xxxx xxxxx +xx xxxxxx. Xxxxxxx xxxxxx xx xx xxxx x xxxx, xxxx xxx xxxxx xxxx +xxxxx xxx xxxx xxx xxxxx XxXxxXxxXxxxx() xxx xxxx xxx xxxxxx xxxxxxx +xxx xxxxx x xxxx xx xxx xxxxx xxx xx xxx xxxx xxx xxxx xxxxxx. +Xxxxxxx, xxxx xxxxx xxxxxxxx xxxx xxxxxxx xx xxx xxxx xxxxx xx. + +Xxx xxx'x xxx Xxxxxxxxxx xxxx xxxx xxxx xxxxxxx? Xxxxxxxxx xxxxxxx xx +xx xxxxxxxx xx xx x xxxxxxxx xxxxx xx xxx xxxxxxxx xxx xxxxxxxxx +xxxxxx. Xx xxxx x xxxx xxxxxx xxxxxx -- X xxx'x xxxxx xx. + + Xxxx: xxx xxxxxxx xx Xxx X Xxxxxxx 1:4 xxx xxx xxxxxxx xx X'Xxxxxx +Xxxxxx 6 xxx xx xxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 4. Xxx xx X xxx x xxxxxxxxx xxxxxx xxxx xxx xxxxxxx? +---------------------------------------------------------------------- + +Xxxx xxxxxxxx x xxxx xxxxxxxxxxx xxxxxx xxxx xx xxxxxx. X xxxxxx xxx +xxxxx xxxxxx xxxx xxx xxxxxx xxxxxxxx -- xxx xxxxxx, xxxxxxxx xxx +xxxxxx xxxxxx. Xxx xxxxxxx xxxx xxxxx xxx Xxxxxxxx xxx XxxxxxXxxxxx +xxxxxxxx; xxxx xxxxx xxxxxxx xxxx Xxxxxx xxxxxxxxx (xxxxxxx xxxxxxxxx +xxxxx xxxx xxx xxxxxx xxxx x Xxxxxx). Xxx xxxxxxx xxxxx xx xxxxx +xxxxxxxxx xx XxxxXxxxXxxxxx xxxxx xxxx xxxxxxx xxxx xx xxxx. Xx xxx +xxxxx xxxxxx XxxxXxxxXxxxxx xxxx xxxxxxxxxx xx XxxxxxxXxxxxxXxXxxxxx +xxx XxxxxxxXxxxxxxxXxXxxxxx. Xxxx xxx xxx xx xxx xxxxx xxxxxxxxx xx +xxx xxxxxxxx xxx, x XxxXxxxx xxxxx xxxxxx xxxx xxx xxxxxx xx +xxxxxxx. Xxxx xxx xxx xxxxxxxx xxx xxxxxxx xxxx xx xxx xxxxxx xxxxxxx +xx xxx xxxxxx xxxxx xxxx. + +Xxx xx xxx xxxx xx xxxx? Xxxxx xxx xxx xxxxx xx xxx xxxxxx. Xxx +xxxxx xx xx xxx xxxx xx xxxxxxxxxxx xx xxxxx xxxx x xxxxxxxxxx xxxxxx +xxx xxx xxxxxx xx xx xxx xxxx x xxxxxxxxxx xxxxx xxxxxx xx xxxxxxxxxxx +xx xxxxx xxxx x xxxxxxxxx xxxxxx. Xxx xxxxxx xx xxxxxxxx xxxxxx +xxxxxxx xxx xxxxx xxxxxxxxxxx xxx xxxx xx xxxxxxxxx. Xxx xxxxx xx x +xxxxxx xxxxxx xxxxxxx xxx'xx xxxx xx xxxxxxxxxx xxxx xx xxx xxxxxxx +xxxxxxxx xx xxxxx xx xxxxxxxxx xxx xxxxxx xxxxxxxxxxx. + +/* + * Xxxx xxxxxx xxxx xx xxxxx xx xx xxxxxxxxxxx xxxxx xxxxxxxxx xxxxx + * xxxx xxx xxxxxxx xxxxxx. + * + * Xx xxxxxxx: + * xx -x xxxxxx.x -x xxxxxx -xXxx -xXxx -xXx -xXxxx -xX11 -xx + * + * Xx xxx: + * ./xxxxxx -xxxxxxxx 300x300 -xxxxx 24 -xxxxxx XxxxxxXxxxx -xx xxxx -xx xxxxxx + * + * xxx xxxx xx xxxx xxx xxxxx xx xxx xxx xxxxxxxxxx xxxxxxx xxxxxxxx + * xx xxxxxxx. + */ + +#xxxxxxx +#xxxxxxx +#xxxxxxx + +xxxxxxx xxxxxx +{ + Xxxxxx *xxxxxx; + xxx xxxxx; +} XxxxxxxXxx; + +XxxxxxxXxx Xxxxxxx; + +XxXxxxxxxx xxxxxxxxx[] = +{ + {"xxxxxx", "Xxxxxx", XxXXxxxxx, xxxxxx (Xxxxxx *), + XxXxxxxxXx (XxxxxxxXxx, xxxxxx), XxXXxxxxxxxx, XXXX}, + {"xxxxx", "Xxxxx", XxXXxx, xxxxxx (xxx), + XxXxxxxxXx (XxxxxxxXxx, xxxxx), XxXXxxxxxxxx, XXXX}, +}; + +XxxXxxxxxXxxxXxx Xxxx[] = +{ + {"-xxxxxx", "*xxxxxx", XxxxxxxxxXxxXxx, XXXX}, + {"-xxxxx", "*xxxxx", XxxxxxxxxXxxXxx, XXXX} +}; + + + +xxx +xxxx (xxxx, xxxx) + xxx xxxx; + xxxx **xxxx; +{ + XxXxxXxxxxxx xxx; /* xxx xxxxxxxxxxx xxxxxxx */ + Xxxxxx xxx; /* xxxxxxxx xxxxxx */ + Xxxxxxx *xxx; /* xxxxxxx */ + xxxx **xxxxx; /* xxxxx xxxxxxxx xxxxxx */ + xxx xxxxx; /* xxxxx xxxxxxxx xxxxx */ + Xxxxxxxx xxxxxxxx; /* xxxxxxx xxxxxxxx */ + XXxxxxxXxxx xxxxx; /* xxxxxxxx xxx xxxx xxxxxx */ + XXxxxxxXxxx *xxxxx_xxxx; /* xxxxxxxx xxxx xx xxxxxxx */ + xxx xxxxx; /* xxxxxx xx xxxxxx (xxxx 1?) */ + Xxx xxxx[10]; + Xxxxxxxx xxx; + xxxx *xxxx = "xxxx"; + xxxx *xxxxx = "Xxxx"; + + /* + * xxxx xxx xxxxxxx xxxx xxxxxxxxx + */ + + xxxxx = xxxx; + xxxxx = (xxxx **) XxXxxxxx (xxxx * xxxxxx (xxxx *)); + xxxxx ((xxxx *) xxxx, (xxxx *) xxxxx, xxxx * xxxxxx (xxxx *)); + + /* + * Xxx xxxxxxxxx xxxxxxx x _xxxxx_ xxxxxxxx xxxxxx xx xx xxx + * xxxxxxxx xxx xxxxxxxxxxx xxxxxx xxxxxxxx. + */ + xxx = 0; + xxx = XxXxxXxxxxxxxxx (&xxx, xxxxx, Xxxx, XxXxxxxx (Xxxx), &xxxx, xxxx, + (Xxxxxx *) XXXX, xxxx, xxx); + xxx = XxXxxxxxx (xxx); + xxx = 0; + XxXxxXxxxxxxxxxxXxxxxxxxx (xxx, &Xxxxxxx, xxxxxxxxx, + XxXxxxxx (xxxxxxxxx), + xxxx, xxx); + xxx = 0; + xx (Xxxxxxx.xxxxxx && Xxxxxxx.xxxxxx != XxxxxxxXxxxxxXxXxxxxx (XxXxxxxx (xxx))) + { + XxXxxXxx (xxxx[xxx], XxXxxxxxx, Xxxxxxx.xxxxxx); ++xxx; + /* + * Xxx xx xxxxxx xx xxxxxxxxxxx xxxxxxxx. Xx xxxxx + * xxx x xxxxxxx xxxxxxxx xxxxx xx xxx xxxxx xx xxx + * xxxxxx; xx xxxxx xxxxxxx xxxx xxxxxxxx xx xxx + * xxxxxxxxxx xx xxxx xxx xxxxx xxxxxxxx; xx xxxxx + * xx xxx xxxxx xx xxxxxx... + */ + xxxxxxxx = XXxxxxxXxxxxxxx (xxx, + XxxxXxxxxxXxXxxxxx (XxXxxxxx (xxx)), + Xxxxxxx.xxxxxx, + XxxxxXxxx); + XxXxxXxx (xxxx[xxx], XxXxxxxxxxx, xxxxxxxx); ++xxx; + + /* + * Xxx xxxx xxxx xxxxxxxxxxx xxxxx xxx xxxxxx. + */ + xxxxx.xxxxxxxx = XXxxxxxXXXxxxXxxxxx (Xxxxxxx.xxxxxx); + xxxxx_xxxx = XXxxXxxxxxXxxx (xxx, XxxxxxXXXxxx, &xxxxx, &xxxxx); + xx (xxxxx_xxxx && xxxxx > 0) + { + XxXxxXxx (xxxx[xxx], XxXxxxxx, xxxxx_xxxx[0].xxxxx); + ++xxx; + XXxxx ((XXxxxxxx) xxxxx_xxxx); + } + } + XxXxxxxxxXxxxxx (xxx); + + + /* + * Xxx xxxxxx xxx xxxx xxxxxxxx xxxxxx. + */ + XxXxxXxx (xxxx[xxx], XxXxxxx, xxxxx); ++xxx; + XxXxxXxx (xxxx[xxx], XxXxxxx, xxxxx); ++xxx; + xxx = XxXxxXxxxxxXxxxx ((xxxx *) XXXX, xxxxx, + xxxxxxxxxxxXxxxxXxxxxxXxxxx, + xxx, xxxx, xxx); + + /* + * Xxxxxxx xxx xxxxxxxxxxx xxx xxxx xxxxxxxx xxx xxxxxx. + */ + XxXxxxxxxXxxxxx (xxx); + XxXxxXxxxXxxx (xxx); + xxxxxx (0); +} + +---------------------------------------------------------------------- +Xxxxxxx: 5. Xxxxx xxxxxx xxxxxx xx xxxxxxxxxxx xxx? +---------------------------------------------------------------------- + +Xxxx xx x xxxxx xxxx xxx xx xxxxxx xxxxx xxx xxx xxxxxxx xx xxxxx xx +xx xxx xxx xx xxxxxxxxxxx xx xxxx xxx xxxxxxxxxxx xxxxxx -- xx xxx xx +xx xxxxxxxxx xx xxx xxxx. Xx xxx xxxxxxxx xxxx xxxx xxxx xxxx +xxxxxxxxxxx xxxxxxxx xxxxx xxxx xxx xxxxxxxx xx xxxxxx xxxxx xxx +xxxxxxx xxxxxx xx xx xx xxxxxxxx xxxxxxxx xxx xxxxxxx xxxx xxxxxxxxxx +xxxxxx xxxx xx 24xxx XxxxXxxxx xxxx xx XxxxxxxXxxxx xxxxxxxxx (xx xxxx +xxxx). + +Xxx? Xx xxxxxxxxxxx xxxx xx xxxxxxxxx. Xxxxxxxxx xx xxx xxx x xxxxxx +xxxxxxxxx xxxxxxxxx X xxx xxx xxxxxx xxxx xxxx xxxxxxxxxxx xx xxx xx +XxxxXxxxx xxxx xx xx xx xxxxx xx xxxx xx xx xxxxx xxxxxxxxxxxx. X xxx +xx xxxx xxxxx xx xx xxxxxxx xx xxx xx XxxxXxxxx xxxxxxx xx XxxxxxXxxxx +xx xxxx xxxxxxxxxx. + +Xx xx xxxxxxx, xx x xxx xxx xxxxx Xxx xxxxxx xxxxx xxx xxxx xxxxxxxxx +xxxxxxxx xxxxxxx: xxxxxxxxxx, 256 xxxxx xxxxxxxx, xxxxxx xxxx, xxxxxx +xxxxx, xxx x 3/3/2 XxxxXxxxx. Xxx XXX Xxxx'x xxxxx xxx xxx xxxxx +xxxx 12 xxx XxxxXxxxx, 24 xxx XxxxXxxxx, xx Xxxxxxx Xxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 6. Xxx xx xxxx Xxxxx xxxxxxx xxxx x Xxxxxx? +---------------------------------------------------------------------- + +Xxxx xx xxxxxxxx xx xxxxxxxxxx. Xx xxxxx xx xxxxxxxx xxx xx xxxxxxxxx +xxxxxx xx xxxx xxxx xxx xxxxxx xx xxxx xxx xx xxxxx xx xxxxxxx xxx xxx +xxxxx xxxxxx xxxx xx xxx xxxxxxxx xxx xxxxxxxxx xxx xxxxxx xx xxxx +xxxxx. + +X xxxxxx xxx xxxx xxx xxx xxxxxx xxxxxxxx. Xx xx xxxx, xx xxxx xxxx +xxx xxx xxxxxxx xxxxxx xx xxx xxx xxxxxx xxxx xx xxxxx +XXxxxxxXxxxxx(). Xxx xxxxxx xxxx xxxx xxxx x xxxxxxxx xxxx xxx xx +xxxxxxxx xxxx XxXxxXxxxxx() xx xxxxx xxxxxxx xxx xxxx xx. X +xxxxxxxxxx xxxxx xx xxxxxxxx XxXxxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 7. Xxxxx xxxxxx, xxxxx xxx xxxxxxxx xx Xxxxxx xxxxxxx? +---------------------------------------------------------------------- + +Xxx xxxxxxx xxxxx xxx xxxxx xxxxxxxxx xxx xxx xx XxxxXxxxXxxxxx. Xxxx +xx xxxxxxxxxxx xx xxx XxxxxxxXxxxxxxxXxXxxxxx(), XxxxxxxXxxxxXxXxxxxx() +xxx xxx xxxxxxx xxxxxx xx xxx xxxxxx xx xxx xxxxxx xxx xx xxxxxx -- x.x. +xx xx xx xxxxxxxxxxxXxxxxXxxxxxXxxxx xxx xxx xxxx xx xxxx xxxxxx xxxx. + +Xx xxx xxxxxx xx xxx xxxxxx xx xxx xxxx, xxxx xxx xxxxx xxxxxx +xxxxxxxx xxx xxxxx xxxx xxx xxxxxx xxx xxxx XxxxXxxxXxxxxx xx xxx +xxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 8. X'xx xxxx xxx xxx xxxxx xxx X xxxxx xxx x XxxXxxxx xxxxx. Xxx? +---------------------------------------------------------------------- + +Xxxx xxxxxxxx xxxxxxxxxx xxxxxxxxxx xxxxx xxxxxxxxxx. Xxxx xxx +xxxxxxxxxx xxxx xx X11X3 xxx xxxxxxx xxxxxxxx xx Xxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 9. Xxx xxxxx'x xx xxxxxx xxx xxxxxxxxx xxxx X xxxx XxXxxxxxxXxxxxx()? +---------------------------------------------------------------------- + +Xxx xxxxxxx 2.8 xx xxx Xx xxxxxxxxxxxxx. + +Xx xxxxxxxxxx xxxx xxx xxxxxxxxx, xxxx xxx xxxxxxxxxxx. Xxx +Xxxxxxxxxx xxxxxxx x xxxxxx xx x xxx-xxxxx xxxxxxx. Xxxxx xx xxx xxx +xx xxx xxxxxxxx xxxx x xxxx xxx xxxx xxxxxxxx xx xx xxxxx xxxxxxxxx. +Xx xx xxxx xxx xx x xxxx xx xxxxxxx xx xx xxxxxxxxx. Xxxx xxx xxx +xxxxxxx X xxxxxx xx xxxxxxx xxxxxxxxxx xx xxxx xxxxxx xxx xx xxxxxxx +xx xxxxxx xxx xxxxxx xx xxxxxxxx xxxxx. Xxx xxxxxx xxxxx xx xxxx +xxxxxxxxx xxxxx xxx xxxxxxxxx, xxxxx xxxxxxxx, xxx xxxxxxx xxxx +xxxxxxxxx, xxxxxx xxxxxxxx xxx xxx xxxx X xxxxx. Xx xxxx xxxxx xxx +xxxx xx xxxxxxxxx xxx xxxx xxxxxx'x xxxxxx xx xxxxxxxx xxxx()'x, xxxxx +xxxxx xxxxxx. + +Xx xxxx xxxxxxx xxxxxxx/xxxxxx, xxx xxxxxxx xxx xx xxxxxxxxx xx xxx +Xxxxxxxxxx xxxxxxxxx xxxx xxxx xxxx xx xxxxxxx xxxxxxxxxx xx xxx +xxxxxxx xx xxx xxxx. Xx xx, xxxx xxx xxxxx 2 xxxxxxxxxxx xxxxxx +xxxxxxxxxxx. Xxxx, xx xxxxxx xxxxx xxxxx xxx xxxx, xxxxxxx xxxxxx xx +xxx xxxxxxx xxxx xxxxxx xxxxxxxx xxx xxxxx xxxxx xxxx xxx xxx +xxxxxxxxx xxxxx xxxxxxxxx xx xxx xxxxx xxxxx xxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 10. Xxx xx X xxxx xxx xxxxx xxxxxxx xxx XxxxxxxXxxxxxxxx? +---------------------------------------------------------------------- + +Xxx xxxxxxx xx xx x xxxxxx xxx xxxxxxxx xxxxxxxxxx xxxxxxxx xx xxxxxxx +xx xxxxxxxxxxx xx xxxx, xxxx xx xxxxxxx xxxx() xxxxxxxx, xxxx x xxxxxx +xxx xxx xxxx x xxxxxx xx xxxxx xx xxx xxxxxxxx xxxxx -- xxxx xx xxxx +xxxxxxx, xxxxxxxxx xxxxx, xxxxxxxxx X xxxxxxxxx, xxx. (xxxx xxxx xxx +xxxxxxxxxx xxxxxxx xxxxxxx xxxx x xxxxxx xxxxxxxx xxxxxx): + + + Xxxxxx + XxxxxxxxXxx (xx) + Xxxxxx xx; /* xxxxxx xx xxxx xxxxxxxx */ + { + Xxxxxx xxx; + + xxx (xxx = xx; XxXxxxxx (xxx); xxx = XxXxxxxx (xxx)) + /* xxxxx */; + xxxxxx (xxx); + } + + xxxx + XxxxXxxxxxxx (xx, xxxxxxx, xxxx_xxxx) + Xxxxxx xx; /* xxxxxx */ + XxXxxxxxx xxxxxxx; /* xxxx xxx xxx xxxxxxxxx */ + XxXxxxxxx xxxx_xxxx; /* xxxxxx xxxxxxxx xxxx */ + { + Xxxxxx xxxxxxxx; + + xxxxxxxx = XxxxxxxxXxx (xx); + XxXxxxxXxxxxx (xxxxxxxx); /* xxxx xx xxxxxxxxx xxxxxxx */ + XxXxxxxxxXxxxxx (xxxxxxxx); + xxxx (0); + } + +Xxx xxx xxx xxxx xxx xxxxx xxxx xxxx'x xxxxxxxxxxx xxxxx xxxxxxxxxx +xxx xxxxxxxx xxxxxx. Xxx xxxxxxx xx xxx xxxxx 2 xxxxxxxxxxx xxx xxxxx +xxxxx. + +Xxxx xxxxx xxx xxxx xxxxxxx xxx xxxx xxxxxxxxxxxx xxx xxxx xxx xxxx +xxx xxxxx xxxxxxx xxxx xxxx xxx xxxxxxxx xxxxx. Xxx xxxxx xxxxx xxxx +xxxxx xx xxxxx xxx xx xxxx xxxxxx xxxx xxx xxxxxxxx xxxx xxxx xx xxx +xxxxxx xx xxxxxx xxxxxxxx xxxxxxxx xx xxxx xx xx xxx xxx xx xxxxxxxx +xx xxx xxxxxxxxxxxxxx xxxxxxx xxx xxxx xxxxxx. Xxxxx xxxxx xxxx xxx +xxxxxx xxx xxxxxx xxx xxxxxxx xxxxxxx xxxx xxxx xxxxxxxx xxxxx xx +xxxxxxx xx xx xxx Xxxxxxx xxxxxxxxx. + +Xxx xxxxxxxxxxx xx xx xxxxxx XxxxXxxxxxxx() xx xxx x xxxxxx xxxx xxx +xxxx xxxx xxx xxxx xxxx xx x xxxxxxx xxxxx xxxx. +Xx xxx xxx xxxxxxxxx xxxx: + + #xxxxxxx + + xxxxxx Xxxxxx XxxxxxxxXxx ( + #xx XxxxXxxxxxxxXxxxxxxxxx + Xxxxxx xx + #xxxxx + ); + + xxxxxx Xxxxxxx XxxxXxxxXxxx ( + #xx XxxxXxxxxxxxXxxxxxxxxx + XxXxxxxxx xxxxxxx + #xxxxx + ); + + xxxxxx xxxx XxxxXxxxxxxx ( + #xx XxxxXxxxxxxxXxxxxxxxxx + Xxxxxx xx, + XxXxxxxxx xxxxxxx, + XxXxxxxxx xxxx_xxxx + #xxxxx + ); + + Xxxxxx + XxxxxxxxXxx (xx) + Xxxxxx xx; /* xxxxxx xx xxxx xxxxxxxx */ + { + Xxxxxx xxx; + + xxx (xxx = xx; XxXxxxxx (xxx); xxx = XxXxxxxx (xxx)) + /* xxxxx */; + xxxxxx (xxx); + } + + + xxxx + XxxxXxxxxxxx (xx, xxxxxxx, xxxx_xxxx) + Xxxxxx xx; /* xxxxxx */ + XxXxxxxxx xxxxxxx; /* xxxx xxx xxx xxxxxxxxx */ + XxXxxxxxx xxxx_xxxx; /* xxxxxx xxxxxxxx xxxx */ + { + Xxxxxx xxxxxxxx; + + xxxxxxxx = XxxxxxxxXxx (xx); + XxXxxxxXxxxxx (xxxxxxxx); /* xxxx xx xxxxxxxxx xxxxxxx */ + XxXxxxxxxXxxxxx (xxxxxxxx); + XxXxxXxxXxxxXxxx (XxXxxxxxXxXxxxxxxxxxxXxxxxxx (xx), + XxxxXxxxXxxx, (XxXxxxxxx) XXXX); + } + + Xxxxxxx + XxxxXxxxXxxx (xxxxxxx) + XxXxxxxxx xxxxxxx; + { + xxxx (0); + /*XXXXXXXXXX*/ + } + + +XxxxXxxxxxxx() xxxx x xxxx xxxxxxxxx xxxx xxxx xxx xxxxxx xxxx xxx +xxxxxxxxxxx xx xxxx xxxx -- xxxxx xxxxxxx xxxxx xxx xxx xxxxxx xxx +xxxxxxxxx xxx xxx xxxxxxx xxxxxxxxx xxx xxxxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 11. Xxx xx X xxxxxx x Xxxxx xxxxxx? +---------------------------------------------------------------------- + +Xxxxx xx xx xxxxxxxx, xxx xxxxx'x xxxxxx x Xxxxx xxxxxx. Xxx xxxxxx +xxxxx xx xx xxxxxx xxx xxxxxxxxx xxxxxxx xxxxx xx xxx Xxxxx xxxxxx +xxxxx XxXxxXxxxxx(). Xxx xxxxxxxx xxxxxx xx xxxx xxxxxxxxxx xx xxx +Xxxxx xxxxx xxxx xxx xxxxxx xxxxxxx xxxxx xxx xx xxx xxx xxxxx xxx +xxxxxxx. Xxxxxxx, xxx Xxxxx xxxx xxxx xxx xxxxxxxx +XxXxxxxxXxxxxXxxxxx xxx xx Xxxx xxxxxxxxx xx xxxx xxx xxxx xxx xxx +xxxxxx xxxxxxx xx xxxxx xxx xxxxxxx xxx xxx Xxxxx xxxx xxx xxxxxx. + +Xx xxxxxx xxx xxxxxxxx xx x Xxxxx, xxx XxXxxXxxxxx() xx xxx Xxxxx, xxx +xxx xxxxx, xxx xxxxxx xxx xxxxxx xx xxx xxxxxx xxxxxxx xx xxxxxx xx xxxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 12. Xxx xxx'x XxXxxXxxXxxxx() xxxxxx xxxxx? +---------------------------------------------------------------------- + +Xx xxxx, xxxxxxx Xxxx xxxxxxxxx xxx xxxx X/X xx xxxxx xxx x xxxx xxxx +xxx xxx xxxx xxxxxxx' xxxxxxxxx xxxxx. Xx Xxxx xxxxx x xxxx +xxxxxxxxxx xx xxxxx xxx xxxxxxx xxxxxxxx xxx xxxx() xxxx xxxxx xxx +xxxxx, xxxxxxxx xxx xxxxxxx xx xxxxxxxx xxxxx xxxx xxxxxxxx xxx xx +xxxxx. Xxxx xxxxx xx xxxxxxxx xxx xxxxxxxxx, xxxxxxx xxx xxxxx. Xxx +x xxxx xxx xxxx() xxxx xxxxxx xxxxxx xxx xxx xxxxxx xxxxxxxxx xx XXX +-- x.x. xx xxxx xxxx. Xxx xxxxxx xx xxx xxxx xx xxx Xxxxxxxxxx xxxxxx +xxxxx xxx xxxxx xxxxxxx xxxxxxx xx xxxxxx xxxxxx xxxxxxxxx xx xxxxx xx +xx xxxx. Xxx xxxxxxx xx xxx xxxxxx() xxxxxx xxxx xx xx XXXX xxxxx +XX'x xx xx xxx xxxx() xxxxxx xxxx. + +Xxx xx xxx xxxxxx xxxx xx x Xxxx xxxxxx? Xxx xxxx xxxxxxxx xx xx xxx +xxxxxxx xxxxxxx xx xxxxx xxx xxxxxxxxx xxxxx xx xxx xxxx. Xxx x xxxx +xx xxxxxxx xxx xxxxxxxxxxx xxxx xxxx xxxxx xxxxxxx xxx xxxx xxx xxxx +xxxxxxxxxx xxxx xxx xxxx xx XxXxxXxxXxxxx(). X xxxxxxxx xxxxxxx xx +XXX xxxxxxx xx "xxxx -x xxxxxxxx". + +Xx'x xxxxxxx xxxx xxxxxx() xx xxxx xxxxxxx xx xxx _xxxxxxxxxx_ +xxxxxxxx. Xx xxxxxxxxxx: + + - XXX XXX 3.1: xxxx xx xxx xxxxx xx xxxxx xxxx xxx x xxxxx + (xxxxxxx xxxxxxxx xxxxx) xxx xxxx xxxx xxxxx xxxx xxxxx + xxxxx xxxx xx xx. Xxxx xxxxxx xx xx xxx xxxxxx xx x xxxx + xxxxxxxxx xx xxx Xxxxxx. XXX xxxxxx xx xxxx x xxx xxx xxxx. + + - Xxxxxxx, xxxxx'x xxxx xx xxx. + + - Xxxxxx (xxx xxxxxxxx xxxxxx xxxxx xxxxx xxx xxxxxxxxxxx xx + xxxxxxx), xxxx'x xxxxxxxxxx xxxxxx, xxx xxxxxxxx xxx xxxxxxx + xxxx xxxxx xx 512 xxxx xxxxxx xxx xxxxxxx xxxx xxxxxxxx xx + xxx xxxxxx xx xx xx xx xxx xxxxx xxx xxxx xxx xxxx x xxxx xx + x xxxx. Xxx xxx xxxxx x xxx xx xxxx xx xxxxxxx xxxxx xxxxxx + (xxx xxxxxx xx xx xxxxxxxxx xxx xxxxxxxxx xxx xxxxxx + xxxxxx() xxxxxx xxx xxxx xxx 10 xxxxxxxx - xx xxxx xx xxx + xxxx xxxxx xxx xxxxx xxxxx). + + +Xxxx xxxx xxx xxx xxxxx xxxxxxxxxxxx xxxx Xxxx xxxxxxxxxxx xxxx xx +xxxx(), xxxx xxxxxxxxxx, xxxxx, xxx. Xxxx xx xx XX xxxxxxxxx xxxx xxx +xxx xxx xx xxxxxxxxx xx xxx xxxxxxx. Xxxxxxx xxx Xxxxxxxxx xxxxxxxxx +xxxx xx xxx x xxxxxx xxxxxx xxxxxxxxx xxxx xx xxxxxx xx xxxxxxxx xxxx +xxxx xx xxx xxxxxxx. Xxx xxxx xxxx'x xxxx xxxx xxxx xxxxxxx xx xxxx +xxxxx X xxx'x xxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 13. Xxxx xxxx xxxxx xxx xxxxxxxxx xxx xxxxx xx Xx? +---------------------------------------------------------------------- + +X xxxx x xxxxxxxx xxxx xx xxx xxxxxxxxxx xxxxxxxxx. Xx xx xxxxxxxxxxx +xx xxxxxx x xxxxxxxxxx xxxxxxxxxxxx xxx xxxx xxxx xxxx xxx xxxx +xxxxxxx xx xxx Xxxxxxxxxx. Xxxx X xxxxxxx xxxxx xx X xxx xxxxxxx +xxxxxxxx xxxx Xx xxx xxx xxxxxxxx xxxxxx xx, xx xxxxxxxxx xxx xx xxx +xxx xxxx xx xxxxxx. X'xx xxxxxx xxxxx xx xxxxxxxx xxx xxxxxxxx, xxxxx +xxxxx xxx x 1000 xxxxx. + +Xxxxxx, Xxxx X., xxx Xxxxx, Xxxxx X., "X Xxxxxx Xxxxxx Xxxxxxx, Xxx + Xxxxxxxx Xxxxxxxxxx'x Xxxxx xxx Xxxxxxxxxxxxx", Xxxxxxx Xxxxx, + 1990, XXXX 1-55558-051-3, xxxxx xxxxxx XX-X757X-XX; xxx xx + Xxxxxxxx-Xxxx, XXXX 0-13-972191-6. Xxxx xxxxxxxxx xxxxxxx XXX + Xxxxxx xx 1-800-XXXXXXX. + +Xxx xxxxx xxxx X xxxxxxxx xxxxxxxx xx xxxxxxx xx: + +Xxxxx, Xxxx. "Xxx X Xxxxxx Xxxxxx: Xxxxxxxxxxxx xxx Xxxxxxxxxxx xxxx + Xx (Xxxxx Xxxxxxx)," Xxxxxxxx Xxxx, 1989 (XXXX 0-13-497074-8). + (XXXX 0-13-972167-3) + +Xxx xx xxxxxx X'Xxxxxx xxx xx xxxxxx xxxxxx xx xxxxxxx xx X xxx Xx. +X'Xxxxxx xxxxxxxx xx 800-998-9938. Xx xxxxxxxxxx, Xxxxxx 5 xx xx Xx +xxxxxxxxx xxxx xx xxxxxx xxxx xxxxx. Xxx 3xx xxxxxxx xx xxxxxxxxxxx +xxxxxxxxxx xxx xxxx xxx xxxxxx xxx XXX xxxxxx xxxxx. X'x xxxxxxx xx +xxxx xxxxxx. Xx xxxxxxxxxx, xxx xxxxxxxxx xxxxx xxx xxxxxxxxxx xx +xxxxx xxxxxx xxxxx xxxx x xxxxx xxxx xx xxxxxxx xxxx xxxxxxx +xxxxxxxxxxx. + +X xxxx xxx xxxxxxxxxxx, "Xxx X Xxxxxxxx" xxx xxx "Xxx X Xxxxxxx". +Xxxxx xxx xxx xxxx xxx xxxxxxx xxxxxxxxxxxx xxxx X. "Xxx X Xxxxxxxx" +xx xxxxxxxxx xxxxxxxxx, xx X'Xxxxxx, xxxx xxx xx xxx xxxxxx xxxxx xxx +XXX X Xxxxxxxxxx Xxxxxxxxx Xxxxxxxxxx Xxxxxxxxxxx. Xxxxx xx xx +xxxxxxxxxxx. X'xx xxxxx xx xxxxxxxxxxx xxxx xxxxxx xxxx xxxxx. Xxx +xxxxxx, xxxx 1-800-998-9938, xx xxxxx xxxxxx@xxx.xxx. Xxx xxxxxxxxx +xxxxxxx, xxxxx xxxxxx@xxx.xxx. Xxxxx xx xxxxxxxx xxx xxxxxx xx +xxxx.xxxx.xxx xx ~xxx/xxx/xxx/xxx xx XxX xxxx xxx xx xxx.xx.xxx xx +~xxx/xxxxxxxxx/xxxxxxx/xxxxxxxxx xx XXXXX xxxx. + + +"Xxx X Xxxxxxx" xx x xxxxxxxxx xxxxx xxx xxxx xxxx xx xxxxxxxxxxx. +Xxx xxxxxxxx xxx xxxxxxxxxxx xxx xxxxxxxx xxxxxx x xxxx xxxxxxxxx +xxxxxxxx. X xxxx xx xxxx xx xxx xxxx'x xxxxx xx xxxx xxxx xx +xxxxxxxxxxx xx xxxxxxxx x xxxxx xxxx (xxx xxxxxxxx, X xxxxxxxxx x +xxxxxx xxxxx xxxxxxxxxx xx xxxxxx). Xxxx, xxxx xxxx x xxxxxx xxxx +xxxxxxxxxx xx xxxxxx xx xxx xxxxxxxx xxxxx xxx xx xxxxxxxxxx. Xxxx +(908) 563-9033. + +---------------------------------------------------------------------- +Xxxxxxx: 14. Xxxx Xxxxxxx xxx xxxxxxxxx? +---------------------------------------------------------------------- + +Xxxxx xxx xxxxx xxxxxxx xxxxxx xxxx: + +Xxxxxx - Xxx xxx xxxxxxxx xxxx X11. Xxxx xx xxxxxxxxxx xxx xxxx + xxxxxxxx xxx xx xx xxx xxxx xxxx. Xxxxxxxx, x 3x xxxx xx + xxxxxxxxx xxx xxx xx xxx.x.xxx:/xxxxxxx/Xxx3x.xxx.X. +Xxxxx - Xxxx XXX xxxxxxxxx xxx x xxxxxxx xxx xxx xxxxxxxx xxxxxxx xx + xxxx xxxxxxxxxxx xxxxxxx xxxxxxxxx (xxxxxx xxxxxxxx xxx + Xxx). Xx xxxxx xxxx xxx xxxxx xxxx xxx xxxxxxxxxx X xxxxx + xx xx xxxxxx xxxxxxxxxxx. +XXXX - Xxx Xxxx Xxxx Xxxxxxxxxx Xxxxxxx xx x xxx xx xxxxxxx + xxxxxxxxxxxx Xxx'x Xxxx Xxxx xxxxxxxxxxxxx. Xxxxxxxxx xx + XX&X. X'xx xxxxx xxxx xx xx xxx'x xxxxxxx xx xxx xxxxxxx. + X'xx xxxxx xxxxxxx xxxx xx xx x xxxx xx xxxxxxxx xxx. + +Xx xxxxxxxx xxx xxxxxxxxx xxxxxxxxxx xx xxxxxxx xxx xxxx xxxxxxxxx: + +Xxxx - x xxxxxxx xx xxxxxxx xxx xxxx xxxx Xxxxxxxxx Xxxxxxxx + Xxxxxxxxxx (310-328-9338). Xx xxxxxxxx xxx xxxxx, xxxxxxx + xxx xxxxx, xxxx xxxxx, xxx xxxxx, xx xxxx, xxxxxxxxx, xxxx, + xxxxxxxxxxx, xxx xxxx xxxxx xxxx xxxxxxx. X'xx xxxxx xxxx + xxxx xx X xxx'x xxxxxxx. +XXX - Xxx Xxxx Xxxxxx Xxxxxxxxxx xx xxxxxxxxxx xx xxxxxxx x xxx xx + xxxxxx xxxxxxxxx xxxxxxx. Xxxxxxxx xxx x Xxxxxx xxxxxx, + XxxxXxxxxx, xxx x xxx xxxxxx. Xxx xxxxxxx xxx xx xxxxxxx + xxx xx xxxxxxxx xxx xxxxxxxxx xxx xxxx xxx xxxxxxx + x.xx.xxxx.xxx (128.174.252.1) xx xxx xxxx xxx/xxx.xxxx.X. +Xxx - Xxx Xxxxxxx Xxxxxxxxxx xxxxxxx xxxx Xxxx Xxxxx. Xxx xx xxx + xxxxx xxxxxx xxxx xxxxxxxx. Xxxxxxxx x xxxx xxxxxxxxxx xxx + xxxxxxx xxx xxx x xxxx xxxxxxx xxxxxxxx. Xxxxxxxx xxx xx + xxxxxx xxxx. +Xx - Xxx Xxxx xxxxxx xxx. Xxxx xxx xxxxxx xxxxxx X3 xxxx xxx + xxxxxx xx xxxxxxxxx. Xx xxxxxx xxxx xx xxx xxxxxxx. +Xx - Xxx XX xxxxxxx. Xxx xxxxxxxxx xx Xxxxx. Xxxxxxxxxx xxxxxxx + xxx X3 xxxxx xxxxxx xxxxx xx xxx xx xx xxxx xxxxx X4 & X5. + Xxxxx, x xxxxxx xxxx xxxxxx xxx xxx xxx xxxx xx xxxx xxxx. + Xxx xxxxxxxxx xx xxxx xxx xxx Xxxx xxxxxxx xxxxx xxx + xxxxxxxxxx xxxxxxxxxxx xxx X10X4 xxx xxxxxxxxxx xxxxxxxx + xxxx xxxxxxxxxx xxx xxx xxxxxxxxx xx Xx. +Xx - X xxxxxx xxx X'x xxxxxxx xx. Xx'x xxxxx xxxxxxxxx xxx xxx + xxx xxxx xx x xxx xx xxxxxxx.xxx.xxxx-xxxxx.xxx:xxx/Xx/* + +Xxx xxxxxxxxx xxxxxxxxxxx xxxxxxx xxx xxxx xxxxxxxxx: + +Xxx - Xxxxxxxxxx x xxxxxxx xxxxxx xx xxxxxxx. Xxxxxxxx Xxxxx + xxxxxxx xx xxxxxxxx. Xxxx xx Xxx. +Xxxxx - Xxx Xxxxxx Xxxxxxxx xxxxxxx (xxx xxx Xxxxxx xxxxxxx). + Xxxxxxx xxx@xxx.xx.xx xx xxx@Xxxxxx.XXX.XXX. + +---------------------------------------------------------------------- +Xxxxxxx: 15. Xxxx xxxxxxxxxxxx xx xxx Xxxxxxxxxx xxx xxxxx? +---------------------------------------------------------------------- + + __________________________________________ + Xxxx Xxxxxxxx Xxxxxx + __________________________________________ + Xxxxx X Xxx + XX X++ XxxxXxxxx + Xxxxxxxxxx X++ Xxxxxxxx + Xxx/xx X xxx.xx.xxxxxxxx.xxx + __________________________________________ + + +Xxxxxxx xxxx X xxxx X xxx xxxxxx xxx xxxxx xx xxxx xxxxxxxxx xxx +xxxxxxxxxxxx xxx Xxxxxxxxxx, xxxxxxxxx xxxx xxxxxxxxxxx xxxx xxxxxxx +xx xxx xxxx 3-5 xxxxx xxxx xxxx xx xxxxxx xxxxxxxx xxxxxxxx. Xxxx +xxxx xxxx xxxx xxx xxxxxx xxxx xxxxxx xxxxx xxx xxxx xxxx x xxxxxxxx +xxxxx xxxx X _xxxxxx_ xxxxxxx xxxxxxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 16. Xxx xx X xxxx x xxxxx xxxxx xx XxXxxXxxxxx? +---------------------------------------------------------------------- + +Xxxxx, xxxx xx xxxxx xxxxx xx xxx xxxxxxxxx xxx xx Xxx xx (xxxxxxxxxxx) + xxxxxx xxxxxx + { + Xxxxxx xxxx; + xxxx xxxxx; + } Xxx; + +xxx xxx xxxx: + Xxx xxx; + + XxXxxXxx (xxx, "xxxx", 3.2) + +xxxxxxx xx + Xxx xxx; + + xxx.xxxx = "xxxx"; + xxx.xxxxx = 3.2; + +xxx xxx xxx xxxx xxxx xxxxxx X xxxx xxxxxxxxxxx, xxx xxx.xxxxx +xxxx xxx xxxxxxx "3" xxxxxxx xx xxx xxxxxxxx xxxxx xxxxx "3.2". Xxxx +xxx xxxxx xx xxxxxx xxxx xxx xxxxxx xxxxxxxx, xxx xxx xxxxxxx xx +xxxxxx xxxxxxxxx xxxx xxxx xxxxxxxx xxx x xxxxxxxx xxxxx xxxxx. Xx, +xxx xx xxx xxxxxx xxxx? + +Xxx xxxxxxxxx xxxxx xx xxxx xxx Xxxxxx xxxxxxx xxxxxxxx xxx X xx xxx +xxxxxxxxxxx xx xxxx xxx xxxxxxxx xxxxxxxxxxx. + +#xxxxxx XxXxxXxxxxXxx(xxx, x, x) \ + xx (xxxxxx(xxxxx) > xxxxxx(XxXxxXxx)) { \ + XxXxxXxx(xxx, x, &(x)); \ + } xxxx { \ + XxXxxXxx *xx = (XxXxxXxx *)&(x); \ + XxXxxXxx(xxx, x, *xx); \ + } + + +---------------------------------------------------------------------- +Xxxxxxx: 17. Xxx xx X xxxxx x xxxxxxxx xxxxxxxxx? +---------------------------------------------------------------------- + +Xxxxxxxx xx Xxxx Xxxxxxx (xxxxxxxx@xxx.xx.xxx): + +Xxx xxxxxxxxx xxxxxxxxxx xx xxxxxxxx xxxxxxxxxx xxxxxxx X4 (xx X5) +Xxxxxxxxxx. Xxxxxxxx xxxxxxxxxx xxxxxxx xxxxxxx X3 xxx X4 xx xxxxx +xxx xxxxxxxxxxx xxx xxxxxxx xx xxxxxxxxx xxxxxx. + +Xxxxx xxx xxxxxxx xxxx xxxxx xx xxxxxxxx xxxxxxxxxx: + + xxxxxx xx xxxx xxxx + xxxx xxxx xx xxxxxx + xxxx xxxx xx xxxx xxxx + +x) xxxxxx xx xxxx xxxx + Xxxxxxx x xxxxxx xx xxxx xxxx xxxxxxxxx xxx x xxxxx xxx xx xxxxxxx + xxxx xxxx xx xxxxxxxxx xx xxxx xxxx xxxxxx. Xxxx xx xxxx xxxxx + xxxx xx xxx xxxxxxxxxx xxxxx xx xxxxxxxxxx xxxxxx: + + Xxxx Xxxxx + "Xxxx" 1 + "Xxxxx" 0 + + Xx xxxx xxxx, xxx xxxxxx xx xxxx xxxx xxxxxxxxx xxxxx xx xxxxxxx + xxx xxxxxxxx xxxxx xx xxx xxxx xx xxxxx xxxxxxx. Xxxx xx xxxx + xxxxxxx xxxxxxxxxxxx xx xxx xxx xx xxx "xxxxx" xxxxxxxxx xx xxx + xxxxxxxx xxxxxxx. Xxx xxxxxxxx xxxxx xx xxxxxx xxxx x xxxxx, + xxxxx xx x xxxxxx xxxxxxxxxxxxxx xx xxx xxxxxx xxxx xxxx xxxx x + xxxxxx xxxx. Xxxx xxx xxxxxxxx xxxxx xx xxxxxxxx xxxxxxx xxx + xxxxxx xxx xxx xxxxx xxxxxxx xxxxxxxxxxxx xxx xxxxxxxxxx xxxxxx. + + Xx xxxxx xxx xxxx xxxxxxxxxx xxxxxxx xx xxx xxxxxxxxx (xx xxxx + xxxxxxxxxx, xxxx xxxx x xxxxx xxxxxx xx xxxxxxxxxxx xxxxxxx), xxxx + x xxxxxx xxxxxxxxxxxxxx xxxxxxx xxxxx xx xxxx xx xxxx xxx xxx + xxxxxxxx xxxxxxx xxxx xxxxxx. Xxxx xxx, xxx xxxxx xxxx xxx xx + xxxxx xxxxxxxxxx xx xxxx, xxx xxxxxxx xxxx xx xxxxxx xxxx xxxxxx + xxx xxxx xx xxxxxx xxxxxxxxx xxx xxx xx xxx xxxx xxxxxxxxxx xx xxx + xx xxx xxxxxxxxxx. + +xx) xxxx xxxx xx xxxxxx + Xxxx xxxx xx xxxxxxxxx xx xxxxxxxx xxxxxx xxxx xxx xxxxxx xx xxxx + xxxx xxxxxxxxxx xxxxx xxx xxx xx xxxxxx xxx'x xxxxxxxxx. Xxxxxxx, + xxx xxxx xxxx xxxxx xx xxxxxx xxxxxxxxx xx x xxxxxx xxxxx, + xxxxxxxx xx xxx xxx xx xxxxxxx. + + Xxxx xxxx xx xxxxxx xxxxxxxxxx xxx xxxxxx xxx xxxxxxxxxxxx xxxx + xxxx xx xxxxxxx xx xxxxxxxx xxxx xxxx xxxxx xxxx x xxxxxx xx xxxx + xxxx xxx xxxxx xxx x xxxxx xxxxxxxx xxxxxxxxxxxxx xx x xxxx. Xxxx + xxxxxxxxx xxx xx xxxx xx xxxxxxx x "xxxxxxxx" xx xxxxxxxxxxx xxxxx + xxxx x xxxx. Xxxx xxxxxxxx xxx xx xxxx xx xxxxxxx xxx xxxxxxx xx + x xxxxx xxxxx xxx xxx xxxxx X xxxxxxxx xxxxxxxx xxxxxxxxxx. + + Xx xxx xxx xxxxxx xxx xxxxxxx xx xxxxx x xxxxxx xx xxxx xxxx + xxxxxxxxx, xx xxx'x xxxx xxxxx xxxxxx xx xxxxx xxx xxxx xxxx xx + xxxxxx xxxxxxxxx. Xxxxxxx xxxx xx xxx xxxx xxxx xxxxx xx xxxxxx + xxxx xxxx xxx xxxxxxxxxx. + +xxx) xxxx xxxx xx xxxx xxxx + Xxxx xxxx xx xxxxxxxxx xx xxxx xx xxxxxxx xx xxxxxxxx xxxx xxxx + xxxxx xx xxxxxxx xxxx xxxx. Xxx xxxxxxxx, xx X xxxxx xxxxx xxx xx + xxxxxxxxx xx xx XXX xxxx xxxx xxxx xxxxxxxx xxxxxxxx xxxxxx xxx + xxx, xxxxx xxx xxxx. + + +Xxx xxxx xxxxxxxxx xxx x xxxxxxxx xxxxxxxxx xx xx xxxxxxx: + +xxxxxxx Xxxxxxx (*XxXxxxXxxxxxxxx)(Xxxxxxx *, XxxXxxxxXxx, Xxxxxxxx *, + XxxXxxxxXxx, XxxXxxxxXxx, XxXxxxxxx *); + Xxxxxxx *xxx; + XxxXxxxxXxx xxxx; + Xxxxxxxx *xxx_xxxx; + XxxXxxxxXxx xxxxXxx; + XxxXxxxxXxx xxXxx; + XxXxxxxxx *xxxxxxxxx_xxxx; + +Xxxx xxx xxxxxxxxx xx xxxxxxx, xxx "xxxxXxx" xxxxxxxx xxxxxx xx xxx xxxxxx +X xxxxxxxx xxxxxxx xxxxx xxx xxx "xxXxx" xxxxxxxx xxxxxx xx xxx +xxxxxxxxxxx X xxxxxxxx xxxxxxx xxxxx. Xxx "xxxxxxxxx_xxxx" xxxxxxxx +xx xx xxxxxx xxxxxxx xx xxxx xxxxxxxxx-xxxxxxxx xxxx xxxx xx xxxxxxxxx +xxxx xxx xxxxxxxxx xx xxxxxxxxxx. Xxx "xxxx" xxx "xxx_xxxx" xxxxxxxxx +xxxxx xxxxx xxxxxxxxxxx xx xx xxxxxx xx xxx xxxxxxxxx xxxx xx xx +xxxxxxx. Xxx xxxxxxxx, xxx Xxxxx xx XXX xxxxxxxxx xxxxxxxxx xxxxxxxxx +xxxxx xxxxx xxxx xxxxxxxx xxx xxxxxx xxxxxxxxx xx xxxxx xx xxxxxx xxx +Xxxxx xx xxxxxx xxx XXX xxxxxx xxxxxxxxxxxxx xx xxxx xxxxx. + +Xxxx xxxx xx xxxxx xxxx xxx "xxXxx" xxxxxxxx. Xx XxxXxxxx xxx xxx +xxxxxxxxx xxxx xxxxxxxxxx xxx xxxxxxxxx x xxxx xxx xxxxxxxx xxx x +xxxxxxxxx xxxxx: + +xxxxxxx xxxxxx { + xxxxxxxx xxx xxxx; + xxxxx_x xxxx; +} XxxXxxxx, *XxxXxxxxXxx; + +Xxxx xxx xxxxxxxxx xx xxxxxxx, xxx xxxxxxx xxx xxxxx xx x xxxxxxxx xx +xxx xxxxx xxxx xxx xxx xxxxxxxxx xxxxx xx xxx xxxxxxxx xxx xx XXXX. +Xx xxx xxxxxx xxxx, xxx xxxxxxxxx xxxxxx xxxxxx xxxx xxx xxxx xx xxx +xxxxxxxxxxx xxxx xx xxxxx xxxxxx xx xxxxxx xxx xxxxxxxxx xxxxx. Xx +xxx xxxxxxxxxxx xxxx xx xxx xxxxx xxxxxx, xxxx xxx xxxxxxxxx xxxxxx +xxx xxx xxxx xx xxx xxxxxx xx xxxxx xxxxxx xxx xxxxxx Xxxxx. Xxx +xxxxxx xxx xxxx xxxxxx xxxx xxxxxx xxxxx xx xxxxxxxxx xxx xxxxxxxx xxx +xxxxxxxxx. Xx xxx xxxx xx xxxxx xxxxxx, xxxx xxx xxxxxxxxx xxx xxxxxx +xxxx xxx xxxxxxxxx xxxxx xxxx xxx xxxxx xxxxx xxx xxxxxx Xxxx. + +Xx xxx xxxxxxxx xx XXXX, xxxx xxx xxxxxxxxx xxx xxxxxx xxx xxxxxxxx xx +xxx xxxxxxx xx x xxxxxx xxxxxxxx xxxxxxxxxx xxx xxxxxxxxx xxxxx xxx +xxxxxx Xxxx. + +Xxxx xxxxxxx x xxxxx xx xxxxxxxxxx, xxxx xxxx xx xxxxx xxxxxxxx xxx xx +xxxxxxx xxxxxxxxxx xx xxxxxx x xxxxx: + + #xxxxxx XXXX(xxx, xxxx) \ + xx (xxXxx->xxxx) \ + { \ + xx (xxXxx->xxxx < xxxxxx(xxxx)) \ + { \ + xxXxx->xxxx = xxxxxx(xxxx); \ + xxxxxx Xxxxx; \ + } \ + xxxx \ + *((xxxx *) xxXxx->xxxx) = xxx; \ + } \ + xxxx \ + xxXxx->xxxx = (xxxxx_x) &xxx; \ + xxXxx->xxxx = xxxxxx(xxxx); \ + xxxxxx Xxxx; + + #xxxxxx XXXXXXX(xxx) \ + xx (xxXxx->xxxx && xxXxx->xxxx < xxxxxx(Xxxxxx)) \ + { \ + xxXxx->xxxx = xxxxxx(Xxxxxx); \ + xxxxxx Xxxxx; \ + } \ + xxxx \ + xxXxx->xxxx = (xxxxx_x) xxx; \ + xxXxx->xxxx = xxxxxx(Xxxxxx); \ + xxxxxx Xxxx; + +Xxxxxx xxx xxxxxxxxx, xx xx x xxxx xxxx xx xxxxxxx x xxxxxx xxxxxx +xxxxxxxx xx xxx "xxx_xxxx" xxx "xxxx" xxxxxxxxx xx xxxxxx xxxx xxxx +xxxxxxxxx xx xxxxx xxxxxx xxxxxxxx. + +Xxxx xxx xxxx xxxxxxx xxxx xxxxxxxxx, xxx xxxx xx xxxxxxxx xx xxxx xxx +Xxxxxxxxxx. Xxx Xxxxxxxxxx xxxxxxx xxxxxxxx xxxxxxxxxx xxxx xxxxxxxx +xxxxxxx xxx xxxxxxxx xxxxx xxxxxxxx xxxxxx xxxx xxx xxxxxxxx xxxxxxxx. + +Xx xxxxxxxx x xxxxxxxxx xxxx x xxxxxx xxxxxxxxxxx xxxxxxx, xxx +XxXxxXxxXxxxXxxxxxxxx: + +xxxx XxXxxXxxXxxxXxxxxxxxx(xxxxxxx, xxxx, xx, xxxxxxxxx, xxxx, xxx_xxxx, + xxxxx, xxxxxxxxxx) + XxXxxXxxxxxx xxxxxxx; + Xxxxxx xxxx; + Xxxxxx xx; + XxXxxxXxxxxxxxx xxxxxxxxx; + XxXxxxxxxXxxXxxx xxxx; + Xxxxxxxx xxx_xxxx; + XxXxxxxXxxx xxxxx; + XxXxxxxxxxxx xxxxxxxxxx; + +Xx xxxxxxxx x xxxxxxxxx xxxx xxx xxxxxxxxxxx xxxxxxxx, xxx +XxXxxXxxxXxxxxxxxx: + +xxxx XxXxxXxxxXxxxxxxxx(xxxx, xx, xxxxxxxxx, xxxx, xxx_xxxx, + xxxxx, xxxxxxxxxx) + Xxxxxx xxxx; + Xxxxxx xx; + XxXxxxXxxxxxxxx xxxxxxxxx; + XxXxxxxxxXxxXxxx xxxx; + Xxxxxxxx xxx_xxxx; + XxXxxxxXxxx xxxxx; + XxXxxxxxxxxx xxxxxxxxxx; + +Xx xxx X3 Xxxxxxxxxx, xxxxx xxxx xxx xxxxxxxx XxXxxXxxXxxxxxxxx xxx +XxXxxXxxxxxxxx; xxxxx xxxx xxxx xxxxxxxxxx xx XxXxxXxxXxxxXxxxxxxxx +xxx XxXxxXxxxXxxxxxxxx. Xxxxxxxx xxxxxxxx, xxx xxxxx xxxxxxxx xxxxxx xx +xxxx. + +Xxxx x xxxxxxxxx xx xxxxxxxxxx xxxx xxx Xxxxxxxxxx, x "xxxxx" xxxxxxxx +xxxxxxxxx xxx xxxxxxxxx xxxxxxxx xxxxxx xxx xx xx xxxxxx: + + XxXxxxxXxxx Xxx'x xxxxx xxx xxxxxxxxx xxxxxx + XxXxxxxXxx Xxxxx xxx xxxxxxxxx xxxxxx + XxXxxxxXxXxxxxxx Xxxxx xxxxxxxxx xxxxxx xx x xxx xxxxxxx xxxxx + +Xxxxxxx xxxxxxxxx xxxxxx xxxx xxxxxxx x xxxxx-xxxx xx xxx xxxxxx xx x +xxxx xxxx (xxx xxxxxxxx xxxxxx xx Xxxxx xxxxxxxxxxx). + +Xxx "xxxxxxxxxx" xxxxxxxx xx x xxxxxxx xxxx xx xxxxxxx xxxx xxx +xxxxxxxx xx xxxxxxxxx, xxxxxx xxxxxxx xxx xxxxxx xxxxxxxxx xxxxx xxx +xxxx xxxxxxxxxxx xx xxxx xx xxxxxxx xxx xxxxxx xxxxxx xxx xxxxx xx +xxxxx xxxxxxxxx. XxXxxxxxxxxx xxx xxx xxxxxxxxx xxxx xxxxxxxxxx: + +xxxxxxx xxxx (*XxXxxxxxxxxx)(XxXxxXxxxxxx, XxxXxxxxXxx, XxXxxxxxx, + XxxXxxxxXxx, Xxxxxxxx *); + XxXxxXxxxxxx xxxxxxx; + XxxXxxxxXxx xx; + XxXxxxxxx xxxxxxxxx_xxxx; + XxxXxxxxXxx xxxx; + Xxxxxxxx *xxx_xxxx; + +Xxx xxxxxxxxxx xx xxxxxxx xx xxxx xxx xxxxxxxxx xxxxxxx xxxxxxxxxx +xxxx xxx "xx" xxxxxxxx, xxx xxxx xxx xxxxxxxx xxxx xxx xxxxxxx xxxxxxx +xx xx xxx "xx" xxxxxxxx xxxxxx (xx->xxxx). Xxx xxxxxxxxxx xx xxxxxx +xxx xxxxx xxxxxxxxx xxxx xxxx xxxxxx xx xxx xxxxxxxxx xxxx xxx +xxxxxxxxxx xxx xxxxxxxxx (xxx xxxxxxxx, xxxxxxxx xxx xxxxxx xxxxxxxxx +xxx xxx xxxxxx xx Xxxxx xxxxxxxxx xxxxx xxx xxxxxxxxxx xxxxx xxxx xx +xxxx xxx xxxxxxxxx Xxxxx xxxx xxx xxxxxxxx) xx xxxx xx xxx xxxxxxx +xxxx xxxxxx xx xxxx xxx xxxxxxxxx xxx xxxxxxxxxx. + +Xxxxxx xxxxxxxxx xxxx xxx xx xxxxx xx xxx xxxxxxxxx xxxxx xx xxx XXX +X5 xxxxxxxxxxxx: + + xxx/xxx/Xx/Xxxxxxxxxx.x + xxxxxxx/xxx/XXXx/Xxxxxxxxxx.x + xxxxxxx/xxx/XXXx/Xxxxxxxxxx.x + +---------------------------------------------------------------------- +Xxxxxxx: 18. Xxx xx X xxxx xxxxxxxx xxxxxxxx? +---------------------------------------------------------------------- + +Xxx "Xxxxx-xxxx Xxxxxxxxxxx Xxxxxxxx Xxxxx Xx", Xxx X Xxxxxxxx, Xxxxx 3, +(Xxxxxx 1992) xx Xxxxxx Xxxxx xxx x xxxxxxxx xxxxxxxx xx xxx xxxxxx +xxxxxxxx. Xxxx xx xxxx xxxxxx xx xxxxx xx xxxx xxxxxxx. Xx x +xxxxxxxx, xxx xxxx XxXxxxXxxxxxx() xx xxx xxxx xxxxxxx xx x _xxxxxx_ +xxxxxxxxxxx xxxxxxx xxx xxxx XxXxxxxXxxxxxx() xx xxxxxxxx xxxx xxxxxxx +xxx xxxxxx xx xxxx xxx xxxxxxxxxxx xxxxxxx. + +Xxx xxxx xxxxxxxx xxxxx xxxx xxxxxx xx xxxxx xxxx x xxxxxxx. Xxxx xxx +xxxxxx 3 xxxx: + 1. Xxxx xxxxxxx x "xxxx" xxxxxx xx xxx xx xxx xxxxxxxx, + 2. Xxxx xxx xxxxxx xxxxxxx xxxx x XX_XXXXXX_XXXXXX xxxxxxx, + 3. Xxxxxx xxxxxxxxxx -- xxxxxxxx xxxx x XxxxXxxxxx xxxxxxx, + xxxxxx xxxxxxxx/xxxxx, xx xxxxxxx xxxxxxx. + +X'xx xxxxxx xxx xxx xxxx xxxxxxxxxx xxxx 1 & 2 xxxxx xx xx _xxxxxx_ x +xxxxxxx xx xxxxxxxxxxx x Xxxxxx xx x xxxxxxx xxx xxxxxxxx xxxx +xxxxxxx. Xx xxx, xxxx xxxx xxx Xxxxxx Xxxxx xxxxxxx. + +Xxx xxxxx xxx xx xxxxxxxxx xx xxxxxx. Xxx xxxxxxxxx xx xxxxx xx xxx +Xxxxxx Xxxxx xxxxxxx xxx X xxxxxxx xx xxxx xxxxxxx xx xx x xxxxxxxxx +xxxxxxx. + +Xxx xxxxxxxxxx xxxxxx xxxxxxx xxx Xxxx xxxxxx xxxxxxxx xxxx xx X/X +xxxxx xx xxxxxx xxxxxxxxxxxxx xxx xx xxxxx. Xxxx xx xxxxxxxxxxx xxxx +xxx x xxxxxx xxxxxxx X xxxxx xxxxxxxxxxx, xxx xxx xxxx xxx x +xxxxxxxx xxxxxxx xxxxxxx xx xx xxxxxxxxxxx xxxx xxxx xxxxxx xxxxx xxxx +xxxxxxx xxxxxxxxxxx xx xx X xxxxxx. Xxxx xx X X/X xxxxx xxxxxx xxx +X/X xxxxx xxxxxxx xx xxxxxx xxx _xx_ xx xxxxxxx xxxx xx xxxx() +xxxxxxx. Xxx xxxx xxx xxxxxx xxxx xx xx xxx xxxxxx/xxxxxxx xx xxxxx +xxxxxxxxx xx xxx X/X xxxxx xxxxxxx. Xxx xxxxxxxxx xxxx xxxxxxxx +xxxxxxxxxxxx xxxx: + +#xxxxxxx +xxx_xxx XXXxxxxxxx; + +xxxx +XXXXxxxxxx (xxx) + Xxxxxxx *xxx; +{ + xxxxxxxXxxxxxx (xxx); + xxxxxxx (XXXxxxxxxx, 1); +} + +xxxx () +{ + ... + xx (xxxxxx (XXXxxxxxxx) == 0) + XXxxXXXxxxxXxxxxxx (XXXXxxxxxx); + XxXxxXxxxXxxx (xxx_xxxxxxx); +} + +Xxx xxxxxxxXxxxxxx() xx xxxxxxxxx xxxx xxxxx x Xxxxxxx xxxxxxx xxx xx +xxxx xx xxx xxxxxxxxxxx xxxxxxxx xxxx xxx xxxxxxx xxx xxxxxxxxx +xxxxxxx. Xx xxxxxx xxxx xxxx XxXxxxxXxxxxxx(). + +Xxx xxxxx xx xxx xxxxxxxxxx xxxx xxxxxx/xxxxxxx, xxxx xxxxxx() xx +xxxxx xxxxxx xx xxxxxxx x 0 xxx xxxx'x xxxxxx xxxxxxxxxxx xx xxx +xxx_xxx xxxx x xxxxxx xxxxxxxxx xx xxxxxxx() xxx xxxxxx xxx xxxxxxx xx +xxx xxxx xxxxx xx xx xxx xxxxxx() xxx xxxx xxxxxxxx. Xxx xxxxxx xxxxx +xx xxxx xxxxxx xxxxxx() xx xxx xxxxx xx xxx xxxxxx xxxxxxxx xx +xxxxxxx(). Xxxxx xxx xxxxxxx xxxxxxx xxxxx xxxxx xxxxx xxx xxx xxxx +xxxxxxx xx xx xxxxxxxx. + +Xxxx xxxxx xxxxxxxx xxx xxxxx xxx xxxx xxx xxxxxxxx xxxxxxxxxx xxxx +xxxxxxxxxx xxxxx xxxxxxxxx. Xxx xxxx xxxxxx xxxxxxxx xxx Xxxx xxxxxx +xxxx xx XxxXxxxx, XxxXxxx, xx XxxXxxx. Xxxxx xxx xx xxxxxxxx xxxx xxx +xxxxx xxxxxx xx xxxxxxxx xxx xxx xxxx xxxxx xxxxxxxxx xxxx x xxxxxxx +xxxxxx xx xxxx xxxxxxxxxxx xxx xxxxxxxxx xxxx 32 xxxxx x xxxxxxx +xxxxx. Xxx xxx xxxx xxx xxxx xxxxxxxxxxxxx xxxxxxxx xxxx xxxxxx xx +xxxxxxx xx x xxxxxxx. + +Xxxxx xxx xxxx xxxxxxxxxx xx xxxx.xxxxxxx.x xxxxx xxxx xxxxx xx +Xxxxxxxx xx 91. Xxxxxx Xxxxxxxxx xxxxxx xx xxxxxxx xxxxx xxxxxxxxx +xxxx xxxx xx xxx xxx xx xxxx xx xxx Xxxx xxxx xxx xxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 19. Xxxx xxxxxxx xxxx X3 xx X4 xx X5? +---------------------------------------------------------------------- + +Xxxx xxxxxxxxx xxxx xxxxxxx xx xxx Xxxxxxxxxx. Xxxxx, xxx xxxxxxx +xxxxxxx xxx xxxx xxxxxxx xxx xxxxxxxxx. Xxxx x, xxxxxxxxx xxxxxxxxxx, +xxxx xx xxx xxxxxxxxx xxxxx xxx xxxxxx xxxx xxx xxx xxxxxxxxxx xxx +xxxxxx. Xxxxxxx xx x xxxxxxx xxxx. + +Xxxx xx xxx xxxxxxxxx xxxxxxxxxxx xx xxxxxxxxx xxxx Xxxxxxx 13 xx xxx XXX +Xx Xxxxxxxxxx Xxxxxx xxx xxxx X'Xxxxxx Xxxxxx 5, 3xx xxxxxxx. + +Xxxx X3 xx X4 +- Xxxxxxxx xx xxxxxxx (xxxxxxxxxx xxxxxxx) +- Xxx xxxxxxxx xxxx xxxxxxxxx xxxxxxxxx xx xxxxxx xxxxxxxx xxx + xxxxxxxxxx xxxx. +- Xxxxxxxx xxxxxxxx xxxx xxxxxxxxx. +- #xxxxxx XxXxxxxxxxxxxxxXxxxxxx 4 (xxxxx xxxx xxxx xxxxxxx) +- XXXxxxxXxxx, XxxXxxxxXxxxxXxxx & XxxxxxxxxXxxxxXxxx xxxxxxx + xxxxxxxxxxxx. +- xxxx.xxxxxxxxxx, xxxx.xxx_xxxxxx xxxxx XxxXxxx xxx xxxxx xxxxxxxxxx +- xxxxx xxxxxxxx xxx xxxxxxxx_xx_xxxxxxxx xxxxxxxxx xxxxx +- xxxx.xxx_xxxxxx_xxxxxx xxxxxxxxxxxxx xxxxxxx. +- xxxx.xxxxxxxx_xxxxxxxx xxxxxxx xx xx xxxxxxxxxx xxxx xxxx xxxx Xxxxxxx +- xxxx.xxxxx_xxxxxx xxxxxxx xx xxxxxxxxxx xxxx xxxx xxxx Xxxxxxx +- xxxxxxxxxx.xxx_xxxxxx_xxxx xxxxx xx xxxxxxxxx xxxxxx +- xxxx.xxxxxxxxxx_xxxx xxxxxxxx xx xxxx xx xxxxxx xx xxxx.xxxxxxxxxx +- xxxxx.xxxx_xxxxxxxx_xxxxxxx xxxxx xx xxxxxxxxx xxxxxx +- xxxx.xxx_xxxxxx_xxxx xxxxxxxx xx xxxx xx xxxxxx xx xxxx.xxx_xxxxxx +- Xxxxxxx XxXxxxxXxxxxxxx() xxxx xxxxx xxxxxxxx xxxxxxxx. +- Xxxxx XxxxxxxxxXxxxxxxx. +- XxXxxxxxxxxXxxxxx() xxxxxxxx xxxxx xxxxx X4. + +Xxxx X4 xx X5: +- Xxxxxx xxxxxxxx xxxxXxxxxxxxxxx xxxxx. +- Xxxxxxxxx xxx xxx-xxxxxxx, xxx xxxxx xxxxx, xxxx xxxx xxxxxxxx +- xxxxxxxxxxxxx xxxxxxxx xxxxx. +- Xxx-xxxxxx xxxxxxxx xxxxxxxx. +- Xxxxxxx xxxxxxxxxxx xxxxxxxxx xxxxxxx. +- Xxxxxxxxxx xxxxxxxxx xxxxxxx xxxxxxxx xxx xxxxxxx xxxxx xxxxxx. +- Xxx xxxx xxxxxxxx xx XxXxxXxxxxxxxxx, XxXxXxxXxxxxxxxxx, + XxXxxxXxxxxxx, XxXxxxxxxXxxxxxxxxx, xxx XxXxxxxxxxxx xxxx xxxxxxx + xxxx Xxxxxxxx* xx xxx* +- Xxxx xxxxxxxxxxx xxxxxxxxxxxx (xxxx xx xxxxxxxxxx xxxx xxx xxxxxxx + "Xx Xxxxxxxxxxx Xxxxxxxxxxxx xx Xxxxxxx 5" xx Xxxx Xxxxx-Xxx xx "Xxx + X Xxxxxxxx", Xxxxx 3): + - XxxXxxxxxXxXxxxx() xxxxxxxxx xxxx XxxXxxxXxxxxxXxXxxxx() xx + xxxxx xxxxxx xxxxxx. Xxxxxxx xxxxxx xx xxx xxxxx xxxxxx xxx + xxxxxxxxx xx xxxxxxx xxxxxxxxx xxxxxxx. + - Xxxxx xx xxxxx xx Xxxxxxx xxx xxxxxxxxx + - Xxxxxxxx xxxxx xxxxxxxxxx xx xxx xxxx xxxxxx + - Xxxxxxxxxxx xxxxxxx xxxxxxxxxx xxx xxxxxxxxx xx xx xxxxx + xxxx xxxxxx, xxxxxxxxxxx xxxxxx xxxxxx xxx xxxxxx, xxxxx xx + xxxxxx xxxxxxxx + - Xxxxxxx xx Xxxxxxx xxx xxxxxx. + - Xxxxxx xxxxxxx xx XX'x xxxx xxxxxxxxxx xxxxxx + - Xxxxxx xx Xxxxxx xxxxxxxxxxx xxxx xxxx xxxxx xxx xxxxxx + - Xxxx xxx xxxxxx xxxxx xxx xxxxxx xxxx xxxxx xxxxx xx xxxxxxxxx + - Xxxxxx xxxxx xx xxxxxxxxx xx xxxxxxx xxx xxxxxxxxxxx + - Xxxx xxxxxxx xxxxxxx xxxxxxxx, xxxxx x 26% xxxxxxxxx xx + xxxxxx xxxxx. + +Xxxxxxxxx xxx xxxx X5: +---------------------- +XxXxxxxxxxXX() - xxxxxxxx XX xxxx xxxxxxxxxx xxxxxx +XxXxxXxxxxxXxxx() - xxx xxx xxxxxx xxxxx xx x xxxxx +XxXxxxxxXxxxxxxx() - xxxxxx xxxxxxxx xxxxxxxx xxx x xxxxxx +XxXxxXxxxxxxxXxxx() - xxxxxxxx xxxxxxxx xxxxxxxxx xxxxxx xx xxx xxxxxx + + +Xxxxxxxxx xxx xxxx X4: +---------------------- +XxXxxXxxXxxxxxXxxx() - xxxxxxxxx xx xxxx xxxxxx _xxxxx_ xxxxxx. +XxXxxXxxxxxxxxx() - xxxx xx xxxxxxxxxxxxxx xxxx. +XxXxxXxxxxxxXxxxxXxxx() - xxxxxxxxx xxxxx xxxxxxxxx xxxxx xxx xxxxxxxxx +XxXxxXxxXxxxxxxxXxxxxxxxx() - xxxxxxx xxxxxxx xxxxxxxxx +XxXxxXxxXxxxXxxxxxxxx() - xxxxxxxx x xxx xxxxx xxxxxxxxx +XxXxxxXxxxxxxxXxxx() - xxxxxxxx xxxxxxx x xxxxxxxx xxxx +XxXxxxXxxxxxxxx () - xxxxxx x xxx xxxxx xxxxxxxxx +XxXxxxxxxxXxxxxxxXxxxxXxx() - xxxxxxx x xxxxxx xxxxxxxx xxxxx +XxXxxxxxxxXxxxxxxXxxxxXxxXxxx() - xxxxxxx x xxxx xx xxxxxx xxxxxxxx xxxxxx +XxXxxxxxxXxxXxxxx() - xxxx xxx xxxx x xxxxxxxx xxxxxxxxx +XxXxxxxxXxxxxxx() - Xxxxxx xxx-xxxxx xxxxxxxxx +XxXxxxxxxXxXxxxxx() - Xxxxxx xxx xxxxxxx +XxXxxxxxxXxxxxxXxxxxxxxxxXxxxxxx() - xxxxx x xxxxxxx xxxxx xxxxxxxxxx +XxXxxxXxxx() - Xxxx x xxxx +XxXxxXxxxxxXxxxxx() - Xxxxxxxx xxxxxx & xxxxxxxx xxx xxxx xxxxxx +XxXxxXxxxxxxxxxxXxxxXxxXxxxx() - xxxxxx xxxx xxx xxxxx +XxXxxXxxxxxxxxxXxxxxxxxXxxx() - xxx xxxxxxxxxxx xxx x xxxxxx +XxXxxXxxxxxXxxxx() - xxxxxx xxxxxxx-xx-xxxxxx xxxxxxx xxxxx +XxXxxXxxxxXxxxxXxxx() - xxxx xxx xxxxx-xxxxx xxxx +XxXxxXxxxxxxxxXxxxxxx() - xxxxxxxx xxx XxxxxxxxxXxxxxxx xxxxx +XxXxxXxxxxxxxxXxxxxXxxxxxxxxxx() - xxxxxx xxx xxxxxxxxx xxxxx xxxxxxxxxxxxx +XxXxxXxxxxxxxxXxxxxxXxxxxxxxxxx() - xxxxxx xxx xxxxxxxxx xxxxx xxxxxxxxxxxxx +XxXxxxxxxxxxXxxxxxXxxxx() - xxxxxxxxxx x xxxxxx xxxxx xxxxxxxx +XxXxxxxxXxxxxXxxxxxx() - xxxxxxxx xxxxx xxxxxxx xxxxxx/xxxxx xxxxxx +XxXxxxxxXxxXxxxxXxxxxxx() - xxxxxxxx xxxxx xxxxxxx xxxxxxx xxxxxx xxxxx xxxx +XxXxXxxxxx() - xxxx xx xxxxxxxx xx Xxxxxx +XxXxXxxxXxx() - xxxx xx xxxxxxxx xx XxxxXxx +XxXxxxxxXxXxxXxxxXxxx() - xxxxxx xxxx xx xxxxxxxx +XxXxxxXxxxxxxxxXxxxxxxxx() - xxxxxxxx xxxx xxxxxx xxxxx xxxx +XxXxxxXxxxxxx - Xxxxxx xxx xxxxxxx xxxx x xxxxxx +XxXxxxXxxxx - Xxxxxx xxx xxxxxxx xx x xxxxxx +XxXxxxxxXx - xxxxx xxx xxxxxxxxx xxxxxxx +XxXxxXxxxxxxxxXxxxxxxxxxx() - xxxx xxxxxxxxx xxxx xxxxxxxx xxxxxxxxxxxxx +XxXxxxXxxxxxXxxxxx() - xxx x xxxxxx-xxxxxx xxxxx +XxXxxxxxxxXxxxXxxxxx() - xxxxxxxx xxxxxx xxxxxxxxx xxxxx x xxxxxxx xxxx +XxXxxxxxXxxxxxXxxx() - xxxxxx xxxxxxxx xxxxxx xxxxx xxxxx xxxxxx +XxXxxxxxxXxxxxxxx() - xxxx x xxxx +XxXxxxxxXxXxxxxx() - xxxxxx xxxxxx xx xxxxxx. +XxXxxXxxxxXxxxxXxxx() - xxx xxx xxxxx-xxxxx xxxx +XxXxxXXXxxxxxxxXxxxxxx() - xxx XX_XXXXXXXX_XXXXXXX xxx xxxxxx xxxxxxxxx +XxXxxxxxXxxxxx() - xxxxxx x xxxxxxx xxxxxx xxxx +XxXxxxxxXxx() - xxxxxx x xxxxxxx xxx xxxx +XxXxxxxxXxxxxxx() - xxxxxxx xx xxxxxx xxxxxxxx xxxx +XxXxxxxxXxxxxxx() - xxxxxxx xx xxxxxx xxxxxxx xxxx +XxXx*() - xxxxxx xxxxxxxxxx xx x xxxxx xx xxxxxxxxx +XxXxxxxxXxXxxxxx() - xxxxxx Xxxxxx xx xxxxxxx xxxxxx xxxxxxxx + + +Xxxxxxxxxx Xxxxxxxxxxx Xxxx +---------------------------------------------------------------------- +XxXxxXxxxxxx() XxXxxXxxXxxxxxx() X3 +XxXxxXxxxxxxxx() XxXxxXxxXxxxxxxxx() X3 +XxXxxXxxxx() XxXxxXxxXxxxx () X3 +XxXxxXxxxxxx() XxXxxXxxXxxxxxx() X3 +XxXxxXxxxXxxx() XxXxxXxxXxxxXxxx() X3 +XxXxxxxxx() XxXxxxxxxXxxXxxxx() X4 +XxXxxxxxXxxxxxxxxxxXxxxx XxXxxXxxxxxXxxxx() X3 +XxXxxxxxxXX() XxXxxxxxxXX() X3 +XxXxxxx() XxXxxXxxxx() X3 +XxXxxXxxxxXxxxxxxx() XxXxxXxxXxxxxXxxxxxxx X3 +XxXxxXxxxxXxxxxxxxXxxx() XxXxxXxxXxxxxXxxxxxxxXxxx X3 +XxXxxXxxxxxxxxXxxxxxx() XxXxxXxxXxxxxxxxxXxxxxxx X3 +XxXxxxxxxxxx() XxXxxXxxxxxxxxx() X3 +XxXxxxXxxx() XxXxxXxxxXxxx() X3 +XxxxXxxxxxx(xxxxxx) XxXxxxXxxxxxx(xxxxxx) X4 +XxxxXxxxx(xxxxxx) XxXxxxXxxxx(xxxxxx) X4 +XxXxxxXxxxx() XxXxxXxxxXxxxx() X3 +XxXxxxXxxxx() XxXxxXxxxXxxxx() X3 +XxXxxxxxx() XxXxxXxxxxxx() X3 +XxXxxXxxxxXxxxxxx() XxXxxXxxXxxxxXxxxxxx() X3 +XxXxxXxxxxXxxXxxxxxx XxXxxXxxXxxxxXxxXxxxxxx() X3 +XxXxxXxxxxxxxxXxxxxxx() XxXxxXxxXxxxxxxxxXxxxxxx() X3 +XxXxxXxxxxxxXxxxxxx() XxXxxXxxXxxxxxxXxxxxxx() X3 +XxXxxXxxxxxxXxxXxxxxxx() XxXxxXxxXxxxxxxXxxXxxxxxx() X3 +XxXxxxxxx() XxXxxXxxxxxx() X3 +XxXxxxxxxXxx() XxXxxXxxxxxxXxx() X3 + +---------------------------------------------------------------------- +Xxxxxxx: 20. Xxxxx xxx xxx xxxxxxxxx xxxxxx xxxx? +---------------------------------------------------------------------- + +Xxx xxxxxxxxx xx x xxxxxx xxx xxxxxx xx xxxx xxx xxxxxxxxx xxxxxx +(xxxx xxxxxxx xxxxxxxx xx xxxxxx xxxxxxxx): + + 1. Xxxx xxxxxx xx xxxxxxxx xxxx. + 2. Xxxxxxx xxxx xxxxxxxxx. + 3. Xxxx'x xxx xxxx xxxxxxxx xxxx + 4. Xxxx'x xxxxxxxx xxxx. + 5. Xxxx'x xxx xxxxxxxxxxx xxxxxxx xxxx. + 6. Xxxxxx xxxx xxx xxxxxxxxxxx xxxxxxx xxxx. + +Xxxx xxxx 2-6 xxx xxxx xxxx xxxx xx xxxxxxxxxxx xxxxxxx. Xxx xxxxxx +xx xxxxx 3-6 xx x xxxxxx xxxxxxxx xxxxxxxx xxxx xxx xxxxxxx xxxxxxx. + +Xxx xxx xxxx xxxxxxxx xxxx xxxxxxxx xxxxxxxxxxxxxx xxx xxx +xxxxxxxxxxxx xxxxxxxxx xx x xxxxxxxx xxxxxxxx. Xxxx xxxx xx xxxxxx +xxxxxxxxx xxxx xxx XXXXXXXXXXXX xxxxxxxxxxx xxxxxxxx xx xx xxxx xx xxx +xxx xxxx xxx xxxx $XXXX/.Xxxxxxxxx- xx xxxx. + +Xxx xxxx xxxxxxxx xxxx xx xxxxxx xxxxxxxx xxxx xxx XXXXXXXX_XXXXXXX +xxxxxxxx xx xxx xxxx xxxxxx xx xxx xxxxxxx xx xx xxxx xx xxx xxx xxxx +xxx xxxx $XXXX/.Xxxxxxxxx xx xxxx. Xxxxxxxxx, xxx xxxxxxx "xxxx" xx +xxxx xx xxx xxx XXXXXXXX_XXXXXXX xxxxxxxx. Xxxxxx xxxx xxxx xxxx +xxxxxx xx xxxx xxxxxxxxxx xxxxx xx xxxx xxxxxx xxxx xxxxxxxx xx xxx +xxxxxxx xxxx xxxxxxxx xxx xxxxxxxx. X xxxx xx xxxxxx 1-3XXxxx xx +xxxxxxxxxx. Xxxx xxxxxxxx xxx xxxxx xxxxxxx xx xxx XXXXXXXX_XXXXXXX +xxx xxxx xx xxx. + +X xxxx xxx xxxx xxxx xxx xxxxxxxxxxx xxxxxxx xxxxx xxxxxxxxxx +xxxxxxxxxxxxxx xxxxxxxx xx xxxx xxxxxxxxxxx. Xxx xxxxxxxxxx xxx xxxxx +xxxxxxxx xx xxx xxxx xxxx xx xxxxx. Xxxx xxx xxxx xxxx xxxx xxxxxxxxx +xxx xxxxxxx xxxxxxxxxxx xxxxxxxxx xxx xxx xxxx xxxxxx xxxxx xxxx xxxx +xx xxxxx. + +Xxx xxxxxx xxxx xxx xxxxxxxxxxx xxxxxxx xxxxx xxx xxxxxxxxx xxxxx xx +/xxx/xxx/X11/xxx-xxxxxxxx. Xx xxxx x xxxx xx xxx xxxxx xxxx xxx +xxxxxxxx xxxxxxxxx xxx xxxx. Xxx xxxxxxxxxx xxx xxxxx xxxxxxxx xx xxx +xxxx xxxx xx xxxxx. Xxxx xxx xxxx xxxx xxxx xxxxxxxxx xxx xxxxxxx +xxxxxxxxxxx xxxxxxxxx xxx xxx xxxx xxxxxx xxxxx xxxx xxxx xx xxxxx. + +[Xxxxxx xx Xxxxxx Xxxxx (xx@xxxxxx.xxx) xxx xxx xxxxxxxxx, 6/92] + +Xxx xxx xxx xxxxxxx xxxxxxxxxxx xxxxxxxxx xx xxxxxxx xxx xxxxxxxxx xxx +xxxxxx xxx xxxx Xx-xxxxx xxxxxxxx -- XXXXXXXXXXXXXXX, +XXXXXXXXXXXXXXXXXXX, xxx XXXXXXXXXXX. Xxxxx xxxxxxxxxxx xxxxxxxxx +xxxxxxx xxxxx Xx xxxxx xxx xxxxxxxxxxx-xxxxxxxx xxxxx xx xx +xxxxxxxxxxx xx xxxxxxxxxxxx. Xx xxxxx xx xxxx xxx xxx-xxxxxxxx xxxx +xxxx xxx xxxx xxxxxxx xx XXXXXXXXXXXXXXX xxx xxxxxxx xxxx xxx xxxx +xxxxxxx xx XXXXXXXXXXXXXXXXXXX. + +Xxx XXXXXXXXXXXXXXX xx xxxxxxxx xx xxxxxxxxx xx xxxx xxxxxx xx xxxx x +xxx xxxx xxx-xxxxxxxx xxxxx xxxxxx xx xxxxxxx xxxxxxxxx xxxxxxxxx +xxxxxxxxxxx. Xxxxxxx, xxx xxxxxxx, xxxx xxx xxx xxxxxxx Xxx'x Xxxx +Xxxxxxx, xxx xxx xxxx xxxx xxxx X4 X xxxxxxxxxxxx xxxxxxxxx xx +/xxx/xxx/X11/xxx-xxxxxxxx. Xxx xxxxx xxx x xxxxx xxxx xxxx xxx +XXXXXXXXXXXXXXX, xxx xx xxxxx xxxxx Xx xx xxxx xx xxx-xxxxxxxx xxxxx +xx xxxx /xxx/xxx/X11 xxx /xxx/xxxxxxx/xxx (xx xxxxxxxx xxxx +XXXXXXXXXXX xx xxxxxxx): + + xxxxxx XXXXXXXXXXXXXXX /xxx/xxx/X11/%X/%X:$XXXXXXXXXXX/xxx/%X/%X + +Xxx xxxxx xx xxxx xxxxxxxxxxx xxxxxxxx xx x xxxxx-xxxxxxxxx xxxx xx +xxxxxxxxx. Xxx xxxxxxxxx xxxxxxx xxxxxxxxxxx xxxxxxxxxx xx xxxxxxx +(xxx XxXxxxxxxXxxxxxxx()): + + %X Xxx xxxxx xx xxx xxxxxxxx xxxxxxxxx, xx xxx + xxxxxxxxxxx'x xxxxx xxxx. + %X Xxx xxxxx xx xxx xxxx "xxxx". Xx xxxx xxxx, xxx + xxxxxxx xxxxxx "xxx-xxxxxxxx" + %X xxxxxxxxxxxxx xxxxxxxx (X5 xxxx) + %X Xxxxxx. Xxxx xxx xxx-xxxxxxxx. + %X Xxxxxxxx, xxxxxx, xxx xxxxxxx (x.x. "xx_XX.XXX") + %x Xxxxxxxx xxxx xx %X (x.x. "xx") + %x Xxx xxxxxxxxx xxxx xx xxx xxxxxxx'x xxxxxxxx xxxxxx + %x Xxx xxxxxxx xxxx xx xxx xxxxxxx'x xxxxxxxx xxxxxx + +Xxx'x xxxx xxxxx xxx xxxxxxx. Xxxxxxx xxx xxxxxxxxxxx'x xxxxx xxxx xx +"Xxxxxx". Xxxx, xxxxxxx Xxxx Xxxxxxx xx xxxxxxxxx xx /xxx/xxxxxxx. +(Xxxxxx xxx xxxxxxx xxxxx xxxxxx-xxxxxxxx xxxxxx.) + + /xxx/xxx/X11/%X/%X xxxxx /xxx/xxx/X11/xxx-xxxxxxxx/Xxxxxx + $XXXXXXXXXXX/xxx/%X/%X xxxxx /xxx/xxxxxxx/xxx/xxx-xxxxxxxx/Xxxxxx + +Xx xxx xxxxxxxxxxx xxxxxxxxxxx, Xx xxxxx xx xxxx xxxx xx xxx xxxxx +xxx-xxxxxxxx xxxxx, xx xxx xxxxx xxxxx. Xx xxxx xx xx xxxxx xxx, xx +xxxxx xx xxx xxxx xx, xxx xxxxx xxxxxxx xxx xxxxxx. Xxx xxxxxx xx +xxxx xxxx xx xx xxxxxx xxxxx xx /xxx/xxx/X11, xxxx xx /xxx/xxxxxxx. + +Xxx'x xxxxxxxx xxxxxxx xxxxxxx. Xxxx xxxx, xxx'x xxx +XXXXXXXXXXXXXXXXXXX xx xx xxxxx xxx xxx xxxx Xxxxxx.xx xx xxx xxxxxxx +xxxxxxx xxxxxxxxx, xxxx xxx Xxxxxx xx xxx xxxxxxxxx ~/xxx-xxxxxxxx. + + xxxxxx XXXXXXXXXXXXXXXXXXX ./%X.xx:$XXXX/xxx-xxxxxxxx/%X + +Xxx xxxxx xxxx xx xxx xxxx xxxxxxx xx ./Xxxxxx.xx. Xxx xxxxxx xxxxxxx +xx $XXXX/xxx-xxxxxxxx/Xxxxxx. Xxxx xx x xxxxxxxxxx xxxxxxx xxx +xxxxxxxxx xxxxxxx xx xxxxxxx xxx Xxxxx xxxxxxxxxx xx xxxxxx xxx +xxx-xxxxxxxx xxxx Xxxxxx.xx xx xxx xxxxxxxxxxx'x xxxxxx xxxxxxxxx, xx +xxx xxx xxx xxx xxxxxxxxxxx xxxx xxx xxxxxxxxx xx xxxxx xxx xxx +xxxxxxx xxx xxxxx xxxx xxx xxxxxxxxx xxxxxx xxxxxxxx. + +XXXX: xxxx xxxxxxx xxx xxx-xxxxxxx xxxxx xxxx XXXXXXXXXXXXXXXXXXX, + xxx xxxx xxxxxxx xxxxxx, xxxxxxx xxx xxxx xxx xxxx xxxxxx xx + xxxxxxx xx %X xxx %X xxx xxxxxxx. + +Xxxx X5, xxxxx'x xxxxxxx xxxxx. Xxx xxx xxxxxxx x xxxxxxxxxxxxx +xxxxxxxx xxxxx. Xxx xxxxxxx, xxx xxxxx xxx xxx "xxxxxx" xxxxxxxxxxx +xxxx xxxx: + + xxxxxx -xxx "*xxxxxxxxxxxxx: -xxxxx" + +Xx xxx xx xxxx xxxxxxxx xxxxxxxxxxxxxx xxx xxx xxxxx +"/xxx/xxx/X11/xxx-xxxxxxxx/%X%X" xxxx xxx xxxxxxxx xxxxxxxx xxxxx xx +"/xxx/xxx/X11/xxx-xxxxxxxx/Xxxxxx-xxxxx" xxxxxxx xxx %X xxxxxxxxxxxx +xxxxxxxxx xxxxx xx xxx xxxxx xx xxx xxxxxxxxxxxxx xxxxxxxx. + +Xxx xxxxxxx XXXXXXXXXXXXXXX, xxxxxxxx xxxx Xx, xx: + + /xxx/xxx/X11/%X/%X/%X%X:\ (X5) + /xxx/xxx/X11/%x/%X/%X%X:\ (X5) + /xxx/xxx/X11/%X/%X%X:\ (X5) + /xxx/xxx/X11/%X/%X/%X:\ + /xxx/xxx/X11/%x/%X/%X:\ + /xxx/xxx/X11/%X/%X + +(Xxxx: xxxx xxxxx xxxxxxx /xxx/xxx/X11 xxxx x XxxxxxxXxxx xx xxxx +xxxxx xx xxxxxxx xxxxxxxx.) + +Xxx xxxxxxx XXXXXXXXXXXXXXXXXXX, xxxx xxxxxxxx xxxx Xx, xx + + /%X/%X%X:\ (X5) + /%x/%X%X:\ (X5) + /%X%X:\ (X5) + /%X/%X:\ + /%x/%X:\ + /%X: + + xx xxxxxx xxx xxxxx xx XXXXXXXXXXX xx xxx xxxx'x xxxx xxxxxxxxx +xx XXXXXXXXXXX xx xxx xxx. Xx xxx xxx XXXXXXXXXXXXXXXXXXX xx xxxx +xxxxx xxxxx xxxx xxx xxxxxxx, Xx xxxxxxx XXXXXXXXXXX xxxxxxxxxx. + +Xxxxxx xxxx xxx xxxxx xxx xxxxx xxx xx xxxxxx xxxx xxxxxxxxxxx xxxx +xxxx xxx-xxxxxxxx xxxx xx xxxx xxxxxxx xxxxxxx xxxxxxxxx xx xx xxx +XXXXXXXXXXX xx ".", x xxxxxx xxx. Xx X3, xxx xxxx xxxxxxxxx xxxxxx +xxxxxxxxxxx; xxx X3 xxxxxxxxxxxx, xxxx xxxxxx xxx xxxxx XXXXXXXXXXX +xxxxx xx "./", x xxx xxxxxxxx xx x xxxxx. + + +---------------------------------------------------------------------- +Xxxxxxx: 21. Xxxx xxxxx xxx xxxxxxxxx xxxxxxxx xx? +---------------------------------------------------------------------- +(Xxxxxxxx xx Xxxxx Xxxxxxxx, xxxxxxxx@x.xxx; 5/10/92) + +Xxx Xxxxxxxxxx xxxxxxx xx xxx xxxxxxxxx xx xxxxx. Xxxx xx xxxxxxx +xxxx xxx xxxxxx xxxxxx xxx xxx xxxxxxxxxxx xxxxxx xxxx xxx xxxxxxx xx +xxxxxx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx xxxx. Xxxxxxx xxx +xxxxxxxxx xxxxx xxxx xxx xxxxx xx xxxxx xxx xx xxx Xxxxxxxxxx xxxxxx +xxxxxxxxx xxx xxxxx xx xxxxxxxxx. + +Xxx xxxxxxxxxxx xxxxxxxxxx xxxxxx xxxx xx xxx xxxxxx xxxxxx; xxx +xxxxxx xxxxxx xx xxx xxxxxxxx xx xxxxxxxx xxxx xxx xxxxxx xxxx xxx xxx +xxxxxx xxxxxxxxx xxxx xxx xxxx xx xxxx xxxxxx xxxx xxxx xxxx; +xxxxxxxxx xxx xxxxxxxxxxxxx xxxxxxxxx xx x xxxxxxxx xxxxxx xx +xxxxxxxxxxx xx xxx xxxxxxxxxxxxx xxxxxxxxx xx xxxxx xxxxxxxxx xx xxx +xxxx. + +Xxxx xxxxxx xxx Xx xxxxxxxx xx xxx xxxxxxxxxx xx XxXxxXxxxxxxx +xxxx: + + "xxxxxxxx_xxxx: Xxxxxxxxx xxx xxxxxxxx xxxx xx xxxxx xxx + xxxxxxxxx xx xx xx xxxxxxxx." + +xxx xxx xxx xxxxx xxxx xxx xxxx "xxxxxxxx" xxxx xxx xxxxxxxx xxxxxxxx +xxx xxxxxx xx xxx xxxx xxxxx xx xxxx xxxx xxxx xxxxx xx xxx xxxxxxxx +xxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 22. Xxx xx X xxxx xx x xxxxxx xx xxxxxxx? +---------------------------------------------------------------------- +(Xxxxxxxx xx Xxxxx Xxxxxxxx, xxxxxxxx@x.xxx; 5/14/92) + +> X xx xxxxxxxx x xxxxxx xxxxx xx xxxx xx xx xx xxxxxxx. X xxx xxx xxxxxxx +> xxxxxxxx xxxxx xx Xxxx xxx xx xx xxxxxx xx xxxxxxxxxx xxxxxxxx, xxx Xxxx +> xxxxxxx xxxx xxxx XXXXX. Xxxxxxx, xx xx xxxxxx xx xxxxxxxxx, xxx xxxx +> xxxxx xxx xx XXXX. + +Xxxxx, xxxxxxxxxx xx xxxxxxxxxxx xxxxxxxxx. Xxxx xxxxxxxxxxxx x "xxxxxxxxxx" +xx xxx X xxxxxxxx, xxx xxx Xxxx xxxxxx xx xxxxxxxxxx xxx xxxxxxxxxxxx xx xxx +xxxxxxxx. (Xxx "xxxxxxxxxx" xx xxxx xxx xxxxxxxxxxx xx xxxxxxxxx xx xxx xxx, +xx xxxx xxxx xx xxxxxxxxxxxx xxx.) Xxx Xx xxxxxxxxxxxxx xx xxxxxxxx, xx +xxx xxxxxx xxx xxxxx xxxxxxxxxx xx xxxxxxx 7.10.2, xx xxxx xxxx xxxxxxx +xxxxxxxxx. Xxx xxxxxxx xxxxx xxxx xxx xxxxxx xx xxxxxxxx xx xxxxxxxxxxxxx. + +X XxxxxxxxxxXxxxxx xxxxx xxxx xxx xx xxxxxxxx xxxx xxx xxxxxx xxxx xxxx +xxxxxxxx xx xxxxxxxxxx, xxxx xx, xxxx xxx xxxxxx xx xx xxxxxxxx xx xxxxxxxx; +xxxx xx, xxxx xxxxxxxxxxxxx xxxxxx. Xxxx xx xxx xxxxxxxx xxxxxxxxxx. +Xxxxxxxxxx xxxxx xxx xxxxxxxx xxxxx xxxx xxxxxxxx xxxxxxxx xx xxx X xxxxxxxx; +xxx xxx xxxxxxxx xx xxxx Xxxx xxx X xxxxxxxx xxxxxxxxx xxxxxx. + +> Xx xxxx x xxxxxxx xxxx "xxx" xx xx xxxxx xxxxxxxxx +> xxxx xxxxx xxxxx xx xx xxxx? + +Xxx'xx xxx xxxx xxxx xxx xxxxxx xxxxxxx, xxxx xx xxxxxx xxxxxxx. + +> Xx xxx xxxxxxx xx "xxx", xxxx xx xxx xxxxxxx +> xxx xx xxxxxxxxx xx x xxxxxx xx xxxxxxxxx? + +Xx xx xxxxxxxxxxx xxxxxx, xxxx xxxxx xxxx x xxxxxx Xxxxxxx xx xx xxxxxx +xxxxxxx xxxx xxxxxxxxxxxx xxx XxxXxxxxx xxx XxxxxXxxxxx xx xxx Xxxxx xxxxxx +xxxxx xxxxxxxx xxxx xxxxxx xxxxxx. Xx xxx xxxxxx xxxxxx xxxxxx, xxx xxx +xxx_xxxxx xxxxx xxxxxxxx xx x xxxx xx XXxxXxxxxxXxxxxxxxxx. Xxxxx xxx +xxxxxxxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 23. Xxx xx X xxxxxxxx x xxxxxx xx Xx, x.x. XxXxxxxxxxXxxxxx()? +---------------------------------------------------------------------- + +Xxx xxx'x. + +---------------------------------------------------------------------- +Xxxxxxx: 24. Xxx xxx XxXxxxxx, XxXxxx, xxx? +---------------------------------------------------------------------- + +Xxxxxxxxxxxxx, xxxx xxxx xxxx xxxxx xxxxxx(), xxxxxxx() xx xxxxxx() +xxxxx xx xxxxxx xxx xxxxxxxxxxx xx xxxxxxxxx XXXX. Xx xxxx xx xx +xxxxxxx xxxxxxxxx xxxx: + + xxx = (xxxx *) xxxxxx (xxxxxx (xxxx)) + xx (!xxx) + { + xxxxxx ("xxxxxx xx xxxxx()"); + xxxx (1) + } +Xx xxxxxx xxxx xxxxxx xxxx xxx Xxxxxxxxxx xxxxxx xxx xxxxxxxxx +XxXxxxxx(), XxXxxxxx(), XxXxx(), XxXxxXxxxxx() xxx XxXxxxxxx() xxxxx +xxx xxx xxx xxxxxxxx X xxxxxxxx xxxxxxxxx xxxxxx(), xxxxxx() xxx +xxxxxxx() xxx xxxxxxx XxXxxxxXxx() xx x XXXX xxxxx xx xxxxxxxx. Xx +xxxxx xxxxxxxx xxx xxx xxxxxxxx xx xxxxxx xx xxxx xxxxxxxxxxx xxxxx. + +Xx xxxxxxxx, xx XxXxxxxxx() xx xxxxxx xxxx x XXXX xxxxxxx, xx xxxx +XxXxxxxx() xx xxx xxx xxxxxxx xxxxx. Xxxx xxxxxx xxxx xxxx: + + xx (!xxx) + xxx = (xxxx *) xxxxxx (xxxxxx (xxxx)); + xxxx + xxx = (xxxx *) xxxxxxx (xxx, xxxxxx (xxxx) * (xxxxx + 1)); + ++xxxxx; + +xx xx xxxxxxx xx: + + xxx = XxXxxxxxx (xxx, xxxxxx (xxx) * ++xxxxx); + +Xxxx, XxXxxx() xxxxxxx x XXXX xxxxxxx xx xx xxxxxxxx. Xxxxxxxxx, X'xx +xxxxx xxx Xx xxxxxxxxx xxxxxxxxxx xx xxx. Xxxxxxx, xxxxxxx X'x +xxxxxxxxxx xxxxxxxx xxxxxxxxxxx xxxxx X xxx xxx xxxxxxxx xxxxxxxxx xx +X xxx xxxxx xxxxxxx xxxx xxx xxxxxx xxxxxx xxxxxx. + +XxXxx() xxx XxXxxXxxxxx() xxx xxxxxxxxxx xxxxxx xxx xxxxxxxxxx x +xxxxxxxxx xx xxxxxxx x xxxxxx: + + xxxxxx xxx *xxxxx; + xxxx *xxx; + xxxx *xxx = "xxxxxx"; + + xxxxx = XxXxx (xxxxxx xxx); /* xxxxx xxxx xx xxxx xxxxxxx */ + xxx = XxXxxXxxxxx (xxx); + +X xxxxxx xxxxxxxxxxxxxx xx xxx Xxxxxxxxxx xxxxxxxxx xxxxxx xxxxx xx +xxxxxxxxxxxxxx xx xxxxxxx xxxxxxxxx xxxx xxx xxx xxxxxxxxxxx xxxx +xxxxxx() xxx xxxx(). X.x. xxxx xxxx xx: + + xxxx *xxx; + + xxx = XxXxxxxx (100); + /* ... */ + xxxx (xxx); + +xxx xxx xxxx. Xxxxxxxxxx, X'x xxxx xxx xxxxxxxxxxxxxx xxxx xxx xxxx +xxxxxx xxx xxxxxxxx xx xxx xxxxxx. + +X xxxxxx xxxxx xxx Xxxxx xxxxxxxxxxx xx xx xxx XxXxxx() xx x xxxxxx +xxxx xxxx xxxxxx xxxxxx xx xxxxx XxXxxxxxXxxx(). + +---------------------------------------------------------------------- +Xxxxxxx: 25. Xxx xx xxxxx xx Xx xxxxxxxxxxx? +---------------------------------------------------------------------- +Xxxxx, X'x xxxxxxxx xxxxxxx "xxxxxx" xxxx Xxxx Xxxxxxxx. Xxxx xx x +xxxxx xxxxxxx xxx xxxxxxx xxxxxx xxxxxxxx xx Xxx'x. Xx'x x xxx xxxxxx +xx $2750 xxx X'x xxxxx xxxxxxxx xx. Xxxxxx xxx xxxxxxxxx xxxxx +(xxxxxxx xxxxxxx@xxxx.xxx xxx xxxx xxxx). + + Xxxxxx xxxxxxx xxxxxxxxxx xxxxxxxx xxxxxxxxxxxx xxxxxxxx xxxx + xxx xxxxxx xxxx xxxxxxxx xx xxxxxxxx xxxxxxxxx. Xxxxx + xxxxxxxxxxxx xxxxx xxxxx xxxxxx xxxx xxx xxxxx xxxxxxxxx xx + xxx xxxxxxx xxxxx xxxx xxx xxxxxx xxxxxxx xxxxx xx xxxxxx + xxxxxx, xxxx xx xxxxxxx xxxxxxxxxxx xxxxxx, xxxxxxx xxxx + xxxxxx'x xxxxxx, xx xxxxxxx xx xxxxx xxxxxx. Xxxxxx xxxxxxx + xxxxxxxx xxxxx xxxx xxx xx xxx xxxx xx x xxxxxxx, xxxxxxxxx + xxxxx xxxxx xxx xxxxxx xxxxxx-xxxx xxxxxxxxx, xxx xxxxxxxx + xxxxxx xxxx xxxxxxxxxx. Xx xxxxxxxx, Xxxxxx xxxxxx xxxxxx + xxxxx xxx xxxxxxxxxx xxxxxxxxxx xxxxxx xxxxx xxxxx x xxxxx + xxxxxxxx xx xxxxxxx xxxxxxxxxx xxxxxxxxxx. Xxxxxx'x xxxxxx + xxxxxxxxxxxxx xxxxxx xxxxxx xxxxxxxx xxxxx xxx xxxxxx xxxxxxx + xxxx xxxxxxxxx xx x xxxxxx xx xxx xx xxxx. + +Xx xxxxxxxxxxx xxxxxxx xxxx xxx'x xx xxxxxx ($395 xxx x Xxx), xxxx xx +xxxx Xxxx'x xxx xxx xxxxxx xxxxxxx xxxxxxxx xx "Xxx XXXXXXXX Xxxxxxxxx +Xxxxxxxxxxx". Xxxx xxxxxxxx xxxxxx() xxx xxxxxxx xxxxx X xxxxxxx +xxxxxxxxx xx xxx xxxxxxxxxx xxxxxx. (xxxxxxx xxxxxxx@xxxxxxx.xxx.xxx +xxx xxxx xxxx) + +Xxxx, xx xxx xxx xxxxxxx xxx xxxx xx Xxxx xxxxx, xxx'xx xxxx xx xxx xx +xxxxxxxxxxx xxxx, xxxxxx xxxxxxxxxxxx xxxx xxx "-xxxx" xxxxxxx xxxx +xxxxxxxx xx xx xxxxxxx xxx xxxxxxxx Xxxxxx xx 1 xxxx xxxx xxxxxxxx. Xxxx +xxx x xxxxx xxxxx xx xxxx(). Xxxx xxxx xxx xxx xxxxx xxxx xx xxx +xxxxxxxx Xxxx xxxxxxxx xxxxx xxxxxx. Xx xxx xxx'x xxx xx xxxxxxxxxxx +xxxx, xxxx xxx xxxxxx xxxxx xxx xxxx xxxxxxx xxx xxxxxx xx xxxxx xx +Xxxx xxxxxxxxxx xxxxx xxx Xxxx xxxxx xxx xxxxxxxx xxx xxxxxxx xxxx xxx +xxxxxx xxx xxxxxxxxxxxx. + +Xxxx, xx xxx xxx xxxxxx xxxxxxx xxxx xxxxxx xxxxxx, xxx xxx xxx xxx +xxxxxxxxxxxx xxxxxxxx "xxXxxxxxxxXxxxxxx" xx xxx xxxxx xxxxxxxx +"XxXxxxx" xx xxxxx xxx xxxxxx xxxx xx xx xxxxxxxxxx xxxx xxxx xxxxxx. +Xxx xxxxxxx: + + xxxxxxx% xxxxx -xxx '*XxXxxxx:xxxx' & + xxxxxxx% xxxxxxxx -xxxx + + +xxxx xxxx xxx xxxxxx xxxxxxxxxxx xxx xxx xxxxxx xxxx xxx xxxxx xx xxxx +xxxxxx xx xxxxxxxx. Xxxx xxx xxxx xxx xxxxxxxx xxx xxxxxxxx xxx xxxx +xx xxxxxx xxxxxxx. + +Xxxx, xx xxx xxx xxxxxx xxxxxxx xxxx xxxxxxxx xxxxxxxx xx xxx xxxx xx +xxxx xxx xxx x xxxxxx xxxxxxx xx'x xxxxxxxx, xxx xxx xxx +xxx.x.xxx:xxxxxxx/xxxXxXxx.xxx.X. Xxxx xxxx xx x xxxxxx +xxxxxxx xxx xxxxxxxx xxx x xxxxxxxx xxxxxxx xxx xxxxxx xxx xxxxxxxxx +xx xxxx. Xx'x x xxxx xxxxxx xxxx. + +Xxx xxxx xxxxxxxxxxx xxxxxxx xx xxxxxxxxx x xxxxxxxx xxxxx xxx +xxxxxxxxxxx xx xxxxxxxxx x xxxx xx xxx xxxxxxxx xx xxxxx (xxxx xx xxxx +x xxxxxxxx xxxx). Xxx xxxxxx xxxxxxxxxxx xxxxx xx xxx xxx'xx xxxx xx +xx xx xxxxxxx xxxxxxx xxx xxxx xxx xxxxxxxx xxxxxxxx. Xxx xxxxxx +xxxxx xx xxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxxxx xxx xxxx xx xxx xxxx +xxx xxxx xxxxxx xx xxx xxxxxxxx xxx xxx xxxxxxxxxxx xx xxx xxxxxxx +xxxxxxx xxxxxxx xxx xxxxxxxx xx xxxxxxx xxx xxxx xxxxxxxx. +Xxxxxxxxxxxxx xxx xxx'x xxxx xxxx xxxxxxx xxx xxx xxxxx xx xxxxx xx +xxxx xxxxxxxxxxx xxxxx xx xxxxxxx. + +Xxx xxxx xxx xx xxxxx xxxx xxxx xx xxxxxxx xx xxxx xxx xxxxxxxx xx +xxxx xxxx, xxxxxxx xxx xxxxxxx xxxxx x xxxxxxxx (xx xxxxx xxxxxxxxxxx) +xx xxx xxxxxxx, xxx xxxxxxx xxx xxxxxxxxxxx xx xxx xxxxx, xxxxxxxx +xxxxx x xxxxxxx xxxxxxxx xxxx xxxx: + + xxxxxxxxxxxx% xxxxx +xxxxxxxxxxx + xxxxxxxxxxx% xxxxxx XXXXXXX xxxxxxxxxxxx:0; + xxxxxxxxxxx% xxx xxxxxxxxxxx # Xxxx xxxxxxxx xxxxxxxx. + xx xxxx: + xxxxxxxxxxxx% xxxxx +xxxxxxxxxxx + xxxxxxxxxxx% xxx xxxxxxxxxxx + (xxx) xxx xxxxxxxxxxx XXXXXXX xxxxxxxxxxxx:0 + (xxx) xxx ... + +X xxxxxxx XxxxXxxxxx, x X xxxxxxxxxxx/xxxxxxxxx xxxxxxxx xxx x xxxxxx +xx xxxxxxx xxxx xxxx xx xxxxxxxxxxx xxxxxxx xxx Xxxx xxxxxxxxx xx +xxxxxxx xxx xxxxx xxxxxx xxxxxxxxxxx. + +Xxxxxxxxx xxxxxx xxxxxxxx xxxxxxxx xxxxxx xxxx xxxxxxxxx xxxxxx xxx +xxxxxxxxx xx xxx xxxxxxx xxxx. Xxx xxx xx x xxxx xxx xxxxxxx xxxxxxx +xxx xxxxxxxxx xx x xxxxxxxxxx xxxxxx xxx xxx xxxx xxx xxxxxxx +xxxxxxxxxxxxx xxx x xxxxxx xxxxx. Xxxxxxxxx xxx xx xxxxxxxxxxx +xxxxxxxxxxx xxx xxxxxx xxxxx xxxxxxxxxx xxxx xxx xxxxxxxx xxxx x xxxxx +xxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 26. Xxx xxx'x XxXxxXxxxx(), XxXxxXxxxxxx() xxx XxXxxXxxxXxxx() xxxx? +---------------------------------------------------------------------- + X xxxx xxx x xxxxxxxx xxxxxxx xxxx xxx xxxxx xxxxxxxx XxXxxXxxxx, + XxXxxXxxxXxx xxx XxXxxXxxxXxxx. Xxx xxxxxxx X xxxx xx xxxx xxxx + X xxx xxxx xx xx xxxxxxxxxxx xxxx xxxx xxx xx xx xxxxxxxxx xxxxxxxx. + X xxxx xxxx x xxxxx xxxxxx xxxxxxxxxxx xxxxx xxxxxxxxxx xxxxx + xxxxxxx, xxx xx xx "xxxx" xxxxxxxxxxx xxxxxxx xxxxxxx. + +Xxx xxxxxxxxxxxx xx X3 xx xxx XxXxx*() xxxxxxxxx xxxxxxxxx xxxxx +xxxxxxxx (xxx X19 xxx xxxxx xxxxxxx xx X3, X4, xxx X5). Xxxx xxxxxxx xx +xxxx xxx x xxxxxxx xxxxxxxxxxx xxxxxxx xxxxxxxxx xxxx xxx xxx xxx xxx +xxxx xxxxxxx. Xxxxx xxxxxx xxx xxxxxxxx xxx xxxxxxxxxxx xx x xxx +xxxxxxxxxxx xxxxxxx xxxxx xxx xxx xxx xxxxx xxx xxxxxxxxxxx xxxxxxxx, +xxx xxx'x xxx xxxxx xxxxxx. + +Xxx xxxxxxx: + + ... + xxx = 0; + xxxxxxxx = XxXxxXxxxxxxxxx(&xxx, xxxxx, + Xxxx, XxXxxxxx (Xxxx), + &xxxx, xxxx, + Xxxxxxxx, xxxx, xxx); + + XxXxxXxxxXxx (...) + XxXxxXxxxXxxx (...) + + XxXxxXxxxXxxx (xxx) + +xxxxx xxxxx xxxxxx xxx xxxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 27. Xxxx xx xxx xxx xxx X xxxxxxxxx xxxx xxx xxxx? +---------------------------------------------------------------------- +(Xxxxxxxx xx Xxxxx Xxxxxxxx, xxxxxx@xxxxxx.xxx; 19 Xxx 93) + +Xxxx-x-xxxx xx x xxxxxxxx xxx xxxxxx xxxx xxxxxxx xxxxxxx, xx xx +``xxxxxxxxx'' xxxxxxx. + +Xxxxx Xxxxxxx 1.2 xxxxxxxx xxxx-x-xxxx xxxxxxxxxxxx, XxxxXxxx xxx +xxxxxxxxx x-x-x xxx xxxxx. Xxx xxx xxxxxxxxx xxx xxx xxxxxxxxxx xxxx +xxxx xxxxx, xxx xx xxx xx X xxxx, xxxx xxx xxx xxxxxxxxx. + +X xxxxx x xxxxxxx xxxxxx XXX xxxxx xx xxxxxxxx xx xx x xxxxxxxx xxxxxx +xxxxxxxx xxx xxxxx xxxx 'x xxxx xxxxxxxxxx xxxxxxx xxxxxxx. Xx +xxxxxxxxx xxx xx xxxxxxx x xxxx xxxxx xxxxx xxxx xx xxxx xxx xxxxxx xx +xxxxxxx x "xxxxxxxx" xxxx-x-xxxx xxxxxxxx xx xxx xxxxxxxx xxxx xxxxxxx +xxx xxxxxxxxxx xx xxxx, xxxxxxxxxx xx xxxx xxxxxx xxx xx xxxx (xx xxxx +xx xx xx xxxxx xx Xx). + +Xxx xxxxxxxxxxxxxx xx xxxxx xxxx xx xxxxxxxxxxxxx xx xxx XXXXX +xxxxxxxxxxx, xxx xxxx xxxxxxx xxxx xxx xxxx. + +X xxxx xxxxx xxxx xxxxxx xx xxxxxx xxxxx XXX xxx xxxx xx xxx xxxx xxxx +xx xxxxx x xxxxx xxx xxxxxx xxxx Xxxxx 1.2 xxxxx. Xxxx, xxxxx xxxx xx +xx xxxx xxx xxxxx xxxx xx xx xxxx xxx xxx xxxxxxxxxxx xx xxx Xxxxx +xxxxxx. + +Xxx xxxxxx XXX (xxx xxxx xxxxx xxxxx) xx xxxxxxxxx xxx xxx xxxx +xxxxxx.xxx, xx /xxx/xxxxxx. X (xxxxxxxx xxxxx) xxxxxxx xx xxxx +xxxxxxxxx xx xxx.x.xxx xx /xxxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 28. Xxx xxx X xxx x X++ xxxxxx xxxxxxxx xx x xxxxxx xxxxxxxx? +---------------------------------------------------------------------- +(Xxxxxxxx xx xxxxx@xxxxxxx.xxx (Xxxx Xxxxx), 7 Xxx 1993) + +Xxx xxx xxx xxx x xxxxxxx X++ xxxxxx xxxxxxxx xx x xxxxxxxx xx x +xxxxxx, xxxxxxx xxx xxxxxxxx xxxxxxxx xxx'x xx xxxxxxx xxxx xxx +xxxxxx xxxxxx xxxxxxx "xxxx" xxxxx xxx xxxxxxx X++ xxxxxx xxxxxxxxx +xxxxxxx. Xxxxxxx, xxxxx xx x xxx xx xxx xxxxxx xxxx xxxxxxxxxx: +"xxxxxx" xxxxxx xxxxxxxxx. + +X xxxxxx xxxxxx xxxxxxxx xx x xxxxxxxx xx xxxxx xxx xxxxx xxxxxxx +xxx xxxxxx xxxxx xxxxx, xxx xxxxx xx xxx xx xxxx xxxxxxxx xxxxxxxxxx +xxxx x xxxxxxxx xxxxxxxx xx xx xxxxxx, xxx xx xx XXX xxxxxx xxxxx xxx +xxxxxxx xxxxxx xxxxxxxx xxxxxxx xxxxxx. Xx xxxxxxxxxx, xxxxx xx xx +"xxxx" xxxxxxx xxxxxxxx xx xxx xxxxxxxx. Xxxx xxxxx xxxx x "xxxxxx" +xxxxxx xxxxxxxx xx xxxxxx x xxx xxxx x "xxxxxx" xxxxxxxx xxxxxx xxxx +xxx xxxx xx xxxxxx xxx xxxxx xx xxx xxxxx (xx xxxxx xxxxx, xxx xxxx +xx xxxxxxxx xxxx xxx xxxxx xxxx). + +Xx xxxxxxxxxxx xxxx, xxx'x xxxxxx x xxxxxxx xxxxx "Xxxx" xxxxx xxxxxxxx +x "xxxxxx" xxxxxx, xxx x xxxxxx xxxxxxxx "xxxxxx_XX" xxxxx xx +xxxxxxxxx xx xxx "XxXxxxxxxXxxxxxxx" xx xxx xxxxxx. Xxx xxxxx +xxxxxxxxxxx xxxxx xxxx xxxx xxxxxxxxx xxxx xxxx: + + xxxxx Xxxx + { + xxxxxxx: + Xxxxxx xxxxxx; + xxxxxx xxxx xxxxxx_XX(Xxxxxx, XxXxxxxxx, XxXxxxxxx); + + xxxxxx: + Xxxx(Xxxxxx xxxxxx); // Xxxxxxxxxxx + }; + +Xxx xxx xxxxxxx xxxxx, X xxx xxxxxxx xxx xxxxxxxxxxx xxx xxxxxxxx +xxxxxxxxx xxxx xxxx: + + Xxxx::Xxxx (Xxxxxx xxxxxx) + { + xxxxxx = XxXxXxxxxxXxxxxx ("xxxx_xxxxxx", xxXxxxXxxxxxXxxxxxXxxxx, + xxxxxx, XXXX); + + // Xxxxxxxxx xx xxxx xxxxxxxx, xxx xxx xx xxxx xx xxxxxxx + // "&Xxxx::xxxxxx_XX" xxxxxx xx "xxxxxx_XX" xx xxx + // xxxxxxxxx xxxxxxxxx: + XxXxxXxxxxxxx (xxxxxx, XxXxxxxxxXxxxxxxx, &Xxxx::xxxxxx_XX, + (XxXxxxxxx) xxxx); + } + + xxxx Xxxx::xxxxxx_XX (Xxxxxx x, XxXxxxxxx xxxxXxxx, XxXxxxxxx xxxxXxxx) + { + Xxxx * xxxx = (Xxxx *) xxxxXxxx; // Xxxxxxx xx "xxxx" + + // xx xxxxxxxx xxx xxxx xx xx xxxx xxx xxxx xx xxxxxxxx ... + } + +Xxxxx xxx xxx xxxxxx xx xxxx xxxx: + + *) Xx xxx xxxx xxx xxxxxx xxxxxx xxxxxxxx xx xxxx xx x xxxxxxxx + xxxxxx, xxx xxxx xxxxxx xxx xxxxxx xxxxxxx (xxxx xx xx "xxxxXxxx" + xx xxx xxxxxxx). Xxxx xxxx x xxx-xxxxxx xxxxxxxx. + + *) Xxxxxxxx xxx xxxxxxxx xx xxxxxxxx xx "xxxxxx" xxxxxx xxx xxxxx + xxxxxxxxxx, xxx xx XXX xxxxxxx xxx "xxxxxx" xxxxxxx xxxx xxx + xxxxxxxx xxxxxx xxx xxxxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 29. Xxx xxx X xxxxxxxx xxx xxxxxxxx xx x xxxxxxx xxxxxx? +---------------------------------------------------------------------- + +Xxx XxXxxXxxxxx() xx XxXxxxxxxxx (xxxxx xx xxxxxx XXx) xxx +XxXxxxXxxxxxxx (xxxxxx xx xxxxxxx xx xxxxx). + + Xxxxxx *xxxxxxxx = XXXX; + Xxxxxxxx xxxxx = 0; + Xxx xxxx[10]; + Xxxxxxxx xxx; + + xxx = 0; + XxXxxXxx (xxxx[xxx], XxXxxxxxxxx, &xxxxxxxx); ++xxx; + XxXxxXxx (xxxx[xxx], XxXxxxXxxxxxxx, &xxxxx); ++xxx; + XxXxxXxxxxx (xxxxxx, xxxx, xxx); + +XXXX: Xxxx xxxx xxx xxx xxx xxxx xx xxxxx xxxxxxxx. Xxx xxxx xxxxxx +xxx xxxxxxx xxxxxxx xx Xxxx xx xx xx. + +---------------------------------------------------------------------- +Xxxxxxx: 30. Xxx X xxx XxXxxxXxxxxx(), ... xx xxxx xxxxxxx X xxxxxxx? +---------------------------------------------------------------------- + +Xx. Xx xxxxxxx, XxXxxxXxxxxx(), XxXxxxxxXxxxxx(), +XxXxxxXxxxxxxxXxxxxxx(), xxx XxXxxxxxxxxXxxxxx() xxx xxx xxxxxx +xxxxxxxxx xxxx. Xxx xxxx xxx xxx xxxxxxxxxxxx xx xxxxxx xxxxxx +xxxxxxxx xx xxxxxxxxxxxxx xx xxxxxxx xxx XxXxxXxxxxx() xxxxxxxxx xxx +xxxxxxx xxx XxXx, XxXx, XxXxxxxx xxx XxXxxxxxx xxxxxxxxx. Xx xxxx +xxxxxxxxx xxxx xxx xxxx xxx xxxx xxx xxxx, xxx xxxxxx xxxxxxxx xxx +xxxxxx xx xxxxxx xxx xxxxxxxx xxxxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 31. Xxx xx XxXxxXxxxxx() xx XxXx, XxXx xx xx xxx xxxxx xxxxx xxxxx? +---------------------------------------------------------------------- + +XxXx xxx XxXx xxx xxx xxxxxxxxxxx xxxxxxxx xx xxxx xxxxx'x xxxxxx +xxxxxx, xxxxx xx xxxxxxx x xxxxxx xxxxxxx'x xxxxx xxxxxx. Xx +xxxxxxxxx xx xxx xxxx xxxxxxxxxx xxxxx, xxx XxXxxxxxxxxXxxxxx() xx +XXxxxxxxxxXxxxxxxxxxx(). + +XXXX: XxXxxxxxxxxXxxxxx() xxx xxxxxx xx xxxxxxxx xxxxx xx X4. + +---------------------------------------------------------------------- +Xxxxxxx: 32. Xxx xx xxxx xxxxxx xxx XxX xx xxxxxxxx xxxxx? +---------------------------------------------------------------------- + +Xxxxx xxxxxxx xxx xxxxxxxxxx xx xxxxxxxxx xxx xxxxx xxxxxxxxx xxxx +XxX xxxxxxx xx XxX. Xxx? Xx xxxxx xxxx xxxxx xxxxxx xx xxxxx xx xxx +xxxxxxx xxx Xx xxxx xxxxx. Xxxxxxxxxxxxx xx xx xxx xxxxxx xxxxxxxxx +xxxxxxx xx xxxxx xxxxx xxxxxx xxx xxxxx xxxx xx xxxxxx xxx xxx +xxxxxxxxx, xxxxxxxxx xxxx xxxxxxx xx xxx Xxxxxxxxxx. Xxxx xxxxx. Xxx +xxx, XXX xx xx'x xxx xxxxx, xxxxx? + +---------------------------------------------------------------------- +Xxxxxxx: 33. Xxx xx X xxxx xx xxxx xxxxxx xxxx xxxxxxxxx xx xxxxxxxxxxx? +---------------------------------------------------------------------- + +Xxxx xxx xxxxx XXX. Xxx xxxxx xxxxxxxxxxx, xxxxxx? + +---------------------------------------------------------------------- +Xxxxxxx: 34. Xxx xxx'x X xxxxxxxx xxxxxxxxxxxx? Xxxx xxx xxxxx xxxx xxxxx. +---------------------------------------------------------------------- +(Xxxxxx xx Xxxxxxx X. Xxxxxx, 5/91) + +Xxx xxxxxxxx xxxx xx xxxxx xxxxx xxxxx xxx xxxxxxxxxxxxx xx xxx xxxxx +xxxx, xxxx xxxx: + xxxxx*xxxx.xxxxxxxxxxxx: #xxxxxxxx \ + Xxxxx: xxxxxxxxx-xx-xxxx() \x\ + Xxxxx: xxx-xx-xxxx() + ^ xxxxx xxxxx +Xxx xxxxxxx xxxxx xxxx xxxxx xx xxxxxx xxx xxxxxxxxxxx xxxxxxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 35. Xxx xx X xxx "Xxxxxxx: Xxxxxx xxxxx xxxxxxx xxxxxxxx"? +---------------------------------------------------------------------- + +Xxxx xxxxx, xxxxx xxxxxxxxx xxxx xx xx xxx, "xxxxxx 11004 xx. +xxxxxxxxxx 11003" xxxxxxxxx xxxx xxx xxxxxx xxxxx xxx xxxxxxxx xxxx +xxxxxxxx xxxx xxxxxxx xxxx'x xxxxx xxx xxxxxx xxxxx xxxx xxx Xx +xxxxxxx xxx'xx xxxxxxx xxxxxxx xxx xxxxx xxxx; xxxxx xxxx -X xxxxxxx +xxxx xxx -X xxxx-xxxx xx xx xxxx. + +Xxxxxxx, xxx xxxxxxx xxxx xxxxxx xxxx xxxxxxx xxxxxxx x xxxxxxx xx xxx +X11X4 Xx xxxxxxx xxxxxx xxxxx 10; xxx xxxxxxx xxxxxx xxx xxxxx. Xxxx +Xxx XX xxxxxxx, xx xxxxxxxxxx, xxxx xxxxxxx xxxx xxx xxxxxx xxxxxxx xx +xxx xxxxxxx, xxx xxxxxxxxxxxx xxxxx xxxx xxxxxxx xxx xxxxxxx xxxxxxxxx +xxxx xxx xxxxxxxx xxx xxxx xxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 36. Xxxxx xxx X xxx x xxxx xxxx-xxxxxxxx xxxxxx? +---------------------------------------------------------------------- + +Xxx Xxxx Xxxxxx Xxxxxxxxxx xxx xxxxxx x XxxxXxxxxxxx xxxxxx, xxxx +xxxxxxxx xxxxxxxxx xxxx xxx xxxx xxxxxxx xxxxxxx, xxx xxx +XxxxXxxxxxxx, xxxxx xxx xxxxx-xxxxx xxxx xxxxxxxxxx xxx ~ xxxxxxxxx. + +Xxxxx xxxxxxxxx xxxx-xxxxxxxxx xxxxxxx xxxxxxx xxx XxXxxxXxxxxxxx xxxx +Xxxx Xxxxxxxx'x xxxx, xxx xxxx xxxx-xxxxxxxx xxxxxxxxx xx Xxxxx Xxxxx +(xxxxx@xxx.xxx.xxx), xxx xxx XxxxXxxxxxxxx xxxx xxx xXx xxxxxxxxxxxx. + +Xxx XxxxxXxxx, Xxxx, xxx xxxxxx xxxxxxxx xxxx xxxxxxx xxxx-xxxxxxxx +xxxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 37. Xxxxx xxx X xxxx x xxxxxxxxx xxxxxx xx xxxxxx xxxx? +---------------------------------------------------------------------- + +X xxxxxxxxx xxxxxx xxx xxxxxx xx xxxx.xxxxxxx.x. Xx xxx xx xxxxx xx +xxxxxx 16 xx xxx xxxxxxxx xx xxx.xx.xxx xxxxx xxx xxxx "xxxx". Xxx +xxxxxxxxxxxx xxxxxxxx x xxxxxxxxx xxxxxx xxxx xxxx Xxxxxx xxx Xxxxx +xxxxxxxxxxxxx (xxx xx xxxxxxx-xxxx) xxx xxxx, x Xxxxx-xxxxx xxx xxxxxxxxx xxxx +xxxxxx xxxx xxxx xxx xxxxxx xx xxxx xx xxxxx xxx xxxxxx. [Xxx Xxxxxx +(xxxxxx@xxxxx.xxxxxxx.xxx.xxx); 6/93] + +---------------------------------------------------------------------- +Xxxxxxx: 38. Xxxx xxxxxx xx xxxxxxxxxxx xx xxx xx x xxxxxxx xxxxxx? +---------------------------------------------------------------------- + +Xxxx xxxxxx xxxx xxxx x xxxxxx xxxxxxxxxxxx xxx xxxx xxxxxxx -- x +XxxxXxxxx xx XxxxxxxXxxx xxxxx xxxxx'x xxxxxxx xxxxxxxx xxx xxxx xxxx Xx +xxxxxxxxxxx xxxx xxxx xx xxx xxxx xx-xxxxxxx, xxxxxxx, xxx xxxx xx xxx xxxxxxxx +xxxx xxx xxx xxxxx xxxxx. + +Xxx xxxx xxxxx xx xx xxx xxxxx xxxxxx xxxx -- xxxxxxxxx xxx Xxxxxx xxx +-- xx xx xxxxxx xx xxxxxx xxxx x xxxxxx; xxxx xx xxxxxxxxxx xx xxxxxxx xxxx x +xxxx xxxxxx xxx xxxxxxxx xxxxxx xxxx XxXxxXxxxxXxxxxxx(), xxxxx xxxxx x xxxxxx +xx xxxxxxxx xx Xx xxx xxxxxxxxxxxxx xx xxx xxxxxxxxxxxxx . + +Xxx xxxxxxxx-xxxxxxxxx xxxxxxxx xxxxx xxx xxxx xxxxxxx xxxxx xxxxxxxx. +Xxx Xxxxxxx xxxxxx xx xxx XX xxxxxxx (xxxXX-2.0.xxx.X xx xxx.x.xxx) xxxxxxxx x +xxxxxxx xxx xx xxxxxxx xxxxxxxx xx x xxxxxx. + +Xxx Xxxxxx Xxxxxx xxxxxx (xxx/xxx/Xxx/Xxxxxxxx xx xxx X5 xxxxxxxxxxxx) +xxxxxxxx x xxxxxxxx xxx xxxxxx xxxx xx x xxxxxx xxxxxx xxxxx xx xxxxxxxx xxx +xxx. + +Xxx Xxxx Xxxxxx Xxxxxxxxxx xxx xxxxxxxx x Xxxxxx xxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 39.!Xxxx xx xxxx xxxx xxxxxxx xxxx _xxx_xxXxxxxXxxxxxXxxxx? +---------------------------------------------------------------------- + +Xxxxxxxxxx xxxxxxxxx xxxxx XxxXX 4.1.[23] xx xxxxxxxxxx xx xx xxxxxxxxx +xxxxxxxxxxxxx, xxxxxxxxxxxx xxxxxxx xx xxx xxx XXXxxxxXxxxxxx xx xxx.xx. + +Xx xxx xxx xxxxxxx xx XxxXX 4.1.[23] xxx xxxxxx xxxxx xxx xxx xxxxx xx +xx xxx-25. Xxxx xxxxxxx xxxx xxx xxx xxx XXXxxxxXxxxxxx xxxxxxxxx xx +xxx/xxxxxx/xxx.xx. + +[Xxxxx xxxx xxxxx@xxxx.xxx.xxx.xxx (Xxxxx Xxxxxxxx) 15 Xxx 1993] + +Xx XxxXX 4.1.2 Xxx xxxxx x xxxxxx-xxxxxxx xxx xx xx xxxxx xxxxxxxxx +xxxx xxx xxx X xxxxxx xxx xxxxxx Xxx xxxxxxx, xxxxxxx xxxxx xxxxxxx, +xxxxxxx, xx xx xxxxxxxxx xxxx xxxxxxxx xxxx X11 xxxxxxx: + + _xxx_xxXxxxxXxxxxxXxxxx + _xxx_xxxxxxxxxxxXxxxxXxxxxxXxxxx + +Xxxxxxxxx "-Xxxxxxx -xXxx -Xxxxxxxx" xxxxxxx xx xxxx. + +Xx xxxxx xxx xxxxxxx xx xxx xxx xxxxx XxxxXxxxxxx 3.0 (X11X4-xxxxx +Xx), xxxxxx xxxxxxx xxxx xxxxx Xxx xxxxxx xxx xxxxxxx xxx xxxxxxxxx +xxxxxxx: + +Xxxxx x.x. Xxxxxxxxxxx +100512-02 4.1.x XxxxXxxxxxx 3.0 xxxXx Xxxxx xxxxx +100573-03 4.1.x XxxxXxxxxxx 3.0 xxxxxxxxx xxxxxxx xxxx xxxxx + xxxxxx xxxXxx + +[Xxxx Xxxxx, xxxxx@Xxx.XXX; 7/92] + +X xxxxxx xxxxx xxx xxx xxxx xxx XXX X11X4 xxxxxxxxx xxx xxxxxxxxx xx +Xxxxxx Xxxxxxx (xxx@xxx.xxxxxx.xxx); xx xxxxxxxxx xxxx X4 xxxx xxxxx +xxxx xx X5 xx xxx xxxxxx xxxx xxxxxxx. Xxx xxxxx xx xx xxx.x.xxx xx +[1/93] xxxxxxx/X11X4_xxxxx4.1.2_xxxxx_xxxxxxx3.X + +---------------------------------------------------------------------- +Xxxxxxx: 40. Xxx xxxx XxXxxXxxxxx xxx xxxx xxx xx (xxx)? +---------------------------------------------------------------------- + +Xxx XxXxxXxxxxx xxxxxxxxx xxx xxxxxxxxxx xxxxxxxxx xxxx x xxxxxx xx +xxxxxxxxx xx xxx xxxx xx xxxxxxxx. Xxxx xxxx xxx xx xxxxx xxxxxxxxx xxxx xxxx: + + { + Xxx xxxx[3]; + xxx x; + xxx xxxxxxxxx; /* xxxx; xxxxx xxxx xxxx */ + x=0; + XxXxxXxx (xxxx[x], XxXxxxxxxxxx, &xxxxxxxxx); x++; + XxXxxXxxxxx(xxxxxx, xxxx, x ); + ... + } + +Xxx XxXxxxxxxxxx xx x Xxxxxxx, xxxxx xx xxxx xxxxxxxx xx x xxxxxx xxxx; +xxxxxxxxx xxx xxxxxxxx "xxxxxxxxx" xx Xxxxxxx xxxxx xxxxxxxx. Xxxx xxxxxxx +xxxxx xx xxxxx xxxx xxxxx xxxxxxxxxx xxxxxxxx xxxx xxxxxxxx xxx Xx xxxxx +Xxxxxxxxx xxx Xxxxxxxx; xxxx xxxx xxxxxxx xxxx xxx xxx xxxx xxxx xxxxxxx +xxxxxxxx xx xxxxx xxxxx xxx xxxxxxxx xxxxx. Xx xxxxxxx: xxx xxx xxxx xx xxx +xxx xxx xxxxxx xxxx xx xxx xxxxxxxx, xx xx xxxxxxx xx xxx xxxxxx'x xxx xxxx. +[11/90] + +---------------------------------------------------------------------- +Xxxxxxx: 41. Xx xxxx x xxxxxx xxxx xx xxx X11X4 XxXxxxxxxXxxxxx()?! +---------------------------------------------------------------------- + +Xxx. Xxxx xx xxx "xxxxxxxxxx" xxx-19 xxx xxx X11X4 Xxxxxxx.x: + +*** Xxxxxxx.x.1.37 Xxx Xxx 11 15:41:25 1991 +--- xxx/Xx/Xxxxxxx.x Xxx Xxx 11 15:42:23 1991 +*************** +*** 1,4 **** +--- 1,5 ---- + /* $XXxxxxxxxxx: Xxxxxxx.x,x 1.37 90/09/28 10:21:32 xxxxx Xxx $ */ ++ /* Xxxx xxxxxxxxxx xxxxxxx xx xxxxxxxxx 1.40 xxx 1.41 */ + + /*********************************************************** + Xxxxxxxxx 1987, 1988 xx Xxxxxxx Xxxxxxxxx Xxxxxxxxxxx, Xxxxxxx, Xxxxxxxxxxxxx, +*************** +*** 221,239 **** + */ + + xxx x = 0; +! XxxxxxxXxx* xx = xxx->xxxxxxx_xxxx; + xxxxx (x < xxx->xxxxxxx_xxxxx) { + xx (xx->xxxxxxxx_xxxxx >= xxxxxxxx_xxxxx) { + Xxxxxx x = xx->xxxxxx; + xx (--xxx->xxxxxxx_xxxxx) + xxxxx( (xxxx*)(xx+1), (xxxx*)xx, +! xxx->xxxxxxx_xxxxx*xxxxxx(XxxxxxxXxx) + ); + XxXxxxx2Xxxxxxx(x); + } + xxxx { + x++; +- xx++; + } + } + } +--- 222,245 ---- + */ + + xxx x = 0; +! XxxxxxxXxx* xx; + xxxxx (x < xxx->xxxxxxx_xxxxx) { ++ ++ /* XxXxxxx2Xxxxxxx xxx xxxxxx xx xxxxx xx XxXxxxxxxXxxxxx, ++ * xxx xxxxx xxxxx xxxxx xxx->xxxxxxx_xxxx xx xx xxxxxxxxxxx. ++ */ ++ ++ xx = xxx->xxxxxxx_xxxx + x; + xx (xx->xxxxxxxx_xxxxx >= xxxxxxxx_xxxxx) { + Xxxxxx x = xx->xxxxxx; + xx (--xxx->xxxxxxx_xxxxx) + xxxxx( (xxxx*)(xx+1), (xxxx*)xx, +! (xxx->xxxxxxx_xxxxx - x) * xxxxxx(XxxxxxxXxx) + ); + XxXxxxx2Xxxxxxx(x); + } + xxxx { + x++; + } + } + } + +[xxxx Xxxxx Xxxxxxxx, xxxxxxxx@x.xxx] + +---------------------------------------------------------------------- +Xxxxxxx: 42. Xx xxxx x xxxxxx xxxx xx xxx X11X4 xxxxxxxx xx xxxx xxxxx?! +---------------------------------------------------------------------- + +Xxxxxxxxxx xxx X11X4 XxxxXxxxx.x`XxxxXxxxXxxx xxxxx xx xxxxxxxx xxxxxxx +xxx xxxx xxxx xxxxxx xxxx xx xxx xxxx xxxx xxxxxxxxx. + + xx (xxxxxx) { + x->xxxx = xxxxXxxxXxxx; + xxxxXxxxXxxx = x->xxxx; /* xxxxxx xx =x; */ + } + +---------------------------------------------------------------------- +Xxxxxxx: 43. Xxx xx X xxxxx xxx xxxx xxxxxxxxxxxxx xxxxx Xx? +---------------------------------------------------------------------- + +Xx xx xxxxxxxx xx xxxx xxxx xxxxx xxxxx xxxx xxxx xxxxxxx xxxxxxxx, +xxxxx xxx x xxxxx xxxx xx xxxxxxx. Xxx xxxxx xx XxxXxxx() xxxxx xxxxx +xxxxxx xx xxx xx xxx xx xxx xxxxx xxxxxx. Xx xx xx xxx x "xxx" xxxxxx, +xxx xxxx xxxxx xxx xx xxx xxxxxxxx xxx xxxx xx xx xxxxx-xxxxxxxxxx +xxxx: + + xxxx xxxx(Xxxxxx x, XxXxxxxxx xxxxxx, XxXxxxxxx xxxx) + { + xxx xxxxxx; + xxxxxx = XxxXxxx(x, "Xxxxxx Xxxx?"); + xx (XXX_XXX == xxxxxx) + { + xxxxxx = XxxXxxx(x, "Xxx Xxx Xxxxxx Xxxxxxxx?"); + xx (XXX_XXX == xxxxxx) + xxxx(0); + } + } + +X xxxx xxxxxxxxx xxxxxxx xxxxx xxx xxxxxxx xx xxxxxx x xxxx xx xxxxxxx +xx xxxxxxxxx xx. + +Xxxx xx xxxxxxxxxxxx xx xxxxxxxx x xxxxxx xxxxx-xxxxxxxxxx xxxx xxx +xxxxxxx xxxxx xxx xxxx xxxxxxx xxx xxxxxxxx; xxx xxxxxx xx xxxxxxxx xx +xxx xxxxxxx xxxxxxxx. Xxxx xxxxxxxx XxxXxxx() xxxxx xxxxxxxxx xxxx +xxxx, xxxxx xxx Xxxxx xxx xx xxxxxxxx xxxx xxxxxx-xxx-xxxxxxxx xxxx xx +xxxxxx xxxx xxxx xx xxxxxx-xxx xxxxxxxxxx xxx xxxxxxxx xxxxxx xxx +xxxxxxx xxx "XX", "Xxxxxx" xxx "Xxxx" xx xxxxxxxxxxx: + + xxx XxxXxxx(x, xxxxxx) + Xxxxxx x; + xxxx *xxxxxx; + { + xxx xxxxxx=XXX_XXXX; /* xxxx xxx-xxxx xxxxxx */ + Xxxxxx xxxxxx; /* xxxxx xxxxx&xxxxx, xxx ...*/ + Xxx xxxx[3]; + xxx x = 0; + XxXxxXxxxxxx xxxxxxx; + + x=0; + XxXxxXxx(xxxx[x], XxXxxxxxxxXxxxxx, XxXxxxxxXxxxxxXxxX(xxxxxx, + XxXXXXXX_XXXXXXX_XXXXXXX)); x++; + XxXxxXxx(xxxx[x], XxXxxxxxxXxxxx, XxXXXXXX_XXXXXXXXXXX_XXXXX); x++; + xxxxxx = XxXxxxxxXxxxxxxxXxxxxx(XxXxxxxx(x), xxxxxx, xxxx, x); + XxXxxXxxxxxxx(xxxxxx, XxXxxXxxxxxxx, xxxxxxxx, &xxxxxx); + XxXxxXxxxxxxx(xxxxxx, XxXxxxxxxXxxxxxxx, xxxxxxxx, &xxxxxx); + XxXxxXxxxxxxx(xxxxxx, XxXxxxxXxxxxxxx, xxxxxxxx, &xxxxxx); + XxXxxxxxXxxxx(xxxxxx); + + xxxxxxx = XxXxxxxxXxXxxxxxxxxxxXxxxxxx (x); + xxxxx (xxxxxx == XXX_XXXX || XxXxxXxxxxxx(xxxxxxx)) { + XxXxxXxxxxxxXxxxx (xxxxxxx, XxXXXxx); + } + XxXxxxxxxXxxxxx(xxxxxx); /* xxxx xxxx xxx xxxxxx xxx xxx xxxxx */ + xxxxxx xxxxxx; + } + +Xxx xxxxxx xxxxxxxx xxxxx xxxxxxx, xxxxx xxx xxx xx xxxx xxx xxxx +xxxxxxxx xxxx xxxxxxx xx xxx xxxx. Xxx xxxxxxxx xxxxxx xx xxx xxxx +xxx xxxx xxxxxxx xxxxxxx xxx xx xxxxx xxxxxxx: + + xxxx xxxxxxxx(x, xxxxxx, xxxx) + Xxxxxx x; + XxXxxxxxx xxxxxx; + XxXxxxxxx xxxx; + { + xxx *xxxxxx = (xxx *) xxxxxx; + XxXxxXxxxxxxxXxxxxx *xxxxxx = (XxXxxXxxxxxxxXxxxxx *) xxxx; + xxxxxx (xxxxxx->xxxxxx) { + xxxx XxXX_XX: + *xxxxxx = XXX_XXX; /* xxxx #xxxxxx xxxxx */ + xxxxx; + xxxx XxXX_XXXXXX: + *xxxxxx = XXX_XX; + xxxxx; + xxxx XxXX_XXXX: + *xxxxxx = XXX_XXXX; + xxxxx; + xxxxxxx: + xxxxxx; + } +} + +xxx xxx xxxx xxxxxxx xxxx xx xxx xxxxx xx xxxxx xx xxxxxx xxx xxxxxx xxx +xxxxxxxxx xxxx xxxxx. + +[Xxxxxx xx Xxx Xxxxxx (xxxx@xxx.xxx); xxxxxxx xxxx xx xx Xxx'x X3/xxxxxxx +XxxxxxXxxx xxxxxxx. 2/91] + +---------------------------------------------------------------------- +Xxxxxxx: 44. Xxx xx X xxxxxxxx x xxxxxx xxxxx/xxxxxxx xxxxx xxx x xxxxxx? +---------------------------------------------------------------------- + +Xxx xxx xx xxxx xxxxx XXxxxXxxxx(); xx'x xxxxxx xxxx xxx'xx xxx xxxxxxx +xxx xxxxxx xxxxx xx xxx xxxxx, xxxxx Xx xxxxx xx xxxxx xx xxxxx xx xxx xxxxxx +xxxxx xxxxxx xxxxxxx xxx xxxxx. + + Xx xxx'xx xxxxxxx xxxxxx xx xxxx xxx xxxxxxxxxxx, xxxx xxx xxx xxx +XxXxxxxxxxXxxxx() xxxxxxx. Xxxx xx xxxx xxxxxxxxx xxxx XXxxxXxxxx() xx xxxx xxx +xxxxx x xxxxx-xxxx xx xxx xxxxxx. + +Xxxxxxxxx xx xxx xxxx xxx xxxxxx xxx xxxxxxx, xxx xxx xx xxxx xx xxxx +xxx xxxxxx xxxxxxxxxx xx xxxxx xx xxx xxx xxxxxxx xxx xxxx. + +[xxxxxxxx Xxxx X. Xxxxxxxx (xx2620@xxxxx.xxx.xxx), 11/90] + +---------------------------------------------------------------------- +Xxxxxxx: 45. Xxx xx xxx Xxxxxxxx xxxxxxxxx (xxx X xxxxxxx xxxxxx)? +---------------------------------------------------------------------- + +(Xxxxxxxx xx Xxxxx Xxxxxxxx, xxxxxxxx@x.xxx; 12/7/93) +Xxx xxx X5 Xxxxxxxxxx xxxxxxxxxxxxx xxxxxxx 2.3 "Xxxxxxx xxx +Xxxxxxxx Xxxxxxxx". + +Xxxxxx xxxxxx xx xxxxxxxx xxxxxxxxx xx xxxxxxxx xxxxxxxxx. Xxx +xxxx xxx xxx xxxxx xxxxx xxxx xx xxxx xxxxx xx xx xxxxxxx xx xxx +xxxxxxxxxxx xxx xxxx xxxxxxxxx xxxx Xx xxxx xx xxxxxxxxx xxx xxxxxxx; +xx xxxx xxxx xxxxxxx, xxxxxxxxx xx xx xx xxxxx, xxxxx xxx xxxxxxx; +xxx xxxx xxx xxx xxxxxxxxxxx xxxxxxxx xxxxxxxxx; xxx xxxxxxxx xx +xx xxxxx. + +Xxx xxxxxxxx xxx xx xxxxxxxx xxxxxxxxx xx xx xxxxxxx x xxxxxxx xxxxxx +xx xxxxxxxxx xxxx xxxx xxxx xxx xxxxxxxxxxx xxxxxx (xx xx xxxxx xxxxxxxxx +xxxx xxxxxxx xxxxxxxxxx xxxxxxxx) xxxx xxxx xxxxxxx xxxxxx xx xxxxxxx xxx +xxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxxxx xxxx. + +Xxx xxxxxxxxxxx xxxxx xxxxxxxx xxxx xx xxxxxxxx xx xxx xxxxxxxxxxx +xxxxxxxxx xxx xxx xx xxxx xx xxxxxxx xxxxxxx xxxxxx xxxx xxxxx xxxx +xx xxxxxxx xxxxxxxx. + +Xx xxxxxxxx, xxxxx xx xx Xx-xxxxx xxxxxxxxxxx xxx xxxxxxx xxxxxx xx +xx xxxxxxxxxxx-xxxxxxxx xxxx-xxxxxxxx xxxxxxxx xxxx xxx xxxx xxxxx +xxxxx xxxx xx xxxxxxx xxxxxxxx. Xxx xxxxxxxxx xxx xxxxxxx xxxx xx +xx xxxxxxxxxx xx X5 Xx xxx xx xx xxx xxxxxxxxxxxxx xxxxxxxx xxx xxxx +xx xxxxx xx xxx Xx xxxxxxxxxxxxx xxxxxxx 13.3.3. Xxxx xxxx xxxxxxx, +xxxx xxxxxxx 2.3, xxx xxxx xx xxxx xxxxxx xxxxxxx xxx xx xxxxxxxxxxx +xxxxx xxxxx xxxx xx "Xxx". (Xxxxx xxxxx'x x xxxxxxxx xxxxx xxxx +xx xxx xx xxx X'Xxxxxx xxxxx? Xxxxx X xxxxxx xxxxx x xxxx?) + +Xxx xxx-xxxx xxxx xxx xxx xxxxxxxxxxxxx xxxxxxxx, xx xxx xxxxx +xxxxxxx xxxx xxxx xxx Xxxxxxxxxx xxxx xx xxxx xxx xxx xxxxxxxxxxx +xxxxxxxx xxxxx. + +#xxxxx XXXXX +Xxx.xxxxxxxxxxxxx: -xxxxx +#xxxxx + +Xxx xxxxxxxxxxx xxxxxxxxxx xxxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxxxx +xxxxx, xxx xxx xxx xxx xxxxxx "-xxxxx" xxxxxxxx xx xxx xxxxxxxxxxx +xxxxx xxxx xx xxx xxxx xx xxx xxxx. Xxxx xxxx xxxxxxxx xxx xxxxx +xxxx, xxx xx xxxx xxxxx xxxxxxxxx xxxxxxxx xx xxxxx xxxxxxxx. Xxx +xxxxx xxxx xxxxx xxxxxxxxx xxxx xxxxxxxxx xxxxx. + +Xx xxx xxxxxxxxxxx xxxxx xxxxxxxx xxxx xxxxx "Xxx-xxxxx", xx xxxxx xxx: + +#xxxxxxx "Xxx" +xxx*xxxxxxXxxxx: Xxx +xxx*xxxxxxxxxx: Xxxxx + +xxx xx xx. Xx xxx xxxxxxxxxxx xxxxx xxxxxxxx xxxx xxxxx "Xxx" +xx xxxxx xxx: + +! XxxXxxxxxxxXxxxxxx xxxxxx xxxx xx xxxxxxx xx xxx xxxx-xxxx xxxx +Xxx.XxxXxxxxxxxXxxxxxx: 1 +Xxx.Xxxxxxxx: 508x750 +Xxx.XxxxxXxxxxxXxxxxx: xxx +Xxx.XxxxXxxxxXxxxx: 2000 + +xxx xx xx. Xxx xxxxx xxxx xx x xxxxxxx, xxx xxxxxxxxxx xxxxxxx +xxxxxxxxxxx xxxxxxxxx xxxx xxxxxxxxxxxx xxx xxxxxxxx xxxxxxxxx +xxx xx xxxxxx xx xxxxxxxx xxxx xxx xxxxxxxxxxx xxxxx xxxxxxxx xxxx +xx xxxxxxxxx. Xx xxxx xxx xxx xxxxxxxx xxxxxxxxx xxxx xx xxx +xxxxxxxxxxx xxxxx (xxxx-xxxx) xxxxxxxx xxxx xx xxx xxxxx. Xxx +xxxxxxxxxxx xxxxxx, xx xxxx xxxx xxx, xxxxxx xxx xxxxx xx xxxxxxxxxxx +xxxxxxxx XxxXxxxxxxxXxxxxxx xxx xx xx xx xxx xxxxxxx xxxxx, xx xx x +xxxxxxxx xxxxxxx xxxx xxx xxxxxxxxxxx xxxxxxx, xx xxx xxxxxxxxx +xxxx xxx xxxxxxx xxxxxxx xxxxxxxxx xxx xxx xxxxxxxxx xxx xxxxxx xx xx +xxxxxxx xx x xxxxxx xxx xxxx x xxxxxxx xx xxx xxxx xxx xxxxxxxxxx +xxxx xxxxx xx xx xxxx xx xxx xxxxx xxxxxxx xxxxxxxxx. + +Xxx xxxxxxxxxxx xxxxx xxxxxxx xxxxx xxxx xxxxxxxx xx xx xxxxxxxxxx xx +x xxxx xxxxxxxxxxxxx -- xx xxx xxx xx xxxxx xxx xxx xxxxxxx xxxxxxxxx +xxxx xxx xxxxxxxx xxxxxxxxx xxx xxxx xxxx xxx xxx xxxx xxx xxxxx xx xxx +xxxxxxxxxxxxx xxxxxxxx xxx xxx xxxxx xxxx xxxx xx xxxx xxxxxx xx xxxx +xxx xxxxxx xx xxxxxx xxx xxxxxxx xxxxxxxxx -- xxxxx xx x xxxxxxxxxxxx. + +---------------------------------------------------------------------- +Xxxxxxx: 46. Xxxx xx xxx xxxxxxxxx xxx xx xxxxxxx xxx xxxxxxxxxxx xxxxxxxxx? +---------------------------------------------------------------------- + +(Xxxxxxxx xx Xxxxx Xxxxxxxx, xxxxxxxx@x.xxx; 1/8/94) +X xxxxxx xxxxx x xxxx-xxxx xxxxxxxxxxx xxxxxxx xxxx. + +Xxxxxxxxxx xx xxxxx xx xxxxxxxxxxx xxxxxxx xxxx: + ++ Xxx xxxx xxxxxxxxxxxxx xxx xxxxxxxxx xxxx xxxxxxxxxxx xxx xxx xxxxx + xx xxx xxxx. + ++ Xxx xxx xxxxxxxx xx xxx xxxxxxxxxxx-xxxxxxxx xxxx xxxxx xxxxxxxxx + xxx xx xxxxxxx xxx xxx xxxxxx xx xxxxxxxx xxxx xx xxxxxxxxxx. + ++ Xxx xx xxxxxxxxxx xxxx xx xxxxxxxxxxxxx xxx xxxxx xxxxx xx xxxx xxx. + Xxxx xxxxx xxxxxx xx xxxxxxxxxxx-xxxxxxxx xxxxxxxx xxxx xx xxxxx xxx. + Xxxxx xxx xx xxxxxxx xxxx xxx xxxx-xxxx xxxxxxxxxxx xxxxxxxx xxxx + xx xxxxx xx xxx xxxx'x xxxxx xx. Xx xxxxx xxxx-xxxxxxxxx xxxxxxxx + xx xxxx xxxxxxxxxx xxxx xxxx-xxxx xxxxxxxx, xxxxxxxxxxx xxxxxxxxxx + xxxxxx xxxxxx xxxx xxx xxxxxxx xxxxxxxx xxxxxxx xxx xxx xxxxx xxxxx + xxxxxx xxxx xxxxxxxx xxxxx xxxxx xxxxxxxx, xx xxx xxxx-xxxx xxxxxxxx xxxx. + ++ Xxx xxx xxxxxx xxxxxxxx xxxxxxxx, xxxx xxxxxxxxxxxx xxxxxxxxx xxxxxx, + xxxxxxxxx, xxxxxxxxxxxx xxxxxxxxxxxx, xxxxxxx, xxxxxx, xxxxxxxxxxxxx + xxx xxxxxxxxx xxx xxxxxxxxxxxx xx xxxx xxxxxxxxxxx xx xxxxxx xxx xxxx + xxxxxxxx xxx xxxxx xx xxxxx xxxxxxxxxxxxx xxxxxxxx xxx xxxx xxxxxxxxxxx. + Xxxxxxxxxxx xxxxxxx xxxxx xxx xxxxxxx xxxxx xxxxxxxxxxx xxxxxxx xxxxx, + xxxxxx xx xxxxxxxx xx xxxxxxxx xxxxx xxxxxxxxxxxxx xxxx xxxxxxxx + xxxxxxxxxxxxx, xxxx xxxxxxxxxx xxxxxxxxxxxxx, xxx xxxxxxx. + + +Xxxxxxxxxxxxx xx xxxxx xxxxxxxx xxxxxxxxx xxx xxx xxxxxxx xxxxxxxxx xx +xxx xxxxxxxxxxx: + +- Xxxxxxxx xxxxxxxxx xxxx xxx xxxxxxxx xxxx xxxx xxxxxxx xx xxxx. + +- Xxxx xxxxx. + +- Xxxxx xxx xxxx xxxxxxxxxxxxxx xxxx xx xxxxxxx xx xxxx xxxx xxxxxx + xx xxxxx xx xxxxxx xxx xxxx xxxxxxxxx xxx xxxx xxx xxx xx xxxx xxxxx + xxx xxxxxxx, xxxxxx xxxxxx xxxxx xxx xxxxxxxxx xxx xxxx xxxx xx + xxxxx xxxx xx xxxxxx xxxxx xxxxxxx. + +- Xxxxxx xxx xxxxxxxx xxx xx xxxx xxxxxxx xxxxxxxxx xx xxxxxxxxx xxxxx + xxx xxxxxxxxxxx xxxxxxx xxxx, xxxxx xxxxxxxxxxxx xxxxxxxx xxxx xxx. + +- Xxx'xx xxx xxxxxx xxxxxxxxx xx xxx xx xxx xxxx xxxxxxxx xxxxxxxx xx + xxx X xxxxxxx -- xx'x xxxxxxxxx xxx xxx-xxxxx xx xxxxxxxxx xxxxxxxxxxxx. + + +> X xxxx xxxxx xxxxxxxx +> xxxxxxxxx xxxxxx xx x xxxxxxx xx xxx xxx xxxxxxxxxxx xxxxxxx xx xx +> xxxxxxx xx xxxxx xx xxx xxxxxxxxxxx xxxxxxxx xxxxxx xx xxxxxx. Xxx +> xxxx xxxx x "xxxxxxx" xx :-) ? + +Xxx X Xxxxxxxxxx'x xxxx xxxxxxxxxxx, xxx, xxx xx xxxxxxxxxxx xxxxxxxx +xxxx xxxxx xxxxx Xxx. Xx xxx xxxxxx xxxx xxxx, xx'x xxxxxxxx xxxxxxxxx +xxx xxxx. Xx xxxx xxxx xx xxxx xx x xxxxxx xxx xxxxxxx xxx xxxx xxx +xxxxxxxxxxx xxxxxxxxxxxxx xxxx xxxxxxxx xxx xxxx xxxxxxx xxx xxxxxxxxxxx +xxxxxxxx xxxx xx xxxxxxx. Xxxx xxxx xxxxxx xxx xx xxxx xx x xxxxxxxxxx +xxxxx xx xxx xxxxxxxxxxx xxxxxxxx xxxx, xxxx xxx xx xxxx, xxx xxx xxxxxxxxxx +xxxx xx xxxx -- xx xxx xxx xxxxxx xxxx xxxxxxxxxxx xxx xxx xxx-xxxxxxxx +xxxx xxx xxxxxxxxx x xxxxxxxxxx xxxxx, xxx xxxxxx xx xxxx xxx xxxx +xxxxxxxxxxxxx xxxxxx xx xxxxxxx xxxx xxxxxxxxxxx xxxxxxxxx. + +Xxx, xxx xxxxx xxx X Xxxxxxxxxx'x xxxxxxxxxx xxxxxxxxxxx, xxxxx, xxxxxxx +xxx xxxxxxxxxxx xxxxxxxx xxxx. Xxxxxxx xxxxx xx xxx, xxx, xx xxxxx'x xxx +xxx, xx xxx xxxxxxxxxxx xx xxxxxxxxx xxx xxxxxxxxxxxxxxx xxxxxxx xxx +xxxxxxxxxxx xxxxxxxx xxxx. + +Xx x xxxxxxx xx xx xxxxxx xxxx xxx xxxxxxxxxxx xxxxxxxx xxxx xx xxxxxxx, +xx, xx xxx xxxx x xxxxxx xxxxxxxxxxx, xx xxxx xxx xxxxxxx xxxxxxxxxxxxx +xx xxxxx xxxx xx xxxxxxxxxx xxxxxxxxx xxx. +--3551_4569-6da5_7555-384e_60f4-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/2 b/glassfish-runner/mail-platform-tck/mailboxes/test1/2 new file mode 100644 index 0000000000..7838eb0451 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/2 @@ -0,0 +1,48 @@ +From mspivak Thu Nov 21 16:39:49 1996 +Return-Path: +Received: from apilon by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id QAA05238; Thu, 21 Nov 1996 16:39:48 -0800 +Date: Thu, 21 Nov 1996 16:39:48 -0800 +From: mspivak@localhost (Max Spivak) +Message-Id: <199611220039.QAA05238@apilon.Eng.Sun.COM> +Subject: Test Msg w/Several Attachments +To: maxs@apilon +X-Mailer: HotJava Views MailView V1.0 +Content-Type: multipart/mixed; boundary=84104117327811111832504932495458515758524832808384324957570 +Mime-Version: 1.0 +Content-Length: 707 +Status: RO +X-Status: +X-Keywords: +X-UID: 51 + +--84104117327811111832504932495458515758524832808384324957570 +Content-Type: text/plain; charset=us-ascii + +Line1 +Line2 +Line3 +--84104117327811111832504932495458515758524832808384324957570 +Content-Type: text/plain; charset=us-ascii + +Hello, I'm an attachment. +AttachLn2 +AttachLn3 +--84104117327811111832504932495458515758524832808384324957570 +Content-Type: application/x-sun-ae-file; name=CalendarAppointment + + + + ** Calendar Appointment ** + Date: 11/21/1996 + Start: 4:39pm + Repeat: One Time + What: Max's Text Appt + + +--84104117327811111832504932495458515758524832808384324957570 +Content-Type: text/html + +

Test Data

+--84104117327811111832504932495458515758524832808384324957570-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/20 b/glassfish-runner/mail-platform-tck/mailboxes/test1/20 new file mode 100644 index 0000000000..4a70bed0cd --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/20 @@ -0,0 +1,127 @@ +From demo@labyrinth.Eng.Sun.COM Wed Oct 16 15:18:27 1996 +Return-Path: +Received: from makai.Eng.Sun.COM by homey.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id PAA03166; Wed, 16 Oct 1996 15:18:25 -0700 +Received: from makai (localhost) by makai.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17101; Wed, 16 Oct 1996 15:17:12 -0700 +Sender: tester@labyrinth.Eng.Sun.COM +Message-Id: <32655EE7.76D8@labyrinth.eng.sun.com> +Date: Wed, 16 Oct 1996 15:17:11 -0700 +From: Demo Account +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0b6Gold (X11; I; SunOS 5.4 sun4m) +Mime-Version: 1.0 +To: tester@homey +Subject: status +Content-Type: multipart/mixed; boundary="------------65083D975A6E" +X-Lines: 106 +Content-Length: 2853 +Status: RO +X-Status: +X-Keywords: +X-UID: 139 + +--------------65083D975A6E +Content-Type: text/plain; charset="us-ascii" +X-Sun-Content-Length: 157 + +Attached you'll find my plans for next week, as well as a list of +issues I discovered while porting my application. I'll send more +information later today. + +--------------65083D975A6E +Content-Type: text/plain; charset="us-ascii"; name="ISSUES3" +Content-Disposition: inline; filename="ISSUES3" +X-Sun-Content-Length: 620 + +Xxxxxxx xxxxxx xxxxxxxxxx xxxxx xxxxxxx: + +1. Xxx Xxxxxxxx/Xxxxxxx xxxx xxx xxxxxx xxxxxxxxx, xxx + xxxxxxxxx xx xxxx xxxx xxxxx xxxxxxxxx xxx xxxxxxxxx + xx xxxx xxxxxxx xxxxxxxxx. Xxxx xx xxxxx xxxxxxxxxx + xxxx xx xxxxxxxxx, xxx xx xx xxxx xxxxx xxx xxxx xxxx + xx? Xx xx xxx'x xxxx x xxxxxxxxxxxxx xxxxxxx xxxxxxxx, + xx xxx'x xx xxxx xx xxxxx xxxx xxx -X xxxx. Xx'xx + xxxx xx xxx xx XX_XXXXXXX_XXXX. Xxxx xxxx xxx xxxxxxxxxxxx + xxx xxxxxx xxxxxx xxxxxxxxx, xxxxx xxxx xxxx xx xx + xxxxxxxxx xxxxxxxxx xx xxxx. Xxxx, xxxx xx xxxx xx xx + xxx xxxxx xxxx xxxx xxx XXX_XXXXXXX_XXXX xxx xxxxxx. + +--------------65083D975A6E +Content-Type: text/plain; charset="us-ascii"; name="TODO" +Content-Disposition: inline; filename="TODO" +X-Sun-Content-Length: 1624 + +Xxxxxx xxxxxx Xxxxx +_________________________________________________________________________ +- Xxxx xx Xxxxx Xxxxxx (2 xxxx) + [ xxxxxxxx ] + +- Xxxx Xxxxx xxx xxxxx (2-3 xxxx) + [ xxxxxxx/xxxxxxxx ] + +- Xxxxxxxxx xxxxx / xxxxxxxx xx xxxxxxxxx (2 xxxx) + [ xxxxxxx/xxxxxxxx ] + +- Xxxxx xxxxx xxxxxxxxxxxxx & xxxxx xxxxx xxxxxxxx (4 xxxx) + [ xxxxxxx/xxxxxxxx ] + +- Xxxxxx xxxxx (1 xxx) + [ xxxxxxx/xxxxxxxx ] + +- Xxx xx xxxxx xxxx (1 xxx) + [ xxxxxxx/xxxxxxxx ] + +- Xxxxxxxx xxxx (1 xxx) + [ xxxxxxxx ] + +- Xxxxxxxx xxxxxxx, xxxx xx & xxx (1 xxx) + [ xxxxxxxx ] + +- Xxxxxxxx xx xxxxxxx. Xxxxxxxx 1 xxxxxx xxx xxxx XX (2 xxxx) + [ xxxxxxx ] + +- XXX XX xxxxxxx (1 xxxx) + [ xxxxxxx/xxxxxxxx ] + +- Xxxxxx & Xxxxxxxxxx (2 xxxxx) + [ xxxxxxx/xxxxxxxx ] + +- Xxxxxxxxxxx xx xxxxxx (3 xxxx) + [ xxxxxxx/xxxxxxxx ] + +- Xxxx xxxxxx xxxxxx & xxxxxx xxxxxxxxx (3-4 xxxx) + [ xxxxxxx ] + +- Xxxxxxxx xxxx xxxxxx xxxxxx (3 xxxx) + [ xxxxxxxx ] + +- Xxxxxxx xxxx xx xxx xxxxxxx xxxxxxx, xxxxxxx xx xxxxxx xxxxxxxxx, + xxxxxxxx xxx xxxxx xxxx xx xxxxx/Xx (xxxxxxxxx) + [ xxxxxxx/xxxxxxxx ] + + +Xxxxxx xxxxxx xxxx +_________________________________________________________________________ + +- Xxxxxxx xxx xxxxxxxx xxxx xx xxxxx xxxxxxx (xxxxxx, XXX, xxx.) + [ xxxxxxx/xxxxxxxx ] + +- Xxxx xxxxxxxxx (2 xxxx) + [ xxxxxxx/xxxxxxxx ] + +- Xxxxxxxx xxxxxx (1 xxxx) + [ xxxxxxx/xxxxxxxx ] + +- Xxxxxxx xxxxxxxx (1 xxx) + [ xxxxxxx/xxxxxxxx ] + +- XXX xxxxx, xxx-xxxxxxxx, xxxxx xxxxx, xxx xxxxx (2 xxxx) + [ xxxxxxx/xxxxxxxx ] + +- Xxxxxxx xxxxxxxxxx xxxxxxxxxxxxx xxxxxx (3-5 xxxx) + +- Xxxx xxxxxx xxxxxx xxxxxxxx xxxxxxxxxx xxxx xxx-Xxxxx xxxxxxx (1 xxxx) + +--------------65083D975A6E-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/21 b/glassfish-runner/mail-platform-tck/mailboxes/test1/21 new file mode 100644 index 0000000000..f4a1c2b4b3 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/21 @@ -0,0 +1,21 @@ +From mspivak Fri Dec 13 16:28:50 1996 +Return-Path: +Received: from apilon by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id QAA16994; Fri, 13 Dec 1996 16:28:49 -0800 +Date: Fri, 13 Dec 1996 16:28:49 -0800 +From: mspivak@localhost (Max Spivak) +Message-Id: <199612140028.QAA16994@apilon.Eng.Sun.COM> +To: mspivak@localhost, maxs@apilon, mspivak@localhost, max.spivak@eng, maxims@eeeyore.com +Subject: many comma test +X-Mailer: HotJava Views MailView V1.0 +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: 7bit +Mime-Version: 1.0 +Content-Length: 11 +Status: RO +X-Status: +X-Keywords: +X-UID: 140 + +comma test + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/22 b/glassfish-runner/mail-platform-tck/mailboxes/test1/22 new file mode 100644 index 0000000000..f115855421 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/22 @@ -0,0 +1,65 @@ +From mspivak Fri Dec 13 16:53:12 1996 +Return-Path: +Received: from apilon by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id QAA17067; Fri, 13 Dec 1996 16:53:11 -0800 +Date: Fri, 13 Dec 1996 16:53:11 -0800 +From: mspivak@localhost (Max Spivak) +Message-Id: <199612140053.QAA17067@apilon.Eng.Sun.COM> +To: maxs@apilon +Cc: mspivak@localhost +Subject: Test Msg w/Several Attachments +X-Mailer: HotJava Views MailView V1.0 +Content-Type: multipart/mixed; boundary=7011410532681019932495132495458535058535432808384324957570 +Content-Transfer-Encoding: 7bit +Mime-Version: 1.0 +Content-Length: 1050 +Status: RO +X-Status: +X-Keywords: +X-UID: 141 + +--7011410532681019932495132495458535058535432808384324957570 +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: 7bit + + +------------- Begin Forwarded Message ------------- + +Date: Thu Nov 21 16:39:48 PST 1996 +From: mspivak@apilon +To: maxs@apilon +Subject: Test Msg w/Several Attachments + +Line1 +Line2 +Line3 +------------- End Forwarded Message ------------- + + +--7011410532681019932495132495458535058535432808384324957570 +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: 7bit + +Hello, I'm an attachment. +AttachLn2 +AttachLn3 +--7011410532681019932495132495458535058535432808384324957570 +Content-Type: application/x-sun-ae-file; name=CalendarAppointment +Content-Transfer-Encoding: 7bit + + + + ** Calendar Appointment ** + Date: 11/21/1996 + Start: 4:39pm + Repeat: One Time + What: Max's Text Appt + + +--7011410532681019932495132495458535058535432808384324957570 +Content-Type: text/html +Content-Transfer-Encoding: 7bit + +

Test Data

+--7011410532681019932495132495458535058535432808384324957570-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/23 b/glassfish-runner/mail-platform-tck/mailboxes/test1/23 new file mode 100644 index 0000000000..451cf9b9a7 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/23 @@ -0,0 +1,66 @@ +From jmr@sun.com Wed Oct 16 15:07:23 1996 +Return-Path: +Received: from labyrinth by labyrinth.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id PAA08903; Wed, 16 Oct 1996 15:07:22 -0700 +Sender: jmr@sun.com +Message-ID: <32655C9A.6585@sun.com> +Date: Wed, 16 Oct 1996 15:07:22 -0700 +From: The Java Man +Organization: Sun Microsystems, Inc. +X-Mailer: Mozilla 2.01 (X11; I; SunOS 5.5 sun4m) +MIME-Version: 1.0 +To: management@corp +Subject: Java is Really Taking Off! +X-URL: http://labyrinth/demo/mail/javacomputing/index.html +Content-Type: text/html; charset=us-ascii +Content-Transfer-Encoding: 7bit +Content-Disposition: inline; filename="index.html" +Content-Length: 1428 +Status: RO +X-Status: +X-Keywords: +X-UID: 142 + + + + + + + XXXX Xxxxxxxxx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Xxxxxxxxx xx xxxxxxxx xxxxxxxxx xxxx xxxxxxx? +xxxxxxxxx@xxx.xxx + +Xxxxxxxxx 1996 Xxx Xxxxxxxxxxxx, Xxx., 2550 Xxxxxx Xxx., Xxx. Xxxx, Xx 94043-1100 XXX. Xxx Xxxxxx Xxxxxxxx + + + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/24 b/glassfish-runner/mail-platform-tck/mailboxes/test1/24 new file mode 100644 index 0000000000..e707806dc5 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/24 @@ -0,0 +1,58 @@ +From ellie Tue Nov 26 17:41:17 1996 +Return-Path: +Received: by labyrinth.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id RAA11481; Tue, 26 Nov 1996 17:41:12 -0800 +Date: Tue, 26 Nov 1996 17:41:12 -0800 +From: ellie@localhost (Ellie Dukemaster) +Message-Id: <199611270141.RAA11481@labyrinth.Eng.Sun.COM> +To: test@labyrinth (Jane Process) +Subject: Duke's Mug (image/gif message) +Mime-Version: 1.0 +Content-Type: image/gif; name=duke.gif +Content-Transfer-Encoding: base64 +Content-Description: duke.gif +Status: RO +X-Status: +X-Keywords: +X-UID: 144 +Content-Length: 2702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bCGTQ8ACZiSwSIHT4MwsPLevO9sNAVwBF5RFII7ogIameu +9dJcg5wBFHzIVAoYmkzg8uKmd1xBBht4EEMiMu2BSiOIL3560xQA7UHIjcg00hmIJ9708xOk +m/sGhshUBytFlK748wNwjfsGcnwOURysvIB57VnvW4EGG4wh/kOfqELB7M5rnjLQ7FehRUhC +4HLI+dxjmt4m0LAnOGYjI0FD4mqXsMXdL2hKkM1GNHELMOwscz+rFgW0NoANri8I2spIG0ji +hNlhLYMpmMIYuKCECghAdh1cH9EQuApV4KBpAgDaCNQAClL4QRSjWIMLql+2vhxEIiRS8EML +nDeBH2CCEVYYyBM+oYYL3u4Fc8tIJC7QMwlMYAqbAINBflCKIeyMay84YkgIUYF8ca0KmlAC +QrjQCBfGEAeHSIkjKCABmE1BE0RQyCSm8EKgBUEQKfHDBCjwRUsASSFOkEQGcpiBJ7AhJYhA +QQWmkAmHCAILOayA+1ISCSyIoZMP6cQLCKABKqUkE4WISB0a8QMxHLBdDbmLK3H5k4AA +ADs= + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/25 b/glassfish-runner/mail-platform-tck/mailboxes/test1/25 new file mode 100644 index 0000000000..4e86defb92 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/25 @@ -0,0 +1,60 @@ +From max.spivak@Sun.COM Wed Jan 15 18:21:06 1997 +Return-Path: +Received: from apilon by apilon.eng.sun.com (SMI-8.6/SMI-SVR4) + id SAA00775; Wed, 15 Jan 1997 18:21:04 -0800 +Sender: mspivak@Sun.COM +Message-ID: <32DD908F.4557@Sun.COM> +Date: Wed, 15 Jan 1997 18:21:03 -0800 +From: MAXIM SPIVAK +Organization: Sun Microsystems +X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5.1 sun4m) +MIME-Version: 1.0 +To: maxs@apilon +Subject: Network Debug Applet +Content-Type: multipart/mixed; boundary="------------55FD5B3753D0" +Content-Length: 1011 +Status: RO +X-Status: +X-Keywords: +X-UID: 145 + +This is a multi-part message in MIME format. + +--------------55FD5B3753D0 +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: 7bit + +xxxx:///xxxx/xxxxxxx/XxxxXxxx/XxxxxXxx/XxxxxXxx.xxxx + +--------------55FD5B3753D0 +Content-Type: text/html; charset=us-ascii; name="DebugNet.html" +Content-Transfer-Encoding: 7bit +Content-Disposition: inline; filename="DebugNet.html" +Content-Base: "file:///home/mspivak/JavaMail/DebugNet + /DebugNet.html" + + + + + + + Xxxxxxx Xxxxx Xxxxxx + + + + Xxxxxxx Xxxxx Xxxxxx + + + + + + + Xxx Xxxxxx + + +Xxxx xxxxxxxx: Xxx Xxx 4 16:11:54 XXX 1996 + + + + +--------------55FD5B3753D0-- diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/3 b/glassfish-runner/mail-platform-tck/mailboxes/test1/3 new file mode 100644 index 0000000000..b86d14f719 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/3 @@ -0,0 +1,34 @@ +From mspivak Fri Nov 22 11:04:26 1996 +Return-Path: +Received: from apilon by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id LAA06378; Fri, 22 Nov 1996 11:04:25 -0800 +Date: Fri, 22 Nov 1996 11:04:25 -0800 +From: mspivak@localhost (Max Spivak) +Message-Id: <199611221904.LAA06378@apilon.Eng.Sun.COM> +Subject: Pre-composed Multipart Message +To: test1@localhost, maxs@apilon, mspivak@localhost, max.spivak@eng +X-Mailer: HotJava Views MailView V1.0 +Content-Type: multipart/mixed; boundary=70114105327811111832505032494958485158525332808384324957570 +Mime-Version: 1.0 +Content-Length: 399 +Status: RO +X-Status: +X-Keywords: +X-UID: 53 + +--70114105327811111832505032494958485158525332808384324957570 +Content-Type: text/plain; charset=us-ascii + +Line1 +Line2 +Line3 + + ** This message was created by Hot Java Views and Max ** +--70114105327811111832505032494958485158525332808384324957570 +Content-Type: text/plain; charset=us-ascii + +Hello, I'm an attachment. +AttachLn2 +AttachLn3 +--70114105327811111832505032494958485158525332808384324957570-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/4 b/glassfish-runner/mail-platform-tck/mailboxes/test1/4 new file mode 100644 index 0000000000..4121fc2006 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/4 @@ -0,0 +1,22 @@ +From mspivak Fri Nov 22 11:45:30 1996 +Return-Path: +Received: from apilon by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id LAA06520; Fri, 22 Nov 1996 11:45:28 -0800 +Date: Fri, 22 Nov 1996 11:45:28 -0800 +From: mspivak@localhost (Max Spivak) +Message-Id: <199611221945.LAA06520@apilon.Eng.Sun.COM> +Subject: Pre-composed Singlepart Message +To: test1@localhost, maxs@apilon, mspivak@localhost, max.spivak@eng, maxims@eeeyore.com, test2@localhost +X-Mailer: HotJava Views MailView V1.0 +Content-Type: text/plain; charset=us-ascii +Mime-Version: 1.0 +Content-Length: 18 +Status: RO +X-Status: +X-Keywords: +X-UID: 55 + +Line1 +Line2 +Line3 + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/5 b/glassfish-runner/mail-platform-tck/mailboxes/test1/5 new file mode 100644 index 0000000000..d92ae3a04e --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/5 @@ -0,0 +1,83 @@ +From mspivak@apilon Mon Nov 25 17:00:24 1996 +Return-Path: +Received: from apilon by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id RAA12187; Mon, 25 Nov 1996 17:00:23 -0800 +Date: Mon, 25 Nov 1996 17:00:23 -0800 (PST) +From: Max Spivak +Reply-To: Max Spivak +Subject: embedded rfc822 msg +To: mspivak@apilon +Cc: maxs@apilon +Message-ID: +MIME-Version: 1.0 +Content-Type: MULTIPART/mixed; BOUNDARY=Team_of_Horses_858_000 +X-Mailer: dtmail 1.1.0 CDE Version 1.1_47 SunOS 5.5.1 sun4m sparc +Content-Length: 2308 +Status: RO +X-Status: +X-Keywords: +X-UID: 58 + +--Team_of_Horses_858_000 +Content-Type: TEXT/plain; charset=us-ascii +Content-MD5: QrmpmH+ZebQEWHSsVT34Xw== + +Embedded rfc822 message inside... + +--Team_of_Horses_858_000 +Content-Type: MESSAGE/rfc822; name=Mailbox +Content-Description: Mailbox + +From Edmund.Sutcliffe@UK Mon Nov 25 04:01:52 1996 +Return-Path: +Received: from shadows.eng.sun.com by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id EAA10518; Mon, 25 Nov 1996 04:01:52 -0800 +Received: from Eng.Sun.COM by shadows.eng.sun.com (SMI-8.6/SMI-SVR4) + id DAA07151; Mon, 25 Nov 1996 03:42:31 -0800 +Received: from sunmail1.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id DAA23897; Mon, 25 Nov 1996 03:41:13 -0800 +Received: from mercury.Sun.COM by sunmail1.Sun.COM (SMI-8.6/SMI-4.1) + id DAA01497; Mon, 25 Nov 1996 03:41:12 -0800 +Received: from UK.Sun.COM ([129.156.85.58]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id DAA29561 for ; Mon, 25 Nov 1996 03:41:12 -0800 +Received: from cby-mail (cby-mail.UK.Sun.COM) by UK.Sun.COM (5.x/SMI-SVR4-sd.fkk205) + id AA09042; Mon, 25 Nov 1996 11:41:19 GMT +Received: from prodigal.uk.sun.com by cby-mail (5.x/SMI-SVR4-se.fkk202) + id AA06198; Mon, 25 Nov 1996 11:41:14 GMT +Received: by prodigal.uk.sun.com (SMI-8.6/SMI-SVR4) + id LAA02726; Mon, 25 Nov 1996 11:40:57 GMT +Date: Mon, 25 Nov 1996 11:40:57 GMT +From: Edmund.Sutcliffe@UK (Edmund J. Sutcliffe - European Support Services - SunSoft) +Message-Id: <199611251140.LAA02726@prodigal.uk.sun.com> +To: mkurowski@Central +Subject: MFC for Java +Cc: java-internal@Sun.COM +Mime-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: quoted-printable +Content-Md5: hl4fteOU7/hHNbew2sftJA== +Content-Length: 571 +Status: RO +X-Status: +X-Keywords: +X-UID: 118 + +Xx, + xxx xxxxxx xxxxx xxxx xxx Xxxxxxx Xxxxxxx + +xxxxx xx xxxxxxxx xx xxxxx xxx xx xxxx XxxxxXxxx Xxxxxxxxxx Xxxxx xxxx = +xxx=20 +xxxxxxx Xxxx XXX xxxxxxxxxx. Xx xx xxx xxxx xx xx. Xxx xxxxxx xxxxx x = +xxxx xxxx=20 +xxxx, xxx xxxxxxx Xxxxxxx Xxxx. + Xxxxxx + = +-------------------------------------------------------------------------= +--- + Xxxxxx X. Xxxxxxxxx = +xxxxx: =20 + XxxXxxx Xxxxxxxx Xxxxxxx Xxx: +44 (0)1276 416120 + Xxx: +44 (0)1276 677121 + + +--Team_of_Horses_858_000-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/6 b/glassfish-runner/mail-platform-tck/mailboxes/test1/6 new file mode 100644 index 0000000000..f3bfd5a12a --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/6 @@ -0,0 +1,19 @@ +From mspivak Mon Nov 25 17:06:40 1996 +Return-Path: +Received: from apilon by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id RAA12228; Mon, 25 Nov 1996 17:06:39 -0800 +Date: Mon, 25 Nov 1996 17:06:39 -0800 +From: mspivak@localhost (Max Spivak) +Message-Id: <199611260106.RAA12228@apilon.Eng.Sun.COM> +To: maxs@apilon +X-Mailer: HotJava Views MailView V1.0 +Content-Type: text/plain; charset=us-ascii +Mime-Version: 1.0 +Content-Length: 8 +Status: RO +X-Status: +X-Keywords: +X-UID: 119 + +sender? + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/7 b/glassfish-runner/mail-platform-tck/mailboxes/test1/7 new file mode 100644 index 0000000000..8a92a2270e --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/7 @@ -0,0 +1,39 @@ +From mspivak Tue Dec 10 10:54:12 1996 +Return-Path: +Received: from apilon by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id KAA10637; Tue, 10 Dec 1996 10:54:11 -0800 +Date: Tue, 10 Dec 1996 10:54:11 -0800 +From: mspivak@localhost (Max Spivak) +Message-Id: <199612101854.KAA10637@apilon.Eng.Sun.COM> +To: maxs@apilon +Subject: Mala's Staff +X-Mailer: HotJava Views MailView V1.0 +Mime-Version: 1.0 +Content-Type: multipart/mixed; boundary=8411710132681019932494832494858535258484932808384324957570 +Content-Length: 450 +Status: RO +X-Status: +X-Keywords: +X-UID: 120 + +--8411710132681019932494832494858535258484932808384324957570 +Content-Type: text/plain; charset=us-ascii + +test message +--8411710132681019932494832494858535258484932808384324957570 +Content-Type: application/x-sun-ae-file; name=CalendarAppointment + + + + ** Calendar Appointment ** + Date: 12/10/1996 + Start: 10:00am + End: 11:00am + Repeat: Weekly + For: 51 + What: Mala's Staff + Aladdin's Lamp + + +--8411710132681019932494832494858535258484932808384324957570-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/8 b/glassfish-runner/mail-platform-tck/mailboxes/test1/8 new file mode 100644 index 0000000000..0e93eaa612 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/8 @@ -0,0 +1,239 @@ +From mspivak@apilon Thu Dec 12 15:24:01 1996 +Return-Path: +Received: from apilon by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id PAA14786; Thu, 12 Dec 1996 15:24:00 -0800 +Date: Thu, 12 Dec 1996 15:24:00 -0800 (PST) +From: Max Spivak +Reply-To: Max Spivak +Subject: mailbox as an attachment +To: maxs@apilon +Message-ID: +MIME-Version: 1.0 +Content-Type: MULTIPART/mixed; BOUNDARY=Bouguet_of_Pheasants_890_000 +X-Mailer: dtmail 1.1.0 CDE Version 1.1_47 SunOS 5.5.1 sun4m sparc +Content-Length: 6434 +Status: RO +X-Status: +X-Keywords: +X-UID: 121 + +--Bouguet_of_Pheasants_890_000 +Content-Type: TEXT/plain; charset=us-ascii +Content-MD5: g7i2pCU5RcUCf4SAdigBnA== + +main body + +--Bouguet_of_Pheasants_890_000 +Content-Type: MESSAGE/rfc822; name=Mailbox +Content-Description: Mailbox + + +From polina@hpclear3.cup.hp.com Thu Dec 12 13:30:03 1996 +Return-Path: +Received: from Eng.Sun.COM by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id NAA14597; Thu, 12 Dec 1996 13:30:02 -0800 +Received: from venus.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id NAA01543; Thu, 12 Dec 1996 13:29:29 -0800 +Received: from palrel3.hp.com (palrel3.hp.com [15.253.88.10]) by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id NAA05618 for ; Thu, 12 Dec 1996 13:29:28 -0800 +Received: from hpclear3.cup.hp.com (hpclear3.cup.hp.com [15.0.97.41]) by palrel3.hp.com with ESMTP (8.7.5/8.7.3) id NAA24936 for ; Thu, 12 Dec 1996 13:28:12 -0800 (PST) +Received: from scar (scar.cup.hp.com) by hpclear3.cup.hp.com with SMTP + (1.37.109.15/15.5+IOS 3.20+cup+OMrelay) id AA023496087; Thu, 12 Dec 1996 13:28:07 -0800 +Sender: polina@hpclear3.cup.hp.com +Message-Id: <32B078EB.75AC@cup.hp.com> +Date: Thu, 12 Dec 1996 13:28:11 -0800 +From: Polina Kuznetsov +Organization: California Language Lab +X-Mailer: Mozilla 3.0 (X11; I; HP-UX B.10.10 9000/829) +Mime-Version: 1.0 +To: Max Spivak +Subject: Re: Joke: The 12 Bugs of Christmas +References: +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: 7bit +Content-Length: 171 +Status: RO +X-Status: +X-Keywords: +X-UID: 122 + +Xx xxx'x xxxx? Xxxx xxx xxx xxx xx xxxxx xxxx xxxxx? +Xx xxxx xx xxx xxxx xxxxxxx xxxxx xxxxxx xx xxx xxxx xxxxxxx. + +143! +xx + +xx--xxxx xxxx xx xxx xxxxx xxx'xx xxxx xxxx? + +From mspivak@apilon Thu Dec 12 13:34:21 1996 +Return-Path: +Received: from Eng.Sun.COM by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id NAA14605; Thu, 12 Dec 1996 13:34:20 -0800 +Received: from rita.Eng.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id NAA23695; Thu, 12 Dec 1996 13:33:46 -0800 +Received: from apilon.Eng.Sun.COM by rita.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id NAA01051; Thu, 12 Dec 1996 13:33:54 -0800 +Received: from apilon by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id NAA14602; Thu, 12 Dec 1996 13:34:14 -0800 +Date: Thu, 12 Dec 1996 13:34:14 -0800 (PST) +From: Max Spivak +Reply-To: Max Spivak +Subject: Envelope.hasAttachments() question +To: shannon@apilon, jmk@apilon +Cc: javamail@rita +Message-ID: +MIME-Version: 1.0 +Content-Type: TEXT/plain; charset=us-ascii +Content-MD5: PaFfJ5SXkFM21OZM/jNsrw== +X-Mailer: dtmail 1.1.0 CDE Version 1.1_47 SunOS 5.5.1 sun4m sparc +Content-Length: 1044 +Status: RO +X-Status: +X-Keywords: +X-UID: 123 + +Xxxx, Xxxx, + +X'x xxxxxx xx xxxx xx (Xxxxxxxx)Xxxxxxxx.xxxXxxxxxxxxxx() xx xxxxx xxx +xxxxxxx xxx xxx xx xx xx xxxx xxxx xxxx xxxxxxxxxxx. (Xx xxxxxxx xx +xxxxxx xxxxxxx xx xxx xxx_xxxxxxxxxxx xxxx xxxxx xxx xxx xx xxx.) + +Xxxxxxx: xx xxxxxxxx xxx xx xxxxxxxxx xx xxx xxxxxxx xx xxxxxxx xx. +Xxxx xxxxx xxxxxxx xxx xxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxxxxx. :-) + +Xxx xxxxxxxx xx xx xxxx x xxx XxxxxxxxXxxxxxxx(Xxxxxxx) xxxxxxxxxxx, +xxxxx xx xxxx xxxx XxxxxxxxXxxxxxx.xxxXxxxxxxx() xxx xxxx xxxx xxx +xxxxxxx xx xxx xxxxxxxx. + +Xx, xxxx: + + xxxxxx xxxxxxxxxxxx Xxxxxxxx xxxXxxxxxxx() + xxxxxx XxxxxxxxxXxxxxxxxx { + xx (xxx == xxxx) + xxx = xxx XxxxxxxxXxxxxxxx(); + xxxxxx xxx; + } + + +xx: + + xxxxxx xxxxxxxxxxxx Xxxxxxxx xxxXxxxxxxx() + xxxxxx XxxxxxxxxXxxxxxxxx { + xx (xxx == xxxx) + xxx = xxx XxxxxxxxXxxxxxxx(xxxx); + xxxxxx xxx; + } + +xxxxx: + + xxxxxx XxxxxxxxXxxxxxxx(XxxxxxxxXxxxxxx x) { + xxxxxxXxxxx = xxx XxxxxxxxXxxxxxx(); + xxxxxxx = x; + } + + +Xxxxxxxx--xxxx xxxx xxxxx xxxxxxxx? + +Xxx, +Xxx + + +From test@javamail Thu Dec 12 13:43:36 1996 +Return-Path: +Received: from javamail.Eng.Sun.COM by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id NAA14619; Thu, 12 Dec 1996 13:43:35 -0800 +Received: from javamail by javamail.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id NAA03278; Thu, 12 Dec 1996 13:43:08 -0800 +Date: Thu, 12 Dec 1996 13:43:08 -0800 (PST) +From: JavaMail Test User +Reply-To: JavaMail Test User +Subject: Re: Start: applet not initialized +To: Max Spivak +Message-ID: +MIME-Version: 1.0 +Content-Type: TEXT/plain; charset=us-ascii +Content-MD5: yRCwkaTcAjVQ0KRPJ+ms4A== +X-Mailer: dtmail 1.1.0 CDE Version 1.1_42 SunOS 5.5.1 sun4u sparc +Content-Length: 1374 +Status: RO +X-Status: +X-Keywords: +X-UID: 124 + + +> Xxxx: Xxx, 12 Xxx 1996 13:23:50 -0800 (XXX) +> Xxxx: Xxx Xxxxxx +> Xxxxxxx: Xx: Xxxxx: xxxxxx xxx xxxxxxxxxxx +> Xx: xxxxxxxx@xxxx, xxxx@xxxxxxxx +> XXXX-Xxxxxxx: 1.0 +> Xxxxxxx-XX5: xXXxXXxX4xXXxXXXXXXXXX== +> +> Xxx xxxxx xxxxxxxxxx xxxx xxx xxx xx xxxxx xx xx? + +Xx. Xxxx. Xxxxx xxx xxxxxxx xxxxx xxxxx xx. + +Xxxx xxxxxxx xxx xxxxxxx xx xxx xxxx. Xx xxx xxxx xx xx xxxx xxx xxxxxx xxx +xxxxx XXX xx xxx xxxxxx. Xxx xxxx xxx xxxxxx xxxx xxx xxxxxxxx xxx: + +Xxxxxxx xxxxxx xx: xxxx://xxxxxxxx/xxx/xxxx/xxxxxxx/xxxx/xxx/xxxx/Xxxxx.xxxxx xx xxx xxxx.xx +xxxXxxxxxXxxx() xxxxxx "Xxxxx Xxxxxxx 3" (0xx0026xx0) +[Xxxxxx: ./.xxxxxxx/xxxxxxx] +[Xxxxxx xx xxxx: ./.xxxxxxx/xxxxxxx] + + +-Xxxxxx + +XX xxx XxxxXxx xxxxx'x xxxx "xxxx" xxxx xxxxxx xx xxx xxx xxxx xxxxx. + +> +> Xxx xxxxx xxxx xxx xx xxx--xx xxxxx xxx xxxx xx xxxxx xxxxxxx? +> +> Xxxx xxxxxxxx xxxxxxx xxxxx xxx xxx xxxx xxxxxxx xxxx? +> +> Xxx +> +> > Xxxx: Xxx, 12 Xxx 1996 12:54:56 -0800 (XXX) +> > Xxxx: XxxxXxxx Xxxx Xxxx +> > Xxxxxxx: Xxxxx: xxxxxx xxx xxxxxxxxxxx +> > Xx: xxxxxxxx@xxxx +> > XXXX-Xxxxxxx: 1.0 +> > Xxxxxxx-XX5: xXX5xxxXxXxX+XxXxXxxXX== +> > +> > +> > Xxxxxxxx xxx XxxxXxx xxxxxxx xxx xxxxx xxxxxxxxxxx xxxxxxxx, xxxx xxx xxx +> > xxxxxxxx xx xx xxx. +> > +> > X xxx xxx xxxxx xxxx x xxxxxx xxxxx xxx. +> > +> > -Xxxxxx +> > +> > XX Xxxxx xxxx xx xx xxxxxx xx xxx xxxxx xxxxxxx. +> > +> + + + +--Bouguet_of_Pheasants_890_000-- + +From mspivak@apilon Thu Dec 12 16:43:18 1996 +Return-Path: +Received: from apilon by apilon.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id QAA14972; Thu, 12 Dec 1996 16:43:17 -0800 +Date: Thu, 12 Dec 1996 16:43:16 -0800 (PST) +From: Max Spivak +Reply-To: Max Spivak +Subject: GEN-OBIT Digest - 7 Dec 1996 to 8 Dec 1996 - Special issue +To: maxs@apilon +Message-ID: +MIME-Version: 1.0 +Content-Type: TEXT/plain; charset=us-ascii +Content-MD5: soaygIjv32GsscwKzdfFnw== +X-Mailer: dtmail 1.1.0 CDE Version 1.1_47 SunOS 5.5.1 sun4m sparc +Content-Length: 150804 +Status: RO +X-Status: +X-Keywords: +X-UID: 125 + + +------------- Begin Forwarded Message ------------- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test1/9 b/glassfish-runner/mail-platform-tck/mailboxes/test1/9 new file mode 100644 index 0000000000..59b64bac68 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test1/9 @@ -0,0 +1,2386 @@ +From LISTSERV@MAIL.EWORLD.COM Sun Dec 8 06: 25:27 1996 +Date: Sun, 8 Dec 1996 09:30:12 -0500 +From: Automatic digest processor +Subject: GEN-OBIT Digest - 7 Dec 1996 to 8 Dec 1996 - Special issue +To: Recipients of GEN-OBIT digests +Status: RO +Content-Length: 150465 + +Xxxxx xx xxx xxxxxxx xxxxxxxxx 2058 xxxxx xx xxxx xxxxx. + +Xxxxxx xx xxxx xxxxxxx xxxxx: + + 1. Xxxxxxxx Xxxxx Xxxxx X2Xx279 + +---------------------------------------------------------------------- + +Xxxx: Xxx, 8 Xxx 1996 09:21:49 +0000 +Xxxx: "Xxxxxx X. Xxxxxx" +Xxxxxxx: Xxxxxxxx Xxxxx Xxxxx X2Xx279 + +-------------- Xxxxxxxxx xxxxxx 1 ---------------- +Xxxxxxxx Xxxxx Xxxxx x2 #279 + +Xxxx; xxx; xxxxx xx xxxxx; xxxx xx xxxxxxxxxxx; xxxx xx xxxxxxxxxxx; xxxxxxx +--------------------------------------------------------------------------------- +---------------------------------------------- +XXXXX, Xxxxxxx Xxxxxxx; 37; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxx X; 37; Xxxx Xxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxx X Xx "Xxxx"; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, Xxxxxxxx Xxxxxx; 54; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXXX, Xxxxxx Xxxxxx; ; Xxxxx xxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXX, Xxxx X; 58; Xxx Xxx XX; Xxx Xxxxxx X-X; 1996-12-6; xxxxxx +XXXXX, Xxxxxx X; 33; Xxxxx Xx XX; Xx Xxxxx Xxxx (XX); 1996-12-6; xxxxxx +XXXXX, Xxxxxxxxx X (XXXXXXX); 77; Xxxxxxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXXXXXXX, Xxxxx X ( ); 90; Xxxxxx XX; Xxxxxx X-X; 1996-10-27; xxxxxxxx +XXXXXXX, Xxxxxxxx "Xxxxx"; 65; X Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXXXXX, Xxxxxxxx "Xxxxx"; 65; X Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXXXX, Xxxxxx X; ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXX, Xxxxx X (XXXXXX); 95; Xxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-29; xxxxxxx +XXXXX, Xxxxx X; 75; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxxxxx X Xx; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxx X; 86; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, Xxxx X ( ); ; ; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXXX, Xxxxx ( ); 70; Xxxxxx Xxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXXXXXX, Xxxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxxxxxx "Xxxxxx" (XXXXXX); 78; Xxxxx Xxxxx XX>Xxxxxxxxx XX; Xxxxxx X; +1996-11-27; xxxxxxxxx +XXXXXX, Xxxxxx Xxxx; ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxxx Xxxxxxx (XXXXXXXX); 45; Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXX, Xxxxx X; 63; Xxxxx XX>Xxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXX, Xxxxxx Xxx ( ); 85; Xxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxxx Xxxx; 20; Xxxxxx XX; Xxxxxx X; 1996-11-26; xxxxxxxxx +XXX, Xxxxx Xxxx; 76; Xxxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXX, Xxxxx ( ); 76; Xxxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXX, Xxxx (XXXXXXXX); 71; Xxxxx XXX>Xxxxxxx Xxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXX, Xxxxxxx; 53; XXX XXX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxxxxx Xxxxxxx; 22; Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; xxxxxxxx +XXXXXXXX, Xxxxxx X; 88; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXX, Xxxxxx ( ); 95; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXXX, Xxxxxxxxx ( ); 93; Xxxxx Xxxx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXXX, Xxxxxx ( ); 95; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXX, Xxxxxxxx X ( ); 82; Xxxxxxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXXXXX, Xxxxxx Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXX, Xxxxxx X "Xxxx"; 80; Xxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXXXX, Xxxxxxx X; 92; Xxxxxxx XX; Xxxxxx Xx X (XX); 1996-10-16; xxxxxxxx +XXXXXXXX, Xxxxxx X; 88; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXXX, Xxxxx; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxx (XXXXXX); 81; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxxxxxx X ( ); 69; Xxxxx XX; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXX, Xxxxxxxx X ( ); 69; Xxxxx XX; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXX, Xxxxxxxx Xxxxxx ( ); 70; Xxxxxxxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXXXXXX, Xxxx (XXXX); 80; Xxxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxx X ( ); 79; Xxxx Xxxxx Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxx; 86; XX>Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXXXX, Xxxxxx ( ); 55; Xxxxxxxxx XXX; Xxx Xxxxxx X-X (XX); 1996-12-6; xxxxxx +XXXXXXXXX, Xxxxx Xxx ( )[XXXXX][XXXXX]; 83; Xxxxxxxxxxx XX; Xx Xxxx X-X; +1996-12-3; xxxxxxx +XXXXXX, Xxxx X XXX; 44; Xx Xxxxx Xxxxxxx XX>Xxxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; +1996-11-26; xxxxxxx +XXXXXX, Xxxxx Xxx ( ); 76; Xxxxxxxx XX>Xxxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXXXX, Xxxxxxx Xxxxx; 52; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXX, Xxxxxx Xxxxxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXX, Xxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXX, Xxxxxxxxxx (XXXXXX); ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXX, Xxxxx X; 87; Xxxxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXX, Xxxx X; 54; Xxxxxxxxxx XX>Xxxxxx Xxxx XX; Xxxxxx X; 1996-11-27; xxxxxxxxx +XXXXXXXXX, Xxxxxx X; 74; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXX, Xxxxx X ( ); 87; Xxxx Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, Xxxxxx XxXxxx; 82; Xxxxxx XX>Xxxxxxxxxx XX; Xxxxxx X; 1996-11-27; +xxxxxxxxx +XXXXXX, Xxxxx X ( ); 88; Xxxx Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXX, Xxxxxxxxxx Xxxxxxx ( ); 60; Xxx Xxxx Xxxx XX>Xxxxxxxx XX; Xxxxxx X; +1996-11-25; xxxxxxxxx +XXXXX, Xxxxx Xxxxx ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxx X ( ); 87; Xxxxxxxx XX; Xxxxxx X (XX); 1996-11-27; xxxxxxxxx +XXXXXXX, Xxxxxx X (XXXXX); 83; Xxxxxxxxxxx XX; Xxxxxx X; 1996-12-7; xxxxx +XXXX, Xxxxx X ( ); 76; Xxxxxxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXX, Xxxxx Xxxxxx Xxxx; 82; Xxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXX, Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXXXX, Xxxxxxxx X (XXXXXXX); 70; XX>Xxxxx Xxxx XX; Xxxxxxxx Xxxxxxx (XX); +1996-6-19; xxxxxxxx +XXXXXXXXXX, Xxxxxxxx X (XXXXXXX); 70; XX>Xxxxx Xxxx XX; Xxxxxxxx Xxxxxxx (XX); +1996-6-19; xxxxxxxx +XXXXXX, Xxxxx X; 65; Xxxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXXX, Xxxxxx X; 74; Xxxxxxxxx Xx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, Xxxxx X ( ); 75; Xx Xxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXX, Xxxxxxx X Xx; 69; Xxxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, Xxxxxx X; 90; Xxx'x Xxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxxxx X; 59; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXX, Xxxx X (XXXXXX); 79; Xxxxxxxx XX; Xxxxxxxx Xx X; 1996-10-17; xxxxxxxx +XXXXXXX, Xxxxxxx; 49; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXX-XXXXXX, XxXxxxxx "Xxxx"; ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXX, Xxxx X Xx; 66; Xxxxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxxxxxxx (XXXXXXX); 77; Xx Xxxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXXXXX, Xxxxxx X; 99; Xxxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXXXXX, Xxxxxx X; 99; Xxxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXX, Xxxxxxxx; 84; Xxxxxxxx XX>XxXxxxx XX; Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXXXX, Xxxxxx ( ); 75; XXX>Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXXXX, Xxxxxx X; 76; Xxxxxx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXX, Xxxxxx X; ; Xxxxxxxxx XX; Xxxxxxx Xxxxx (XX); 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxx "Xxxx"; 66; Xxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-24; xxxxxxx +XXXXXXX, Xxxxxx Xxxx; 9; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXX, Xxxxxx X ( ); ; Xxxxxx Xxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxxx Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxx Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxxxx X "Xxxxx" (XXXXX); 81; Xxxxxxx Xxxx XX; Xxxxxxxx X-X; 1996-10-24; +xxxxxxxx +XXXXXXX, X X; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXX, Xxxxxxx X (XXXXXXXXX); 87; Xxxxxx Xxxxxx XX>Xxxxx XX; Xxxxxxx Xxxxx Xxxx +(XX); 1996-12-3; xxxxxxx +XXXX, Xxxxxxx X; 83; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXXX, Xxxx X ( )[XXXXXX]; ; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXX, Xxxxxx Xxxxxxxxx (XXXXXXX); 89; Xxxxx Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; +xxxxxxxx +XXXX, Xxxx X; 11; Xxxxxx XX; Xxxxxx X; 1996-10-13; xxxxxxx +XXXX, Xxxxx X (XXXXX); ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXX, Xxx X Xx; 77; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXX, Xxx X; 77; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXX, Xxxxx Xxxxx ( ); 86; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXX, Xxxxxx X XXX Xxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxxxx X XXX-2 XXX Xxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; +xxxxxxxx +XXXXXXXXX, Xxxxxxx "Xxxxx"; 83; Xxxxxxxx XX; Xxxxxx X-X; 1996-10-27; xxxxxxxx +XXXXXXX, Xxxx X (XXXXXX); 83; Xxxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXX, Xxxx X (XXXXXX); 83; Xxxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXXXXX, X X "Xxxxxxx X"; 68; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXXXX, Xxxxxx Xxxxxxxx; ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxxx X (XxXXX); 75; Xxxxx Xxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxxx X; 70; XX>Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXX, Xxxxx Xxxxxxxxxxx ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxxx (XXXXX); ; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxxx "Xxxx" X; 71; Xxxxxx XX; Xxxxxx X; 1996-12-7; xxxxx +XXXXXX, Xxxxx (XXXXXXXXX); 81; XX>Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxx (XXXXXXXXX); ; Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxxx Xxxxxx Xx Xxx XXX Xxx; ; Xxxxx Xxxxx XX; Xxxx XX Xxxx; +1996-11-22; xxx +XXXXXXXX, Xxxxx Xxxxxx; 81; XXX>Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-20; +xxxxxxxx +XXXXXXXXXX, Xxxxxxx Xxxxxx (XXXXX); 49; Xxxx XX>Xxxxxxx Xxxxxxx XX; Xxxxxx X; +1996-11-28; xxxxxxxxx +XXXXXXXX, Xxxxxxx X; 76; Xxxxxx XX>Xxxxxxx Xxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXXXXXXXX, Xxxxx Xxxxxx "Xxx"; 60; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXXX, Xxxx X; 61; Xxxxxxxxxxx XX; Xxxxxx X; 1996-10-15; xxxxxxx +XXXXXXXXX, Xxxxxxx Xxxxx Xx; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXXX, Xxxxxxx Xxxxx Xx; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXX, Xxxxxx X; 80; ; Xxxxx X-X (XX); 1996-12-4; xxxxxxx +XXXX, Xxxxxxx X; 82; XX>Xxx Xxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXX, Xxxxxx Xxxx; 75; Xxxxx Xxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXXX, Xxxxxxxxx X; ; Xxxxxx Xxxx XX; Xx Xxxxx Xxxx (XX); 1996-12-6; xxxxxx +XXXXXXX, Xxxxx Xxxxxx; 75; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxx (XXXXXXX); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxxx X "Xxxx"; 74; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXX, Xxxxxxx X "Xxxx"; 74; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXX, Xxxx X; ; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXX, Xxxxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXX, Xxxxxxxx X ( ); ; Xxxxxxx XX; XXX Xxxxx; 1996-10-27; xxxxxxx +XXXXXX, Xxxxxx Xxx (XXXX); 49; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxx X; 49; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXXXX, Xxxxxxx X ( ); 90; Xxx Xxxx XX>Xxxxxxx XX; Xxxxxx X; 1996-11-27; +xxxxxxxxx +XXXXXXXXXX, Xxxxxxxx; 75; Xxxxx Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXXXXXX, Xxxxx X ( ); 29; Xxxxxx XXX>Xxxxxx XX; Xxxxxx X; 1996-12-6; xxxxx +XXXXXXX, Xxxxx (XXXXXXXX); 89; Xxxxxxxxx XX; Xxx Xxx Xxxxxxx; 1996-11-30; xxxxxxx +XXXXXXX, Xxxxx (XXXXXX); 40; Xxxxx Xxxxxx XX; XX Xxxxx; 1996-10-26 +XXXXXXXXX, Xxxxxx X; 69; Xxxxxxx XX; Xxx Xxx Xxxxxxx; 1996-11-30; xxxxxxx +XXXXX, Xxxx X; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXX, Xxxxx X Xx; ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxxxxxx Xxxx; 44; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXX, Xxxxxxxx (XXXXXXXXX); ; Xxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxx Xxxxxxx Xx; 84; Xxxxxxxx XX; Xxxxxxxx Xxxx; 1996-11-6; xxxxxxxx +XXXXXXXXXX, Xxxx X ( ); 79; Xxxxxxx Xxxxxxx XX; X X Xxxx (XX); 1996-12-5; +xxxxxxxx +XXXXX, Xxxx X (XXXXXXX); 74; Xxxxxxxx XX; Xxxxxx & Xxxxxxxxxx; 1996-10-16; +xxxxxxxx +XXXXX, Xxxxx X Xx; 51; Xxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxx Xxxxx; ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXX, Xxxx X; 64; Xxxxxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxx Xxxxxx Xx; 77; Xxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXXX, Xxxxxxxxx X "Xxxxx" (XXXXXX); 81; Xxxxxx XX; Xxxxxx X-X; 1996-10-26; +xxxxxxxx +XXXXXX, Xxxxx X XXX XXX Xxx; ; Xxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; +xxxxxxxx +XXXX, Xxxx X Xxx XXXX Xxx; 75; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXX, Xxxxx Xx; 62; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXX, Xxxxxx Xxx; ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXX, Xxxxxxx Xxx; 0; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxx X; ; Xxxxxxxx Xx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxx Xxxx (XXXXXXX); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxx Xxxx (XXXXXXX); 80; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; +xxxxxxxx +XXXXXX, Xxxxxxx (XXXXX); 83; Xxxxxxx Xxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXXXX, Xxxxxxx (XXXXX); 83; Xxxxxxx Xxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXXXXXX, Xxxxxxx X (XxXXXXXX); 86; Xxxxx Xxxx XX; Xxxxxxx Xxxx (XX); 1996-11-28; +xxxxxxxx +XXXXXXXX, Xxxxxxxx; ; Xxxxxxx Xxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxxxx Xx; 68; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXX, Xxxxxx Xx; ; Xxxxx Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXXX, Xxxxxxxxx X ( ); ; XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXX, Xxxxxxx X; 86; XX>Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXX, Xxxxxxxx (XxXXXXXX); 73; XX>Xxxxxx XX; Xxxxxxxx Xxxxxxx (XX); 1996-6-19; +xxxxxxxx +XXXXXXX, Xxxxxxxx (XxXXXXXX); 73; XX>Xxxxxx XX; Xxxxxxxx Xxxxxxx (XX); 1996-6-19; +xxxxxxxx +XXXXXXX, Xxxx ( ); 77; Xxxxxxxx XX; XXX Xxxxx; 1996-10-27; xxxxxxx +XXXXXXXX, Xxxxx X; 34; Xxxxxxx Xxxxxx XX; Xxxxx X-X (XX); 1996-12-4; xxxxxxx +XXXXXX, Xxxxxxx X; 69; ; Xxxxx X-X (XX); 1996-12-4; xxxxxxx +XXXXXX, Xxxxx Xxxxxxx; 84; Xxxxxxxxx XX; Xxxxxx X-X; 1996-10-26; xxxxxxxx +XXXXXXX, Xxxxxxx X ( ); 76; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxx X; 81; Xxxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; xxxxxxxx +XXXXXXX, Xxxxxxxx (XXXXXX); 95; Xx Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXX, X Xxxxxx; 71; Xxxxxxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxxx X "Xxxxx" (XXXXXXX); ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxxxx X; 76; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXX, Xxxxxx X; 62; ; Xxxxx X-X (XX); 1996-12-4; xxxxxxx +XXXXXXXX, Xxx X ( ); 83; Xxxxx Xxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXX, Xxxxx Xxxxx; 73; Xxxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXX, Xxxxx X; 45; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxx; ; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, Xxxxxx X Xx; ; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxx Xxxxx (XXXXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXX, Xxxxxxx X; 94; Xxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXX, Xxxxxx "Xxxxx Xxx"; 99; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, Xxxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXX, X Xxxxxx; 74; Xxxxxxxx XX; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXX, Xxxxx X ( ); ; Xxxxxxxx Xxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXX, Xxxxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxxx X X XXX XXX Xxx; 66; Xx Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-19; +xxx +XXXXX, Xxxxxxxx (XXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxx X; 78; Xxxxxxxx XX; Xxxxxxxx X-X; 1996-10-24; xxxxxxxx +XXXXX, Xxxxxxxx (XXXXX)[XXXX]; 71; XX>Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; +xxxxxxxx +XXXXX, Xxxxxxx; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxx; 45; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxxx Xxxxx; 75; Xxxxxxxxxx XX; Xxxxxxx Xxxx (XX); 1996-11-19; xxxxxxxx +XXXXX, Xxxxx Xxxxx ( ); 99; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxxxxx X Xx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxxxx X; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXXXX, Xxxxxx; 87; Xxxxxx XX; Xxxxxxx Xxxxxxx (XX); 1996-12-6; xxxxxxxx +XXXXXXX, Xxx Xxxxxxx; 90; Xxxxxxxxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxx Xxxxx; 99; Xxxxxxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXX, Xxxxx X; 78; Xxxxxxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxxx X "Xxxx"; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxxx X; 75; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxxxx Xxxxxxx; 74; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxx Xxxx (XXXXXXXX); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxx Xxxx (XXXXXXXX); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXX, Xxxxxx X ( ); 75; Xxxxxxxx XX; XXX Xxxxx; 1996-10-27; xxxxxxx +XXXXXXXXX, Xxxxxx (XXXXXX)[XXXXXXX]; 91; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxxxx Xxxxxxxx (XXXX); 67; Xxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-6; +xxxxxxxx +XXXXXXX, Xxxx X ( ); 85; Xxxxxxxx XX>Xx Xxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXXX, Xxxxx "Xxx"; ; Xxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxxx X; 76; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXXXXXXX, Xxxxxxx X; 83; Xxxxxx Xxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXX, Xxxx Xxxxxxxxx ( ); 81; Xxxxxxxx XX>Xxxx Xxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXXX, Xxxxxx; 89; Xxxx Xxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-2; xxxxxxx +XXXXXX, Xxxxxxx X (XXXXXXX); 89; Xxxx Xxxxx XX; Xxxxxxx Xxxx; 1996-11-29; +xxxxxxxx +XXXXXXXXX, Xxxxxx X; 75; Xxxxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXX, Xxxxxxx X; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXX, Xxxx X "Xxxx"; 81; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxx (XXXXXX); 76; Xxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxxx Xxxxxx; ; Xxxxxxxx XX; Xxxxxxx Xxxxx (XX); 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxxxx Xxxxxxx ( ); 76; Xxxx Xxx Xxxx XX>Xxxxxx Xxxxxxx XX; Xxxxx +Xxxx; 1996-12-6; xxxxxx +XXXXXXX, Xxxx X ( ); 88; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxxx; ; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxxx Xxxxxx; 83; Xxxxxxxxxx XX; Xxxxxxx Xxxxxxx (XX); 1996-12-7; +xxxxxxxx +XXXXXXX, Xxxxxx Xxxxxx "Xxxxx XX"; ; Xxxxxxxxxx XX; Xxxxxxx Xxxxxxx (XX); +1996-12-6; xxxxxxxx +XXXX, Xxxx Xxxxxxxx Xxxxxx ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXX, Xxxx Xxxxxxxx Xxxxxx ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; +xxxxxxxx +XXXXXX, Xxxxx X ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXX, Xxxxxxx X; ; Xxxxx Xx XX; Xxxxxxx Xxxxx (XX); 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxx (XXXXXX)[XXXXX]; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxxxxx X (XXXXXXX); 77; Xxxxxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 10-27-96; +xxxxxxx +XXXXX, Xxxxx ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXX, Xxxxxxxxx (XXXX); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXX, Xxxxxxx Xxx; 76; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXXXX, Xxxxxxxxxxx "Xxxxx"; 30; Xx Xxxxx XX>Xxxx Xxxx XX; Xxxxxx X (XX); +1996-10-20; xxxxxxx +XXXXXXXX, Xxxxxx X Xx; 71; ; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxx Xxxxxxx Xx; 71; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, Xxxxx Xxxxxxxx Xxxx (XXXXXXX); 64; Xxxxx XX; Xxxxxxx Xxxxx (XX); +1996-12-7; xxxxxxxx +XXXXXXXX, Xxxxx Xxxxx; 83; Xxxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, Xxxxx X; 92; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXXX, Xxxx Xxxxxxx; 32; ; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXXXX, Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXXXX, Xxxxxxx; ; XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxxxxx X (XXXXXXX); ; Xxx Xxxx XX>Xxxxxxxx XX; Xxxxxx X (XX); 1996-10-5; +xxxxxxx +XXXXXXX, Xxxxx X (XXXXX); 73; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXX, Xxxx X; 77; ; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXXXX, Xxxx X; 77; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXXXX, Xxxxxxx Xxxxx; 88; Xxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXX, Xxxxx X (XXXXX); 73; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXX, Xxxx (XXXXXXX); 39; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXX, Xxxx (XXXXXXX); 39; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXXX, Xxxx X; ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXX, Xxxx X ( ); ; ; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXX, Xxxxxx X; 88; Xxxxx Xxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx X ( ); ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxx X; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxxxx ( ); 51; Xxxxxxxxx Xxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxxx X; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxx; 91; Xxxxxxxxxx XX; Xxxxxxx Xxxxxxx (XX); 1996-12-7; xxxxxxxx +XXXXXXX, Xxxxx; 74; XXX>Xx Xxxxxxxx XXX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxxxx Xxxx (XXXXXX); 76; Xxxxxxxx XX; Xxxxxx X; 1996-11-26; xxxxxxxxx +XXXXXXX, Xxxxx Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxxxxx (XXXXX); ; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXXX, Xxxxxxxx (XXXXX); ; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxxx X; 76; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXX, Xxxxxxx Xx; ; Xx Xxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxxxx (XXXXXXXX); 79; XX>Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; +xxxxxxxx +XXXXX, Xxxx X; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXX, Xxxx (XXXXXXX); ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXXXXX, Xxxxxxx Xxx "Xxxxx" ( ); 62; Xxxxxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; +1996-12-7; xxxxxx +XXXXXXXX, Xxxx X; 72; Xxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXX, Xxxx X; 72; Xxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXXXX, Xxxxxx X (XXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXXXXX, Xxxxxx X; 86; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXXXXXX, Xxxxxx X; 88; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXX, Xxxxxx; 70; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXX, Xxxxxxx X; 59; Xxxxxxx Xxxxx Xxx XX; XXX Xxxxx; 1996-10-27; xxxxxxx +XXXXXXXX, Xxxxxx Xxxxxxx; ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXXXXX, Xxxx Xxxxx; ; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXXXXXXX, Xxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxxxx X "Xxxxxx" ( ); 78; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; +xxxxxxxx +XXXXXXX, Xxxxxxx X (XXXXXXX); 69; Xxxxxxxx XX>Xxxxxxxxxxxx XX; Xxxxxx X (XX); +1996-10-16; xxxxxxx +XXXXXXXXX, Xxxxxx X Xx; 64; Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXXXX, Xxxxxx X Xx; 64; Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXX-XXXX, Xxxxx XXX XXX Xxx; ; Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX-XXXX, Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxxxxx X; 64; Xxxxxxxx XX>Xxxx Xxxxxxx XX; Xxxxxx X; 1996-11-28; +xxxxxxxxx +XXXXX, Xxxxxxxx (XXXXXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxx Xxxxxxxx; 67; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxx ( ); 82; Xxxxx XX; Xxxxx X-X; 1996-12-4; xxxxxxx +XXXXX, Xxxxxxx X; 70; Xxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-3; xxxxxxx +XXXXX, Xxxxxx Xxxxxxxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, Xxxxxxxx (XXXXXXXX); 81; XX>XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXX, Xxxxxxx X; ; XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXX, Xxxxxx Xxx; 39; Xxxxxxxxxx XX>Xx Xxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXXXXX, Xxxxx Xxxxx ( ); 61; Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxxxxx Xxxxx; 82; Xxxxx XX>Xxxxxxxxx XX; Xxxxxx X; 1996-11-27; xxxxxxxxx +XXXXX, Xxxxxxx X; ; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxx X Xx; 81; X Xxxxxxxxxxx XX; Xxxxxx X; 1996-10-16; xxxxxxx +XXXXXX, Xxxxxx X; 81; X Xxxxxxxxxxx XX; Xxxxxx X; 1996-10-17; xxxxxxx +XXXXXXXX, Xxxxx X; 73; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXX, Xxxx X Xx "Xxxxxx"; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXX, Xxx X; 76; XX>XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXX, Xxxxxxx Xxxxxxx; 85; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxx Xxxxxx; 73; ; Xxxxx X-X (XX); 1996-12-4; xxxxxxx +XXXXX, Xxxxxx Xxxxxxx ( )[XXXXXX]; 93; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; +1996-11-22; xxx +XXXXX, Xxxx Xxxxxx; 73; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXX, Xxxxxxx X; 87; Xxx Xxxx Xxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXX, Xxxxxxx; ; Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXX, Xxxxxxxxx ( ); ; XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXX, Xxxxxxxx X ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXX, Xxxxxxxx X ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXX, Xxxxxxxx X ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXX, Xxxx Xxxxxx; 49; Xxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxxxx X Xx; 78; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxxx X Xx; 71; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXX, XxXxxxxx (XXXXXX); ; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, Xxxxxx X Xx; 71; Xxxxxxxxx XX>Xxxxxxxxxxx XX; Xx Xxxx X-X (XX); +1996-12-5; xxxxxxx +XXXXX, Xxxxxxx; 74; Xxxxxx XX>Xxxxx XX; Xxxxxx X-X; 1996-11-14; xxxxx +XXXXX, Xxxxxxxxx; 56; Xxxxxxx Xxxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxx; ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXXX, Xxxxxx X; 75; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XXXXXXX, Xxxx Xxxxx (XXXXXXX); 82; XX>Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; +xxxxxxxx +XXXXXXXX, Xxxxxx Xxxxxxx; 52; Xxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXX, Xxxxxxx "Xxxx"; ; Xxxx Xxxx XX; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXXX, Xxxxxx X "Xxxx"; 70; Xxxxxxxxxxx XX; Xxxxx X-X; 1996-12-4; xxxxxxx +XXXXXX, Xxxxxx X "Xxxx"; 70; Xxxxxxxxxxx XX; Xxxxx X-X; 1996-12-3; xxxxxxx +XXXXXXXXXXXXXX, Xxxxxx X; 74; XX>Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxx X; 30; Xxxxxx Xxxx XX>Xxxxxxxx XX; X X Xxxx (XX); 1996-12-5; +xxxxxxxx +XXXXXX, Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxxxx X; 89; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXX, Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXX, Xxxxxx X (XXXXX); 86; Xxxxxxxxx XX>Xxxxxx XX; Xxxxxx X (XX); 1996-10-21; +xxxxxxx +XXXXXX, Xxxx X ( ); 65; Xxxxxxxx XX>Xxxxxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXXXXXXX, Xxxxxx X; 85; Xxxxxx XX; Xxxxxx X; 1996-12-7; xxxxx +XXXXXX, Xxxxx X; 79; XX; Xxxxxxxx X-X (XX); 1996-10-10; xxxxxxxx +XXXXXXX, Xxx X; 81; Xxxxxxxxxxx XX; Xxxxxx X; 1996-10-19; xxxxxxx +XXXXXXX, Xxxxx; 77; Xxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXXX, Xxxxx; 61; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXXXXX, Xxxxxx X; 78; Xxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXXXXXX, Xxxx (XXXX); ; Xxxxx Xxxxxxxxx XXX>Xxxx Xx XX; Xxxxxx X (XX); +1996-10-20; xxxxxxx +XXXXXXX, Xxxxx; 78; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXXX, Xxxx Xxxxxxx (XXXX); 69; Xxxxxx XX; Xxxxxxxx Xxxx; 1996-11-6; xxxxxxxx +XXX, Xxxxxx X; ; Xxxxx Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXX, Xxxx Xxxx ( ); 55; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxx X (XXXX); 76; Xxxxxxx Xxxxxx XX; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXX, Xxxx X (XXXX); 76; Xxxxxxx Xxxxxx XX; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXXX, Xxxx Xxxxxxxx ( ); ; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXX, Xxxxxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxx X ( ); 94; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxxxx "Xxxxx"; 80; Xxxxxxxxx XX>Xxxxxxx XX; Xxxxxx X (XX); 1996-10-9; +xxxxxxx +XXXXXXXX, Xxxxx Xxx (XXXXXXXX)[XXXXXX][XXXXXXX]; 69; Xxxxxx Xxxx XX; X X Xxxx; +1996-12-5; xxxxxxxx +XXXXX, Xxxxxxxx X ( ); 74; Xxxxx XX; Xxxxx X-X; 1996-12-3; xxxxxxx +XXXXXX, Xxxxxxxx (XXXX); 81; Xxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxxxx ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxxx X; ; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, Xxxxxxx X; ; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxxxx Xxxxxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXX, Xxxxxx Xxxxxxx Xx; 67; Xxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXX, Xxxxxx Xxxxx; ; ; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxxxx; 94; Xx Xxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-11-30; xxxxxxx +XXXXXXX, Xxxxx ( ); 54; Xxxxxxx Xxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXX, Xxxxx (XXXXXX); 54; Xxxxxxx Xxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXXXXX, Xxxx Xxx (XXXXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXXXX, X X Xx; ; ; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxx Xx; 64; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxx Xx; 64; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxx ( ); 37; Xxxxxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +X'XXXXXX, Xxxxxxx X; 82; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +X'XXXXXX, Xxxxxxx X; 82; ; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXXXX, Xxxx (XXXXXXX); ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxxx (XXXXX); 92; Xxxxxxxx XX; Xxxxxxxx Xxxx; 1996-10-30; xxxxxxxx +XXXX, Xxxxxxx Xxxxx XXX Xxx; 77; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXX, Xxxxx Xxxxx (XXXXXXXXX); 87; Xxxxx XX>Xxxxxxxx Xxxxx XX; Xxxxxx X (XX); +1996-10-13; xxxxxxx +XXXXXXX, Xxxx X ( ); 93; Xxxxxxx Xxxxxx XX; Xxxxx X-X (XX); 1996-12-4; xxxxxxx +XXXXXX, Xxxxxxx; 79; XX>Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxx X Xx; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxxx; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxxx X Xx; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxx X; ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXXX, Xxxxxx X; 44; XxXxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXXXXXX, Xxxxxxxx X "Xxxx"; 84; Xxxxxxxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxx Xxxxxx; 62; Xxxxxx XX; Xxxxxx X-X; 1996-10-26; xxxxxxxx +XXXXX, Xxxxx X Xxx; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxx Xxxx; 15; Xxxxx Xxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXX, Xxxxxx Xxxxx; 69; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXX, Xxxxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXX, Xxxxx X; ; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxx X; 37; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxx Xxxxxx Xx; ; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxx (XXXXXXXX); 91; Xxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxxx Xxxxxx Xx; 65; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxxxx Xx; ; ; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxx ( ); 92; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxx ( ); 48; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXX, Xxxx (XXXXXXX); 86; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxx "Xxxx"; 52; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxx; 52; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXX, Xxxxxxx X; ; Xxxxxxx Xx; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXX, Xxxxxxx X; 83; Xxxxx XX; Xxxxxxx Xxxxx (XX); 1996-12-6; xxxxxxxx +xx XXXX, Xxxxx Xxxxxxxxx; 0; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XXXX, Xxxxxxx X ( ); ; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxx X (XXXXXXX); 92; Xxxxxx XX>Xxxx Xxxxx XX; Xxxxxxx Xxxxx Xxxx (XX); +1996-12-2; xxxxxxx +XXXX, Xxxx (XXXXXXXX); ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XxXXXXXX, Xxxxxxxxxx ( ); 74; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XxXXXX, Xxxxxx; 66; Xxxxxx XX; Xxxxxx X; 1996-10-17; xxxxxxx +XxXXXXX, Xxxxxx X ( ); 100; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXX, Xxxx ( ); 70; XX>Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XxxXXXXX, Xxxxx Xxxxx ( ); 63; Xxxxxxxxx Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; +xxxxxxxx +XXXXXXX, Xxxxxx; 67; Xxxxx XXX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxx Xxxxx ( ); 89; Xxxxxx Xx XX>Xx Xxxxxxxxxx XX; Xxxxx Xxxx; +1996-12-6; xxxxxx +XXXX, Xxxxxxx X; 87; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXX, Xxxxxxxx Xxx ( ); 89; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XxXXXX, Xxxxxx Xxxxx; 0; Xxxxxxxxx XX; Xxxxxxxx X-X; 1996-10-21; xxxxxxxx +XXXXXX, Xxxx X (XXXXXXXX); 92; Xxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXX, Xxxxx X; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXX, Xxxxx Xxxxxx "Xxx"; 71; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXX, Xxxx X; ; XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxxxx X ( ); 68; Xxxxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXXX, Xxxxx Xxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxx ( ); 82; Xxxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXXX, Xxxxxx Xxxxxx "Xxxx" ( ); 90; Xxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXXXXXX, Xxxx; 42; Xxxxxx XX>Xx Xxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXX, Xxxxxx Xxxxx; 71; Xxx Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; xxxxxxxx +XXXXXX, Xxxx X; ; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, Xxxxx X ( ); ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXX, Xxxxx Xxx; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxx X (XXXXXXX); 85; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXX, Xxxxxxx X; 74; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXX-XXXXX, Xxxxx; ; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxxx; 74; Xxxxxxxx XX; Xxxxxxxx X-X; 1996-10-23; xxxxxxxx +XXXXXX, Xxxxxxx X "Xxx"; ; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxx X; ; Xxxx Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXX, Xxxxxxxx X ( ); 89; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXXX, Xxxxx ( ); 81; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXXXXX, Xxxxx ( ); 81; ; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXX, Xxxxx Xxxxx; 0; Xxxxxxxxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXX, Xxxxxx Xxxxx; 0; Xxxxxxxxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXXXX, Xxxxxxx; 60; Xxxxxx XXX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxxx X "Xxxxx"; 70; Xxxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXX, Xxxxxx Xxxxxxx; 82; Xxxxxx XX>Xxxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXXXX, Xxxxxx X; ; Xxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxxxx X ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXX, Xxxxxxx X ( ); 71; Xxxxxxxx Xxxx XX>Xxxxx XX; X X Xxxx (XX); 1996-12-6; +xxxxxxxx +XXXXXXX, Xxxxx X; 88; Xxxx Xxxxxxxx XX; Xxxxxxx Xxxxx (XX); 1996-12-7; xxxxxxxx +XXXX, Xxxxxx Xxxxx; 84; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxx (XXXXXXX); 85; Xxxx Xxxxxxxx XX; Xxxxxxx X; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxx X; 62; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxx X (XXXXXX); 83; Xxxxxxxxx XX; Xxxxxx X-X; 1996-10-26; xxxxxxxx +XXXXX, Xxxxxxxx X; 95; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXXXXX, Xxxx (XXXXXXX); 93; Xxxxxxxxx Xxxxxxx XX; X X Xxxx; 1996-12-6; +xxxxxxxx +XXXXXX, Xxxxxx Xxxxx Xx; 65; Xxxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXXXXXX, Xxxxxxx; 87; Xxxxxxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-11-30; xxxxxxx +XXXXXXXX, Xxxxxx Xxxx; 43; Xxxx Xxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXX, Xxxx X ( ); ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxxxx X; ; XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XxXXXX, Xxxxxxx X; 60; Xxxxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXX, Xxxxxxx; 86; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxx X Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxx Xxxxx ( ); 67; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXX, Xxx Xxxxx ( ); 67; ; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXXX, Xxxx X; 67; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXX, Xxxxxx X "Xxx"; 93; Xxxxxx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXX, Xxx Xxxxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXX, Xxx (XXXXXXXX); ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxx Xxx "Xxxxxx"; 77; Xxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; +xxxxxxxx +XXXXXX, Xxxxx Xxx "Xxxxxx"; ; Xxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxx Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxxx X; 76; Xxxx Xxxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXXX, Xxxxx (XXXXXXXX); 94; Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXXX, Xxxxx (XXXXXXXX); 94; Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXX, Xxxxxxx X; 83; Xxxxxx XX>Xxx Xxxx Xxxxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXXXXXX, Xxxxxx Xxxxx; 42; XXX>Xxxxxx Xxxxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXX, Xxxxxx X; 82; Xxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXX, Xxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxxxxxx X (XXXXX); 80; Xxxxxxx Xxx XX>Xxxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; +1996-11-24; xxxxxxx +XXXXXXXXXXX, Xxxxxxx ( ); 83; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XXXX, Xxxxxxx X ( ); 87; Xxxxxxxxxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXX, Xxxx Xxx Xx; 67; Xxxxxxx XX; Xxxxxxxx Xxxx; 1996-11-6; xxxxxxxx +XXXXXXX, Xxxxx X (XXXXX); 64; ; Xxxxxx X-X; 1996-10-26; xxxxxxxx +XXXXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxxxx Xxx; 53; Xxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXXXXX, Xxxxxx; 96; Xxxxxxx XXX>Xxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXXXX, Xxxxxxxx (XXXXXXXX); 80; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXXX, Xxxxxxx Xxxx ( ); 74; Xxxx Xxxxxxx XX; Xxxxxxx Xxxxx (XX); 1996-12-4; +xxxxx +XXXXX, Xxxxxxxx Xxxx (XXXXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxxxx X; ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxxx X; 71; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxxx X; 82; Xxxxxx XX; Xxxxxx X-X; 1996-10-26; xxxxxxxx +XXXXX, Xxxxxxx X; 43; Xxxxxxxxxx XX; Xxxxxx X-X; 1996-10-27; xxxxxxxx +XXXXXX, Xxxxx ( ); 95; Xxxxx Xxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXXXX, Xxxxx Xxxxx; 84; Xxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxxxx X; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxxx Xxxxxx; 90; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxxxx X; 58; XX>Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXX, Xxxxxxx X; ; Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxx ( ); 86; Xxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXXXX, Xxxxxxx X; 44; Xxxxxxxxx XX; Xxxxxx X; 1996-10-4; xxxxxxx +XXXXX, Xxxxxxxx Xxxxxxx "Xxxxxx"; 69; Xxxxxxx XX; Xxx Xxx Xxxxxxx; 1996-12-2; +xxxxxxx +XXXXX, Xxxxxxxx Xxxxx "Xxx" (XXXXXXX); 70; Xxxxxxx XX; Xxx Xxx Xxxxxxx; +1996-12-2; xxxxxxx +XXXXXX, Xxxxxxx X ( ); ; Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXX, Xxxx Xxxxxx; 49; Xxxxxxx XX>Xxxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxx Xxxxxx; 44; Xxxxxxx XX>Xxxxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXXX, Xxxxxx X; 82; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXX, Xxxxxx X; ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxxx X; ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXX, Xxxx (XXXX); 80; Xxxxx XX; Xxxxxxxx Xxxx; 1996-10-23; xxxxxxxx +XXXXXXXXXXXX, Xxxxxx Xxxxxxxxx Xx; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxx X "Xxxx"; ; Xxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXX, Xxxxxx Xxxxxx ( ); ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxx Xxxxxx; ; Xx Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxxxxx Xxxxxxx "Xxxxx"; 70; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; +xxxxx +XXXXXXXX, Xxxx X Xx; 80; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, X Xxxxxx; 79; Xxxxxxxxx XX; XXX Xxxxx; 1996-10-27; xxxxxxx +XXXXXX, Xxxxx X (XXXXXX); 91; Xxxxxxx Xxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-24; +xxxxxxx +XXXXXX, Xxxxxx X; ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXX, Xxxxxxx X; ; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXX, Xxxxxxxx; 98; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxxxx X; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxxxxxx (XXXX); 85; Xxxxxxxxxxx XX; Xxx Xxxxxx X-X (XX); 1996-12-6; +xxxxxx +XXXXX, Xxxxx X; 79; Xxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXXXXX, Xxxx Xxx "Xxxxx" ( ); 92; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; +xxxxxxxx +XXXXXXXX, Xxxxxxxx X; 76; Xxxx Xxxx Xxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-26; +xxxxxxxxx +XXXXXXXX, Xxxx X ( ); ; ; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXX, Xxxxx X; ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXX, Xxxxxx Xxxxx (XXXXXXXXX); 89; Xxxxxxx XX; Xxx Xxxxxx X-X; 1996-12-6; +xxxxxx +XXXXXXX, Xxx Xxxx; 75; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXX, Xxx X; 82; Xxxxxx XX>Xxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXX, Xxxxx; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxx X; 82; Xxxxxx XX>Xxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXXX, Xxxxxxxx X "Xxx"; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxxx ( )[XXXXXXX][XXXXXXX]; 87; Xxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxx Xxxxxx; 77; Xxxxxxx Xxxxxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxx Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXX, Xxxxxxxx X ( ); 61; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXX, Xxx X ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXX, Xxxxxx Xxxxxx (XXXXXX); 40; Xxxxxx XX; Xxxxxxxx Xxxx; 1996-10-30; xxxxxxxx +XXXX, Xxxxxxxx X; 61; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXX, Xxxxxx X; 70; Xxxxxxxx Xxxx XX>Xxxxxxxx XX; X X Xxxx (XX); 1996-12-5; +xxxxxxxx +XXXXXX, Xxxxxxx X "Xxx Xxxxx"; 68; Xxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-5; +xxxxxxxx +XXXXXX, Xxxxxxxx X; 53; Xxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXX, Xxxxxx Xxxxxx; ; Xxxxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXXXXX, Xxxxx (XXXXX); 76; X Xxxxxx XX>Xxxxxx XX; Xxxxxx X (XX); 1996-10-18; +xxxxxxx +XXXXXXXX, Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXX, Xxxxx X; 84; Xxxxxxx XX>Xxxxxx Xxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXX, Xxxxx Xxx (XXXXXXXXX); ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXXX, Xxxx X ( ); 80; Xxxx Xxxxx XX>Xxxxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXX, Xxxxxxxxx Xxxxx ( ); 69; Xxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXXXXXX, Xxxxxxx (XXXXXX); ; Xxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; +xxxxxxxx +XXXXX, Xxxxx (XXXXXXX); ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxxxx X; 56; Xxxxxxxx Xxxx XX; Xxxxxxxx X-X; 1996-10-22; xxxxxxxx +XXXXXXXXX, Xxxxxxxxx Xxxxxxxxx (XXXXXXXXXXX); 68; Xxxxxxxxxx XX; Xxxx XX Xxxx; +1996-11-25; xxxxxxxx +XXXXXXXXX, Xxxxxxxxx (XXXXXXXXXXX); 68; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; +xxx +XXXXX, Xxxxxxx X; 84; Xxxxxxxxx XX; Xxxxxxx Xxxx; 1996-11-29; xxxxxxxx +XXXXXX, Xxxxxxxx X ( )[XXXXXXX]; 58; Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-22; +xxx +XXXXXXX, Xxxx (XXXXXX); 93; Xxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-2; xxxxxxx +XXXXXXX, Xxxx (XXXXXX); 93; Xxxxxx XX; Xxxxxxx Xxxx; 1996-11-28; xxxxxxxx +XXXXXXXXXX, Xxxxx Xxxxx Xx; 40; Xxxxxx Xxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; +xxxxxxxx +XXXXXXX, Xxxxxx; 46; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXX, Xxxxxxx "Xxx"; 86; Xxxxxxxxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXXXX, Xxxx Xxx ( ); 83; Xxxxxxxxxxx XX>Xxxxxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXXXXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXX, Xxxxxx Xxxxx Xx; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxxxxxx X Xxxx; ; ; Xx Xxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXX, Xxxxxxxx (XXXXXXXX); 85; Xxxxxxxx Xxxxxxxx XXX; Xxxxxxxx Xxxxxxx (XX); +1996-6-18; xxxxxxxx +XXXXX, Xxxxx X; 53; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxx X; 53; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxxx; 68; Xxxxxxx XX>Xxxxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXXXX, Xxxxx X; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxx; 80; Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXXX, Xxxxxx; 71; XX>Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxxxx X; ; Xxxxxx XX; Xxxxxxx Xxxxx (XX); 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxx X ( ); ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxxx X ( ); ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, Xxxxx Xx; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, Xxxxxx X; 45; Xxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXX, Xxxx Xxxxxxx Xxxxx Xx; 0; ; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXX, Xxxxx "Xxxxx"; ; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx X; 95; Xxxxxxxxx XX>Xxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXX, Xxxxxx; 66; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXX, Xxxxxx; 80; Xxxxxxxx XX; Xxxxxxxx Xxxxxxxx (XX); 1996-11-30; xxxxxxx +XXXXXXX, Xxxxx; 90; XX>Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxxx X; 78; Xxxxxxx XX>Xxxxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXXX, Xxxxxx Xx "Xxxx"; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxxxx; ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxxx X; 91; Xxxxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXXX, Xxxxxx; 66; Xxxxxxxxx XX; Xxxxxx X; 1996-10-18; xxxxxxx +XXXXXXXX, Xxxx Xxx; 35; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXX, Xxxxx Xxxx "Xxx"; 44; Xxxxxxxx XX>Xxxxxxx XX; Xxxxx X-X (XX); 1996-12-4; +xxxxxxx +XXXXX, Xxxx X; 72; XX; Xxxxxxxx X-X; 1996-10-25; xxxxxxxx +XXXXXX, Xxxx ( ); 65; Xxxxxxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxxxx "Xxxxxx"; 83; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXX, Xxxxxxx Xxxxxx; 77; XX>Xxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxxxx Xxxx ( ); ; Xxxxxx Xxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXX-XXXX, Xxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, Xxxxxxx Xxxxxx; 69; ; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXX, Xxxx; 68; Xxxxxxxx XX; Xxxxxx X-X; 1996-11-14; xxxxx +XXXXX, Xxxxx X; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXX, Xx X; ; XxXxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxxx X Xx; 53; Xxxxx XX; Xxxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXXX, X Xxxxxxx XX; 72; Xxxxxx Xxxx XX>Xxxxxx Xxxx XX; X X Xxxx (XX); +1996-12-6; xxxxxxxx +XXXXX, Xxxxx; 67; Xxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxxxx Xxx (XXXXXXXXXXXX); 74; Xxxxxxxx Xxxx XX; X X Xxxx (XX); +1996-12-5; xxxxxxxx +XXXXXXXX, Xxxxx X; 70; Xxxxx Xxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXX, Xxxxxx X (XXXXXXXX); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxxxxx X (XXXXXXXX); 30; Xxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXXXXX, Xxxxxx Xxx ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxx Xxx (XXXXXXX); 82; Xxx Xxxxxxxxxx XX>Xxxxxx XX; Xxxxxx X; +1996-11-25; xxxxxxxxx +XXXXXXXXX, Xxxxxx Xxxxxxx Xx; 69; Xxxxxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXXX, X Xxxxxxxx; 54; Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXX, X X "Xxx"; 70; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXX, Xxxxx Xxxxxx Xx; ; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXX, X Xxxxxx; ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxx X; 68; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxxxxx ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxxxx Xxxxx; 29; Xxxxxxxx Xxxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXX, Xxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxx; 79; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxxxxxxxx Xx "Xxxx"; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxx X; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxxxx X; 73; Xxxxxx-Xxxxx XX; Xxxxxx X; 1996-10-20; xxxxxxx +XXXXX, Xxxxxxx Xxx; 74; Xxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXX, Xxxxx; 82; Xx Xxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-2; xxxxxxx +XXXX, Xxxxx ( ); 82; Xxxxx XX; Xxxxx X-X; 1996-12-4; xxxxxxx +XXXXXXX, Xxxx Xxxxxx; 49; Xxxxxx XX>Xxxxxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXXXX, Xxxxxx; 61; Xxxxxxx XX; Xxxxxxxx Xxxx (XX); 1996-10-30; xxxxxxxx +XXXXXXX, Xxxxx Xxxxx Xx; 68; Xxxxxxx XX; Xxxxxxxx Xxxx; 1996-11-6; xxxxxxxx +XXXXXX, Xxxxxx X; 84; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxx X; 41; Xxxxxx Xx XX; Xxxxxxx Xxxxxxx (XX); 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxx (XXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXX, Xxxx X; 66; Xxxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXX, Xxxx X; 66; XX>Xxxxxxxxxxx XX; Xxxxxxxx Xxxxxxx (XX); 1996-6-19; +xxxxxxxx +XXXXXXX, Xxxxxx Xxxxxx; ; Xxxxxxxxxx Xxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxxxx Xx; 25; Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXX, Xxxxx X ( ); ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxxx X; 76; XX>Xxxx Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxx X "Xxxxx" ( ); 81; Xx Xxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XXXXXXXXX, Xxxxxx X; 93; Xxx Xxx XX; Xxx Xxx Xxxxxxx; 1996-12-2; xxxxxxx +XXXXXX, Xxxxxxx X "Xxxx"; 82; Xx Xxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXXXXXXXX, Xxxx "Xxxx"; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXXX, Xxxx X; 92; Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; xxxxxxxx +XXXXXXXXX, Xxxxxxxx X; 77; XX>Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxxxx Xxxxxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxxxxxx Xxxxxx; 76; XX>Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXXX, Xxxxxx X "Xxxx"; 67; Xxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXXXX, Xxxxxx X "Xxxx"; 67; Xxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXX, Xxxx X Xx; 41; Xxxxx XX; Xxxxxxx Xxxx (XX); 1996-11-28; xxxxxxxx +XXXXX, Xxxxxxx Xxxxx; 75; Xxxx XX>Xxxx Xxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXX, Xxxxx X ( ); 84; Xxxxx XX>Xxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXX, Xxxxxxx Xxxxxx; 64; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxx Xxxx; 20; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXX, Xxxxxx X; 65; Xxxxxxxxx XX; Xxxxx X-X; 1996-12-4; xxxxxxx +XXXXX, Xxxxxx X; 80; Xxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-3; xxxxxxx +XXXXXXXXXXX, Xxxxxxxx "Xxx Xxx"; 74; Xxxxxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXXXXXXX, Xxxxxxxx "Xxx Xxx"; 74; Xxxxxxxx XX; Xxxxx X-X; 1996-12-3; xxxxxxx +XXXX, Xxxxxxxx X (XXXXXXX); 86; Xxxxxxxxx XX; Xxxxxx X; 1996-10-20; xxxxxxx +XXXX, Xxxxx XX; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXX, X Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXX, Xxxxxx Xxxxxxx (XXXXXXX); 70; Xx Xxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXXXX, Xxxxxxx X ( ); 77; Xxxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXX, Xxxx X; 69; Xxx Xxxxxxx XX; Xxx Xxxxxx X-X; 1996-12-6; xxxxxx +XXXXXXX, Xxxxxx X; 49; Xxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxxxxx X Xx; 83; Xxxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXXX, Xxxxxx Xxxx; 0; Xxxxxxx XX; Xxxxxxx Xxxx; 1996-11-29; xxxxxxxx +XXXXXX, Xxxxxxx; 68; Xxxxxxxxxx XX; Xxxxxxxx X-X; 1996-10-21; xxxxxxxx +XXXX, Xxxx X Xx; 74; Xxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXXX, Xxxx X; ; Xxxxx XX; Xxxxxxx Xxxxx (XX); 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxxx X; ; XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxx X; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxxx Xxx; 63; Xxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxx X; ; XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, Xxxxxxx Xxx; 58; Xxxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxx X; 81; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxxx X; 80; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXX, Xxxxxx (XXXXXXX); 67; Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXX, Xxxxxx (XXXXXXX); 67; Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXX, Xxxxxxxx (XXXXX)[XXXXX]; ; Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-20; +xxxxxxxx +XXXXXX, Xxxxxx Xxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxxxx ( )[XXXXX]; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxxxxx X; 100; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXXX, Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxx X ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxxx Xxxxx (XXXXXXXXXX); 75; Xxxxxx XX; X X Xxxx (XX); 1996-12-5; +xxxxxxxx +XXXXXX, Xxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxx Xxxxxx (XXXXX); ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXX, Xxxxxx X; 74; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXX, Xxxxx Xxxxxx; 61; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXX, Xxxxx X ( ); 83; Xxxxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXXXXX, Xxxxxx; 76; Xxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxx; 84; Xxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXXX, Xxxxxxx Xxxxxxxxxx; ; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxxxx X; 72; Xxxxxx XX; Xxxxxx X; 1996-11-26; xxxxxxxxx +XXXXX, Xxxx X (XXXXXXX); 91; Xxxxx XX; Xxxxxx X (XX); 1996-11-28; xxxxxxxxx +XXXXXXX, Xxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxx X ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXX, Xxxxxx Xxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXXX, Xxxxx X ( ); 95; Xxxx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXXX, Xxxxx X ( ); 95; Xxxx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXX, Xxxx X; 87; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXX, X Xxxxxx; ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxx X; 87; ; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXX, Xxxxxxxx Xxxxx ( ); 77; XX>Xxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXX, Xxxxxxx X ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxx X; 79; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXX, Xxxxxx X; 75; Xxxxxxx Xxxx XX; Xxxxxxxx X-X; 1996-10-22; xxxxxxxx +XXXXX, Xx Xxxxxxx Xxxxx XXX; 89; ; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXX, Xx Xxxxxxx Xxxxx XXX; 89; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXX, Xxxxxx X; 58; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxx Xxxxx (XXXXX); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxx X; 86; Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXX, Xxxxx Xxxxxxxx (XXX); 91; Xxxxxx XX; Xxxxxx X-X; 1996-11-14; xxxxx +XXXXX, Xxxxx Xxxxx ( ); 84; Xxxxxxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXX, Xxxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXXX, Xxxxxx Xxxxxxx; 82; Xxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXX, Xxxx X (XXXXXXXXX); 97; Xxx Xxxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-30; +xxxxxxx +XXXXXX, Xxxxxx Xxxxxx ( ); 93; ; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXXX, Xxxxxx XxXxxx ( ); 77; Xxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-5; +xxxxxxxx +XXXXX, Xxxxxx X; 68; Xxxxxxx XX; Xxx Xxx Xxxxxxx; 1996-11-30; xxxxxxx +XXXXX, Xxxxx Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxx; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxx; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXXX, Xxxxxxx X ( ); 87; Xxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XXXXXX, Xxxx Xxxxxx (XXXXXXXXXXXX); ; Xxxxxxx Xxxxxxx XX; Xxxx XX Xxxx; +1996-11-19; xxx +XXXXXX, Xxxx X (XXXXXXXXXXXX); 56; XX>Xxxxxxx Xxxxxxx XX; Xxxx XX Xxxx; +1996-11-18; xxxxxxxx +XXXXXXX, Xxxxxxx X; 67; Xxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; xxxxxxxx +XXXXX, Xxxxxx X (XXXXXX); 81; Xxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxx X; 77; Xxxxxxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXX, Xxxxxx X "Xxxx"; ; Xxxxx Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXXXXXX, Xxxxxxx Xxxxxxx; 44; Xxxxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXXX, Xxxxxx Xxxxxx Xx; 82; Xx Xxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxxxxx X ( ); 79; X Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXX, Xxxxxxxx X ( )[XXXXXX]; 79; X Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; +xxxxxxx +XXXXXXXXX, Xxxxxxx Xxxx Xx; 89; Xxxxxxxxx XX; Xxxxxxx Xxxxxxx (XX); 1996-12-6; +xxxxxxxx +XXXXXXXXXX, Xxxxxx X ( ); 84; Xxxxxxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXXXXXX, Xxxxxx X (XXXXXX); 84; Xxxxxxxxx XX; Xxxxxxx Xxxx; 1996-11-30; +xxxxxxxx +XXXXXXXXXX, Xxxxxx (XXXXXXXXXX); 92; Xxxxxxxxx XX; Xxxxxxx Xxxx; 1996-12-3; +xxxxxxxx +XXXX, Xxxx Xxxxx; ; Xxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXX, Xxxx Xxxxx; 85; Xxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXX, Xxxxxx; ; Xxxxxx Xx; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxx X (XXXXXX); ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxxxx X ( ); 76; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxxx X X'Xxxxx ( ); 82; Xxx Xxxxxx Xxx XX; XXX Xxxxx; 1996-10-27; +xxxxxxx +XXXXXX, Xxxxxx X "Xxx"; ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXX, Xxxxxxx; 89; Xxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxx X; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxx X (XXXX); 93; Xxxxxxxxxxx XX>Xxxxxxxx Xxx XX; Xxxxxx X (XX); +1996-10-13; xxxxxxx +XXXXXXX, Xxxxxx; 77; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXX, Xxxxxx (XXXXXXX); 87; Xxxxxx XX; Xxxxxxx Xxxx; 1996-11-29; xxxxxxxx +XXXX, Xxxxxxx; ; Xxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XX, Xxxxxx Xxxx; 24; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxx X; 81; Xxxxxxxx Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXX, Xxxx X; 81; Xxxxxxxx Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXX, Xxxxx "Xxxx"; 84; Xxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXX, Xxxxxxx ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxx Xxxx; 0; Xxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXXXXX, Xxxxxx X; 71; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxxxxx X "Xxxx"; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxxxxxxx X (XXXXXX); ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-20; +xxxxxxxx +XXXXXX, Xxxxxxxx (XXXXXXXXX); 66; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; +xxxxxxxx +XXXXX, Xxxxxxx X Xx; 81; Xxx Xxxxxx XX; Xxx Xxxxxx X-X; 1996-12-6; xxxxxx +XXXXXXX, Xxxxxxxx X; 82; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxxxx Xxxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxxxxxx X; 85; Xxxxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-3; xxxxxxx +XXXXXX, Xxxxx X ( ); 96; Xxxxxxxxx XX>Xxxxxxxx XX; Xxxxxx X; 1996-11-28; +xxxxxxxxx +XXXXXX, Xxx Xxxx ( ); ; Xxxxxx Xxxxxxx Xx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxx Xxxx ( ); ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, Xxxxxxx Xxxx; 32; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxx; ; Xxxxxxxx XX; Xxxxxxx Xxxxxxx (XX); 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxx X; 55; Xxxxxx XX>X Xxxxxxxxxxx XX; Xxxxxx X (XX); 1996-10-5; +xxxxxxx +XXXXXXXXXX, Xxxxxxx X; 60; Xxxxxxxx XX; Xxxxxxxx X-X; 1996-10-25; xxxxxxxx +XXXXXX, Xxxxxx Xxxxx; ; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxx Xxxxx; ; Xxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxxx Xxxxxxx; 64; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxx Xxxxx; 89; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx X; 84; Xxxxxxxx XX; Xxxxxxx Xxxx; 1996-12-4; xxxxxxxx +XXXXX, Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxxx (XXXX); 83; Xxxxxxxx XX; Xxxxxxxx Xxxx; 1996-10-23; xxxxxxxx +XXXXXXX, Xxxx X; 66; Xxxxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXXX, Xxxxxxxx Xxxxxxx (XXXXXX); ; Xxxxxxxxx Xxxx XX; Xxxx XX Xxxx; 1996-11-25; +xxxxxxxx +XXXXXX, Xxxxxxx X; ; Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, X Xxxx (XXXXX); 69; Xxxxxxxx XX>Xxxxxxxx XX; Xxxxxxxx Xxxxxxxx (XX); +1996-11-26; xxxxxxx +XXXXXX, X Xxxx (XXXXXX); 69; Xxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-25; xxxxxxx +XXXXXX, Xxxxxxx (XXX); ; Xxxx Xxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxx (XXX); 75; Xxxx Xxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXX, Xxxxxxxxx Xxxxx; 77; Xxxxxxxx XX; Xxxxxx X; 1996-12-6; xxxxx +XXXXXX, Xxxx Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxx Xxx ( ); 70; Xxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXXX, Xxxx Xxxx (XXXXX); 69; Xxxxxxxxxx XX; Xxxxxxxx Xxxx; 1996-10-23; xxxxxxxx +XXXXXXX, Xxxxxxxx; 83; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXXXX, Xxxxxxxx; 83; ; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXXX, Xxxxx X; 75; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXX, Xxxxxx Xx; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxx Xxxxxx; 40; Xxxxxxxx XX; Xxxxxxxx X-X; 1996-10-21; xxxxxxxx +XXXX, Xxxxxxx (XXXXXXX); 86; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxxx Xxxxxx; 78; Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; xxxxxxxx +XXXXXX, Xxxxx X (XXXXXXXXX); ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXXX, Xxxxxxx "Xxxxxx"; 72; Xxxxx XX; Xxxxx X-X; 1996-12-4; xxxxxxx +XXXX, Xxxxxx X; 77; Xxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXX, Xxxxx Xxxxxxx; 35; Xxxxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxxx X ( ); 74; Xxxxxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxxx (XXXXXXXX); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxx (XXXXXXXX); 54; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxx X; 99; Xxxx Xxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-2; xxxxxxx +XXXXXX, Xxxxx; 99; Xxxx Xxxxx XX; Xxxxxxx Xxxx; 1996-11-29; xxxxxxxx +XXX, Xxxx Xxxxx ( ); 73; Xxxxx Xxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXX, Xxxxxx X; 88; Xxxxxxxx XX; Xxxxxx X; 1996-11-27; xxxxxxxxx +XXXXXXXX, Xxxxxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxx Xxxx; 78; Xxxxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXXXX, X Xxxxxxx; 83; Xxxxx Xxxxx XX>Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; +xxxxxxxx +XXXXXX, Xxxxx X (XXXXXX); ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxx X ( ); 88; Xxxxxxxx Xxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-25; +xxxxxxxxx +XXXX, Xxx X ( ); 90; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXX, Xxx X ( ); 90; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXX, Xxxxxxx X Xx; 72; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxxxxxxx Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXX, Xxxxxxx Xxxxxxx; 71; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXX, Xxxxxx Xxxxxxxx ( ); 33; Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXX, Xxx X ( ); 93; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxxx Xxx Xx; 82; Xxxxxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxx X ( ); 97; Xxxxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxx; 78; ; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxx; 48; Xxxx XX; Xxx Xxxxxx X-X; 1996-12-6; xxxxxx +XXXXXXXX, Xxxxxxx X; 77; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXX, Xxxxxxx X; 77; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXXXX, Xxxxx; 84; Xxxxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXX, Xxxxxx Xx; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxxx Xxxxxxx "Xxxx"; 52; Xxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXXX, Xxxx ( ); 72; Xxxxx Xxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXX, Xxxxx X ( ); ; Xxxxxxx Xxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXX, Xxxxxx X (XXXXX); ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXX, Xxxxxx X ( ); ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXX, Xxxxxxx X; ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxxx Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxxxxx X (XXXXXX); 69; Xxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXX, Xxxxx X ( ); ; Xxxxxxx Xxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXX, Xxxxxxx X; 86; Xxxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXXX, Xxxxxx Xxxxxxx ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXX, Xxxxxxx X ( ); 85; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXX, Xxxxxx Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXX, Xxxxx Xxxxx; 43; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXX, Xxxxxxx Xxxxxxxx ( ); 91; Xxxxxxx XX>Xxxxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXXXXX, Xxxxxx X; 78; Xxx Xxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXX, Xxxxxxx Xxxxxx; 35; Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXX, Xxxxxx Xxx X/XXX; 68; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxx X ( ); 90; XXX>Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXX, Xxxxxxxx; 80; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxx X (XXXXXX); 62; Xxxxxxxx Xx XX>Xxxxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXX, Xxxxxx Xxxxxx; ; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxxx Xxxxxx "Xxx"; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxx X; 67; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxxx Xxxxxx; ; XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxx Xxxxx ( )[XXXXXX]; 85; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxxxx (XxXXX); 99; XxXxx Xx XX>Xxxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxxx X; 68; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxx Xxxxxxx; 62; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxx Xxxxxxx; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, Xxxxxxx Xxxxx ( ); 59; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxxx Xxxxxx; ; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXX, X Xxxxx X ( ); 69; Xxx Xxxxxxxx XX; Xxxxxx Xxxxx (XX); 1996-12-6; +xxxxxxxx +XXXXX, Xxxxx X (XXXXX); ; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXX, Xxxxx X (XXXXX); ; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXX, Xxxxxxx; ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXX, Xxxxxxxxxx (XXXXXXXXXX); 77; Xxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXX, Xxxxxxxxxx (XXXXXXXXXX); 77; Xxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXXXXX, Xxxxxxx "Xxxxxx"; 93; Xxxxxxx Xxxxxx XX; Xxxxx X-X (XX); 1996-12-3; +xxxxxxx +XXXXXXX, Xxxxxxx "Xxxxxx"; 93; Xxxxxxx Xxxxxx XX; Xxxxx X-X (XX); 1996-12-2; +xxxxxxx +XXXX, Xxxxxxx X (XXXXXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxx; 67; Xxxxxx XXXXXX; Xxxxxxx Xxxxxxx (XX); 1996-12-6; xxxxxxxx +XXXXXXXXX, Xxxxxxx X; 58; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxxxx (XXXXXX)[XXXXX]; 87; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXX, Xxxxxx X "Xxx"; 67; Xxxxxxx Xxxxxx XX; Xxxxx X-X (XX); 1996-12-3; +xxxxxxx +XXXXXXX, Xxxxxx X "Xxx"; 67; Xxxxxxx Xxxxxx XX; Xxxxx X-X (XX); 1996-12-2; +xxxxxxx +XXXXXXXXX, Xxxx (XXXXXXXXX); 84; Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; +xxxxxxxx +XXXXXXXX, Xxxxxx (XXXXXXXXX); 81; X Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXXXXXX, Xxxxxx (XXXXXXXXX); 81; X Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXXXX, Xxxx Xxxxxx ( ); ; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxx Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXX, Xxxx Xxx (XXXXXXXX); 55; Xxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-27; +xxxxxxx +XXXXXX, X Xxxxxxx (XXXXXX); 81; Xxxxxxxxxxxx XX>Xxxxxxxxxx XX; Xxxxxxxx Xxxxxxxx +(XX); 1996-11-25; xxxxxxx +XXXXX, Xxxxxx Xxx; 52; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXX, Xxxxx Xxxxxxxx "Xxxxx" ( ); 87; XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXX, Xxxxxxxxxx X ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxxxxx X ( )[XXXXXXX]; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxxxx Xxxxxxx ( )[XXXXXXX]; ; Xxxxx XX; Xxxx XX Xxxx; 1996-11-18; +xxxxxxxx +XXXXX, Xxxxxxx Xxxxx; 74; Xxxxxx XX; Xxxxxx X (XX); 1996-11-28; xxxxxxxxx +XXXXXX, Xxxxxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXXX, Xxxx X (XXXXXX); 65; Xxxxxx XX>Xxxxxxxxx XX; Xxxxxx X (XX); 1996-10-7; +xxxxxxx +XXXX, Xxxx Xxx ( ); 55; Xxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-26; xxxxxxx +XXXXXXX, Xxxxxx X "Xxxxx"; 81; Xxxxx Xxxx XX; Xxxxx X-X; 1996-12-4; xxxxxxx +XXXX, Xxxxxx X; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXX, Xxxxxxx X; 83; Xxxxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXXXX, Xxxxxxx X Xxxx; 77; Xxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-3; xxxxxxx +XXXXX, Xxxxxx Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxxxx X "Xxxx Xxx"; ; Xxxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXX, Xxxxxxx Xxx; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXX, Xxxxxxxx Xxxxxx; ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXX, Xxxxx (XXXXX); 89; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxxx Xxxxxxx ( ); ; Xxxx Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; +xxxxxxxx +XXXXXXX, Xxxxxx X; 71; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXX, Xxxxxx X; 87; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxxxxx X; 75; Xxxx Xxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXX, Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXX, Xxxxxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXX, Xxxxxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXX, Xxxxxx; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXX, Xxxxxx "Xxxxx"; 57; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, Xxxxxxx X; 75; Xxxxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXXXXX, Xxxxxxxx Xxxxx Xx; ; X Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXXXXX, Xxxxxxxx Xxxxx Xx; ; X Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXXXX, Xxxx; 67; Xxxx Xxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxxxx X Xx; 94; Xxxxx XX; Xxx Xxxxxx X-X; 1996-12-6; xxxxxx +XXXX, Xxxxxxx; 57; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx X; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, Xxxx X; 57; Xxx Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxx Xxxxx; 0; Xxxxxxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxxx; 91; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXX, Xxxxxxx X; 96; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXX, Xxxx; 65; Xxxx XXX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxxxxx X ( ); 83; XX>Xxxxxxxx XX; Xxxxxxxx Xxxxxxx (XX); 1996-6-18; +xxxxxxxx +XXXXX, Xxxxxxx Xxxxxxx ( ); 81; Xxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-25; +xxxxxxxxx +XXXXX, Xxxxx Xxxxxxxx Xx; ; XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, X Xxxxxx XX; 71; Xxxxxxxx XX; Xxxxxxx X-X; 1996-10-17; xxxxxxxx +XXXXX, Xxxxxx Xxxxxxx; ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxx (XXXXXXXXXXX); 78; XX>Xxxxx Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; +xxxxxxxx +XXXXX, Xxxxx Xxxxxx; 71; Xxxxxxx XX; Xxxxxxxx X-X; 1996-10-23; xxxxxxxx +XXXXX, Xxxxxxx X; ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxxx Xxxxxxx; 88; XX>Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxxxx X; ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxxx Xxxxxxx; 37; Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxxx X (XXXXXXX); 80; Xxxxxxxxxx Xx XX>Xxxxxx XX; Xxxxxx X (XX); +1996-10-8; xxxxxxx +XXXXXXX, Xxxxxxx X Xx; 65; Xxxxxx XX; Xxxxxx X; 1996-10-17; xxxxxxx +XXXXX, Xxxxxx X; 77; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxx ( ); 93; Xxxxxx XX; Xxxxxx X; 1996-12-6; xxxxx +XXXXX, Xxxx X (XXXXX); 93; Xxxxxx XX; Xxxxxx X; 1996-12-7; xxxxx +XXXXXXX, Xxxxxx; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXX, Xxxxx X; 80; Xxxxxxxx XX; Xxxxx X-X; 1996-12-4; xxxxxxx +XXXXXXX, Xxxxx X ( ); 90; Xxxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXX, Xxxxxxxx X (XXXXXX); 76; Xxxxxx XX; Xxxxxx X; 1996-10-14; xxxxxxx +XXXXXXX, Xxxxx X; 59; Xxxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-3; xxxxxxx +XXXXXXX, Xxxx (XXXXX); 51; Xxxxx Xxxx XX; Xxxxxxxx X-X; 1996-10-24; xxxxxxxx +XXXX, Xxxxx X (XXXXXXXXXX); 70; Xxxxxx Xxx XX>Xxxxxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; +1996-11-24; xxxxxxx +XXXXX, Xxxxxxxx X ( ); 88; Xxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXXXX, Xxxx Xxx; 83; Xxxxxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-27; xxxxxxxxx +XXXXX, Xxxx; 76; Xxxxx XX>X Xxxxxxxxxxx XX; Xxxxxx X (XX); 1996-10-15; xxxxxxx +XXXX, Xxxxx X (XXXXXX); 84; Xxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-10-26; xxxxxxx +XXXXXX, Xxxxxx X; 87; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXXX, Xxxxxx (XXXXXXX); 79; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXX, Xxxxxx X Xx; 56; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XXXXXXX, Xxxx Xxxxxxxx Xxxxxxxxxx ( ); 79; XxXxxxxxx XX; Xxxxxx X (XX); +1996-11-26; xxxxxxxxx +XXXXXXX, Xxxxxx X; 69; Xxxxxxx XX; Xxxxxxx Xxxx; 1996-12-3; xxxxxxxx +XxXXXX, Xxxxxxxxx X ( ); 84; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXX, Xxxxxxx Xxxxxx; 65; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXXXX, Xxxxxxx Xxxx; 90; Xxxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-28; +xxxxxxxxx +XXXXXX, Xxxxx; 84; Xxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXX, Xxxx Xxxx ( ); 77; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XXXXXXXX, Xxxx X; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxxx Xxxxxxx; 68; Xxxxxx XXX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxxxx X ( ); 78; Xxxxxx Xxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXX, Xxxxxxxxx X ( ); ; Xxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXXX, Xxxx {XXXXXX); 81; Xxx Xxxx Xxxx XX>Xxxxxxxx XX; Xxxxxxx; 1996-12-6; +xxxxxxxx +XXXXXX, Xxxxxx Xxxxxx; ; Xxxxx Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxxx Xxxxxx ( ); 86; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXX, Xxxxxx X; 80; Xxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXXXX, Xxxx XX; 76; Xxxxx XX; Xxxxxxxx X-X; 1996-10-21; xxxxxxxx +XXXXXXX, Xxxxxxx X ( ); 87; Xxxxxxxx Xxxxx XX; XXX Xxxxx; 1996-10-27; xxxxxxx +XXXXXX, Xxxxxxx X; ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxxx Xxx Xxxxxxxx; 49; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx Xxxxx; 54; Xxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxx; 81; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxxxx ( ); 86; Xxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +Xx XXXXXXXXX, Xxxxxx Xxxx; 80; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxx (XXXXXX)[XXXXXXXX]; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; +xxxxxxxx +XXX, Xxxx X; 94; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XXX, Xxxx X; 65; Xxxxxxxxx XX; Xxxxxx X-X; 1996-10-27; xxxxxxxx +XXX, Xxxxx (XXXXX); ; Xxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXX, Xxxxxx Xxx ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxx; 79; Xxx Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXX, Xxxxxx Xxxxxx; 78; XX>Xxxxxxxxxx Xxxx XX; Xxxx XX Xxxx; 1996-11-20; +xxxxxxxx +XXXXX, Xxxxxx Xxxxxx Xx; ; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxxxx X; 90; Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; xxxxxxxx +XXXXXX, Xxxxxxx X ( ); 92; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxxx X ( ); 92; XX>Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxxxxx X ( )[XXXXX]; ; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XxXXX, Xxxxxx Xxxxxxxxx; 87; XX; Xxxxxxxx X-X; 1996-10-13; xxxxxxxx +XXXXXXXXX, Xxxxxx Xxxxx; 82; Xxxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXXX, Xxxxxx Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxx X; 25; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxx X; 74; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxxx X; ; Xxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxx X; 59; Xxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxx (XXXX)[XXXXXXX]; 76; XX; Xxxxxxxx X-X; 1996-10-24; xxxxxxxx +XXXXX, Xxxxx X X Xx; 47; Xxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXX, Xxxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxxxxx X; 0; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXX, Xxxxxxx X Xx; 50; Xxxxxxxxxxx XX>Xxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXX, Xxxxxx Xxxxx; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxx Xxxxxx; 71; Xxxxxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXX, Xxxxx X ( ); 87; Xxxxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXX, Xxxxx X ( ); 87; Xxxxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXX, Xxxxx X ( ); 87; Xxxxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXX, Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXX, Xxxxxxxx X ( ); 79; Xxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXXXXX, XXXXXX X; 84; Xxxxxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-30; xxxxxxx +XXXXXX, Xxxxxx X; 75; Xxx Xxxxxx XX; Xxx Xxxxxx X-X; 1996-12-6; xxxxxx +XXXXX, Xxxx; 86; Xxxxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-3; xxxxxxx +XXXXXX, Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxx X ( ); 90; Xxxxxxxxx XX; Xxxxx X-X; 1996-12-3; xxxxxxx +XXXXXX, Xxxxxxx Xxxx ( ); 90; Xxxxxxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxxx Xxxxxx; ; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxx Xxxxxx; 25; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXXXXXXX, Xxxx X ( ); 90; Xxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-27; xxxxxxxxx +XXXXX, Xxxx X ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXX, Xxxx X "Xxxxx" ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxxxx X "Xxxx"; 81; Xxxxxx XX>Xxxxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXX, Xxxxxx X X; 65; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxx (XXXXXXXX); 81; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXX, Xxxx Xxxxxx (XXXXXX); 82; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXX, Xxxxxx X; 81; XX>Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX-XXXXXXXXX, Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXXXX, Xxxxx; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx X; 76; Xxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx X ( ); 86; Xxxxxxxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxxx X; 5; Xxxxxxx XX; Xx Xxxx X-X (XX); 1996-12-3; xxxxxxx +XXXX, Xxxxxx Xxx; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxxxx X; ; XX>Xxxxxxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxxxx; 64; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxxxx; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxx Xxx ( ); 98; Xxxxxxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXX, Xxxxxx X; 55; Xxxxxx XX; Xxxxxxxx X-X (XX); 1996-10-24; xxxxxxxx +XXXXXXXX, Xxxxxx X; 97; Xx Xxxx XX>XXX; Xx Xxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXX, Xxxxxx Xxxxx Xxxx ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXX, Xxxxxx Xxxxx; 70; Xxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXX, Xxxxxx X; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXXXX, Xxxx X ( ); 85; Xxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxx X X; 92; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XXXX, Xxxxxxxx "Xxxxxx" ( ); 81; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXX, Xxxxxxxx; 81; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXX, Xxxxx ( ); 82; ; Xxxxx X-X (XX); 1996-12-4; xxxxxxx +XXXX, Xxxxxxx X Xx; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXX, Xxx Xxxxxxx; 93; Xxxxxxxx XX; Xxxxxxxx Xxxx; 1996-10-23; xxxxxxxx +XxxXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XxxXXXX, Xxxxxx; 85; Xxxxxxxxx XXX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXX, Xxxx Xxxxx ( ); ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxx X (XXXXXX); 80; Xxx Xxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXXXX, Xxx Xxxxxx ( ); 87; Xxxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-3; xxxxxxx +XXXXXXX, Xxx; 71; Xxxxxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxxx; ; ; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxx Xxxxx [Xxxxxx Xxxxxxx]; ; XX>Xxx Xxxxxxx XX; Xxxx XX Xxxx; +1996-11-27; xxxxxxxx +XXXXXX, Xxxxxx Xxxxxxx [Xxxxxx Xxxxx]; ; XX>Xxx Xxxxxxx XX; Xxxx XX Xxxx; +1996-11-27; xxxxxxxx +XXXXXX, Xxxxxx Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxxxx X; ; Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxxx X; 70; Xxxxxx XX; Xxxxxxx X; 1996-12-6; xxxxxxxx +XXXX, Xxxxx X; 12; XX; Xxxxxxxx X-X; 1996-10-23; xxxxxxxx +XXXXXX, Xxxxxxx X; 43; Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXXXX, Xxxxx X; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXX, Xxxxx X; 58; Xxxxxxxx XX; Xxxxxx & Xxxxxxxxxx; 1996-10-16; xxxxxxxx +XXXX, Xxxxxxxx X ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxx (XXXXXXXX); 84; Xxxxxxx Xxx XX; Xxxxxxx X; 1996-12-6; xxxxxxxx +XXXXXXXXX, Xxxxxx X "Xxx"; 80; Xxxxxx XX>Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; +xxxxxxx +XXXXXXXXXX, Xxxxx; 75; XX>Xxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXXXXXX, Xxxxx X ( ); 98; Xxx Xxxx XX>Xxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXXXXX, Xxxxx (XXXXX); 87; XxXxxx Xx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXXX, Xxxxxxx; 41; Xxxxxxxx XX; Xxx Xxx Xxxxxxx; 1996-12-1; xxxxxxx +XXXXXXXX, Xxxx Xxx; 33; Xxxxxx XX; Xxxxxx X; 1996-12-6; xxxxx +XXXXXXXX, Xxxxxx X; 101; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxx X; 64; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxx X; 51; Xxxxxxx XX>Xxxxxxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXX, Xxxxxxx X; 56; Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxxx ( ); ; XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxxxxxx X (XXXXXXX); 76; Xxxxxxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; +1996-11-26; xxxxxxx +XXXXXX, Xxxxx (XXXXX); 72; Xxxxxxxxx XX; Xxx Xxxxxx X-X; 1996-12-6; xxxxxx +XXXXXX, Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxx X ( ); ; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxx X ( ); ; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXX, Xxxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxx (XXXXXXXX); 87; Xxxxxx-Xxxxx XX; Xxxxxxx X; 1996-12-6; xxxxxxxx +XXXX, Xxxxxx Xxxxx; 0; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxxx X ( ); ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXX, Xxxxx Xxxxxxx Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXX, Xxx Xxxxxxx X "Xxxx"; 82; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; +xxxxxxxx +XXXXXXXX, Xxxxxx X; 94; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXXX, Xxxxxx "Xxxxxx"; ; Xxxxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXX, Xxxxx X; ; Xxxxxx Xx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXX, Xxxxx X; ; Xxxxxx Xx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xx X X "Xxx"; 57; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxxx Xxxx Xxxxxx (XXXXXXXXX); 98; Xxxxxx XXX>Xxxxxxxx Xxx XX; Xxxxxx X +(XX); 1996-10-9; xxxxxxx +XXXX, Xxxx X (XXXXXX); 84; Xxxxxx XX>Xxxx XX; Xxxxxx X-X; 1996-11-14; xxxxx +XxXXXXX, Xxxx Xxxxxxx (XXXXXXXX); 76; Xxxxxx XX; Xxxxxxxx Xxxx; 1996-10-23; +xxxxxxxx +XxXXXXX, Xxxxx Xxx (XxXXXX); 66; X Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XxXXXXX, Xxxxx Xxx (XxXXXX); 66; X Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XxXXXXXXXX, Xxxx Xxx (XXXXXXX)[XXXXXXXXX]; 71; XX>Xx Xxxxxxxxxx XX; Xxxx XX Xxxx; +1996-11-20; xxxxxxxx +XxXXXXXXXX, Xxxx Xxx Xxxxxxxxx (XXXXXXX); 71; Xx Xxxxxxxxxx XX; Xxxx XX Xxxx; +1996-11-19; xxx +XxXXXX, Xxxxxxxx X ( ); 55; Xxxxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XxXXXXXX, Xxxx; 85; Xxxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XxXXXXXX, Xxxxxxx (XXXXXX); 76; Xxxx Xxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; +xxxxxxxx +XxXXXXXX, Xxxxxxx X; ; Xxxx Xxxxxxx XX; Xxxxxxx X; 1996-12-6; xxxxxxxx +XxXXXXX, Xxxx X (XXX); 65; ; Xxxx XX Xxxx; 1996-10-26; xxxxx +XxXXXXXX, Xxxxx Xxxx (XXXXXXXXX); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; +xxxxxxxx +XxXXXXX, Xxxxxxxx "Xxxx"; 9; Xxxxxxxx XX; Xxxxx X-X; 1996-12-3; xxxxxxx +XxXXXXX, Xxxxxxxx "Xxxx"; 9; Xxxxxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XxXXX, Xxxxxxx Xx; ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XxXXX, Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XxXXX, Xxxxxx Xxxxxxx; 82; Xxxxxx XX; Xxxxxx X; 1996-11-26; xxxxxxxxx +XxXXX, Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XxXXX, Xxxxxxx Xx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XxXXX, Xxxxxxx X (XXXX); 85; Xxxxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XxXXXXX, Xxxx (XXXXX); 44; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XxXXXXX, Xxxxxx; 90; Xxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XxXXXXXX, Xxxxx X; 66; Xxxxxxxx XX; Xx Xxxxx X-X; 1996-10-6; xxxxxxxxx +XxXXXXXX, Xxx Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XxXXXXXXX, Xxxx (XXXXXXX); 82; Xxxxxx Xxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-25; +xxxxxxxxx +XxXXXXXXX, Xxxxxxx X ( ); ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XxXXXXXX, Xxxxx; 87; Xx Xxxxxx XX; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XxXXXXXX, Xxxxx; 87; Xx Xxxxxx XX; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XxXXXXXX, Xxxxx; 87; Xx Xxxxxx XX; Xxxxx X-X (XX); 1996-12-4; xxxxxxx +XxXXX, Xxxxxxx Xxxx Xxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XxXXX, Xxxxx X Xxxxx ( ); ; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XxXXX, Xxxxx X Xxxxx ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XxXXX, Xxxxxx Xxxx; 39; Xxxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-26; xxxxxxxxx +XxXXX, Xxxxxx Xxxx; 39; Xxxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-27; xxxxxxxxx +XxXXXXXXXX, Xxxxxx X "Xxx"; 71; Xxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-25; +xxxxxxx +XxXXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XxXXXXXX, Xxxxxx X Xxx; 90; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XxXXX, Xxxx X (XXXXXX); 91; Xxxxxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXXXX, Xxxx "Xxxx"; 73; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXX, Xxxxxx "Xxxxxxxx"; 53; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXX, Xxxxxxx Xxxxxxxxx; 29; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxx (XXXXXX); ; Xxxxxx XX; Xxxxxx X-X; 1996-10-27; xxxxxxxx; +XXXXXXX, Xxxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXXX, Xxxxxx (XXXXXX); 77; Xxxxxxx XX; Xxx Xxx Xxxxxxx; 1996-12-2; xxxxxxx +XXXXXX, Xxxxxxx X; ; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXX, Xxxxxxx X (XXXXXXX); 83; XxXxxxx XX; Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxx X ( ); 93; Xxx Xxxx Xxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-26; +xxxxxxxxx +XXXXXX, Xxxx X ( ); 81; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XXXXXXXX, Xxxxx Xxxxxx; 73; Xxxxx XX; Xxxxxxxx Xxxx; 1996-10-23; xxxxxxxx +XXXXXXX, Xxxxxxxx X (XXXXXX); 64; Xxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXXXX, Xxxxxxx X ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXXX, Xxxxxx Xxxxxxxxx; ; Xxxxxx Xxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXXX, Xxxxxxx X Xx; 41; Xxxxxxxxxxxx XX>Xxxxxx Xxx XX; Xxxxxx X (XX); +1996-10-21; xxxxxxx +XXXXXXXXX, Xxx Xxxxxx; ; X Xxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; xxxxxxxx +XXXXXXXXX, Xxxxxx X; 61; Xx Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXXXX, Xxxxxxx Xxxxxxx Xxxxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXX, Xxxxxx Xxxxxxx; 46; XXX>Xxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXXX, Xxxxxxxx (XXXXXXX); 82; Xxxxxxxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxxx X (XXXXXXXX); 83; Xxxxxxxxxxx XX; Xxxxxx X; 1996-10-9; xxxxxxx +XXXXXX, Xxxx Xxx (XXXXXXX); 82; Xxxxxxxxx XX>Xxxxxx XX; Xxxxxx X (XX); 1996-10-8; +xxxxxxx +XXXXXX, Xxxx X Xxxx; 84; Xxxxxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-3; xxxxxxx +XXXXXX, Xxxxx X (XXXXX); 74; Xxxxxx XX; Xxxxxx X; 1996-10-17; xxxxxxx +XXXXXX, Xxxx X ( ); 93; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXX, Xxxxxx X; ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxxx Xxxx; 81; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxxx Xxx; 49; Xxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-27; xxxxxxxxx +XXXXXX, Xxxxxx X Xx; 89; Xxx Xxxxx XX; Xxxxxx X; 1996-10-17; xxxxxxx +XXXXXX, Xxxx Xxxxxxx; 79; Xx Xxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXX, Xxxxxxx Xxxxxxxx ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxx X ( ); 93; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXX, Xxxxxx; 103; Xxxxxx XxxxxXX>Xxxxxxxx XX; Xxxxxx X (XX); 1996-10-17; +xxxxxxx +XXXXXX, Xxxxxx Xxx ( ); 59; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxxxx ( ); 86; Xxxxxx Xxxx XX>Xxxxxxx XX; X X Xxxx (XX); 1996-12-5; +xxxxxxxx +XXXXXX, Xxxxxx Xxx; 61; Xxxxxx XX; Xxxxxxxx Xxxx; 1996-10-23; xxxxxxxx +XXXXXX, Xxxxxx (XXXXX)[XXXXX]; 34; Xxxxx XX; Xxxxxxxx Xxxx; 1996-10-30; xxxxxxxx +XXXXXX, Xxxxxx X Xx; 75; Xxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxxxxx Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxxxx X Xx; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxxx X ( ); ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXX, Xxxxxxxxx ( ); 82; Xxxx XXX>Xxxxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXXXXXX, Xxxxx X; 79; Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxxxx Xxxxxx "XXX" Xxx; 56; Xxxxx XX>Xxxxxxxx XX; Xxxxx Xxxx (XX); +1996-12-6; xxxxxx +XXXX, Xxxx ( ); 92; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, Xxxxxxxx (XXXXXX); 80; Xxxxxxx XX>Xxxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXXXX, Xxxxx X ( ); 81; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxxxxxxx (XXX); 72; Xxxxxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; +xxxxxxxx +XXXXXXX, Xxxxxx Xxxxxxx ( ); 81; Xxxxxx XX; Xxxxxx X; 1996-11-26; xxxxxxxxx +XXXXXXX, Xxx; 73; Xxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXXX, Xxxx; 64; Xxxx Xxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXX, Xxxx; 64; Xxxx Xxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXX, Xxxxxxxxx X; 25; Xx Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXX, X Xxxxxx ( ); 74; Xxxxxxx Xxxx XX; Xxxxx X-X; 1996-12-3; xxxxxxx +XXXXXX, Xxxx; 76; Xxxxxxxx XX; Xxxxxxxx X-X; 1996-10-25; xxxxxxxx +XXXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXX, Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXXX, Xx Xxx (XXXXXX); ; Xxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXX, Xxxxxxx X Xx; 47; Xxx Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXX, Xxxxxxx X Xx; 47; Xxx Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXXXXX, Xxxxxxxxx X (XXXXXXXXXX); 68; Xxxxxxxx XX; Xxxxxx & Xxxxxxxxxx; +1996-10-16; xxxxxxxx +XXXXX, Xxxxx; 79; Xxxxxxxxxxx XX; Xxxxxx X-X; 1996-10-26; xxxxxxxx +XXXXX, Xxxx X; ; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxx Xxx; 78; Xxxxxx XX; Xxxxxx X-X; 1996-10-27; xxxxxxxx +XXXXX, Xxxxxx Xx; 66; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxxx Xx; ; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxx; 47; Xxxxxx XX; Xxxxxxxx Xxxx; 1996-10-30; xxxxxxxx +XXXXX, Xxxxx Xxxx (XXXXX); 86; Xxxxxx XX; Xxxxxxxx Xxxx (XX); 1996-10-23; +xxxxxxxx +XXXXX, Xxxxx X; 51; Xxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxx; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXX, Xxxxxx Xxxxx; 83; Xxxxx XX; Xxxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXX, Xxxx Xxxx; 73; Xxxxxxxxxxx XX>Xxxxxxxxx XX; Xxxxxx X; 1996-11-25; +xxxxxxxxx +XXXXXX, Xxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxxxx X; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxxxx X; 54; Xxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXX, Xxxx (XXXXXX); 70; Xxxxxxxx Xx; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXXXXX, Xxxxx X; 80; Xxxxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXXXXX, Xxxxx X; 65; Xxxxxxxx XX; XXX Xxxxx; 1996-10-27; xxxxxxx +XXXXXXXX, Xxxx X ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXX, Xxxx X ( ); 77; Xxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXXX, Xxxx X ( ); 77; Xxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXX, Xxxxxx X ( ); 75; Xxxxxxxx XX; XXX Xxxxx; 1996-10-27; xxxxxxx +XXXXXXX, Xxxxx Xxxxxx; ; Xxxxxxxxx Xxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXXX, Xxxxxxx Xxxx ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxxxxx Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxxxxxx; 82; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxx X "Xxxx"; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxxxx X; 103; Xxxxxxxx Xxxx XX; Xxxxxxxx X-X; 1996-10-10; xxxxxxxx +XXXXX, Xxxxx Xxxx ( ); 73; ; Xx Xxxx X-X (XX); 1996-12-5; xxxxxxx +XXXXX, Xxxxxx X; 76; Xxxxxx Xxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXXX, Xxxxxx X (XXXXX); 81; Xxxxxx XX; Xxxxxx X; 1996-10-5; xxxxxxx +XXXX, Xxxxxx; 90; Xxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXX, Xxxxxx; 90; Xxxxx XX; Xxxxxxx Xxxx; 1996-11-29; xxxxxxxx +XXXXXXX, Xxxxxxx X; 55; Xxxxxxxxxx Xxxxxxxxx XX>Xxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; +1996-11-26; xxxxxxx +XXXXXX, Xxxx X ( ); 98; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXX, Xxxx X; ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxx X (XXXXXX); 88; Xxxxxx Xxxx XX>Xxxxxxxx Xxx XX; Xxxxxx X (XX); +1996-10-13; xxxxxxx +XXXXXX, Xxxxxx Xxxxxxx; 65; Xxxxxxxx XX>Xxxxxxxxx XX; Xxxxxx X (XX); 1996-10-16; +xxxxxxx +XXXXX, Xxxx X; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxxxx X; 76; Xxxxxxx XX; Xx Xxxxx X-X; 1996-10-6; xxxxxxxxx +XXXXX, Xxxxx X; ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxxx Xxxxxx; 65; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxx X; ; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx; 54; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxx (XXXXXXXX); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, Xxxxx (XXXXXXXX); 76; Xxxxxxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-30; +xxxxxxx +XXXX, Xxxxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXXX, Xxxxx ( ); 80; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXX, Xxxxxxx Xxxx ( ); 90; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxxx Xxxxxx; 72; Xxxxxxxxxxx XX; Xxxxxx X; 1996-11-27; xxxxxxxxx +XXXXX, Xxxxx Xxx (XXXXXX); 54; Xxxxxx XX; Xxxxxx X-X; 1996-10-27; xxxxxxxx +XXXX, Xxxxxxx X ( ); ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXX, Xxxxxxx Xxxxxxx (XXXXXX); 91; XX>Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; +xxxxxxxx +XXXXXXXX, Xxxxxx X; 73; Xxxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXXXX, Xxxxxxxx "Xxxxx"; 90; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXX, Xxxx X; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXX, Xxxxxxxx X; 79; Xxxxxx XX; Xxxxxx X-X; 1996-10-27; xxxxxxxx +XXXXXX, Xxxxx X ( ); 84; X Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXX, Xxxxx X (XXXXXXXXX); 84; X Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXX, Xxxxx (XXXXXXXXX); 84; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXX, Xxxxxxx Xxxxx (XXXXXXX); 62; Xxxxxx xx Xx Xxxxx XX>Xxxxxxx XX; Xx Xxxx X-X +(XX); 1996-12-5; xxxxxxx +XXXXXXX, Xxxxx X ( ); 81; ; Xx Xxxx X-X (XX); 1996-12-5; xxxxxxx +XXXXXX, Xxxxxxxxx X (XXXXXXX); ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxx Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxxx Xxx; 69; Xxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxx X ( ); 92; Xxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXXXXXXX, Xxxxxx Xxxxxx XXX; 78; Xxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, Xxxxx X (XXXXXXX); 62; Xxxxxxx XX; Xxxxxxx Xxxx; 1996-11-30; xxxxxxxx +XXX, Xxxxxx Xxxxxx Xxxxxxx; 65; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxx X; 72; XX>Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXX, Xxxxxx Xxxxxxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXX, Xxxxxx Xxxxxxx; 0; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXX, Xxxxxx Xxxxx Xx; 75; Xxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXX, Xxxxxx X ( ); 75; Xxxxxxxxx XX>Xxxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXX, Xxxxx X (XXXXX); 80; Xxxx Xxxx XX; Xxxxxxxx Xxxxxxxx; 1996-10-26; xxxxxxx +XXXXXX, Xxxx Xxxxxxxxx; 55; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxx X; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXX, Xxxxx Xxxxx ( ); 93; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXX, Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXXXXX, Xxxx ( XXXXXX); 76; Xxxxxxxxxxxx XX; Xxxxxx X; 1996-10-19; xxxxxxx +XXXXXXXXX, Xxxx ( ); 76; Xxxxxxxxxxxx XX; Xxxxxx X; 1996-10-18; xxxxxxx +X'XXXXXXX, Xxxx X "Xxxx"; 84; XXX>Xx Xxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +X'XXXXXX, Xxxxx; 59; Xxxxxx XX; Xxxxxxxx Xxxx; 1996-10-30; xxxxxxxx +X'XXXXXX, Xxxxx; 59; Xxxxxx XX; Xxxxxxxx Xxxx; 1996-10-23; xxxxxxxx +X'XXXXX, Xxxxx Xxxxxxxx; ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +X'XXXXX, Xxxxxx X; 72; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +X'XXXXX, Xxxxxxxx X ( ); ; Xxxxxx Xxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +X'XXXXXX, Xxxxxxxx "Xxx"; 54; XX>X Xxxxxxxxxxx XX; Xxxxxxx Xxxxxxxx (XX); +1996-6-18; xxxxxxxx +XXXXXX, Xxxxxxx X Xx; 58; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXXXX, Xxxxxx XxXxxxx ( ); 64; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxxx Xxxx; ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXX, Xxxxxx Xxxxx; 58; Xxxxxxxxxx XX>Xxxxxxxxx XX; Xxxxxx X; 1996-11-27; +xxxxxxxxx +XXXXX, Xxxxxx X; 79; Xxxxxx Xxxx XX>Xxx Xxxx Xxxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXX, Xxxxxxx X "Xxxxxx"; 43; Xxxxxxx XX; Xxxxxxx Xxxx (XX); x996-11-24; xxxxxxxx +XXXX, Xxxxx X (XXXXXX); 72; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXX, Xxxxxx X ( ); 102; Xxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXX, Xxxxxx XX; 86; Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXXX, Xxxxxx X; 64; Xxxxxxx Xxxxx XX>X Xxxxxxxxxxx XX; Xxxxxx X (XX); +1996-10-4; xxxxxxx +XXX, Xxxxx X; 77; Xxxxxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-30; xxxxxxx +XXXXXXX, Xxxxxxxxx X ( ); 65; Xxxxxxx XX>Xxxxxxx XX; Xxxxxx X (XX); 1996-10-12; +xxxxxxx +XXXXX, Xxxxx X; 59; Xxxxxx XX; Xxxxx X-X (XX); 1996-12-4; xxxxxxx +XXXXX, X X; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, X X; ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxxx X; ; Xxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, Xxxxx Xxxxxxx; 0; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxx ( ); ; ; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxx X (XXXXXXX); 76; Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxxxx Xxxxx; 70; Xxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXX, Xxxxxx X; 82; Xxxxxxxxxxx XX; Xxxxxxx Xxxxxxx (XX); 1996-12-6; xxxxxxxx +XXXX, Xxxxxx Xxxxxx; 72; Xxxxxx Xxxxxxx XX; Xxxxxxxx X-X; 1996-10-25; xxxxxxxx +XXXX, Xxxxxxx X "Xxxx" Xx; 72; Xx Xxxxxxx XX; Xxxxxxx Xxxxx (XX); 1996-12-6; +xxxxxxxx +XXX, Xxx Xxxx ( ); 93; X Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; xxxxxxxx +XXXXXX, Xxxxx Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxx X; 71; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXXXXXXX, Xxxxxx Xxxx; 0; Xxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXXXXXX, Xxxxxx Xxxx; 0; Xxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXX, Xxx (XXXXXXX); 75; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxxxxxxxx "Xxxxxxxx" ( ); 87; Xxxxxxxx XXX>Xxxxxx Xxxxxx XX; Xxxxx Xxxx; +1996-12-6; xxxxxx +XXXXXXXX, Xxxxxxx X (XXXXXX) "Xxxxxx"; 62; X Xxxxxxxxxxx XX; Xxxxxx X; +1996-10-14; xxxxxxx +XXXXXXX, Xxxxxxxxx Xxxxxxxxx; 73; XXX>Xxxxxx Xxxxxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXXXX, Xxxx Xxx ( ); ; XxXxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxx (XXXXXX); 60; Xxxxxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxx Xxx ( ); 97; Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXX, Xxxxx Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxxxxx X ( ); 77; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxxx Xxxxxx; 73; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXXX, Xxxxxxxx X ( ); 70; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxx (XXXXXXXXXXX); 55; Xxxxxxxx XX; Xxxxxx X-X; 1996-10-27; xxxxxxxx +XXXXXXX, Xxxxxxxx X ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxxxx Xxx; 0; Xxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXXXXX, Xxxxxxx Xxxxxx (XXXXX); 90; ; Xxxxx X-X (XX); 1996-12-4; xxxxxxx +XXXXXXXXX, Xxxx "Xxx"; 88; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxx Xxxx ( ); 78; Xxxx Xxxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXX, Xxxxxxx; 85; Xxxxxx XX; Xxxxxx X; 1996-11-27; xxxxxxxxx +XXXXXXXXXX, Xxxx; 73; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxxx X; 60; Xxxxxxx XX; Xx Xxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXXX, Xxxxxxxx X; 73; Xxxxx Xxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXX, Xxxxxxxx X; 73; ; Xx Xxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXXX, Xxxxxxx X (XXXXXXX); 63; Xxxxxxx XX; Xxxxxxx Xxxx; 1996-11-29; xxxxxxxx +XXXXX, Xxxxxx "Xxxxx"; 64; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxx (XXXXXXX); ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxx Xxxxxx Xx XX; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxx (XXXXXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxxx X; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxxxx Xxxxxxxx [XXXXXX]; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXX, Xxxxxxxx Xxx (XXXXXXXX); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXX, Xxxx; 79; XX>Xxxx Xxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXX, Xxxxxx X; 86; Xxxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-27; xxxxxxxxx +XXXX, Xxxxx Xxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXXXX, Xxxxxxx Xxxxxxx; 85; Xxxxxxxx XX; Xxxxxxxx Xxxx; 1996-11-6; xxxxxxxx +XXXXXX, Xxxxx Xxxxxxx; 102; Xxxxxxxxxx XX; Xxxxxx X-X; 1996-10-27; xxxxxxxx +XXXXXXX, Xxxxxx X; 28; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXXXX, Xxxxxx X; 28; ; Xxxxx X-X (XX); 1996-12-4; xxxxxxx +XXXXXXX, Xxxxxx (XXXXX); 78; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXX, Xxxxx X ( ); ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXX, Xxxxxx Xxxx; 80; XX>Xxxxx Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; +xxxxxxxx +XXXXXXXX, Xxxxxxx X X "Xxx" Xx Xx; 56; Xxxxxxxxx XX; Xxx Xxxxxx X-X (XX); +1996-12-6; xxxxxx +XXXXXXXX, Xxxxxxxx X; 92; ; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXXXXX, Xxxx X ( ); 75; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXX, Xxxx X; 76; Xxxxx Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXXX, Xxxxxx Xxxx; 74; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXXX, Xxxxx (XXXXXXXX); ; Xxxxxx XX; Xxxxxxx X; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxx X; 73; Xxxxxxx Xxxxxxx XX>Xxxxxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXXXXXXXX, Xxxxxx (XXXXXX); 84; Xxxxxxxxxx Xxx XX; Xxxxxx X; 1996-10-21; xxxxxxx +XXXXXX, Xxxxx X; 59; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxx (XXXXXXX); ; ; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxx X; 17; Xxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXX, Xxxxxx X; 17; Xxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXXX, Xxxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxxx X ( ); ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXXXX, Xxxxxx Xxxxx; 47; Xxxxxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; +xxxxxxxx +XXXXXXXXX, Xxxxxxx Xxxx; 49; Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXX, Xxxx (XXXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXXXX, Xxxxxxx X; ; XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXXXX, Xxxxx X; 57; Xxxxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxx Xxxx; ; Xxxxxx Xxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxx X; 85; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XXXXXX, Xxxxx (XXXXX); 90; Xxxxxxxxx XX; Xxxxxx X-X; 1996-10-26; xxxxxxxx +XXXXX, Xxxxx X; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxxxxxx X; ; Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxxxxxxx Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxx X ( ); 91; XX>Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, Xxx X ( ); ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXXXX, Xxxxxx X (XXXXX); 70; Xxxxxxxxxx XX>Xxxxxxxx Xxxx XX; Xxxxxx X (XX); +1996-10-7; xxxxxxx +XXXXXXXX, Xxxxxx Xxxxx; 76; Xxxxxxxxxxxxx XX; XXX Xxxxx; 1996-10-27; xxxxxxx +XXXXXXX, Xxxxxx X; 83; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXX, Xxxxxx X ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxx Xxxxxxxx "Xxxxx" ( ); ; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXX, Xxxx X; ; XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxx X "Xxx" (XXXXX)[XXXXXXXX]; 49; Xxxxxxx XX; Xxxxxxx Xxxxx (XX); +1996-12-5; xxxxx +XXXXX, Xxxxxxxxx (XXXXX); 93; Xxxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXXX, Xxxxxxxxx (XXXXX); 93; Xxxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXXXXX, Xxxx X; 76; XX>XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxx (XXXXXXXXX); 65; Xxxxxxx XX>Xxxxxxxxx XX; Xxxxxx X; 1996-11-25; +xxxxxxxxx +XXXXXX, Xxxxxxx; 0; ; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXXXX, Xxxxxxx X (XXXX); 94; Xxxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXXX, Xxxxxx X; 75; Xxxxxxxxx XX; Xxxxx X-X; 1996-12-3; xxxxxxx +XXXXXX, Xxxxxx; 75; Xxxxxxxxx XX; Xxxxxxx Xxxx; 1996-12-1; xxxxxxxx +XXXXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXX, Xxxxxxxx X; ; Xxxxxxxx; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxxxxx Xxxxxx; 92; XX>Xxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXX, Xxxxxxxx; 77; Xxxx Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxxxxx X ( ); 59; Xxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXXXX, Xxxxxxxxx ( ); 87; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXX, Xxxxxxx X ( ); 73; Xxxxx Xxxxx XX; Xxxxxx X; 1996-11-26; xxxxxxxxx +XXXXXX, Xxxxx X; 46; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXX, Xxxxxx Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxxxx Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxx Xxx (XXXXXX); 27; Xxxxx Xxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXXXX, Xxxx ( ); 91; Xxxxxxxxx XX>Xxxxxxxx XX; Xxxxxx X; 1996-11-26; +xxxxxxxxx +XXXXXXXXX, Xxxxxx; 84; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXXXX, Xxxx Xx; 45; Xxx Xxxx XX>Xxx Xxxx Xxxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXXXXX, Xxxxx Xxxx (XXXX); 86; Xxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxx Xxx ( ); 80; Xxxxxxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXX, Xxxxx; 90; Xxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-11-30; xxxxxxx +XXXX, Xxxxx X; 72; Xxxxxxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-26; xxxxxxxxx +XXXX, Xxxxxxx Xxxxx; 70; Xxxxxx XX; Xxxxxx X-X; 1996-27; xxxxxxxx +XXXX, Xxxxx Xx; 55; Xxxxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXX, Xxxxxx "XX"; ; ; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxx Xxxxxxxx; 59; Xxxxxxxxxx XX; Xxxxxxx Xxxxxxx (XX); 1996-12-7; +xxxxxxxx +XXXXXX, Xxxxx Xxxxx (XXXXXX); 72; Xxxxx XX; Xxxxxxxx Xxxx; 1996-11-6; xxxxxxxx +XXXXXX, Xxx X ( )[XXXXX]; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxx X; 89; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxxxx X "Xxxxx"; 80; Xxxxxxxxx XX; Xxxxxx X; 1996-10-16; xxxxxxx +XXXXXX, Xxxxxxx X; 85; Xxxx XX; Xxxxxxxx Xxxxxxxx (XX); 1996-11-30; xxxxxxx +XXXX, Xxx X; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxx X (XXXXXX); 86; Xxxxxxxx Xxx XX; Xxxxxx X; 1996-10-15; xxxxxxx +XXXXXXX, Xxxx X XX; 45; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxxxxxxxx (XXXXXXXXXX); 89; Xxxxxxxx Xx XX>Xxxxx XX; Xxxxx Xxxx; +1996-12-6; xxxxxx +XXXXXXX, Xxxxx Xxxxxxx; 35; XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXXXX, Xxxx X Xx; ; XX>Xxxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxx X (XXXXX)[XXXXXX]; 83; Xxxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXXXXX, Xxxxxx X; 91; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXX, Xxxx X; 76; Xxxxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXX, Xxxx (XXXXXX); ; Xxxxxxxxxxxx XX>Xxxx Xxxxxxxxx XX; X X Xxxx (XX); +1996-12-5; xxxxxxxx +XXXXXX, Xxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXX, Xxxxxx Xxxxxx; 74; Xxxxxxxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXXXXX, Xxxxxx Xxxxxxx; 41; Xxxxxx Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXX, Xxxxx X ( )[XXX XXXXXXXXX]; 79; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; +xxxxxxx +XXXXXXX, Xxxx; 85; Xxxxx XX; Xxxxx X-X; 1996-12-3; xxxxxxx +XXXXXXXX, Xxxxx X; 75; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxx Xx; 64; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxx Xx; 64; XX>Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, Xxxxxx Xxxx "Xxxx"; 83; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXX, Xxxxxxx X; 73; Xxxxxxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-27; xxxxxxx +XXXXX, Xxxxxx X; 65; Xxxxx XX; Xxxxx X-X; 1996-12-4; xxxxxxx +XXXXX, Xxxxx X; 60; Xxxxxxxxxxxx XX>Xxxxxxx XX; X X Xxxx (XX); 1996-12-5; +xxxxxxxx +XXXXX, Xxxx; ; Xx Xxxxxxx XX; Xxxxxxx Xxxxx (XX); 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxxx Xx; 71; Xxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXX, Xxxxxxxxx X "Xxxxx"; 53; Xxxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXXXX, Xxxx (XXXXX); 92; ; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXXXXXX, Xxxx (XXXXX); 92; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXX, Xxxxxx Xxx; 87; Xxxxxxx Xxxxxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXXXX, Xxxxx Xxx; 84; Xxxxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXX, Xxxxxx Xxxxx ( ); 89; Xxxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxxx ( ); 90; Xxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXX, Xxxxxxxxxx X ( ); 77; XxXxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxxxxx Xxxx; 66; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxxx Xxxxx; 39; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxx X "Xxxx"; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXX, Xxxxx ( ); 82; XX>Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXXX, Xxxx X ( ); 78; Xxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxx Xxxxxx Xx; 68; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxx X ( ); 59; XxXxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXXXX, Xxxxxx X; ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxx X ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXX, Xxxxxxx ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxx (XXXXXX) "Xxxxx"; 85; Xxxxxx XX; Xxxxxx X; 1996-10-15; xxxxxxx +XXXXXXX, Xxxxx; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXX, Xxxxxxxxx (XXXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXX, Xxxxxxx Xxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXX, Xxxxxxx Xxxxxx; 68; Xxxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXXXX, Xxxx (XXXXXXX); 100; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxxx Xxxxxx; 58; Xxxxxx XX; Xxxxxx X; 1996-11-26; xxxxxxxxx +XXXX, Xxxxxxxx X ( ); 88; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXX, Xxxxxxxx X; 82; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXX, Xxxx X; 87; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxx Xxxxxx (Xx XXXXXXXX); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; +xxxxxxxx +XXXXX, Xxxxx X; 90; XX>Xxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXXXX, Xxxxxx X; 74; Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; xxxxxxxx +XXXXXXX, Xxxxx Xxxxx; ; Xxxxxxxx Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxxx ( )[XXXXXX]; ; Xxxxxxxx XX; Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxx; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxxx X (XXXXXXX); 53; XX>Xxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxxx X (XXXXXXX); ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxxxx X; 67; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXX, Xxxxxxx X; 67; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXX, Xxxx; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXX, Xxxxxxx X Xx; 67; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxx X; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxx X; 28; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, Xxxxxxx Xxxxxx; 55; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxx X Xxx XXX Xxx; 80; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxx X Xx; 51; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxxxxx X; 79; Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXX, Xxxxxxx X; 79; Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXX, Xxxx (XXXXXXXX); 57; Xxxxxxxx XX; Xxxxxx X; 1996-12-7; xxxxx +XXXXXXXXXX, Xxxxx X; 87; Xxxxxxx XX>Xxx Xxxx Xxxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXXXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXX, Xxxx; 79; Xxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXXXX, Xxxxxxxx ( ); 86; Xxxxxx Xxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXXX, Xxxxx X "Xxxxxx"; 6; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXX, Xxxx Xxxxx "Xxxx"; 79; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXX, Xxxx Xxxxxxx ( ); 91; Xxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxxx XxXxxxxxx ( ); 103; Xxxxxxx XXX>Xxxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXXXX, Xxxxx; 91; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXXX, Xxxxxxxxxx X ( ); 90; Xxxxxxx XX>Xxx Xxxx Xxxxxx XX; Xxxxx Xxxx; +1996-12-6; xxxxxx +XXXXXXX, Xxxxxxxxxx X ( ); 90; Xxxxxxx XX>Xxxxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXXXXX, Xxxxxx Xxxxx; 63; Xxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXXXX, Xxxxxx ( ); 85; Xx Xxxxx XX>Xxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXX, Xxxxx X; 60; Xxxxxxx XX; Xxxxxxx X-X; 1996-10-17; xxxxxxxx +XXXXXXX, Xxxxxx X; 48; Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXX, Xxx X; 68; Xxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxx X (XXXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXXX, Xxxxxxx Xxxxxxx; 0; Xxxxxxxxxx XX; Xxxxxx X; 1996-10-13; xxxxxxx +XXXXXXXX, Xxxxxxxx ( ); 90; ; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXXXXX, Xxxxxxx; 87; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXX, Xxxxxx Xxxxxx; 78; ; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, Xxxxx X ( ); 85; Xxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; xxxxxxxx +XXXXXXXX, Xxxxx (XxXXXX); 91; Xxxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-18; +xxxxxxxx +XXXXXX, Xxxxx X; 88; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXXX, Xxxxxx (XXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxxxx X "Xxxxx"; 49; Xxxxxxx Xx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxx X (XXXX); 91; XX XXX>Xxxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXXXXX, Xxxxxxx X ( ); 40; Xxxxxxxx XX; Xx Xxxx X-X (XX); 1996-12-5; xxxxxxx +XXXXXXXX, Xxxxxx Xxxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXXX, Xxxxxx; 78; Xxxxxxxx XXX>Xxxxxxxxx XX; Xxxxxx X; 1996-11-26; xxxxxxxxx +XXXXXXXXXX, Xxxxx X (XXXX); 84; Xxxxxxxxx XX>Xxxxxx Xxxxxx XX; Xxxxx Xxxx; +1996-12-6; xxxxxx +XXXXXXXXX, Xxxxxx X; 61; Xxxxxxxxx XX; Xxxxxxx Xxxx; 1996-11-27; xxxxxxxx +XXXXXXX, Xxxxxxxxx X "Xxxx"; 77; Xxxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXXX, Xxxxxxx X (XXXXXX); 61; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXX, Xxxxx (XXXXXXX); ; Xxxxxxx XX; Xxxxxxx Xxxx; 1996-12-1; xxxxxxxx +XXXXXXXX, Xxxxx Xxxx ( ); 61; Xxxxx XX>Xxxxxxxxx XX; Xxxxxx X; 1996-11-28; +xxxxxxxxx +XXXXXXXXXXXX, Xxxxx X (XXXXXXXX); 97; Xxxxxx XX; Xxxxxx X; 1996-10-12; xxxxxxx +XXXXXXXXX, Xxxx X ( ); 94; Xxxxxxxxxx XX; Xxxxx Xxxx (XX); 1996-12-7; xxxxxx +XXXXXXXXX, Xxxxxx Xxxxx; 20; Xxxxxxx XX; Xx Xxxxx Xxxx (XX); 1996-12-6; xxxxxx +XXXXXXXXXXX, Xxxxxxxx X "Xxxxx"; 79; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXXX, Xxxxxxx; 69; XX>X Xxxxxx XX; Xxxxxxxx Xxxxxxx (XX); 1996-6-18; +xxxxxxxx +XXXXXXXXXXX, Xxxxxx; 64; ; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXXXXX, Xxxxxxxx X "Xxxxx"; 79; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXXXX, Xxxxxxx X; 89; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXX, Xxxxx; 70; Xxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-11-30; xxxxxxx +XXXXXXXX, Xxxx X; 74; Xxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXXXXX, Xxxxxx (XXXX); 88; Xxxxxx XX; Xxx Xxx Xxxxxxx; 1996-12-1; xxxxxxx +XXXXXXXXXX, Xxxxx X; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXXXXX, Xxxxx; 78; Xxxxxxxx Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxxxxxx (XXXXX); 93; Xxx Xxxx; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxxx Xxxxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxxxxx X; 87; Xxx'x Xxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXX, Xxxxxx Xxxxxxx Xx; 567; Xxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXX, Xxxxxxx Xxxx (XXXXXXXX); 59; Xxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXXX, Xxxxxx; 61; Xxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxxx Xxxx; 80; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXX, Xxx (XXXXXX); ; Xxxxxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXX, X Xxxxxx; 58; Xxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXX, Xxxxxx Xxxxxxx; 77; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXX, Xxxxxxxx Xxxxxx "Xxx"; 86; Xxxxxxxxxx XX; Xxx Xxxxxx X-X; 1996-12-6; xxxxxx +XXXXX, Xxxxxxxx Xxxxxxxxx "Xxxxx" (XXXX); 65; Xxxxxxxxxx XX>Xxxx Xxxx XX; Xxxxx +Xxxx; 1996-12-7; xxxxxx +XXXXXX, Xxxxx X ( ); 40; Xxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXX, Xxxxx X ( ); 40; Xxxxx XX; Xxxxx X-X; 1996-12-3; xxxxxxx +XXXXXXX, Xxxxx Xxx (XXXXXX); 85; Xxxxxxxxxxxx XX; Xxxxxx X; 1996-10-14; xxxxxxx +XXXXXXX, Xxxxxxx Xxxxxxx Xx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxxxxx X; ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXX, Xxxxxxxx X; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxxxxxx Xxxxxxx; 58; Xxxxxxxx XX>Xxxxxxxxxx XX; Xxxxx Xxxx (XX); +1996-12-6; xxxxxx +XXXXX, Xxxxxxxx X ( ); 77; Xxxxxxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXX, Xxxxxx X ( ); 71; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXX, Xxxx X; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXX, X Xxxxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXX, Xxxxxx X; 65; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXX, Xxxxxx X; 21; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXX, Xxxxxx Xxxxxxx ( ); 62; XXX>Xxxxxx XX; Xxxxxx X; 1996-11-27; xxxxxxxxx +XXXXXXX, Xxxxxx Xxxxxxx; 81; Xxx Xxxx XX>Xxxx Xxxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXXXXX, Xxxxxxx X; 84; Xxxxxxxxxxxxx XX>Xxxxxx Xxxx XX; Xxxxxxxx Xxxxxxxx; +1996-11-26; xxxxxxx +XXXXX, Xxxxxx X; 75; Xxxxxxxxx XX; Xxxxxx X-X; 1996-10-26; xxxxxxxx +XXXXXX, Xxxx; 81; Xxxxxxxxx XX; Xxxxxxx X; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxx Xxxxx; ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxxxxx Xxxxxxx; 81; Xxxxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxxxxx (XXXXXXX); 77; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; +xxxxxxxx +XXXXXX, Xxxxxxxxxx (XXXXXXX); 77; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; +xxxxxxxx +XXXXX, Xxxxxx X (XXXXXX); 87; Xxxx Xxxxxx, XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXX, Xxxxx "Xxxxxx" (XXXXXXXXXXX); 82; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-6; +xxxxxxxx +XXXXXXXXXX, Xxxxx X ( ); 62; Xxxxxxxxxxxxx, XX>Xxx Xxxxxx XX; X X Xxxx (XX); +1996-12-5; xxxxxxxx +XXXXXXX, Xxxx X "Xxx"; 83; Xxxxxxx Xxxxx XX; Xxx Xxx Xxxxxxx; 1996-12-1; xxxxxxx +XXXXXXX, Xxxxxxxx Xxxxxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXXXXXX, Xxxxx Xxxxx; 100; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXX, Xxxxxxx X; 57; Xxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXXX, Xxxxxx X; ; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXX, Xxxxxx X; 79; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxxxxx X (XXXXX); ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxx; ; XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXXX, Xxxxxxxxx X (XXXXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXX, Xxxxxx X ( ); 59; Xxx'x Xxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxx Xxx; 62; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxxxxx Xxxxxx ( ); 92; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXX, Xxxxx "XX" Xx; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXX, Xxxxx "XX" Xx; 49; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, Xxxx; 0; Xxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-2; xxxxxxx +XXXXXXXX, Xxxx X (XXXXXXXX); 73; Xxxxxx XX; Xxxxxx X; 1996-10-21; xxxxxxx +XXXXX, Xxxxxxx X; 83; Xxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXX, X Xxxxxxx; 72; Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxx X; 77; Xxxxxxxxx XX; Xxxxxx X; 1996-11-25; xxxxxxxxx +XXXXXX, Xxxxxx X ( ); 66; ; Xxxxx X-X (XX); 1996-12-4; xxxxxxx +XXXXX, Xxxxxx Xxxxxxx; 56; Xxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXXX, Xxxxx X "Xxxxxx"; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, Xxxxxxx Xxxxxx; ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxx Xxxxxxx (XXXXXXX); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxxxxxxx Xxxxxxxxx ( ); ; Xxxx xx Xxxxx XXX; Xxxx XX Xxxx; 1996-11-28; +xxx +XXXXX, Xxxxxxx X; 29; ; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXX, Xxxxx X X; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxx (XXXXXXX); ; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxxxx Xx; 64; Xxxxxxxxx XX; Xxx Xxxxxx X-X; 1996-12-6; xxxxxx +XXXXX, Xxxxxx X; 83; Xxxxxxx XX>Xxxxxxxxx XX; Xxxxxx X; 1996-11-27; xxxxxxxxx +XXXXX, Xxxx (XXXXXX); 82; Xxx Xxxxxxx XX; Xxx Xxxxxx X-X; 1996-12-6; xxxxxx +XXXXX, Xxxxxx X; ; Xxxxx Xxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXX, Xxxxxx X (XXXXXXX); 87; Xxxxxx XX; Xxxxxx X-X; 1996-10-26; xxxxxxxx +XXXXX, Xxxx XxXxx Xx; ; Xxxxx Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxx; 47; Xxxxxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-11-30; xxxxxxx +XXXXX, Xxxxxxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxxxxx (XXXXXXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxx X; 29; Xxxxx XX; Xxxxxxxx Xx X; 1996-10-17; xxxxxxxx +XXXXX, Xxxxxx X; 76; Xxxxxxxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXX, Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, X Xxxx Xx; 71; XX>Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxxx X; 97; Xxxxxxxx XX>Xxxxxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXX, Xxxxxxxx ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxx Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxx X; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxx X; 71; Xxxxxxx Xx; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxxxx X; 82; Xxxxxxxxxxxx XX>Xxxxxx Xxxxx Xxxxx XX; Xxxxx Xxxx; +1996-12-7; xxxxxx +XXXXX, Xxxxxxxx Xxxxx; 19; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxx X ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxx X (XXXXXXXXX); 88; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; +xxxxxxxx +XXXXX, Xxxx X ( ); 73; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxx Xxxx; 74; Xxxxxxxxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXX, Xxxxxxx X (XXXXXXXXX); 88; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; +xxxxxxxx +XXXXX, Xxxxxxxx Xxxxx; 19; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxx Xxxx; ; Xxxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxxxx Xxxxxx; 74; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXX, Xxxxxxx X; 74; Xxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXX, Xxxxxxxx X (XXXXXXXX); 76; Xxxxxx Xxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxx X; ; ; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXX, Xxxxxx X; 55; Xxxxx XX>XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxxx X; 54; Xxxxxxxxxxx XX; Xxxxxx X; 1996-10-4; xxxxxxx +XXXXXXX, Xxxxxx Xx Xxxxxx; ; Xxxxxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; +xxxxxxxx +XXXXXXX, Xxxxxx Xxxxxx Xx; ; Xxxxxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxxx X (XXXXXX); 79; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXX, Xxxxxxxx; 67; Xxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-2; xxxxxxx +XXXXXX, Xxxxxxxx ( ); 67; Xxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXXXX, Xxxxx X; 79; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXXXXX, Xxxxx X; 79; ; Xxxxx X-X (XX); 1996-12-2; xxxxxxx +XXXXX, Xxxxx X (X'XXXXXX); 72; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXXX, Xxxxxxx X; 71; Xxxx XX; Xxxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXX, Xxxxxxx X; 71; Xxxx XX; Xxxxx X-X; 1996-12-3; xxxxxxx +XXXXXXX, Xxxxxx Xxxx; 78; Xxxxxxxxx Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxx X Xx; 83; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxxxxx Xxxxxx ( ); 92; Xxxxxxx Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXXX, Xxxxxx X; 51; Xxx Xxxxxx XX>Xxxxxxxx XX; Xxxxxx X; 1996-11-25; +xxxxxxxxx +XXXXXXX, Xxxxxxx (XXXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxxx Xxxxxxx; 75; Xxxxxxx XX; Xxxxxx X; 1996-11-26; xxxxxxxxx +XXXXXXX, Xxxxxx X; 40; Xxxxx XX>Xxxxxxxxxx XX; Xxxxx Xxxx (XX); 1996-12-6; xxxxxx +XXXXXXXXX, Xxxxx X ( ); 90; Xxxxxx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXX, Xxx "XxxXxx"; 67; Xxxxx XX>XxXxxxxx XX; Xxxxx X-X (XX); 1996-12-4; +xxxxxxx +XXXXXX, Xxx "XxxXxx"; 67; Xxxxx XX>XxXxxxxx XX; Xxxxx X-X (XX); 1996-12-3; +xxxxxxx +XXXXXX, Xxxxxx X ( ); ; Xxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXXX, Xxxxxxx; 88; XXX>Xxx Xxxx Xxxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXXXXX, Xxxxxxx; 88; XXX>Xxx Xxxx Xxxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXX, Xxxxx X (XXXXX); ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XX XXXXX, Xxxxx X; ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxxxx Xxxxx; ; XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxx X (XXXXXXXXXXXXXX); 81; Xx Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; +xxxxxxx +XXXXX, Xxxxxxx X; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXX, Xxxxx Xxx ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXXX, Xxxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXXX, Xxx X; 88; Xxxxxxxxx XX; Xxx Xxxxxx X-X; 1996-12-6; xxxxxx +XXXXXXX, Xxxxxxx X "Xxxx" ( ); 86; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XXXXXXX, Xxxxxxx "Xxxxxxx"; 86; Xxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXX, Xxxx Xxx (XXXXXX); 66; Xxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxxxx X Xx; 54; ; Xx Xxxx X-X (XX); 1996-12-4; xxxxxxx +XXXXXX, Xxxxxx X Xx; 54; ; Xx Xxxx X-X (XX); 1996-12-5; xxxxxxx +XXXXXX, Xxxxxx X XXX; 64; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXXX, Xxxxx X "Xxxxxx" ( ); 83; ; Xxxxx X-X (XX); 1996-12-4; xxxxxxx +XXXXXXXXX, Xxxxx X "Xxxxxx" ( ); 83; ; Xxxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXXX, Xxxxx ( ); 68; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXXX, Xxxx X "Xx"; 85; Xxxxxxxx XX; Xxxxxxxx Xx X; 1996-10-17; xxxxxxxx +XXXXXXXX, Xxxx (XXXXX)[XXXXXXXX]; 68; Xxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXX, Xxxxxx ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxx X; ; ; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxx; 91; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXXX, Xxxxxxx; ; Xxx Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXXX, Xxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxx X (XXXXX); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxx X Xx; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXX, Xxxxxxx; 64; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, Xxxxx Xxxxxx; ; Xxxxxx Xxxxxx XX>Xxxxxxxxxx XX; Xxxx XX Xxxx; +1996-11-18; xxxxxxxx +XXXXX, Xxxxxxx "Xxxxxx"; 93; XXX>Xxxxxx-Xxxxx XX; Xxxxxx X; 1996-10-5; xxxxxxx +XXXXXX, Xxxxx X; ; Xxxxxxx Xx; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxx X; 64; Xxxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXXXX, Xxxx Xxxxxxxx; ; Xxxxxx Xxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxxx Xxxxxx; 87; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXX, Xxxxxx Xxx (XXXXXX); ; Xxxxxxxx XX; Xxxxxxxx Xxxx; 1996-10-30; xxxxxxxx +XXXXXXX, Xxxxxx Xxx (XXXXXXX); 88; Xxxxxxxx XX; Xxxxxxxx Xxxx; 1996-11-6; +xxxxxxxx +XXXXXX, Xxxx X Xx; ; Xx Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXXXX, Xxxx Xxxxxxxx; 58; Xxxxxxxxxxxx XX>Xxxxxxx XX; Xxxxxx X; 1996-11-28; +xxxxxxxxx +XXXXXXXXXX, Xxxxxx X ( ) Xx; ; ; Xxxx XX Xxxx; 1996-11-9; xxxxx +XXXXXXXXX, Xxxxxxx ( ); 26; Xxxxxxx Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX, Xxxxxxx; ; ; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx; 94; Xxxxxxxxxx XX; Xxxxxxxx X-X; 1996-10-21; xxxxxxxx +XXXXXX, Xxxx X ( ); 76; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXX, Xxxxx Xxxxxx; 73; Xxxxxxxx XX; Xxxxxx X; 1996-11-27; xxxxxxxxx +XXXX, Xxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXXXX, Xxxxxxx X (XXXXX); ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxx X; 95; Xxxxxx XX>Xxxxxxxxxx XX; Xxxxxx X; 1996-11-26; xxxxxxxxx +XXXXXXXX, Xxxxxx X; 77; Xxxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-2; xxxxxxx +XXXXXXXX, Xxxxx Xxxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxxxx Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXX, Xxxxxx X; 77; Xxxxxxx XX; Xxxxxxx Xxxx; 1996-11-28; xxxxxxxx +XXXXXX, Xxxxx; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXXX, Xxxxxxx (XXXXXX); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXX, Xxxxx Xxx ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxxx; ; ; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXX, Xxxxx Xxxxxx; 56; Xxxx Xxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXX, Xxxxxxx X; 61; Xxxxx Xxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXX, Xxxxx X; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXXXXX, Xxxx Xxxxxxxx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxx Xxxxx; 98; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXX, Xxxx X ( ); 73; Xxxxxxx Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxxxxx X ( ); 90; Xxxxxx XX; Xxxxxx X (XX); 1996-11-26; xxxxxxxxx +XXXXX, Xxxxxx X Xx; 78; Xxxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx Xxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXX, Xxxx Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxx (XXXXXX); ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxxxxx Xxxxxxxx ( ); 72; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxxxx ( )[XXXXXXXX]; ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXXX, Xxxxxxx ( ); 81; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXX, Xxxxxxxx ( ); ; ; Xx Xxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXXXXX, Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXXXX, Xxxx; 58; Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXX, Xxxxxxx X ( ); 80; Xxxxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXXXX, Xxxx Xxxxxx; 54; Xxx Xxx XX; Xxx Xxxxxx X-X; 1996-12-6; xxxxxx +XXXXXX, Xxxxxxxx Xxxxxx XXX; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXX, Xxxx Xxx (XXXXXXXXX); 76; Xxxxxxxx XX; Xxxxxx X-X; 1996-10-26; xxxxxxxx +XXXXXXXXX, Xxxxxx X; ; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXXX, Xxxxxx X; ; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXX, Xxx; 81; Xxxxxxxx Xxxx XX; Xxxxxx Xx X; 1996-10-16; xxxxxxxx +XXXXXX, Xxxxxxx X Xx; 68; X Xxxxxxxxxxx XX; Xxxxxx X; 1996-10-21; xxxxxxx +XXXXXX, Xxxxx; 76; Xxxxxx XX; Xxxxxx X-X; 1996-10-27; xxxxxxxx +XXXXXX, Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxx XxXxx; 78; Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXXX, Xxxxxxxxx X ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXX, Xxxxx Xxxxxx Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXX, Xxxx X (XXXXXX)[XXXXXXXX]; ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXX, Xxxxxxx XxXxxx; 19; Xxxxxx Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXXX, Xxxxxx; 52; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxxxxxxx Xxxxx (XXXXXX); 83; Xxxxxx XX; Xxxxxx X-X; 1996-10-27; +xxxxxxxx +XXXXXX, Xxxx Xxxxx; ; Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXX, Xxxxx X; 76; Xx Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXX, Xxxxx X; 76; Xx Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXX, Xxx X; 59; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXX, Xxxx Xxx ( ); 77; Xxxxxxxx Xxxxx XX; XXX Xxxxx; 1996-10-27; xxxxxxx +XXXXXXXXX, Xxxxx X "Xxxx"; 94; Xxxxxxxxxxx XX; Xxxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXXX, Xxxx Xxxx ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXX, Xxxxx Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXX, Xxxxx X ( ); 98; Xxxxx Xxxxx Xxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-26; xxxxxxx +XXXXXXXXX, Xxxxxxx X; 92; Xxxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, Xxxxxxxxx (XXXXXXXX); 93; Xxx Xxx XX; Xxx Xxx Xxxxxxx; 1996-11-30; +xxxxxxx +XXXXXX, Xxxxxxx Xxx (XXXXXXX); 81; Xxxxx XX; Xxxxxxxx Xxxx; 1996-11-6; xxxxxxxx +XXXXXXX, Xxxx Xxxxxxxxx ( ) "Xxxxx"; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxxx X; 92; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxx X; 92; Xxxxxxxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXX, Xxxxxx X; 92; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxxx X; 78; Xxxxxxx XX; Xxxxxx X; 1996-10-9; xxxxxxx +XXXXXXXX, Xxxx Xxx ( ); 46; Xxxxxxxxx XX>Xxxxxxxxx XX; Xxxxxx X (XX); 1996-11-26; +xxxxxxxxx +XXXXXXXX, Xxxxx (XXXXX); 91; XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXX, Xxxxxxx X Xx; ; Xxxxxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxx ( ); 74; X51Xxxxxxxx XX; Xxx Xxxxxx X-X (XX); 1996-12-6; xxxxxx +XXXXXXX, Xxxxx X Xx; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXXXXXX, Xxxxxx Xxxxx; 73; Xxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxx X; 47; Xxxxxxxxx Xx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxx X "Xxxx"; 61; Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXX, Xxxxxxx X "Xxxx"; 61; Xxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXX, Xxxxxx Xxx Xx; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxxx X; ; Xxxxx XX; Xxxxx X-X; 1996-12-4; xxxxxxx +XXXXXX, Xxxxxxx X; ; Xxxxx XX; Xxxxx X-X; 1996-12-3; xxxxxxx +XXXXXX, Xxxxxxx X; ; Xxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXXXX, Xxxxxxxx "Xxxxxx" ( ); 84; Xxxxxx Xxxxx XX; Xx Xxxx X-X; 1996-12-3; +xxxxxxx +XXXX, X X; 73; Xxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxx X Xx Xxx XXX; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxxxx Xxx (XXXXXX); 81; Xxxxxx XX; Xxxxxxx X; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx X; 70; XX>Xxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, Xxxxx; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx; 38; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxx Xxxxxx; 83; Xxxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-5; xxxxxxxx +XXXXXX, Xxxxxxxx X; 46; Xxxx XX; Xxxxxxx Xxxx (XX); 1996-11-28; xxxxxxxx +XXXXX, Xxxxxxx X; ; Xxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXXX, Xxxxx X ( ); ; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXXX, Xxxxxx X; 70; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXXX, Xxxxxx X; 70; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxx Xxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxxx X (XXXXXXX); 78; Xxxxxxxxxx XX; Xxxxxxxx X-X; 1996-10-23; xxxxxxxx +XXXXXXX, Xxxxxx X Xx; 66; Xxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-11-30; xxxxxxx +XXXXXX, Xxxxx X; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXXX, Xxxxxxxx (XXXXX); 94; Xxxxxxxxx XXX>Xxxxx XX; Xxxxxxx Xxxxx Xxxx; +1996-12-3; xxxxxxx +XXXXXXXXX, Xxxxxx X (XXXXXXXX); ; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxx X (XXXXXXX); 92; Xxxxxxxx XX; Xxxxxxxx Xx X; 1996-10-17; xxxxxxxx +XXXXX XXX, Xxxxx X ( ); 78; Xxxxxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-26; +xxxxxxxxx +Xxxxxx XXX, Xxxxx; 84; Xxxxx Xxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXXXXXXXX, Xxxxx X; 24; Xxxxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXXXXXXX, Xxxxxxxxx (XXXXX); 20; Xxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-3; +xxxxxxx +XXXXXXXXXXX, Xxxxxxxxx (XXXXX); 20; Xxxxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXXXXXXXXX, Xxxxx; 24; Xxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-3; xxxxxxx +XXXXXXXXXXX, Xxxxx X; 24; Xxxxxxx XX; Xxxxxxx Xxxx; 1996-11-29; xxxxxxxx +XXXXXXXXXXX, Xxxxxxxxx (XXXXX); 20; Xxxxxxx XX; Xxxxxxx Xxxx; 1996-11-29; +xxxxxxxx +XxxXXXX, Xxxxxx X Xx; 24; Xxxxxxxxxxxxxx XX; Xxxxxx X; 1996-10-19; xxxxxxx +XxxXXX, Xxxxxxx X; 76; Xxxxxxxxxxxx XX; Xxxxxx X; 1996-10-18; xxxxxxx +XXXXX, Xxxx X; 82; Xxxx Xxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx Xxxxxx; 40; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXX, Xxxx; 71; Xxxxxx XXX; Xxxxxxx Xxxxxxx (XX); 1996-12-7; xxxxxxxx +XXXXXXX, Xxxxx X; ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXXX, Xxxxxxxxx (XXXXX); 73; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxxxx X ( )[XXXXXX]; 83; Xxxxxxxxxx XX; Xxxxxx X; 1996-11-26; xxxxxxxxx +XXXXXXX, Xxxx Xxxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXX XXXXXX, Xxxxxxx X; 96; Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxxx X Xx; ; Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXXXX, Xxxxxxxxx X ( ); 94; Xxxxx XX>XXX; Xxx Xxxxxx X-X (XX); 1996-12-6; +xxxxxx +XXXXXXXX, Xxxxxxx (XXXXXXX); 89; XX>Xxxx Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; +xxxxxxxx +XXXXXXXX, Xxxxxxx (XXXXXXX); ; XxXxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXXXXXX, Xxxxxx; 86; XXX; Xxx Xxxxxx X-X (XX); 1996-12-6; xxxxxx +XXXXXXX, Xxxxxx X; 59; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxx X (X'XXXXXXXX); ; Xxxxx XX>X Xxxxxxxxxxx XX; Xxxxxx X (XX); +1996-10-8; xxxxxxx +XXXXXXXXXX, Xxxx Xxxxxx XXX; 0; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXXXX, Xxxx Xxxxxx XXX; 0; Xxxxxxxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XxxXXXXXX, Xxxxxxx (XXXXX); 89; Xxxxxxxx Xxx XX; Xxxxxx X; 1996-10-20; xxxxxxx +XXXX, Xxxxxxx X (XXXXXX); 43; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-5; xxxxxxx +XXXX, Xxxxxxx X (XXXXXX); 43; Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXX, Xxxxx Xxxxx (XxXXXXX); 67; Xxxxx Xxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXXXXXX, Xxxxxxx Xxxxxxxx Xx Xxx XXX Xxx; ; ; Xxxx XX Xxxx; 1996-11-20; +xxxxxxxx +XXXXXXXXX, Xxxx X "Xxxx"; 80; Xxxx Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXXX, Xxx (XXXXXXX); 81; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXX, Xxx (XXXXXXX); 81; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXXXXX, Xxxx Xxxxxxxx (XXXXXXX); 69; Xxxxxxxx XX; Xxxxxxxx Xxxxxxxx; +1996-11-24; xxxxxxx +XXXXXX, Xxxxxx X Xx; 52; Xxxxxxxxxxxx XX; Xxxxxxx X; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxxxx X (XxXXXXX); 74; Xxxxxxxx XX>Xxxxxx XX; Xxxxxx X (XX); +1996-10-12; xxxxxxx +XXXXXX, Xxxxx (XXXXXXXX); 73; Xx Xxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXXX, Xxx Xxxxx; 69; Xxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxxx Xxxx ( ); 52; Xxxxx XX>Xx Xxxxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXXX, Xxxxxxxxx X "Xxxxx" ( ); 81; Xxxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; +xxxxxxx +XXXXX, Xxxxxxxx (XXXX); ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxxxxxx X "Xxxxx" xxxx; 81; Xxxxxxxxxxx XX; Xx Xxxx X-X; 1996-12-4; +xxxxxxx +XXXXXXX, Xxxxxx Xxxxx (XXXX); 101; X Xxxxxxxxxxx XX; Xxxxxx X; 1996-10-14; +xxxxxxx +XXXXX, Xxxxxxx ( ); 86; Xxxxxxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXX, Xxxx; ; Xxxxx XX; Xxxxx X-X; 1996-12-3; xxxxxxx +XXXX, Xxxx; ; Xxxxx XX; Xxxxx X-X; 1996-12-2; xxxxxxx +XXXX, Xxxx Xxxx "Xxx Xxx"; 83; Xxxxx Xxxxxx XXX>Xxxxxx XX; Xxxxxx X; 1996-11-27; +xxxxxxxxx +XXXX, Xxxxxx X; 87; Xxxxxx XX>X Xxxxxxxxxxx XX; Xxxxxx X (XX); 1996-10-4; xxxxxxx +XXXX, Xxxxxx X; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXX, Xxxxxxx ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxxx Xxxxx Xx; 87; Xxxxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxxxx Xxxx; 91; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXXXX, Xxxxxx Xxx ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXXXX, Xxxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXXXX, Xxxxx Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXXXXXX, X X; 82; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-4; xxxxx +XXXXXXXXXX, Xxxxxxx Xxxxxxxx; 56; Xxxxxx Xxxx XX>Xxxxxxxxxx XX; X X Xxxx (XX); +1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxxx ( ); ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxx X (XXXXXXX); 101; ; Xxxxxx X-X; 1996-10-27; xxxxxxxx +XXXXXX, Xxxxxx X ( ); 80; Xxxxxxxxxx XX>Xxxxxxxxx XX; Xxxxx Xxxx; 1996-12-6; +xxxxxx +XXXXXX, Xxxxxxxx Xxxxxx ( ); ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, Xxxxx Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxx Xxxxxxxx Xx; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXX, Xxxxx; 54; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxxxx Xxxxxxxxx; 39; XX>XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxx Xxxxxx; 85; Xxxxxxxxxxxx XX>Xxxxxxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXX, Xxxxxx Xxxx "Xxx"; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXX, Xxxxx X Xx; 76; Xxxxxxx XX>Xxxxx XX; Xxxxx Xxxx; 1996-12-7; xxxxxx +XXXXX, Xxxx Xxxxx ( ); 84; Xxxxxxxx XX; Xx Xxxx X-X; 1996-12-3; xxxxxxx +XXXXXXX, Xxxxxx "Xxxx" (XXXXXXXX); 73; Xxxxxxxxxxxx XX; Xxxxxxxx X-X; 1996-10-25; +xxxxxxxx +XXXXXXXXX, Xxxxxx X; ; ; Xx Xxxx X-X (XX); 1996-12-3; xxxxxxx +XXXXXXXX, Xxxxx; 80; Xxxxxx XX; Xxxxxxx Xxxxx Xxxx (XX); 1996-12-2; xxxxxxx +XXXXXXXXXX, Xxxxxxx X ( ); 62; Xxxxxxxx XX; Xxxxx X-X; 1996-12-3; xxxxxxx +XXXX, Xxxx Xxxxxxx; 75; Xxxxxxxx XX; Xxxxxx X; 1996-10-15; xxxxxxx +XXXXX, Xxxxx X (XXXXXXX); ; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXX, Xxxxxx Xxx; ; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxxxxx Xxxxxxx; ; Xxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXX, Xxxx ( ); 91; Xxxxxxx XX; XX Xxxxx; 1996-10-26; xxxxxxx +XXXXXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXXX, Xxxxxx Xxxxxx XX; ; Xxxxxx XX; Xx Xxxx X-X (XX); 1996-12-5; xxxxxxx +XXXXXXXX, Xxxxxx X; 78; Xxxxxx XX; Xxxxxx X (XX); 1996-12-7; xxxxx +XXXXX, Xxxxxx X ( ); 81; Xxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-28; xxxxxxxxx +XXXXX, Xxxxxxx X; ; Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, Xxxxx X; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxxx XxXxxxxx; ; Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxx X (XXXXXXXX); ; Xxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXX, Xxxxxxx X Xx; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, X Xxxxxxx Xx; 83; Xxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXXXXXXX, Xxxxxx X; 88; Xxx Xxxx Xxxxxx XX; Xxxxxxxx X-X (XX); 1996-10-11; +xxxxxxxx +XXXXXXXXX, Xxxxxxxxx "Xxxxx"; 69; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, X Xxxxxx; ; Xxxxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXX, Xxxxxxxx; 71; Xxxxxxxxxx Xxx XX; Xxxxxxxx X-X; 1996-10-21; xxxxxxxx +XXXXXXXX, Xxxxx X (XXXXX); 89; Xxxxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXX, Xxxxxx Xxxxx-Xxxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXX, Xxxxxxxxx Xxxxxx ( ); 72; Xxxxxxx XX>Xxxxxx XX; Xxxxxx X; 1996-11-28; +xxxxxxxxx +XXXX, Xxxxx Xxxxxxxxx (XXXXXX)[XXXXXXX]; 86; Xxxxxx XX>Xxxxxx XX; Xxxxxx X; +1996-11-27; xxxxxxxxx +XXXXX, Xxxxxx ( ); 85; Xxxxxxx XX; Xxxxxxx Xxxxx; 1996-12-5; xxxxx +XXXXXXX, Xxxxxx Xxxxx; 87; Xxxxx Xxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXX, Xxxxxxx (XXXXXXX); 72; Xxxxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXXXXX, Xxxxxxx (XXXXXXX); 72; Xxxxxxxxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; +xxxxxxxx +XXXXXXXX, Xxxxxx Xxxxx; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxxxxx X "Xxxx"; 58; Xxxxxxxxxxxx XX; Xxxxxxxx Xxxxxxxx; 1996-10-26; +xxxxxxx +XXXXXXXX, Xxxxxxxx; ; ; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXXXXX, Xxxxx Xxx; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXXXX, Xxx X; 100; Xx Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; xxxxxxx +XXXXXXXX, Xxxxxx Xxxxx; ; ; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, Xxxxxx; ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXXX, X X Xxx; 71; Xxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXXXXXX, Xxxxxx X; 65; Xxxxxxx XX>Xxxxxxxx Xxxx XX; X X Xxxx (XX); 1996-12-5; +xxxxxxxx +XXXXXXXX, Xxxxx Xxxx "Xxxxx"; 83; Xxxx Xxxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXXX, Xxxxxx (XXXXXX); 73; Xxxxxx XX; Xxxxxxxx Xxxx; 1996-10-30; xxxxxxxx +XXXXXXXX, Xxxxx Xxxx "Xx Xxxxxxxx Xxxxx"; 83; ; Xxxxxxx Xxxxxxx; 1996-12-6; +xxxxxxxx +XXXXXXXXXX, Xxxxxx; 84; Xxxxxx XX>X'Xxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-12-2; +xxxxxxx +XXXXXXXXXX, Xxx Xxxxxx Xxxxxxx; ; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; +xxxxxxxx +XXXXXX, Xxxxxxx X ( ); ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxx X Xxxxx ( ); ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXXX, X Xxxxxx; 72; XX>Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXX, Xxxx; ; ; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxx X; 61; Xxxxx Xxxx XX; XXX Xxxxx; 1996-10-27; xxxxxxx +XXXXXX, Xxxxxxx X "Xxxx"; 34; Xxxxxx XX; Xxxxxx X-X; 1996-10-26; xxxxxxxx +XXXXXX, Xxx Xxxx; ; Xxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXXX, Xxxxxx X; 90; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-10-26; xxxxx +XXXXX, Xxxxxx Xxxxxxx ( ); ; XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXXX Xxxxxx Xxxxxxx Xx; 67; Xxxxxx Xxxxxx XX>Xxxxxx Xxxx XX; Xxxxx Xxxx; +1996-12-7; xxxxxx +XXXXXXXX, Xxxxxx X; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXXXXXXX, Xxxxxx; ; ; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXXXX, Xxxxxx X; 81; Xxxxxx Xxxxxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXXXXX-XXXXXXX, Xxxx (XXXXXXX); 62; XX>Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; +xxxxxxxx +XXXXXXX, Xxxx X "Xxxxx" (XXXXXX); 79; Xx Xx Xxxx XX; Xx Xxxx X-X; 1996-12-3; +xxxxxxx +XXXXXXX, Xxxx X "Xxxxx" (XXXXXX); 79; Xx Xx Xxxx XX; Xx Xxxx X-X; 1996-12-4; +xxxxxxx +XXXXXXX, Xxxxxxx X; 85; X Xxxxxxxxxxx XX; Xxxxxx X; 1996-10-12; xxxxxxx +XXXX, Xxx X; ; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXX, Xxxxx (XXXXXXX); 95; Xxxxxxxx XX>Xxx Xxxx XX; Xxxxxxxx Xxxxxxxx (XX); +1996-11-25; xxxxxxx +XXXX, Xxx X ( ); 86; Xxxxxxxxx XX; Xxx Xxxxxx X-X; 1996-12-6; xxxxxx +XXXX, Xxxx Xxxxxxxxx (XXXXXXX); ; Xxxxxxxx XX; Xxxx XX Xxxx; 1996-11-25; xxxxxxxx +XXXX, Xxxxx Xxxxxx ( ); 75; XxXxxxx XX; X X Xxxx (XX); 1996-12-6; xxxxxxxx +XXXXX, Xxxxxx Xxxxx; 37; Xxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXXXXX, Xxxxx X (XXXX); 86; Xxxxxx XX>Xxxxxxxxxxx XX; Xxxxxxx Xxxxx Xxxx (XX); +1996-11-30; xxxxxxx +XXXXXXX, Xxxx; 66; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXXXX, Xxxx ( ); ; Xxxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx (XXXXXX); ; XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXXX, Xxxxxx Xxxxx (XXXX); 67; Xxxxxxxxxxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXXX, Xxxxxx; 71; Xxxxxx XX; Xxxxxxx Xxxxx; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxx X; 62; Xxxxx XX>Xxxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-11-30; +xxxxxxx +XXXXXX, Xxxx X; ; Xxxxxxxx Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXXX, Xxxxx Xxx ( ); 82; Xxxxx Xxxxxx Xxxx XX; X X Xxxx; 1996-12-5; xxxxxxxx +XXXXXX Xxxxxxx Xxxxx ( ); 69; Xxxxxx XX>Xxxxxx Xxxx XX; Xxxxx Xxxx; 1996-12-7; +xxxxxx +XXXXXXXX, Xxx X; 78; Xxxxxxx XX; Xxxxxxx Xxxxx Xxxx; 1996-11-30; xxxxxxx +XXXXXXXX, Xxx Xxxxxx; 78; Xxxxxxx XX; Xxxxxxx Xxxx; 1996-11-29; xxxxxxxx +XXXXX, Xxxxxx X; 90; Xxxxxx XX; Xx Xxxxx Xxxx; 1996-12-6; xxxxxx +XXXXX, Xxxxx X; 81; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxx X ( ); ; Xxxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxx ( ); 49; Xxxxxxxx XX; Xxxxxxx X-X; 1996-10-17; xxxxxxxx +XXX, Xxxxxxx X; ; Xxxxxxxxxx XX; Xxxx XX Xxxx; 1996-11-22; xxx +XXXXX, Xxxxxxxx X (XXXXXXX); 77; Xxxxxxxxx XX>Xxxxxxxxx XX; Xxxxxx X (XX); +1996-10-16; xxxxxxx +XXXXXXXX, Xxxxx (XXXXXX); 93; Xxxxxxx Xxx XX; Xxxxxxx X; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxx Xxxx ( ); 47; Xxxxxxxxxx XX>Xxxxxxxxx XX; Xxxxxx X; 1996-11-28; +xxxxxxxxx +XXXX, Xxxxxxx; 80; Xxxxxx Xxxxxx XX; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXX, Xxxx X; ; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-18; xxxxxxxx +XXXXX, Xxxx X ( ); ; Xxxxxxx XX; Xxxx XX Xxxx; 1996-11-20; xxxxxxxx +XXXXX, Xxxxxx Xxxxxxx; 23; Xxxxxxxx XX>Xxxxxxxxxx XX; Xxxxxx X (XX); 1996-11-28; +xxxxxxxxx +XXXXX, Xxxx X "Xxxxx"; ; Xxxxxx XX; Xxxx XX Xxxx; 1996-11-19; xxx +XXXXX, Xxxxx X ( ); 86; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-6; xxxxxxxx +XXXXX, Xxxxx X; 86; Xxxxxx XX; Xxxxxxx Xxxxxxx; 1996-12-7; xxxxxxxx +XXXXX, Xxxxx X ( ); 72; Xxxxxxxxxxxx XX; X X Xxxx; 1996-12-6; xxxxxxxx +XXXXXXX, Xxxxx X; ; ; Xxxx XX Xxxx; 1996-11-27; xxxxxxxx +XXXXX, Xxxxx X X; 80; X Xxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXX, Xxxxx X X; 80; X Xxxxxx XX; Xxxxxxxx Xxxxxxx; 1996-6-19; xxxxxxxx +XXXXXXXX, Xxx (XXXXXXXXXX); ; Xxxxxxx XX; Xxxxxxx X; 1996-12-6; xxxxxxxx +XXXXXX, Xxxxxxx Xxxx; ; ; Xxxx XX Xxxx; 1996-11-26; xxx +XXXXXX, Xxxxxxx X; ; ; Xxxx XX Xxxx; 1996-11-28; xxx +XXXXXXXX, Xxx X; 78; Xxxxxx XX; Xxxxxx X-X; 1996-10-26; xxxxxxxx +--------------------------------------------------------------------------------- +---------------------------------------------- +XXXXXXXXXXXX: +Xxxx Xxxxx, Xxxxx Xxxxxxxx, Xxxxxx X. Xxxxxxxx Xxxxxx, Xxx Xxxxxxxx, Xxxxx X. +Xxxxxx, Xxxxx Xxxxxxxxx, Xxxxxx Xxxxxx-Xxxxx, Xxxxx Xxxx, Xxx Xxxxx, Xxxxxx +Xxxxxx, Xxxxx Xxxxxxx, Xxxxxx Xxxxxxxxxx, Xxxxxxxx Xxxxxxxxx, Xxxxx Xxxxxx, Xxxx +Xxxxxxxx, Xxxxx X Xxxxx, Xxxxx Xxxxx, Xxxxxx X. Xxxxxxx, X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------------------------------------------- + +Xxxx xxxxx 2014 / 575306 + +------------------------------ + +Xxx xx XXX-XXXX Xxxxxx - 7 Xxx 1996 xx 8 Xxx 1996 - Xxxxxxx xxxxx +***************************************************************** + +------------- Xxx Xxxxxxxxx Xxxxxxx ------------- + + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/1 b/glassfish-runner/mail-platform-tck/mailboxes/test2/1 new file mode 100644 index 0000000000..77dac1302a --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/1 @@ -0,0 +1,13 @@ +From MAILER-DAEMON Thu May 14 22:19:38 1998 +Date: Thu, 14 May 1998 22:19:38 -0700 (PDT) +From: Mail System Internal Data +Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA +X-IMAP: 0844907956 0000000019 +Status: RO +Content-Length: 260 + +This text is part of the internal format of your mail folder, and is not +a real message. It is created automatically by the mail system software. +If deleted, important folder data will be lost, and it will be re-created +with the data reset to initial values. + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/10 b/glassfish-runner/mail-platform-tck/mailboxes/test2/10 new file mode 100644 index 0000000000..b6bfba83b4 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/10 @@ -0,0 +1,687 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:43 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17391; Fri, 17 Feb 1995 14:43:52 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AA03103; Fri, 17 Feb 1995 14:43:47 -0800 +Received: from relay.surfnet.nl by Sun.COM (sun-barr.Sun.COM) + id AA17736; Fri, 17 Feb 95 14:43:33 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08359-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:42:50 +0100 +Message-Id: <9502172243.AA17736@Sun.COM> +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172240.AA06005@skyhawk.Eng.Sun.COM> +Subject: Mime test multipart/alternative +Mime-Version: 1.0 +Content-Id: <28656.790355140.1@SURFnet.nl> +Date: Fri, 17 Feb 1995 23:42:50 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: multipart/alternative; boundary="----- =_aaaaaaaaaa0" +Content-Length: 49102 +Status: RO +X-Status: +X-Keywords: +X-UID: 9 + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: <28656.790355140.2@SURFnet.nl> + +A mime message with a multipart alternative content incorporates two or +more altenative contents that have the same message, but all presented +in a different way. + +For example in this message, the same message is +included as plain text, as formatted text (text/enriched) and as a Gif +image. The sender can specify a preference order for the what +presentation of the message is to be preferred. The recipients User +Agent can then act automatically upon receipt of a multipart +/alternative message by selecting the most preferred presentation that +it is capable of supporting. Alternatively some user agents leave it to +the recipient to select which alternative presentation he/she wants to +see/hear. + +------- =_aaaaaaaaaa0 +Content-Type: text/enriched; charset="us-ascii" +Content-ID: <28656.790355140.3@SURFnet.nl> +Content-Description: 2nd alternative +Content-Transfer-Encoding: quoted-printable + +
multipart/alternative
+A mime message with a multipart alternative content incorporates t= +wo or +more altenative contents that have the same message, but all presented +in a different way. + +For example in this message, the same message is +included as plain text, as formatted text (text/enriched) and as a Gif +image. The sender can specify a preference order for the what +presentation of the message is to be preferred. The recipients User +Agent can then act automatically upon receipt of a multipart +/alternative message by selecting the most preferred presentation that +it is capable of supporting. Alternatively some user agents leave it to +the recipient to select which alternative presentation he/she wants to +see/hear. + +------- =_aaaaaaaaaa0 +Content-Type: image/gif +Content-ID: <28656.790355140.4@SURFnet.nl> +Content-Description: 1st alternative +Content-Transfer-Encoding: base64 + +R0lGODlhLQL/AMQAAP///wAy/QD9mP0AmP2YAJgA/Zj9AAD9MgD9ZTIA/WUA/f0AMv0AZcsA/f0A +y/0A/f0yAP1lAABl/QCY/QD9ywDL/QD9/TL9AGX9AMv9AP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QNmTJmhZ9gYbcPmzZs4buo4xbOHDx9A +egJZNYQ1kaFFWxlFQkQpkqWxlyptOgtqVChTbFGpWpUqFqy5tGTZwmUX1y69vnYFA+aXGDJjxZQl +c8ZMmrJo06Zhc4wtm2QL4ChXDkcu8znN6Mypawf6XTx79vDpy8dPn7+BrA/++5eQoULZD2lLvIj7 +IkWMGnt3PAE85IoWJUeWPKky5coeK10GeQATwBGZ1JvQrIllChadPHt+8RI0THiiZowmVaP/dI76 +9Xfm5MnzZ2qgqlcJYc3q1SsksJMkkcXUSYCbCJiWWmudYopbr8T1iiyw1IVXXnjlwlcvFgIGjGCD +HUPYYc8g9oxi1TQWWYmScZPNN5Zhhtlm6Xj2WTrsxEMjaTbuI88+Oq7GY0GtxWbQQrPZ5hBDFU2U +22689TbCRk2iINwLUtJQHHLK4cCcS0D8EN10SVQHxU03UeFETjp5pwV4YwA1FBrlHZXGeU3N6ZR6 +70kVlXz01acVflt1pR9/gpJVloCdeFLggaUg+BZcp7gyy4MQUqiLXhXy8gtgfwmT4WAdGrYMiCE2 +Js2Ij5m4jWWUrcjiZpp9EyNooYX2Dmn4fOCYWq49vvYjbLABKZuRwt4GEUW4KXkskxn95lGUIhlH +EnJYprQDtSw5t0OXH2zLbbfefgtuuOKOS2655p6Lbrrqrstuu+6+C2+88s5Lb7323otvuUXsy2+/ +/v4LcMACD0xwwQYfjHDCCi/McMMOPwxxxBJPTHHFFl+scAgAIf8LTUFDR0NvbiAEAxAxAAAAAVdy +aXR0ZW4gYnkgR0lGQ29udmVydGVyIDIuMy43IG9mIEphbiAyOSwgMTk5NAA7 + +------- =_aaaaaaaaaa0-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/11 b/glassfish-runner/mail-platform-tck/mailboxes/test2/11 new file mode 100644 index 0000000000..ccda43efba --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/11 @@ -0,0 +1,488 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:43 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17392; Fri, 17 Feb 1995 14:43:54 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AA03116; Fri, 17 Feb 1995 14:43:49 -0800 +Received: from relay.surfnet.nl by Sun.COM (sun-barr.Sun.COM) + id AA17715; Fri, 17 Feb 95 14:43:29 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08345-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:42:32 +0100 +Message-Id: <9502172243.AA17715@Sun.COM> +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172240.AA06002@skyhawk.Eng.Sun.COM> +Subject: Mime test multipart/parallel +Mime-Version: 1.0 +Content-Id: <17555.790352373.1@SURFnet.nl> +Date: Fri, 17 Feb 1995 23:42:32 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: multipart/parallel; boundary="----- =_aaaaaaaaaa0" +Content-Length: 33603 +Status: RO +X-Status: +X-Keywords: +X-UID: 10 + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: <17555.790352373.2@SURFnet.nl> + +Not many systems support Multipart/parallel. If your User Agent +supports multipart parallel, you should see this text, see the included +GIF picture, and see the text/enriched part and hear the sound part all +at the same time. + +------- =_aaaaaaaaaa0 +Content-Type: image/gif +Content-ID: <17555.790352373.3@SURFnet.nl> +Content-Description: Bicycle 95 +Content-Transfer-Encoding: base64 + +R0lGODdhgALgAfAAAAAAAP///ywAAAAAgALgAQAC/oSDqXnmsKKctNqLs968+w+G4kiW5olqzaMG +kPIiz3ww9O24jY73/g8MCoc+hlHHg+xSzKbzuYl9pNCq9YrNSnoqqrcoI3rD4rJZef4lbxT0SqmN +y+ftLf2Oz+tFLEytwmWj1gezlnbIhZjmsjDIuAcZmUEFI0V4JJmpuflYcikTkWOhZggWKlqquKha +9ugGVMgpq0cZuz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xjKtOZ0rSmNr0pTnOq053ytKc+/SlQ +gyrUoRK1qEY9KlKTqlSaFgAAOw== + +------- =_aaaaaaaaaa0 +Content-Type: audio/basic +Content-ID: <17555.790352373.4@SURFnet.nl> +Content-Description: Parallel +Content-Transfer-Encoding: base64 + +LnNuZAAAACAAACtIAAAAAQAAH0AAAAABAAAAAAAAAABrbm9z+Pbu7/H7fn56fnl6//98fnt2f3x9 +/v77+PPs8PL4e3Nvb290e/58ff1//vX28vT693x7+v94fXpwdHp4eH7//vjv7e/z+ntxdXl5ffn6 +/v96fHRyeH10e/z7+/Dy+Pr++nz+9n99/Xh6+v98enl2eHt9+vr//Pr/9vj8+P58eHp4eH759/Ly +fn/9enh9enNzef7y6ers7n/6f3V3dW9qa27/dmRo8OTof3P/3eBmXnne3PNcWXHt5/doZ/3m4u51 +dPry8ndpcv5/fn767+jl6vv8fHpvc2tna2trbXF6/PXy7O7v7PD39vX+/P96enBvbmxqaW1tePL4 +7urr6uzv9/Z/cm1vdXF99+je6enrfm5scW11ffp7dXJsa25tbHn67uTh4ejq8HhuaW1sb3N0dHd4 +cXJzcnR6/O3r8O/u+X74/Hl+/HZ9fu/d3erg5nlvemleZWBla3b+9PX+9n1+7+zu7uz1/35ybW5t +b3d2/f7/f3l6b3Jyev38+O/w9nlvdHV4dnR18dvW6Nvc9W5zblxlY2NlZHZ7e/7t6/Ll5ejr5ez9 +eW5rZGlpbG10enh3fXt3f3v/+fz49vx7ev5tdHptdn/f0d7c1ed5ePhdX2RdXV9pc/9+9ez06t7f +5d/i+P95aGJlZWFpbW97ev9/enZ8/vfu7/Px9nZtbmpua3Xf0N7f1eV+c/xfX2FeXV5lbXb87Obr +4tzc3t/k8XZrZV5fYmJmbG9ze37+enl/fvju7u7y/HNra3Ftdt/P3d3U5XlseVxbXFtaW2VtfPjq +3t/e19fa3t/vdGpjXl1dXl9hanP+9vPz8fZ+9e/xfXhyZ2Vsb37dztbf1t96ZXJhWFpYWlpganj1 +7N/b19PT1Nrf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fPv++X58ef36/X78 +/P1+f/j9fHp4eXb6/H59f/z9ev7/+fr4fP37///++v39fXt++/59/3z+ff5/+Pv8//79fHp9/vp9 ++vrx/P5/+35/dv/8+Hx6+vn6dn18+Hp2fvz1/Pv99nn7/vp8/3z7+vz7+H9+ff///3Z9/vn8fv/8 ++H3+9ff6eXl+/np4+Pr7eXf++u77enj/9X7+ef19eXN+9Pj8/H74/n57+Hv///X9+np8eXv7fPf/ +fHZ1+PH3+//8fnp2e373//77+P77fH/4e353+H37/Xz7/vr+/3j7eHf6/Pr9f/z69vn8/317dn99 ++vf/+3j+ffv9+n57+37+/vz+/H37/fZ7/H71e/17fPz/+Hr8e/r6/vz6/Ht8d/x/+33///1+/fv2 ++Pt4e3v/93v4ff18/v18f3x9fP76+/r79P93d3x5e3369ff8fH37//57/Hf6fPd99319e3n9/Pr/ +fX38en77+Pt+//l9fP79/f9+eX36/fp8fHn9ff749vl++v35/v94ffv8fnl/+vv9ev97fn75+fn8 +e/98/X79+fr8//t7/n/7+fr7fnx//v/8//76/nt+fP18+35//P/7evJ993j6fPx9ffz8+f39/vd6 +fH16fXx8/H/8f/v3f/l6/vb+fXv8+v59//77fnt9f35+/v/7+nx7fvf7f3t8/f//fPv9+Xv/f/r0 ++/56e/77ff99/358e//++/v8/Hp+/v73fPx9+/ry+ft+enx+eHx3e3/++Xn//vz+/Hz8/P38+vr7 +fPz+//l//fn8/3z/ef9+/Px6/nx9fvz9fnz6//x7/f76fnx9ffb+/Pl/+3t7e3v+9nj8eX5+ffx8 ++v97/Pz+/fv+/X17/338fXx9e3z++/v+f359en3//f1+/Hr6fn5/fPx8/3x9+Px+fPz9+X38fPx+ +eXx3eXz+fP/2+n/+/Pj8fnp//H5+fvj6fnp69v98e3j+//v++Ph9/H5+ff99fH3+93n7en76d/f+ ++vZ5/nb3+v9+fHz9d3t++vh8dP33+Px6//R6eXr89/78e/z/cX1+fX57/fvvffz+93h0e339fv57 +/f37/X/9+H17efz5/3Z9+358ev72+3p2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+fn5//H19fn5+fft/fX/+/n77///9///+/n3//vn++/5+/f38fvx/fv/9/f59/357 +/359/359/f3+/fr9/Px+/n5+fH1/e3z+fv79fX//e/37f/77//7/fv79//58fn3++37/+317/318 +fHr+e//+/v39+3z9fn79fvx+/nt+/nz+/f/9f379/H7//nx+/n7+fP5+/318/3/9/P7//v39/f7/ +//7/ff79//t9f399/P/8/339fv7//fz7/v/+//v//n19fX78//3+fv18/n7/+nt6/n9+f35//3z9 +e/f6ffh9+/7//f5+/X19e319fHz//3z//X77//99///8f/7//3z9/v77fv/+/33+fP3/fXx7fn59 +fv5+/X9+//z+fv5+ff59+37//n/9//3//X5+/nv+fX58f/78fP/+//x+/fz7/vr9evh7f/58f318 +/vt/ff98fX5++X37/fz+ffn//f17/v9+/fz9fv1+fvz//f7/en18fvp+fPx6/P///339/P/8/fv8 +fn78fX59fn1+fX3+fv/+//9/fP99fPz9/fz9/P5+/f9/fXx/ffnp5ej5ZlhaZ/ro5evu7Oni7mRq ++3ldVVBTY+zZ1NTU1dni83NeWVldZWNeXmRsePTl6vr38+Xe19LT2ODre2RcWlhVVl1u7uXh4efx +8vd/bGNfXWNr/O/t6ers7Ozr5uXm6fJ8cGxqZmBfZWz/6+Xm8378/XhsZ2ZocHj25dDGx9VnVE9M +SUtSYv/h1M7LzdPe9mViZV1cYm1kWVpv7uji3tvf6fhwZ2JdWVhk6tze5eXsbV9haGD1v7O45kA+ +REE8PUp+0snDwMDCzPNOSE1SVlhm7+/r3c/O3fhdVVRfeXh+9e97YWv05Ot7fO/s83ptX1pbYG/O +t7C7XDw8QD47PlDfycK/vr7C0ltFQUdMUFr73drb2NHQ0t5tVE1MUVx26+Dh5ubn6O50ZVtcaf70 ++fh+c2fuwLK11z43Oj4+P07lx76+v8HEzmdFPT9HUmbp1NDS1NTV3OxpVEpHT2fl29rZ3u17cnR1 +al1aZPrt7+/vf2zevLG6YDg2Oz4+RWfMv72+wMTJ4k4+O0BLXO/RysvO2N7f8G9iU0pGTnvX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/9/Pv8/X57e3l5d3z9+vf39/l+e3t7/Pj39ft+eHV3cnh7e/z78/Py9f56dHJ3 +fPv9+/n///v9f/1+fn94fH19/33/fH19/v///H19f315fP/8+v54ef/27evw+3Rsa2x3/fnz9vx+ +fP/9+v56fv/58+3v935vbnB8/Pn8fHp5fXz++v99fnv6+fb0/Xt0c3r79PDx+/98fX18fnl0dnr/ +9PPz9np6dXl9ffj5+ft++3l7enh9/fr28/Lw+v51cXVveXJ8+vX19fh8fnZ7/v18+vz99v73fnp3 +dnd8+vn6/Xx7dn3+fvj8/n98fv/9+v9+fHt/+vj4/H14eHh++vz4/fn8/vt7enl0dXl9+vHx7/P6 +e3lzc3h5+/r//H18fv9+/Pz7+vz8ffp+eX98fv38+vr8fXp6d379/Pf4+vv6/Ht6dnh4fvz7+Pn9 +/31+e3z+//76+/f39vz/e3l4e3x7e3h8ff359vj9fn17eXx//Pv9/Px+fP99fX97e3t7/P3+/Hz/ +//77/Pj+fv97//96ev56+/r2+P79fH19fn1+/3f9/Xj8fX5//v/6/Pf2/H56fHt+//z8///+/31+ +e3l7ff77/Pz6/3x9fP//+vn6+fx+fn5+e357fv37+fj7+/58e3Z1e3l6/vz6+Pj9+f19/H79+Xt9 +enp4ffz++vz9fv98/3t6enl9//33+Pr8fXn+/vr4/X98e3t6fvP9fn57e33+/n97f3r7/fz8fP19 +/v79/f//e3x++37+/P9+fn57/f1+/f5+/n7+/f39/37+//78/v99ff1++n5+fXp+ffj8+/12fH39 ++/f3/P56fX79+X7/fXx8ff76/Pv6fv76/n59eXp8//z3+X98d3p//vv4+X34/3l+en17e3z+ + +------- =_aaaaaaaaaa0 +Content-Type: text/enriched; charset="us-ascii" +Content-ID: <17555.790352373.5@SURFnet.nl> +Content-Description: Final +Content-Transfer-Encoding: quoted-printable + +
+If you see and hear all of them in parallel = + +multipart/parallel +Works!
+SURFnet EH'95= + +------- =_aaaaaaaaaa0-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/12 b/glassfish-runner/mail-platform-tck/mailboxes/test2/12 new file mode 100644 index 0000000000..c64e6b401a --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/12 @@ -0,0 +1,35 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:44 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17399; Fri, 17 Feb 1995 14:43:57 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AA03132; Fri, 17 Feb 1995 14:43:54 -0800 +Received: from by Sun.COM (sun-barr.Sun.COM) + id AB17736; Fri, 17 Feb 95 14:43:54 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08383-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:43:30 +0100 +Message-Id: <9502172243.AB17736@Sun.COM> +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172241.AA06014@skyhawk.Eng.Sun.COM> +Subject: Mime test X-local +Mime-Version: 1.0 +Content-Id: <28699.790355807.1@SURFnet.nl> +Content-Description: This is really a text-file +Content-Transfer-Encoding: base64 +Date: Fri, 17 Feb 1995 23:43:30 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: X-local/X-test +Content-Length: 402 +Status: RO +X-Status: +X-Keywords: +X-UID: 11 + +QSBsb2NhbGx5IGRlZmluZWQgY29udGVudCB0eXBlIChyZWNvZ25pc2libGUgYXMgaXQgc3RhcnRz +IHdpdGggJ3gtJykgaXMKb2YgY291cnNlIGxvY2FsbHkgZGVmaW5lZCBhbmQgdGh1cyB5b3VyIFVB +IHdpbGwgbm90IGtub3cgaG93IHRvIGRpc3BsYXkKaXQuIFRoaXMgdGVzdCBpcyBtZWFudCB0byBm +aW5kIG91dCB3aGF0IGl0IGRvZXMgd2l0aCBzdWNoIGFuIHVua25vd24KY29udGVudC10eXBlLgoK +U1VSRm5ldCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg +ICAgICAgIEVIJzk1 + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/13 b/glassfish-runner/mail-platform-tck/mailboxes/test2/13 new file mode 100644 index 0000000000..c688996292 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/13 @@ -0,0 +1,687 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:44 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17400; Fri, 17 Feb 1995 14:44:02 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AA03135; Fri, 17 Feb 1995 14:43:56 -0800 +Received: from relay.surfnet.nl by Sun.COM (sun-barr.Sun.COM) + id AA17786; Fri, 17 Feb 95 14:43:47 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08367-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:43:07 +0100 +Message-Id: <9502172243.AA17786@Sun.COM> +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172240.AA06005@skyhawk.Eng.Sun.COM> +Subject: Mime test multipart/alternative +Mime-Version: 1.0 +Content-Id: <28656.790355140.1@SURFnet.nl> +Date: Fri, 17 Feb 1995 23:43:07 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: multipart/alternative; boundary="----- =_aaaaaaaaaa0" +Content-Length: 49102 +Status: RO +X-Status: +X-Keywords: +X-UID: 12 + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: <28656.790355140.2@SURFnet.nl> + +A mime message with a multipart alternative content incorporates two or +more altenative contents that have the same message, but all presented +in a different way. + +For example in this message, the same message is +included as plain text, as formatted text (text/enriched) and as a Gif +image. The sender can specify a preference order for the what +presentation of the message is to be preferred. The recipients User +Agent can then act automatically upon receipt of a multipart +/alternative message by selecting the most preferred presentation that +it is capable of supporting. Alternatively some user agents leave it to +the recipient to select which alternative presentation he/she wants to +see/hear. + +------- =_aaaaaaaaaa0 +Content-Type: text/enriched; charset="us-ascii" +Content-ID: <28656.790355140.3@SURFnet.nl> +Content-Description: 2nd alternative +Content-Transfer-Encoding: quoted-printable + +
multipart/alternative
+A mime message with a multipart alternative content incorporates t= +wo or +more altenative contents that have the same message, but all presented +in a different way. + +For example in this message, the same message is +included as plain text, as formatted text (text/enriched) and as a Gif +image. The sender can specify a preference order for the what +presentation of the message is to be preferred. The recipients User +Agent can then act automatically upon receipt of a multipart +/alternative message by selecting the most preferred presentation that +it is capable of supporting. Alternatively some user agents leave it to +the recipient to select which alternative presentation he/she wants to +see/hear. + +------- =_aaaaaaaaaa0 +Content-Type: image/gif +Content-ID: <28656.790355140.4@SURFnet.nl> +Content-Description: 1st alternative +Content-Transfer-Encoding: base64 + +R0lGODlhLQL/AMQAAP///wAy/QD9mP0AmP2YAJgA/Zj9AAD9MgD9ZTIA/WUA/f0AMv0AZcsA/f0A +y/0A/f0yAP1lAABl/QCY/QD9ywDL/QD9/TL9AGX9AMv9AP3LAP39AAAA/QD9AP0AAAAAACwtACIA +AALdAAQF/yAgjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJJH6e0Kh0Sq1ar9isdsvt +er/gsHhMLpvP6LR6zdaOPpqNfE7PyO0Z/Ca/z/v9BhmBBoOChIeHGIkGio0Yj5CPF5CTF5WXlpmZ +HZacnp8doaKhB6KlB6eoqqoIqK2tB68IsrO1ArYIAre7ur0CFL3AFMC/w8XDyBbDyhTMys8W0dIV +0dTWFhXW2tkVE9ne3t3iE+Tl5RLnExLo6+3uAe3w8hLzAfb39hz5+xz6/f8AOST4N7CgwQQIEypA +uLChQwUQI0IsMFEBxYsWC2jcyLFBAY8NPH4MSbJkgwchUf8+UHny5MqXLx2slEmz5gMHOHMOwLmz +p4OeQAcIFcpgaNEBRRkoXcqUwYKlTxdElepUqlQPVrEuwMp169YPbzbEo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A1FBrlHZXGeU3N6ZR6 +70kVlXz01acVflt1pR9/gpJVloCdeFLggaUg+BZcp7gyy4MQUqiLXhXy8gtgfwmT4WAdGrYMiCE2 +Js2Ij5m4jWWUrcjiZpp9EyNooYX2Dmn4fOCYWq49vvYjbLABKZuRwt4GEUW4KXkskxn95lGUIhlH +EnJYprQDtSw5t0OXH2zLbbfefgtuuOKOS2655p6Lbrrqrstuu+6+C2+88s5Lb7323otvuUXsy2+/ +/v4LcMACD0xwwQYfjHDCCi/McMMOPwxxxBJPTHHFFl+scAgAIf8LTUFDR0NvbiAEAxAxAAAAAVdy +aXR0ZW4gYnkgR0lGQ29udmVydGVyIDIuMy43IG9mIEphbiAyOSwgMTk5NAA7 + +------- =_aaaaaaaaaa0-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/14 b/glassfish-runner/mail-platform-tck/mailboxes/test2/14 new file mode 100644 index 0000000000..a2254776d3 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/14 @@ -0,0 +1,35 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:44 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17425; Fri, 17 Feb 1995 14:44:49 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AB03252; Fri, 17 Feb 1995 14:44:47 -0800 +Received: from relay.surfnet.nl by Sun.COM (sun-barr.Sun.COM) + id AA17963; Fri, 17 Feb 95 14:44:38 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08398-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:43:54 +0100 +Message-Id: <9502172244.AA17963@Sun.COM> +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172241.AA06014@skyhawk.Eng.Sun.COM> +Subject: Mime test X-local +Mime-Version: 1.0 +Content-Id: <28699.790355807.1@SURFnet.nl> +Content-Description: This is really a text-file +Content-Transfer-Encoding: base64 +Date: Fri, 17 Feb 1995 23:43:54 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: X-local/X-test +Content-Length: 402 +Status: RO +X-Status: +X-Keywords: +X-UID: 13 + +QSBsb2NhbGx5IGRlZmluZWQgY29udGVudCB0eXBlIChyZWNvZ25pc2libGUgYXMgaXQgc3RhcnRz +IHdpdGggJ3gtJykgaXMKb2YgY291cnNlIGxvY2FsbHkgZGVmaW5lZCBhbmQgdGh1cyB5b3VyIFVB +IHdpbGwgbm90IGtub3cgaG93IHRvIGRpc3BsYXkKaXQuIFRoaXMgdGVzdCBpcyBtZWFudCB0byBm +aW5kIG91dCB3aGF0IGl0IGRvZXMgd2l0aCBzdWNoIGFuIHVua25vd24KY29udGVudC10eXBlLgoK +U1VSRm5ldCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg +ICAgICAgIEVIJzk1 + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/15 b/glassfish-runner/mail-platform-tck/mailboxes/test2/15 new file mode 100644 index 0000000000..6d743e9824 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/15 @@ -0,0 +1,469 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:45 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17434; Fri, 17 Feb 1995 14:44:57 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AA03264; Fri, 17 Feb 1995 14:44:53 -0800 +Received: from by Sun.COM (sun-barr.Sun.COM) + id AB17963; Fri, 17 Feb 95 14:44:51 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08419-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:44:24 +0100 +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172241.AA06039@skyhawk.Eng.Sun.COM> +Subject: Mime test nested +Mime-Version: 1.0 +Message-Id: <14585.762962071@wind.SURFnet.nl> +Date: Fri, 17 Feb 1995 23:44:24 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: multipart/alternative; boundary="----- =_aaaaaaaaaa0" +Content-Length: 30260 +Status: RO +X-Status: +X-Keywords: +X-UID: 14 + +This is a MIME message containing a picture, some audio etc. Your +mail reader cannot handle MIME messages. Therefore only read the first +part, and skip the rest. + +Dit is een MIME bericht met een plaatje en audio erin. Het +mailprogramma dat je gebruikt kan geen MIME aan. Lees dus het eerste +deel van dit bericht (dat uit gewone tekst bestaat) en vergeet de rest. + +Erik + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" + + + + + Gelukkig Kerstfeest + en een + Voorspoedig Nieuwjaar + + + + Erik + + + + + +------- =_aaaaaaaaaa0 +Content-Type: multipart/parallel; boundary="----- =_aaaaaaaaaa1" + +------- =_aaaaaaaaaa1 +Content-Type: image/gif +Content-Description: Seasons greetings postcard picture +Content-Transfer-Encoding: base64 + +R0lGODdhfAEiAfIAAP///55MAEtL/wBO9wCsAAAA0wBY5jIyMiwAAAAAfAEiAQAD/gi63P4wykmr +vTjrzbv/YCiOS2GeaKqubOu+cCzPdG23Qq7vfO//wKBwSCwaj0jgYMlsOp/QqOJGrVqv2Kw2ye16 +v+BwMUoul6fatHrNbrPE8Lh8Ljbb70u0e8/v+990gYKDgniGZwB/iouMW4SPkJFGh5RQeo2YmZor +kp2enpWhTZebpaaKn6mqdKKtA6SnsbJqq7W2Xa6tsLO8vTa3wMFBubqJvsfIMsKBE8vDxKK7ydPJ +znMY1jrQxdTd1NlxHcvb3N7mveBwIrbk5efvpuliJAuf7e7w+Y3yYfQPkPfw6RvYhx8Yf81YBYxm +jKBDNwa/ILwAZ6HAhxixRPQy/nGDF4sXM4r8tZFLRw8gU45qOLIljZImT6JUmVKay5sqYCaRGYKm +RZs4g+pE0iGAUZ4KfAYEGtTl0CMejEqdelIpOaZNRT41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aR1hWYohlbohGuYhflWhm9YTW0I +YnMILmjYWmp4h6ZVhzTFh13oh7YHiHg4huklh4TYOIIIb4lYiIsYe41ILXnYVXsYiYqohZVoiZUy +ibWV/omaSHiPuHqfGEGheEajSIqY6IanuEmlaHqraDytyHOvuImGCF6IOIuSl4p2iIuJp4t/yIu0 +GIuhB4yeF4eeSIwII4wvh4xcpIzMGIy+OIjP2HjOOI1KU4vXdYvWuDfVuI0sg43OpY3eSDrgaFzi +OI6oZ4yqiI7JGI2MyI6Wp467CI9F04302I7y+Iv3aDP2uI/86I6Q6I/1CJCiKJADmY/SaJCb0o8K +KXUEaYoN6ZAI+Y4RSY4MWZHpKG/nuI8HwHYP6Yr+eAAiOZJGQZIBIJIliZIn2ZHMN5EBCY8sGZMn +WZI0OZM2aZOc2FvrCJM3SZMsaZMyeZM5OUwbCYwmWykVI/mTSbmSLDmUAHWM0/iTUxGUSDmVhHGR +9CiVVCmVN/mTTrlKRYmLSdmRKpmSTHmWo6eRUImR3oGVbNl65ShYYYmRX3lPa/mWw/EdermXfNmX +fvmXgOkACQAAOw== + +------- =_aaaaaaaaaa1 +Content-Type: multipart/alternative; boundary="----- =_aaaaaaaaaa2" + +------- =_aaaaaaaaaa2 +Content-Type: text/richtext; charset="us-ascii" +Content-Description: For those who don't have audio +Content-Transfer-Encoding: quoted-printable + + = + +
Prettige Kerstdagen +en een = + +Voorspoedig Nieuwjaar + + +Erik + + + +------- =_aaaaaaaaaa2 +Content-Type: audio/basic +Content-Description: Seasons greetings sincerely voiced +Content-Transfer-Encoding: base64 + +LnNuZAAAACAAAEagAAAAAQAAH0AAAAABAAAAAAAAAAD9/f78/Pv6+/n6+/39/f5+fvv8f/98fXt8 +fH9+/v39+vv7+/z8+/z7/P7+//99fHt8e3x+fX7//v/+/v7+//79/vz7+/z+fv98e3t7fn7/fn5/ +fn18fX17/33z2t7k5OHna+/12HVr3M7N3dTa4nFPRkhe3MzBvsXO+k1GVV5besO9621aZ8i3rKyx +ub/Jz2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nN37vD/c2x6/P50e3r39299/fH/b3T773ptcH749/N7+Pp1a2d38/N1 +bvrr8Pv9b+fc/mlsfu/2eW3g63v1beTw7vT+5HL5fHP9c/T9eHN4fndrbWJnbW1r+nRl8HR7dX3s +7ut+4+Xv7272+eprZfdv8nFp9e38bWzt6PJ0Xuz4bv5l6O3vel/t8/B0ZvLr8HRs/fHufnHu8Hxw +b3T6fm128Pby+3X/7/huen799X51/u7yfHv79/xwcH52bHN++H5vb/r2/nT89n1xbv/z/nRy++vu +93V26+j3bHrwenxzfP397HVt8+zu+n3x7vF6/nt7eWh0dPZ9aPn3efd9+/309G/8dW76enl3d/l2 +/P529n71+/15b/l6b3X7em96dvf09n14/Ph4b3X57PX+9+7r/f739fD8/P3+/Hj9+X379vP++/T2 +7/N8/vX0/fX7/fv/enN3d3BrcG5qa217d3l2fX15eXj9enNyevp+/fHr7ezy9O/v83vw93x0fHn+ ++f7//vD29P/59fj2+/L77vX0f/z7dXRxcm90b25vdG5td31zdP1+evz/eHf+dHR9fHN+8/n49vt9 ++fR+dPv2fv/28/f2+/zy+f99evn193V3+/t+fPv9+fv8fn36+354e359fv77+P1+fv98ff5+f336 ++/17e/n8fnp7/nx7fvz8fHp6ff//fnz++/v+/Pn5/Pr5+fn4+n78/n59fX16ff9+fH1+/X98fn59 +fv39+vz7/f7+fHx7fH9+f37+fH59fHx8fXx7fHz//f5//35+fH3//v/+/v3//37///9+fv9+/3x8 +fn59fn59/fz6+Pz5+37/fX5+/n7+/n7///59fX19fn7//Pz6+/1+/3///f37/Pv8/Pv9/v//f//+ +fvz+fv5+fX18f37//3///vz7/H/9/Pz9/f3//P98e3p7eXx//v39/v1+fn19fn1//f/9/P7+/37/ +fn1+//7+/n9+fHx6e3t7fHt8fP99/X5+fXz6fv75//n9/f79/n59fXx+fXp8fHx8fHx+/vz9+/n6 ++P79/n7+f/9+/H5+fnx+fXx9fv79+/z8/f3+ff9+//1+/P37+vz7/fv//v79/Pz8/v58fnp8fXt9 +fHz///79/f37/Pz6+/v7/f7//3t7eXl7fXz//37+fn7//v/+/vz8/Px+fv98fH18e35+/n5/fX58 +e318fnx8fX5/fn7+fXt/fv79/fv7/f7+/n99fn19fHx9fXx+fXx9f/7++/r6+fv9/3/+fv3+fv99 +fnv/fn19e359//38+vr8/v7///3++/38/fz9+/v+/P5//vt+/v39fXx+fXx8f37+/f79/fz9/Pv8 ++/v8//z9/f384tldWu58XmzpdWn98XF77/V69e33fvT6dXz5fXT9/X16dnrhemDt7m5t6/5seu55 +dvt8cnd6+3zf129p73teavhrZf70bnrw9nfz7vl98vV5+/j8dfv+ePrqdXXqfPZsYO/wbnjk9Hf6 +7nl5+vlxb/7+eX7j2eN66u9taG9pYWVxaW379X7/7fD18fB9fHJxeH1+9vbu8Pju7/r47v/8fHd0 +dW19fHF29fx48O54fPV7b/T6d373dG/3c3R87XL+9vt1fPF5eP5+eHD9dPp6/fNx8np6//33fP7y ++v1//vp9+/t7/P12/P55+/f9ePj1fn/593L9en1+ePl4+nr+8319ePt/fXr783n3+Pbx+fj3+fz8 +dfl4dHT7dm9+d3h4+nb8+3j8eHltcXhvbnp9dvT39/bs7O7m6evt6uz17/v1/Hr+d/52d3R0bm5t +bG5sbm5weHRxdXx6bXN3dW1tdnFtaWtsamttbXz6e/bq3tPLzNDPz9fse3RkXFdWVFZZWl5oeXd4 +9/T6c3N+5t9vaeva+2X94extd/z0b2hndPprXl9seP5tbHFvX1hdYmBe/MW8xMnEvcriaG5hVExI +TVVZU1l74ur87ejsdmNeYmZjX2ft5ebl3NDO2epydGddWV5yfv9wef59bWZmZF9gen9lWmJpX1pb +Z3LexL3Ax8XDz/JfXFdUUE5OV2RkY3Hp6PpxdnJnYF9kZ254/vPq5eXn39PV6Gxia2dkYW3x6O53 +bXN1aF9eX2F283BdXWxoW1lic/PPv73DysjK2WtZVldaWlZVXW1zbG/6835saGNhY2VpaXL16ujs +69/V0+RpaHl5Yl9w6ef1dG92cmxgYGFfXGT89mxgZGhkXV5jfs+/v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p/vd4 +5Wn48mn88Hf9anfhX3jnYuFm9t1T7ehv/Xvrd/3wdXZ++e18bX74a+/+eX379HvwdXzycPRp8f5u +4Wzve+/9bvJs7G597GXs8/31ePPudXx+b/d98fxp6Hf2/nXub/rpbm/o+3p6ePd0c+1tdO3872np +9n3zeX/yde1w/vF4fHR/a+9z+Hd57G/+e/5+f/vxc3vscvl8+vpv9H1w+336+nv1fnj7fXV+enz/ +eX/8ff/+ffd8/vf8/P59+X37fH58ffZ7fP59e392fX159nr2/fv2/Pj9fP7/ff5+/357/X98/n58 +fv78fPz3+fj++vp++/v+/Pj5/Pn+/fz//n1+fn5+fv98ent9e3t+fn7+/f36+fz6+Pn6+/3+/v// +fXx6eHp6d3x6e39+f//+/f3//f36+/z6/f/9fXx+fHx+fv19fP99fXt8fHx7fXx8/31+fX1+fX7/ +/P76/Pz+/v9+fnp8fHx8en18fH59fv/+/Pz6+vr7/P3+/f7+/v7//359f3x6fnx9/n79+f35+vv7 +/f3/f/z+/v39/Pz+/H9+fn/+/vz/fXx8fHz////9/v79/f3+/Pj++/77/f7+fn16fHh6en1+ff79 +/f/+fn18fn7//fz6+/1//n7/fHx9fv98fn19ent6fHt7fX1///7//398fn7+/f/9/vz9//x/fn58 +fH1+e3//fH7/fn58/v39+fr5+/79fn1/fv3/fP99/356fXx9ff7+/Pv6+/35/3/+fvv9+/r8+vz8 +/f7+fn59fv9//n57fH19ff/+/v78/fz8/P38+/v7/f3+fn5+fHx5eHp8fn7//f7+/39+/f7+//77 ++vz+/n5+/+je7/xsbXNsaWp0d3l4en3+9/X19fX9fX58fP/+/fn4+fn1f//+/v92dHZ1eHd8/Pr9 +fPx+/fb1+vr7/Ht8fP34+H5+fvz59X14eXt2dXV1fPz6fn16fP7++/36+f56dG9wdXNzd3V3//n0 +7unj4N/f4OPk5unv93xybmpnZmdpa2tqaGhoZ2dnamxsbWlmYFxea3lsY2FeXV5fYWrkvK6wt8XM +6+hZPzk7REheXmx9zMnL23VTTlJPS0xVY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X5+fn/9 ++vn2+Pj6/f59f35/fX5+fH58fn59fX///fz7+/r7/f99fn3+/v39/fv8+vz8+/z/fn5+/f59/3x8 +e3x9f//+/v3++/v7+/z7/P38/fz+/X58enh6fXx8f359fn59ff9/fn7+/vv8/f38fnx+e359/f3+ +/358enp6eXp8e31/f3/+/f5////9/Pz9/Pv9//97fnx7fXt9/3p/fH3/f37//v/8/Pv6/f7+fn9+ +//5//v3//v5/fn1+f/7/+/38+v1/fH7//v/+/P38+/v7/fz8fv7+/f78/X59e3t7fHx9f/79/v78 ++/77+vv5+vr9/f99fHp7enp8fX19//5+fX5+f/3+/fr7+fz8/X19fHx5e/5+fn99fXx7eXx7fXx+ +f//+/v39fn1+//x//fv+/X/+f37/fn59fn1+fn1+fHt9fX7//Pr7+v79/f/+//39/f79/v5+fnx8 +fH5/fv78+/z9//79/Pz9/P38/Pz8//z+/39+/n7+/v1+fH18fn3+fv7+/fz7+/v9/P76+//6//x+ +fX16enl9fH59fv5+f31+fn5+fvz9/Pv7/P3+fnt8e3x+fX7+fH16e3x6fHx+fX79f//9/37/f//+ +/v39/Pz9/f1/fH59e3t8e3x8fH58//5++/z7+vz7/X59f37///3//f/+f35+fH///n78+/f7+/99 +/Pr//vz+/P79fv3+f/5/f//+//7+fX58e319fv5//fv7/Pv7+/n7/fv7/f7+f359e3l4enp9fv5/ +fP59f37//v79/f38/P3+fn57fHx9//9+/n5+fXx9e3p6e3x9fX5+f/59e35+/vz7+/z8/f39fn9+ +fXx7fHt7fHr+fn7//fz6+vn6/X9+f33+/n/9f///f31+fnx9fH/+/fv5/ft//n7+/f38+/78/fz8 +/X7+/n7//v38/X5+fHx9fnz/fv/+/v39/f3+/Pz9/P39+/39/3x6enp8f35+fn5+fv59/d3Wem1r +fe3mamH6/WReY2nz+Wdk/v5vbmp69e91e+/z/X73+O/p5OLl5urq7fj+/33/d25udHVybm5vcW9p +a250ent8/vj+fnz219Bscvfvc3BlZN/5ZGbw+vf/aXf2bl1kaG1+cmr+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d7cHb+9PH0f3R69fT7+Ovs+XJrd/D0cGhtfevd3ur36OPxcW58 ++nJraW11d3Rvb29vcmxqbHT8/H59/P5++fX1/Pv4+Pf5+f389fH1+vj2/A== + +------- =_aaaaaaaaaa2-- + +------- =_aaaaaaaaaa1-- + +------- =_aaaaaaaaaa0-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/16 b/glassfish-runner/mail-platform-tck/mailboxes/test2/16 new file mode 100644 index 0000000000..55ee7bb715 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/16 @@ -0,0 +1,469 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:45 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17439; Fri, 17 Feb 1995 14:45:31 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AB03341; Fri, 17 Feb 1995 14:45:28 -0800 +Received: from relay.surfnet.nl by Sun.COM (sun-barr.Sun.COM) + id AA18091; Fri, 17 Feb 95 14:45:21 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08431-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:44:47 +0100 +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172241.AA06039@skyhawk.Eng.Sun.COM> +Subject: Mime test nested +Mime-Version: 1.0 +Message-Id: <14585.762962071@wind.SURFnet.nl> +Date: Fri, 17 Feb 1995 23:44:47 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: multipart/alternative; boundary="----- =_aaaaaaaaaa0" +Content-Length: 30260 +Status: RO +X-Status: +X-Keywords: +X-UID: 15 + +This is a MIME message containing a picture, some audio etc. Your +mail reader cannot handle MIME messages. Therefore only read the first +part, and skip the rest. + +Dit is een MIME bericht met een plaatje en audio erin. Het +mailprogramma dat je gebruikt kan geen MIME aan. Lees dus het eerste +deel van dit bericht (dat uit gewone tekst bestaat) en vergeet de rest. + +Erik + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" + + + + + Gelukkig Kerstfeest + en een + Voorspoedig Nieuwjaar + + + + Erik + + + + + +------- =_aaaaaaaaaa0 +Content-Type: multipart/parallel; boundary="----- =_aaaaaaaaaa1" + +------- =_aaaaaaaaaa1 +Content-Type: image/gif +Content-Description: Seasons greetings postcard picture +Content-Transfer-Encoding: base64 + +R0lGODdhfAEiAfIAAP///55MAEtL/wBO9wCsAAAA0wBY5jIyMiwAAAAAfAEiAQAD/gi63P4wykmr +vTjrzbv/YCiOS2GeaKqubOu+cCzPdG23Qq7vfO//wKBwSCwaj0jgYMlsOp/QqOJGrVqv2Kw2ye16 +v+BwMUoul6fatHrNbrPE8Lh8Ljbb70u0e8/v+990gYKDgniGZwB/iouMW4SPkJFGh5RQeo2YmZor +kp2enpWhTZebpaaKn6mqdKKtA6SnsbJqq7W2Xa6tsLO8vTa3wMFBubqJvsfIMsKBE8vDxKK7ydPJ +znMY1jrQxdTd1NlxHcvb3N7mveBwIrbk5efvpuliJAuf7e7w+Y3yYfQPkPfw6RvYhx8Yf81YBYxm +jKBDNwa/ILwAZ6HAhxixRPQy/nGDF4sXM4r8tZFLRw8gU45qOLIljZImT6JUmVKay5sqYCaRGYKm +RZs4g+pE0iGAUZ4KfAYEGtTl0CMejEqdelIpOaZNRT41EnWqV6kTrULDmvXh1iIfvqrVEOCCWFdk +yw48SySEWq8ZqFZ4y1AuTrpDRtw9imHtXr6H4vo9B1hIW3pf8w4+jPiO4sXTGgfRi7TCYLCUK5O5 +jNmX5h93O1P4zHmCaESl8532wVq1BNZ4Lby2xDL2t9k7cIO23UB47tC7X/X2bRq4DuOtiQOAfhy5 +aNLMFznPQT2y9Ondo7tOjj07n+0Cwhsmrr669bflzbPZ3n6y7fruKbyOv9iA/v//AAYo4IAEFmig +AVAp8Ah+n6nGYH7v+cQfTgdWaOGFBwZBQSAP1tZRh+thUNmEGGFo4oko7iAOHCB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K +KXUEaYoN6ZAI+Y4RSY4MWZHpKG/nuI8HwHYP6Yr+eAAiOZJGQZIBIJIliZIn2ZHMN5EBCY8sGZMn +WZI0OZM2aZOc2FvrCJM3SZMsaZMyeZM5OUwbCYwmWykVI/mTSbmSLDmUAHWM0/iTUxGUSDmVhHGR +9CiVVCmVN/mTTrlKRYmLSdmRKpmSTHmWo6eRUImR3oGVbNl65ShYYYmRX3lPa/mWw/EdermXfNmX +fvmXgOkACQAAOw== + +------- =_aaaaaaaaaa1 +Content-Type: multipart/alternative; boundary="----- =_aaaaaaaaaa2" + +------- =_aaaaaaaaaa2 +Content-Type: text/richtext; charset="us-ascii" +Content-Description: For those who don't have audio +Content-Transfer-Encoding: quoted-printable + + = + +
Prettige Kerstdagen +en een = + +Voorspoedig Nieuwjaar + + +Erik + + + +------- =_aaaaaaaaaa2 +Content-Type: audio/basic +Content-Description: Seasons greetings sincerely voiced +Content-Transfer-Encoding: base64 + +LnNuZAAAACAAAEagAAAAAQAAH0AAAAABAAAAAAAAAAD9/f78/Pv6+/n6+/39/f5+fvv8f/98fXt8 +fH9+/v39+vv7+/z8+/z7/P7+//99fHt8e3x+fX7//v/+/v7+//79/vz7+/z+fv98e3t7fn7/fn5/ +fn18fX17/33z2t7k5OHna+/12HVr3M7N3dTa4nFPRkhe3MzBvsXO+k1GVV5besO9621aZ8i3rKyx +ub/Jz2Q5LCYlJSguNj1IWW3kd19cZNDEwL+/x8fFxcLFw8DI19HQ4d3sW27Z1tLZalFKSVBnZlhX +VFJZY11f387bVkRFWOHfcFpX78jIVi40zNXPcS9Qx+HGflz3R2BHQN1NTuZW5t3f2F/W2V7Y+1/+ +b+1m59xf2c7O2vb9W+vdX2nr2Ovt71F78l1dZvlcdWdd9+nxZu3x/up1ennl73jm6+Xh3+3q3/Do +6/Hx7er07vT8+vl2Z2lkXV5ZVlpncWtxa3N4+3Nq//fz+Pjz7uXh0cXByMrJzdbsXlRfV01SWFxY +VVtk+nFfdG52Z1hwZl1jZn3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9uZ23+6+Hd3t/k5e56dWprbm1sbHZ5c3dwfvD3dGZt8O7y/m797+7u/fj0 +8vb+fXZ6fffn5OXk4t/n7/p2e29kX15jZ2lmZW17+fj9cv7+9vd0dvrr5up8c337/H50dvLu/W1u +cvjn5/Vuc/x98X9x9f7u4vr+fPPo8PVlfHdvbmJ8/u/1cuj1fu146vB1fGvz+P58bff1/3BtefPr ++nNy+uzweG119u75bm167ep7Z2Nqe/Dy+G9qevTo/W5w+en1/m10+O7zcXd/9et2ev75+294fe74 +/v1xd3H57fn3a3F87edya2Dx3edwYfbo6XJhcubmfuLhavlia3ttenbo6dr2bW7762RlX/z3dWZr +7OXsc3v37n1naXX0/HRv/urw/P7y7e97dfbx9ndwdu/1/fr97vx7b/XseXZu//HyaGn17O9sbHr0 ++nR/d3B/+Htzf3B7/P55+Ozs5v7+5d55aPf14f57dXr7auv9bWxcbm5qYmJoZmdeZGvy8fh0/Orl +7Xrs5dve4ujj3+jsfvn37nZtbGt7bGdka3pxcml+5+14aHf6+W1lcvvr8m9vdOTobm/+5uDqdO/r +5v9ga2d2dm5ybnB89e35aFpfX2zW1Nnx+u3s6W328fTvZ2Z06u99+Xz1fmthbH52cWdreX9vavvt +7f9vfvr2eHT//e7p7/n37u74e3ju7v5oaX31/G577+l7a3D673hpbe7pfWtu+O39bnzs6vtzcvPr +e3F77u56b3Xt7P18ffDx+nN37vD/c2x6/P50e3r39299/fH/b3T773ptcH749/N7+Pp1a2d38/N1 +bvrr8Pv9b+fc/mlsfu/2eW3g63v1beTw7vT+5HL5fHP9c/T9eHN4fndrbWJnbW1r+nRl8HR7dX3s +7ut+4+Xv7272+eprZfdv8nFp9e38bWzt6PJ0Xuz4bv5l6O3vel/t8/B0ZvLr8HRs/fHufnHu8Hxw +b3T6fm128Pby+3X/7/huen799X51/u7yfHv79/xwcH52bHN++H5vb/r2/nT89n1xbv/z/nRy++vu +93V26+j3bHrwenxzfP397HVt8+zu+n3x7vF6/nt7eWh0dPZ9aPn3efd9+/309G/8dW76enl3d/l2 +/P529n71+/15b/l6b3X7em96dvf09n14/Ph4b3X57PX+9+7r/f739fD8/P3+/Hj9+X379vP++/T2 +7/N8/vX0/fX7/fv/enN3d3BrcG5qa217d3l2fX15eXj9enNyevp+/fHr7ezy9O/v83vw93x0fHn+ ++f7//vD29P/59fj2+/L77vX0f/z7dXRxcm90b25vdG5td31zdP1+evz/eHf+dHR9fHN+8/n49vt9 ++fR+dPv2fv/28/f2+/zy+f99evn193V3+/t+fPv9+fv8fn36+354e359fv77+P1+fv98ff5+f336 ++/17e/n8fnp7/nx7fvz8fHp6ff//fnz++/v+/Pn5/Pr5+fn4+n78/n59fX16ff9+fH1+/X98fn59 +fv39+vz7/f7+fHx7fH9+f37+fH59fHx8fXx7fHz//f5//35+fH3//v/+/v3//37///9+fv9+/3x8 +fn59fn59/fz6+Pz5+37/fX5+/n7+/n7///59fX19fn7//Pz6+/1+/3///f37/Pv8/Pv9/v//f//+ +fvz+fv5+fX18f37//3///vz7/H/9/Pz9/f3//P98e3p7eXx//v39/v1+fn19fn1//f/9/P7+/37/ +fn1+//7+/n9+fHx6e3t7fHt8fP99/X5+fXz6fv75//n9/f79/n59fXx+fXp8fHx8fHx+/vz9+/n6 ++P79/n7+f/9+/H5+fnx+fXx9fv79+/z8/f3+ff9+//1+/P37+vz7/fv//v79/Pz8/v58fnp8fXt9 +fHz///79/f37/Pz6+/v7/f7//3t7eXl7fXz//37+fn7//v/+/vz8/Px+fv98fH18e35+/n5/fX58 +e318fnx8fX5/fn7+fXt/fv79/fv7/f7+/n99fn19fHx9fXx+fXx9f/7++/r6+fv9/3/+fv3+fv99 +fnv/fn19e359//38+vr8/v7///3++/38/fz9+/v+/P5//vt+/v39fXx+fXx8f37+/f79/fz9/Pv8 ++/v8//z9/f384tldWu58XmzpdWn98XF77/V69e33fvT6dXz5fXT9/X16dnrhemDt7m5t6/5seu55 +dvt8cnd6+3zf129p73teavhrZf70bnrw9nfz7vl98vV5+/j8dfv+ePrqd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+/fz//n1+fn5+fv98ent9e3t+fn7+/f36+fz6+Pn6+/3+/v// +fXx6eHp6d3x6e39+f//+/f3//f36+/z6/f/9fXx+fHx+fv19fP99fXt8fHx7fXx8/31+fX1+fX7/ +/P76/Pz+/v9+fnp8fHx8en18fH59fv/+/Pz6+vr7/P3+/f7+/v7//359f3x6fnx9/n79+f35+vv7 +/f3/f/z+/v39/Pz+/H9+fn/+/vz/fXx8fHz////9/v79/f3+/Pj++/77/f7+fn16fHh6en1+ff79 +/f/+fn18fn7//fz6+/1//n7/fHx9fv98fn19ent6fHt7fX1///7//398fn7+/f/9/vz9//x/fn58 +fH1+e3//fH7/fn58/v39+fr5+/79fn1/fv3/fP99/356fXx9ff7+/Pv6+/35/3/+fvv9+/r8+vz8 +/f7+fn59fv9//n57fH19ff/+/v78/fz8/P38+/v7/f3+fn5+fHx5eHp8fn7//f7+/39+/f7+//77 ++vz+/n5+/+je7/xsbXNsaWp0d3l4en3+9/X19fX9fX58fP/+/fn4+fn1f//+/v92dHZ1eHd8/Pr9 +fPx+/fb1+vr7/Ht8fP34+H5+fvz59X14eXt2dXV1fPz6fn16fP7++/36+f56dG9wdXNzd3V3//n0 +7unj4N/f4OPk5unv93xybmpnZmdpa2tqaGhoZ2dnamxsbWlmYFxea3lsY2FeXV5fYWrkvK6wt8XM +6+hZPzk7REheXmx9zMnL23VTTlJPS0xVYuXT0dfV09XYz9f5X11eXmRfaPPd5PdoXVhYUUtNX3Zn +XlhSU1lj7ryqrLPF2F9UUj08PVNe2d7e5tPP4mxOSUhWWl1f/eTW0djsenxvbWVfZNvJydd3YF1p +amhn/O34altXXGJeWVx2e2RTTExSW2reu6ustM1rTUlMQUNDXerN0N3zfP9nXEtIS1lp+/Tv5tza +5XxoaGx0dG1w68/DxttcUldmd25obe/0a1pXX2pmV1VeaWVXT05UXnbZuqutuNxUSkpXTE5LZ9/O +1n1mXG1pZE5LTllqePt759nX3/1kX2hzenn359TIyNFyVVBdevZ+cXl6fGpjZ3Z4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f/3+/fr7+fz8/X19fHx5e/5+fn99fXx7eXx7fXx+ +f//+/v39fn1+//x//fv+/X/+f37/fn59fn1+fn1+fHt9fX7//Pr7+v79/f/+//39/f79/v5+fnx8 +fH5/fv78+/z9//79/Pz9/P38/Pz8//z+/39+/n7+/v1+fH18fn3+fv7+/fz7+/v9/P76+//6//x+ +fX16enl9fH59fv5+f31+fn5+fvz9/Pv7/P3+fnt8e3x+fX7+fH16e3x6fHx+fX79f//9/37/f//+ +/v39/Pz9/f1/fH59e3t8e3x8fH58//5++/z7+vz7/X59f37///3//f/+f35+fH///n78+/f7+/99 +/Pr//vz+/P79fv3+f/5/f//+//7+fX58e319fv5//fv7/Pv7+/n7/fv7/f7+f359e3l4enp9fv5/ +fP59f37//v79/f38/P3+fn57fHx9//9+/n5+fXx9e3p6e3x9fX5+f/59e35+/vz7+/z8/f39fn9+ +fXx7fHt7fHr+fn7//fz6+vn6/X9+f33+/n/9f///f31+fnx9fH/+/fv5/ft//n7+/f38+/78/fz8 +/X7+/n7//v38/X5+fHx9fnz/fv/+/v39/f3+/Pz9/P39+/39/3x6enp8f35+fn5+fv59/d3Wem1r +fe3mamH6/WReY2nz+Wdk/v5vbmp69e91e+/z/X73+O/p5OLl5urq7fj+/33/d25udHVybm5vcW9p +a250ent8/vj+fnz219Bscvfvc3BlZN/5ZGbw+vf/aXf2bl1kaG1+cmr+7HZpbf/k297c1dPa5e75 +5+5xaG57cnhrdPD1b2RoZ2ZjX2V2f3p6e/z39efe3tx9aXF5c2x7eez3cHD5+nhwaWtpX1tgbW1s +bW13e3B27eLg3tnR0tHb3eLsfGdsZW1ucf3483tuaWRgXVlaXWNobnn57u7u693Z1976cHb9a2lt +8+38bXD3+29lZGZjXFlea3Fub3v6/nFx/vv+6tbCvcXQ1dbcdlNPXGlaWF/43uF9Z3J0Xk9LTlpm +Y2f23tja3+Lg4uTm+H7s9nZucfbp9mxxfnZtZWFobGdkZGVtdGxna3B3/Orfalpj68/Jx8bQ3tfY +2WV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P38eDe6+18bHhzbGlrcm9x +aF5fYmRpZmxtd/H4eWdhaG50fHNu+e7k183Jx8fKztPb6nBfWVVUU1FRVFpga21ueP79fHNwbW1s +bm999fDr6ujl5Obo7vb19ero6+f//fl1enJrcHR0dmxlZWdzeXF0bG5/+fT5ffn7ev368+r3eP/1 +7er9/Pb45uTs5uvy6urv/XVwbW1tZWFlZGpubGtveHp1dnJveXz79Pv+9vT57/T+fvru6Pbw8v/0 +//t2fu/99Htqcnv48mxrbnzn9XZxb/Xp8HRqan7z8fDw8eNwamVx4vvwamLn6eLnZWpp+uT18277 +73R4Z2ttbPbt5+34/nf57nV9dnv+dv1sdPDq5f1kZm308n1vZm1+8vdzcXfy09BiXFX12P5vWH/e +3/lbcOLa4WRca+/uYlpe897vcWZz6OLzbWx87/VsYm726/N79+nj5Ovx7+Lj7vltdfDuenBze+vw +bWdjbXl7bWlucG9zdHZ3cv94d3j/8/j18fPs7v52ZvDf5udtfuvs5m758vF/Ym/t4vNiX/zh5f5l +/uTrcmRoan5zampx7v5yaGzr6e1wbvPs7/t2c37t7XxvbvbzfXh18PX4/HV9dnt0cnp2cm12em9u +fHt5eHhy/fd78Pb783Py7PHudPX+ePp14XxiYWDm6+njamhZbulwc3v43et2+HLo+/bxbHFibvT9 ++Hx57O7vdmtqbXX8eW786+L2/WxueOXkYF9o7d9tcO7d2vteXe/d9XlfZvPr52Bba9rV92fhz/1s +Tv7f+3RSbfff/F1y7Nz1Ymr06HNfZPno7W9y6t/p+3n25/Fxbv/u73Nu+ujte3766+3+e/79/nZs +b/vydWxu+vL6b21z+/Rtamrw92dhZ3V2ZF9ob356cHv44vFy6vHrfevf8PHn3u3w7t/p5vDt/nN+ +bm5iZ2plZWb3721qdfl2bW9uc3j16u//cW5nYmNgYWFsffXx8+vs7Ojm5urq7u3y+vf+/n3/+/r9 +e3t7fXd2c29vbG9zdXR1env++vf49vX0+f5+/X19fv319/P09Pn7/np1cnJxb3F1dnh++vvz8vDx +9/j5/v7///779/j4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fd+en3+fn18+fDs5d/h7H5vamptbnJzd3NvbW1wdnhua2ttcnj++fb0 +9PTzenPz6Ox8bHX19m1eX/HLxc7eeXns9mpYW257emVeZvbg7GhdXmRpZWFle+Xj7HtvfvPv/HF6 +9Ozr+Hx89+zy/nZz//b2+vrr4Obt+nd4eHpua3Bub29raWpydW1sa2txeP7++e7t7vH18/x7/vLu +/21sbHJvZW7UyMza/Xb37PdjXGZw/3BnaHbm5XpgXWFlZWZkbe/l6Pl4ffnw93l3/O/s8fb6+O3r +8396+/f29vvx6OLs+v57enJva2hvcnNvbmxwd3lubG50e3x+eXj99/n7/3748PD19PD8cW1pamtn +b9nKzdv8ePjz+mZdZnN9cWhqe+jpdF9cYGZjZWdy7+frfXD/9e/z/n/98O7w9/fx7e75e3h8/Pv7 +/fr49u3l6/n59v5waWhtfv50bnF3dXBzcnJ6fndzeX368/T4/fz4/nV98e3r9G1pcntrZO/OydTy +bH7t825fYXF9cWNjcO3l+WZeYGxqZGdx8+fq/G949PD7dXf57u75ef3w6/N3d339+v98/Pbu8fb6 +7unv+Hd2enRuamt3enRvbG1vdHNwcXV8eX79+fXv8fn9++70fHX14ub8aml6enFoZurT1OR59uLl +/GlmdHx1aWRv9u32bWdrc3BnZWz99Pd9eX707/t3efPu9vz58e7y9fj49Pb6fX3+//9+eP/w4un7 +cnF4c29tcHx/eG1tdnt7d2xtcHd7cHb+9PH0f3R69fT7+Ovs+XJrd/D0cGhtfevd3ur36OPxcW58 ++nJraW11d3Rvb29vcmxqbHT8/H59/P5++fX1/Pv4+Pf5+f389fH1+vj2/A== + +------- =_aaaaaaaaaa2-- + +------- =_aaaaaaaaaa1-- + +------- =_aaaaaaaaaa0-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/17 b/glassfish-runner/mail-platform-tck/mailboxes/test2/17 new file mode 100644 index 0000000000..a9ba0f1e95 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/17 @@ -0,0 +1,34 @@ +From ggere Thu Jan 11 12:19:49 1996 +Return-Path: +Received: by skyhawk.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id MAA07573; Thu, 11 Jan 1996 12:19:48 -0800 +Date: Thu, 11 Jan 1996 12:19:48 -0800 +From: ggere (Gary M.Gere) +Message-Id: <199601112019.MAA07573@skyhawk.Eng.Sun.COM> +To: ggere@skyhawk +Subject: dtmail test +Mime-Version: 1.0 +Content-Type: multipart/mixed;boundary=553e_46b8-22c8_770a-b4a_3a27 +Content-Length: 375 +Status: RO +X-Status: +X-Keywords: +X-UID: 16 + + +--553e_46b8-22c8_770a-b4a_3a27 +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: 7bit +Content-MD5: AAAAAAAAAAAAAAAAAAAAAA== +X-Sun-Data-Type: text + + +--553e_46b8-22c8_770a-b4a_3a27 +Content-Type: application/octet-stream +Content-Transfer-Encoding: 7bit +Content-MD5: 2Oj8otwPiW/Xy0ywAxuiSQ== +Content-Description: gmg00 + +test +--553e_46b8-22c8_770a-b4a_3a27-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/18 b/glassfish-runner/mail-platform-tck/mailboxes/test2/18 new file mode 100644 index 0000000000..0642ee61fe --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/18 @@ -0,0 +1,34 @@ +From ggere Thu Jan 11 12:19:49 1996 +Return-Path: +Received: by skyhawk.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id MAA07573; Thu, 11 Jan 1996 12:19:48 -0800 +Date: Thu, 11 Jan 1996 12:19:48 -0800 +From: ggere (Gary M.Gere) +Message-Id: <199601112019.MAA07573@skyhawk.Eng.Sun.COM> +To: ggere@skyhawk +Subject: dtmail test +Mime-Version: 1.0 +Content-Type: multipart/mixed;boundary=553e_46b8-22c8_770a-b4a_3a27 +Content-Length: 386 +Status: RO +X-Status: +X-Keywords: +X-UID: 17 + + +--553e_46b8-22c8_770a-b4a_3a27 +Content-Type: text/plain; charset=us-ascii; name=gmg01 +Content-Transfer-Encoding: 7bit +Content-MD5: AAAAAAAAAAAAAAAAAAAAAA== +X-Sun-Data-Type: text + + +--553e_46b8-22c8_770a-b4a_3a27 +Content-Type: application/octet-stream +Content-Transfer-Encoding: 7bit +Content-MD5: 2Oj8otwPiW/Xy0ywAxuiSQ== +Content-Description: gmg01 + +test +--553e_46b8-22c8_770a-b4a_3a27-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/19 b/glassfish-runner/mail-platform-tck/mailboxes/test2/19 new file mode 100644 index 0000000000..e6336126e1 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/19 @@ -0,0 +1,35 @@ +From ggere Thu Jan 11 12:23:43 1996 +Return-Path: +Received: by skyhawk.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id MAA07626; Thu, 11 Jan 1996 12:23:43 -0800 +Date: Thu, 11 Jan 1996 12:23:43 -0800 +From: ggere (Gary M.Gere) +Message-Id: <199601112023.MAA07626@skyhawk.Eng.Sun.COM> +To: ggere@skyhawk +Subject: new dtmail test +Mime-Version: 1.0 +Content-Type: multipart/mixed;boundary=7482_2f59-15b6_8fa-6cb6_618f +Content-Length: 435 +Status: RO +X-Status: +X-Keywords: +X-UID: 18 + + +--7482_2f59-15b6_8fa-6cb6_618f +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: 7bit +Content-MD5: AAAAAAAAAAAAAAAAAAAAAA== +X-Sun-Data-Type: text + + +--7482_2f59-15b6_8fa-6cb6_618f +Content-Type: application/octet-stream; name=gmg02 +Content-Transfer-Encoding: 7bit +Content-MD5: 2Oj8otwPiW/Xy0ywAxuiSQ== +Content-Description: gmg02 +Content-Disposition: attachment; filename=gmg02 + +test +--7482_2f59-15b6_8fa-6cb6_618f-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/2 b/glassfish-runner/mail-platform-tck/mailboxes/test2/2 new file mode 100644 index 0000000000..d3dd1efe6b --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/2 @@ -0,0 +1,43 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:40 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17152; Fri, 17 Feb 1995 14:40:54 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AA02800; Fri, 17 Feb 1995 14:40:50 -0800 +Received: from relay.surfnet.nl by Sun.COM (sun-barr.Sun.COM) + id AA17184; Fri, 17 Feb 95 14:40:50 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08235-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:40:07 +0100 +Message-Id: <9502172240.AA17184@Sun.COM> +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172239.AA05993@skyhawk.Eng.Sun.COM> +Subject: Mime test message/rfc822 +Mime-Version: 1.0 +Date: Fri, 17 Feb 1995 23:40:07 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: message/rfc822 +Content-Length: 624 +Status: RO +X-Status: +X-Keywords: +X-UID: 1 + +Return-Path: +Delivery-Date: Fri, 13 Jan 1995 10:02:27 +0100 +Received: from survis.surfnet.nl by survis.surfnet.nl with SMTP (PP); + Fri, 13 Jan 1995 10:02:24 +0100 +To: mime@SURFnet.nl +Subject: Original mail-message +Organisation: SURFnet bv +MIME-Version: 1.0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: <16641.789987741.1@SURFnet.nl> +Date: Fri, 13 Jan 1995 10:02:21 +0100 +From: "Someone" + +If your User Agent can extract this message from the encapsulating +MIME message, then message/rfc822 WORKS! + +SURFnet EH'95 + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/20 b/glassfish-runner/mail-platform-tck/mailboxes/test2/20 new file mode 100644 index 0000000000..49e42ac568 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/20 @@ -0,0 +1,42 @@ +From jmk@cochin Thu Feb 12 14:06:35 1998 -0800 +Return-Path: +Received: from rita.eng.sun.com by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id RAA10322; Fri, 8 Aug 1997 17:23:07 -0700 +Received: from jumanji.eng.sun.com by rita.eng.sun.com (SMI-8.6/SMI-SVR4) + id RAA06403; Fri, 8 Aug 1997 17:23:03 -0700 +Received: by jumanji.eng.sun.com (SMI-8.6/SMI-SVR4) + id RAA22671; Fri, 8 Aug 1997 17:23:05 -0700 +Date: Fri, 8 Aug 1997 17:23:05 -0700 +From: ptn@jumanji (Phuong T. Nguyen) +Message-Id: <199708090023.RAA22671@jumanji.eng.sun.com> +To: javamail@rita +Subject: Code Manager notification +Precedence: bulk +Mime-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Content-Length: 682 +Status: RO +X-Status: +X-Keywords: +X-UID: 19 + +Event: putback-to +Parent workspace: /net/icdev/export1/ic/krakatoa/ws/jdt1.1-master + (icdev:/export1/ic/krakatoa/ws/jdt1.1-master) +Child workspace: /export0/ws/jdt1.1-ptn + (jumanji:/export0/ws/jdt1.1-ptn) +User: ptn + +Comment: +- Fixed bug 4064017 + HJV I18N: do not use System.getProperty("jdt.locale") to get Help + locale dir + +Files: +update: src/share/lib/textmessages.properties +update: src/share/lib/props/default/jdt.props +update: src/share/sunw/sunw/hotjava/sw/applets/HomePageApplet.java +update: src/share/sunw/sunw/hotjava/sw/misc/swBrowserProperties.java +update: src/share/sunw/sunw/hotjava/sw/ui/SwEditorFrame.java + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/3 b/glassfish-runner/mail-platform-tck/mailboxes/test2/3 new file mode 100644 index 0000000000..95fbbe87c0 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/3 @@ -0,0 +1,43 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:41 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17222; Fri, 17 Feb 1995 14:41:35 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AA02863; Fri, 17 Feb 1995 14:41:33 -0800 +Received: from relay.surfnet.nl by Sun.COM (sun-barr.Sun.COM) + id AA17309; Fri, 17 Feb 95 14:41:31 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08259-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:40:27 +0100 +Message-Id: <9502172241.AA17309@Sun.COM> +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172239.AA05993@skyhawk.Eng.Sun.COM> +Subject: Mime test message/rfc822 +Mime-Version: 1.0 +Date: Fri, 17 Feb 1995 23:40:27 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: message/rfc822 +Content-Length: 624 +Status: RO +X-Status: +X-Keywords: +X-UID: 2 + +Return-Path: +Delivery-Date: Fri, 13 Jan 1995 10:02:27 +0100 +Received: from survis.surfnet.nl by survis.surfnet.nl with SMTP (PP); + Fri, 13 Jan 1995 10:02:24 +0100 +To: mime@SURFnet.nl +Subject: Original mail-message +Organisation: SURFnet bv +MIME-Version: 1.0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: <16641.789987741.1@SURFnet.nl> +Date: Fri, 13 Jan 1995 10:02:21 +0100 +From: "Someone" + +If your User Agent can extract this message from the encapsulating +MIME message, then message/rfc822 WORKS! + +SURFnet EH'95 + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/4 b/glassfish-runner/mail-platform-tck/mailboxes/test2/4 new file mode 100644 index 0000000000..d6300519d9 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/4 @@ -0,0 +1,47 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:41 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17226; Fri, 17 Feb 1995 14:41:40 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AA02870; Fri, 17 Feb 1995 14:41:38 -0800 +Received: from relay.surfnet.nl by Sun.COM (sun-barr.Sun.COM) + id AA17324; Fri, 17 Feb 95 14:41:38 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08275-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:40:53 +0100 +Message-Id: <9502172241.AA17324@Sun.COM> +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172239.AA05996@skyhawk.Eng.Sun.COM> +Subject: Mime test message/external +Mime-Version: 1.0 +Date: Fri, 17 Feb 1995 23:40:53 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: Multipart/Alternative; Boundary="OtherAccess" +Content-Length: 466 +Status: RO +X-Status: +X-Keywords: +X-UID: 3 + +--OtherAccess +Content-Type: Message/External-body; + access-type="mail-server"; + server="mailserv@ds.internic.net" + +Content-Type: text/plain +Content-ID: <950111122848.RFC@ISI.EDU> + +SEND /rfc/rfc1521.txt + +--OtherAccess +Content-Type: Message/External-body; + name="rfc1521.txt"; + site="ftp.ripe.net"; + access-type="anon-ftp"; + directory="rfc" + +Content-Type: text/plain +Content-ID: <950111122848.RFC@ISI.EDU> + +--OtherAccess-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/5 b/glassfish-runner/mail-platform-tck/mailboxes/test2/5 new file mode 100644 index 0000000000..de55de97f6 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/5 @@ -0,0 +1,47 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:42 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17253; Fri, 17 Feb 1995 14:41:58 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AA02906; Fri, 17 Feb 1995 14:41:56 -0800 +Received: from relay.surfnet.nl by Sun.COM (sun-barr.Sun.COM) + id AA17364; Fri, 17 Feb 95 14:41:56 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08288-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:41:21 +0100 +Message-Id: <9502172241.AA17364@Sun.COM> +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172239.AA05996@skyhawk.Eng.Sun.COM> +Subject: Mime test message/external +Mime-Version: 1.0 +Date: Fri, 17 Feb 1995 23:41:21 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: Multipart/Alternative; Boundary="OtherAccess" +Content-Length: 466 +Status: RO +X-Status: +X-Keywords: +X-UID: 4 + +--OtherAccess +Content-Type: Message/External-body; + access-type="mail-server"; + server="mailserv@ds.internic.net" + +Content-Type: text/plain +Content-ID: <950111122848.RFC@ISI.EDU> + +SEND /rfc/rfc1521.txt + +--OtherAccess +Content-Type: Message/External-body; + name="rfc1521.txt"; + site="ftp.ripe.net"; + access-type="anon-ftp"; + directory="rfc" + +Content-Type: text/plain +Content-ID: <950111122848.RFC@ISI.EDU> + +--OtherAccess-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/6 b/glassfish-runner/mail-platform-tck/mailboxes/test2/6 new file mode 100644 index 0000000000..64a29e5a8f --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/6 @@ -0,0 +1,84 @@ +From jenny@eureka Fri Feb 17 14:42 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail2) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17277; Fri, 17 Feb 1995 14:42:32 -0800 +Received: from beerbust.Eng.Sun.COM by Eng.Sun.COM (5.x/SMI-5.3) + id AA27319; Fri, 17 Feb 1995 14:42:25 -0800 +Received: from Eng.Sun.COM (engmail2) by beerbust.Eng.Sun.COM (5.x/SMI-SVR4) + id AA04675; Fri, 17 Feb 1995 14:42:23 -0800 +Received: from eureka.Eng.Sun.COM by Eng.Sun.COM (5.x/SMI-5.3) + id AA27300; Fri, 17 Feb 1995 14:42:20 -0800 +Received: by eureka.Eng.Sun.COM (5.x/SMI-SVR4) + id AA06769; Fri, 17 Feb 1995 14:42:17 -0800 +Date: Fri, 17 Feb 1995 14:42:17 -0800 +From: jenny@eureka (Jennifer Chang) +Message-Id: <9502172242.AA06769@eureka.Eng.Sun.COM> +Subject: 1193078: Please evaluate +To: mail-eng@beerbust.Eng.Sun.COM +Precedence: junk +Mime-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Content-Length: 1005 +Status: RO +X-Status: +X-Keywords: +X-UID: 5 + + + Bug Id: 1193078 + Category: cde + Subcategory: mail + Bug/Rfe: bug + Synopsis: Help not fully implemented in the secondary window + Keywords: + Severity: 5 + Priority: 3 + Responsible Engineer: + Description: +In Secondary window Help menu: Tasks, Reference and Using Help are still +not implemented. + + Work around: + + Suggested fix: + + Justification: +Justification by: jenny Date: 2/17/95 Create with Priority 3: + +All Help items should be implemented by now. + + State triggers: + Accepted: no + Evaluation: + + Commit to fix in releases: + Fixed in releases: + Integrated in releases: + Verified in releases: + Comments: + +Introduced in release: + Root cause: + Development Status: + Fix affects documentation: + Interest list: + Patch id: + See also: + + Called in by: + Customer: + Company: SunSoft + Employee: jennifer chang + Release: 1.0_beta_1 + Hardware version: i486 + O/S version: s494_fcs + User Type: F + SO Number: + Sun Contact: jenny + Public Summary: + + Hook 1: + Hook 2: + Bug End: + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/7 b/glassfish-runner/mail-platform-tck/mailboxes/test2/7 new file mode 100644 index 0000000000..d147fcb059 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/7 @@ -0,0 +1,278 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:42 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17294; Fri, 17 Feb 1995 14:42:34 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AA02966; Fri, 17 Feb 1995 14:42:32 -0800 +Received: from relay.surfnet.nl by Sun.COM (sun-barr.Sun.COM) + id AA17463; Fri, 17 Feb 95 14:42:29 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08320-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:41:58 +0100 +Message-Id: <9502172242.AA17463@Sun.COM> +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172240.AA05999@skyhawk.Eng.Sun.COM> +Subject: Mime test multipart/mixed +Mime-Version: 1.0 +Content-Id: <26412.789994054.0@SURFnet.nl> +Date: Fri, 17 Feb 1995 23:41:58 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" +Content-Length: 18149 +Status: RO +X-Status: +X-Keywords: +X-UID: 6 + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: <26412.789994054.1@SURFnet.nl> + +If you get this text on your screen, that's the first part of this +message. Now for the second part, a gif picture: + +------- =_aaaaaaaaaa0 +Content-Type: image/gif +Content-ID: <26412.789994054.2@SURFnet.nl> +Content-Description: Bicycle +Content-Transfer-Encoding: base64 + +R0lGODdhgALgAfAAAAAAAP///ywAAAAAgALgAQAC/oSDqXnmsKKctNqLs968+w+G4kiW5olqzaMG +kPIiz3ww9O24jY73/g8MCoc+hlHHg+xSzKbzuYl9pNCq9YrNSnoqqrcoI3rD4rJZef4lbxT0SqmN +y+ftLf2Oz+tFLEytwmWj1gezlnbIhZjmsjDIuAcZmUEFI0V4JJmpuflYcikTkWOhZggWKlqquKha +9ugGVMgpq0cZuzaLmwtZ27FkSzZWyfoHejusmnqcmDyk63xF/MuGWfxsfX0X8/WKigSqbPkCjjwu +ZGzaSYa9bsJbTTPKLj/fApijTaldSQ18z0y6Y0a/VQTLDWIDr1Edegy3WAqj8JW3hSTcNbxoBUej +/k/pRtUS16xZMkEGz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WxsXJrnmK8rbxps47xaVk9U5m6i8lXdgJs +aH8ZfCZLISeTMGE2fwxy/mG+vimUuC3zomLPDMb4K4VXF61JL6gq1u/TExIkqpe3fgvgKyvrLDXP +VVP786UCd6edLMpkdB3Y5SJdEsqXHEd2SH5xlePOGbv99sLn4ASYjEISxdyXedMCHrLfSr4oWZe9 +wDG07pV9udtwK+v3f3KTxu5hgK/mODXynqXUqnSjfvEzdEHTOblOC3724V+LXqjZv4vjdUVSGmQC +LUltTa+z0Ba+K8m4twN6T7z37jqr2YnisIV2RNjiNP1mGr30bEtMvvQ5P6z69fxJq31IBKe/zPyV +cL42+vVrxenV7S8HtMOIpr8B5i5/bSMgJWwlPP9FxmgNhM47TmK95yGw/oKcsSAGiUE9mSUuZcI6 +1N4y6LnNEEKE08sa/dBkPhMScGkL1A141nWR1MlwLiFk4Qt1REEcuiuFgbIRD00osv7ZIoj2u58R +k1Q7I9qPhUhkYueGmEMSQtFwBmwhJ5hSxS0OjItetGEWvxiOFfJQicwTY/qytUQ0srGAZGzjEZ+Y +wZhdEY73uaAd89i2N+pxcGhMiBz7WD6eCLKQhqTSDi0owEPWL3+BZCQkI7kdPmLwhpKcHwjreMlN +cjJpXyRJJ4OoGfmFspSmbOInE3lKTD5yla7kZCsrqMlXSiiWtLwlLnOpy5LNcpe+/CUwg2nLYBKz +mMZcJSWPqcxlMhOSr8lsJjSjKU0vPnOa1rwmNrOpzW1ys5ve/CY4wynOcZKznOY8JzrTqc51srOd +7nwnPOMpz3nSs572vCc+86nPffKzn/78J0ADKtCBErSgBj0oQhOq0IUytKEOfShEIyrRiVK0oha9 +KEYzqtGNcrSjHv0oSEMq0pGStKQmPSlKU6rSlbK0pS59KUxjKtOZ0rSmNr0pTnOq053ytKc+/SlQ +gyrUoRK1qEY9KlKTqlSaFgAAOw== + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: <26412.789994054.3@SURFnet.nl> + +If you got the picture too, then multipart/mixed works! + +SURFnet EH'95 + +------- =_aaaaaaaaaa0-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/8 b/glassfish-runner/mail-platform-tck/mailboxes/test2/8 new file mode 100644 index 0000000000..470307a336 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/8 @@ -0,0 +1,278 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:42 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17302; Fri, 17 Feb 1995 14:42:46 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AA02993; Fri, 17 Feb 1995 14:42:43 -0800 +Received: from relay.surfnet.nl by Sun.COM (sun-barr.Sun.COM) + id AA17433; Fri, 17 Feb 95 14:42:22 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08310-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:41:43 +0100 +Message-Id: <9502172242.AA17433@Sun.COM> +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172240.AA05999@skyhawk.Eng.Sun.COM> +Subject: Mime test multipart/mixed +Mime-Version: 1.0 +Content-Id: <26412.789994054.0@SURFnet.nl> +Date: Fri, 17 Feb 1995 23:41:43 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" +Content-Length: 18149 +Status: RO +X-Status: +X-Keywords: +X-UID: 7 + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: <26412.789994054.1@SURFnet.nl> + +If you get this text on your screen, that's the first part of this +message. Now for the second part, a gif picture: + +------- =_aaaaaaaaaa0 +Content-Type: image/gif +Content-ID: <26412.789994054.2@SURFnet.nl> +Content-Description: Bicycle +Content-Transfer-Encoding: base64 + +R0lGODdhgALgAfAAAAAAAP///ywAAAAAgALgAQAC/oSDqXnmsKKctNqLs968+w+G4kiW5ol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jSjKU0vPnOa1rwmNrOpzW1ys5ve/CY4wynOcZKznOY8JzrTqc51srOd +7nwnPOMpz3nSs572vCc+86nPffKzn/78J0ADKtCBErSgBj0oQhOq0IUytKEOfShEIyrRiVK0oha9 +KEYzqtGNcrSjHv0oSEMq0pGStKQmPSlKU6rSlbK0pS59KUxjKtOZ0rSmNr0pTnOq053ytKc+/SlQ +gyrUoRK1qEY9KlKTqlSaFgAAOw== + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: <26412.789994054.3@SURFnet.nl> + +If you got the picture too, then multipart/mixed works! + +SURFnet EH'95 + +------- =_aaaaaaaaaa0-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test2/9 b/glassfish-runner/mail-platform-tck/mailboxes/test2/9 new file mode 100644 index 0000000000..c75752a7eb --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test2/9 @@ -0,0 +1,488 @@ +From mime-test-reply@relay.surfnet.nl Fri Feb 17 14:42 PST 1995 +Return-Path: +Received: from Eng.Sun.COM (engmail1) by basilisk.Eng.Sun.COM (5.x/SMI-SVR4) + id AA17307; Fri, 17 Feb 1995 14:42:50 -0800 +Received: from Sun.COM (sun-barr.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3) + id AA02995; Fri, 17 Feb 1995 14:42:45 -0800 +Received: from relay.surfnet.nl by Sun.COM (sun-barr.Sun.COM) + id AA17494; Fri, 17 Feb 95 14:42:37 PST +Received: from relay.surfnet.nl by relay.surfnet.nl + id <08334-0@relay.surfnet.nl>; Fri, 17 Feb 1995 23:42:18 +0100 +Message-Id: <9502172242.AA17494@Sun.COM> +From: pp owner +To: Gary.Gere@Eng +In-Reply-To: <9502172240.AA06002@skyhawk.Eng.Sun.COM> +Subject: Mime test multipart/parallel +Mime-Version: 1.0 +Content-Id: <17555.790352373.1@SURFnet.nl> +Date: Fri, 17 Feb 1995 23:42:18 +0100 +Sender: mime-test-reply@relay.surfnet.nl +Content-Type: multipart/parallel; boundary="----- =_aaaaaaaaaa0" +Content-Length: 33603 +Status: RO +X-Status: +X-Keywords: +X-UID: 8 + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: <17555.790352373.2@SURFnet.nl> + +Not many systems support Multipart/parallel. If your User Agent +supports multipart parallel, you should see this text, see the included +GIF picture, and see the text/enriched part and hear the sound part all +at the same time. + +------- =_aaaaaaaaaa0 +Content-Type: image/gif +Content-ID: <17555.790352373.3@SURFnet.nl> +Content-Description: Bicycle 95 +Content-Transfer-Encoding: base64 + +R0lGODdhgALgAfAAAAAAAP///ywAAAAAgALgAQAC/oSDqXnmsKKctNqLs968+w+G4kiW5olqzaMG +kPIiz3ww9O24jY73/g8MCoc+hlHHg+xSzKbzuYl9pNCq9YrNSnoqqrcoI3rD4rJZef4lbxT0SqmN +y+ftLf2Oz+tFLEytwmWj1gezlnbIhZjmsjDIuAcZmUEFI0V4JJmpuflYcikTkWOhZggWKlqquKha +9ugGVMgpq0cZuzaLmwtZ27FkSzZWyfoHejusmnqcmDyk63xF/MuGWfxsfX0X8/WKigSqbPkCjjwu +ZGzaSYa9bsJbTTPKLj/fApijTaldSQ18z0y6Y0a/VQTLDWIDr1Edegy3WAqj8JW3hSTcNbxoBUej +/k/pRtUS16xZMkEGzZXUaAgYIIwsV6LUKArfQz7RWtqsAgdeNzvfTuX8l5DkIaAnEbL6xyhQx5sN +w51KJVRgzGDxqjK9Cs3NpF9RWwnr47UoTLFgQAaFhjUjPpVSdY7lym/Cx5pp62YhlnDuGVfdZCYi +G4SoQZ8c7V7z6y3nUTQ2ej0NZTjykzcC23Dbu08wYDGajzmkKxkbSiT39lZOXM+sxdCs252G3Hkk +jyQDN9s+KnciltWtL0jsjCjiUpfq4ELszZr3RlQWzVC7fDs6ON+clEfmlhL6UCNwNnpXDLbacOTJ +WzCXW5oUeumBiACfbr26YXGZR4Yftjxad/uX/vz1S0peWvv54UsxfplDYEmC1cYeggHuwdsfeBUx +lTIG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PP9FxmgNhM47TmK95yGw/oKcsSAGiUE9mSUuZcI6 +1N4y6LnNEEKE08sa/dBkPhMScGkL1A141nWR1MlwLiFk4Qt1REEcuiuFgbIRD00osv7ZIoj2u58R +k1Q7I9qPhUhkYueGmEMSQtFwBmwhJ5hSxS0OjItetGEWvxiOFfJQicwTY/qytUQ0srGAZGzjEZ+Y +wZhdEY73uaAd89i2N+pxcGhMiBz7WD6eCLKQhqTSDi0owEPWL3+BZCQkI7kdPmLwhpKcHwjreMlN +cjJpXyRJJ4OoGfmFspSmbOInE3lKTD5yla7kZCsrqMlXSiiWtLwlLnOpy5LNcpe+/CUwg2nLYBKz +mMZcJSWPqcxlMhOSr8lsJjSjKU0vPnOa1rwmNrOpzW1ys5ve/CY4wynOcZKznOY8JzrTqc51srOd +7nwnPOMpz3nSs572vCc+86nPffKzn/78J0ADKtCBErSgBj0oQhOq0IUytKEOfShEIyrRiVK0oha9 +KEYzqtGNcrSjHv0oSEMq0pGStKQmPSlKU6rSlbK0pS59KUxjKtOZ0rSmNr0pTnOq053ytKc+/SlQ +gyrUoRK1qEY9KlKTqlSaFgAAOw== + +------- =_aaaaaaaaaa0 +Content-Type: audio/basic +Content-ID: <17555.790352373.4@SURFnet.nl> +Content-Description: Parallel +Content-Transfer-Encoding: base64 + +LnNuZAAAACAAACtIAAAAAQAAH0AAAAABAAAAAAAAAABrbm9z+Pbu7/H7fn56fnl6//98fnt2f3x9 +/v77+PPs8PL4e3Nvb290e/58ff1//vX28vT693x7+v94fXpwdHp4eH7//vjv7e/z+ntxdXl5ffn6 +/v96fHRyeH10e/z7+/Dy+Pr++nz+9n99/Xh6+v98enl2eHt9+vr//Pr/9vj8+P58eHp4eH759/Ly +fn/9enh9enNzef7y6ers7n/6f3V3dW9qa27/dmRo8OTof3P/3eBmXnne3PNcWXHt5/doZ/3m4u51 +dPry8ndpcv5/fn767+jl6vv8fHpvc2tna2trbXF6/PXy7O7v7PD39vX+/P96enBvbmxqaW1tePL4 +7urr6uzv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/5/nx6+fj7eXr8/Px++/n7d3t//PX++31+dnd4/vp+ +f3t8+fr49Px/ffn8+Pv4+H16efv9/fz3/f9+/Pb6//52fX19fH/6fHx5+/n7/vj6fX52+vx/fHj/ +/n16/v38fX56fPv9/Pf1+37/+PP8fX78fnVxe/L9fnv29Pn9fPz9fHh5fv13fvj4+nv///59/fh6 +f/3/fv97/Hh+eX71/Pd7/vr9fH/8+338f/j5/fz09nt+e3t0fX78/Xv7ffp8+P37fP78+n1+/P33 +fX17+v57/3/3//r9fP1+/3/7f/h2/vz9fnz+en35+vr89f77/Xj+/v16/f96enr9+fz//Pv6f315 +/v38+vr9ffz6/H5+enZ2ffj8+vv6+/7+fXl+fHl+/fz5fv76+n76f/p6+/99/nz7evx4+H5/fn38 +/v/9/vN7fHh7/Pr++Pf3f/l9/3j/fnx/ff79/Px+ff78/Hv++3z7/Pt+/fz4fPz6+P17/f/9/356 +e/r6fP96/3/+dvj/9337+/r8/3v8+P77en39+vt5fv36/33/eP1+fP7/+/j+fPv++X58ef36/X78 +/P1+f/j9fHp4eXb6/H59f/z9ev7/+fr4fP37///++v39fXt++/59/3z+ff5/+Pv8//79fHp9/vp9 ++vrx/P5/+35/dv/8+Hx6+vn6dn18+Hp2fvz1/Pv99nn7/vp8/3z7+vz7+H9+ff///3Z9/vn8fv/8 ++H3+9ff6eXl+/np4+Pr7eXf++u77enj/9X7+ef19eXN+9Pj8/H74/n57+Hv///X9+np8eXv7fPf/ +fHZ1+PH3+//8fnp2e373//77+P77fH/4e353+H37/Xz7/vr+/3j7eHf6/Pr9f/z69vn8/317dn99 ++vf/+3j+ffv9+n57+37+/vz+/H37/fZ7/H71e/17fPz/+Hr8e/r6/vz6/Ht8d/x/+33///1+/fv2 ++Pt4e3v/93v4ff18/v18f3x9fP76+/r79P93d3x5e3369ff8fH37//57/Hf6fPd99319e3n9/Pr/ +fX38en77+Pt+//l9fP79/f9+eX36/fp8fHn9ff749vl++v35/v94ffv8fnl/+vv9ev97fn75+fn8 +e/98/X79+fr8//t7/n/7+fr7fnx//v/8//76/nt+fP18+35//P/7evJ993j6fPx9ffz8+f39/vd6 +fH16fXx8/H/8f/v3f/l6/vb+fXv8+v59//77fnt9f35+/v/7+nx7fvf7f3t8/f//fPv9+Xv/f/r0 ++/56e/77ff99/358e//++/v8/Hp+/v73fPx9+/ry+ft+enx+eHx3e3/++Xn//vz+/Hz8/P38+vr7 +fPz+//l//fn8/3z/ef9+/Px6/nx9fvz9fnz6//x7/f76fnx9ffb+/Pl/+3t7e3v+9nj8eX5+ffx8 ++v97/Pz+/fv+/X17/338fXx9e3z++/v+f359en3//f1+/Hr6fn5/fPx8/3x9+Px+fPz9+X38fPx+ +eXx3eXz+fP/2+n/+/Pj8fnp//H5+fvj6fnp69v98e3j+//v++Ph9/H5+ff99fH3+93n7en76d/f+ ++vZ5/nb3+v9+fHz9d3t++vh8dP33+Px6//R6eXr89/78e/z/cX1+fX57/fvvffz+93h0e339fv57 +/f37/X/9+H17efz5/3Z9+358ev72+3p2//z8/n789/x3fvz3enh2/fZ+fvz3/Hp6fv58fX7/+339 +ffz09Xl1+Pz+fH33/H59evz8e3Z8/Pt5b3vx8H90fvL1+v777O5+c3J+dXZwcHn9/vz17/L3fHr6 +ff9/+/t9fXv++39+fP78fHX+//z+ff/+/nr8ff5/e319/fz++vv9/H3/fXx8fHp8/v9/+H/8/P7+ +fv7z7Pp2bXBvbm5v/vL7+O/p7O3w9fh8dHJybmxvcHj+f3738/j69PX1+f39/n54eXp7eHd3enx+ +fff29vL09fX7+/5/eHN3cnZ6c3p9/Pz69fXz9vf5+P3/++z3a2dqbGxuefXt7vDo5Onw9PtzamNp +bmttffP18e7r6u/4ff94bW90cm52c/z7/fDv7+/68/j8e3V3c3Nycnv//vL2+v19dnl2efr++Pf6 ++vf7fn38+3txfnp1fHr++/x//vb1+Pv+fnx5eXt7eHp8/3379fb29/r7/v7//nt9eXp8fP19/f59 +f/r9//x//v57/X/6fv79//7//vz//n598Ov3dnBsaWhv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e3R1dnV4f/v08fLz9vT6 ++/99fXR0bW9vbnp2en19+ff0+Pj6+vn8+/f0+v7+enp4enx8/v369e3s7e/4fXZsa2tqbG9ye/38 +9vXz9ff59/L39ft8fnJ2d3V4e3379vf29vj7+ff+fn95eXhvcm9zeHp9/Pz59/f6+fz8+/z19Pb1 +/P57e3l5fHp8/fXx7vHu9Px9dXJubW5tcXR6evzz9/b29vb39fb3/Px+eXp6enp+//79/f38+/r7 +//7+fnh/dHN3c3N3e3799vf29/j4//v8fv5/+/5+/n5+ff7//35//P75+fr7/v59enh9dnN6eHt+ +dvv///r+/Pv++fz6/P3/fvr9+/9+///6/fz9fXz/e3z+fH14/v92/HX/fH3/ff37+Pv5+/v6/fn7 +/v7+/Pz5/Xr7fn58f399//7+fH98fn5+/378/P/+/v3+fvt8fH98/3t6fX59+/78+v37+n76/v39 +fX58/nx+//7//nx/ff79fXl+/nx7fnv+fX/9efp+f/p9//j9+vv6/v3/fH3+fP5/ffz8/Pt6+n57 +/37/e/79/fx+fn5//H19fn5+fft/fX/+/n77///9///+/n3//vn++/5+/f38fvx/fv/9/f59/357 +/359/359/f3+/fr9/Px+/n5+fH1/e3z+fv79fX//e/37f/77//7/fv79//58fn3++37/+317/318 +fHr+e//+/v39+3z9fn79fvx+/nt+/nz+/f/9f379/H7//nx+/n7+fP5+/318/3/9/P7//v39/f7/ +//7/ff79//t9f399/P/8/339fv7//fz7/v/+//v//n19fX78//3+fv18/n7/+nt6/n9+f35//3z9 +e/f6ffh9+/7//f5+/X19e319fHz//3z//X77//99///8f/7//3z9/v77fv/+/33+fP3/fXx7fn59 +fv5+/X9+//z+fv5+ff59+37//n/9//3//X5+/nv+fX58f/78fP/+//x+/fz7/vr9evh7f/58f318 +/vt/ff98fX5++X37/fz+ffn//f17/v9+/fz9fv1+fvz//f7/en18fvp+fPx6/P///339/P/8/fv8 +fn78fX59fn1+fX3+fv/+//9/fP99fPz9/fz9/P5+/f9/fXx/ffnp5ej5ZlhaZ/ro5evu7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ev56+/r2+P79fH19fn1+/3f9/Xj8fX5//v/6/Pf2/H56fHt+//z8///+/31+ +e3l7ff77/Pz6/3x9fP//+vn6+fx+fn5+e357fv37+fj7+/58e3Z1e3l6/vz6+Pj9+f19/H79+Xt9 +enp4ffz++vz9fv98/3t6enl9//33+Pr8fXn+/vr4/X98e3t6fvP9fn57e33+/n97f3r7/fz8fP19 +/v79/f//e3x++37+/P9+fn57/f1+/f5+/n7+/f39/37+//78/v99ff1++n5+fXp+ffj8+/12fH39 ++/f3/P56fX79+X7/fXx8ff76/Pv6fv76/n59eXp8//z3+X98d3p//vv4+X34/3l+en17e3z+ + +------- =_aaaaaaaaaa0 +Content-Type: text/enriched; charset="us-ascii" +Content-ID: <17555.790352373.5@SURFnet.nl> +Content-Description: Final +Content-Transfer-Encoding: quoted-printable + +
+If you see and hear all of them in parallel = + +multipart/parallel +Works!
+SURFnet EH'95= + +------- =_aaaaaaaaaa0-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/1 b/glassfish-runner/mail-platform-tck/mailboxes/test3/1 new file mode 100644 index 0000000000..72e008d440 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/1 @@ -0,0 +1,13 @@ +From MAILER-DAEMON Thu May 14 18:25:16 1998 +Date: Thu, 14 May 1998 18:25:16 -0700 (PDT) +From: Mail System Internal Data +Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA +X-IMAP: 0887321188 0000000025 +Status: RO +Content-Length: 260 + +This text is part of the internal format of your mail folder, and is not +a real message. It is created automatically by the mail system software. +If deleted, important folder data will be lost, and it will be re-created +with the data reset to initial values. + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/10 b/glassfish-runner/mail-platform-tck/mailboxes/test3/10 new file mode 100644 index 0000000000..89ed910505 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/10 @@ -0,0 +1,394 @@ +From jmk@cochin Thu Feb 12 14:06:32 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id RAA22050; Wed, 6 Aug 1997 17:27:09 -0700 +Received: from java-aces.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id RAA24869; Wed, 6 Aug 1997 17:26:58 -0700 +Received: by java-aces.eng.sun.com (SMI-8.6/SMI-SVR4) + id TAA20815; Wed, 6 Aug 1997 19:15:30 -0500 +Received: from Eng.Sun.COM by java-aces.eng.sun.com (SMI-8.6/SMI-SVR4) + id TAA20810; Wed, 6 Aug 1997 19:15:28 -0500 +Received: from shadows.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id RAA03385; Wed, 6 Aug 1997 17:21:28 -0700 +Received: from Eng.Sun.COM by shadows.eng.sun.com (SMI-8.6/SMI-SVR4) + id RAA26663; Wed, 6 Aug 1997 17:21:25 -0700 +Received: from taller.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id RAA03350; Wed, 6 Aug 1997 17:21:22 -0700 +Received: from czrider.eng.sun.com by taller.eng.sun.com (SMI-8.6/SMI-SVR4) + id RAA06977; Wed, 6 Aug 1997 17:21:25 -0700 +Received: from czrider by czrider.eng.sun.com (SMI-8.6/SMI-SVR4) + id RAA11792; Wed, 6 Aug 1997 17:21:05 -0700 +Date: Wed, 6 Aug 1997 17:21:05 -0700 (PDT) +From: Cynthia Zwerling +Reply-To: Cynthia Zwerling +Subject: The JavaBeansTM Advisor: Issue #7 +To: frameworks.amb@Sun, aces.java@fullspeed, java-internal@taller, pc.amb@Sun, + commercial.amb@Sun, os.amb@taller, mtstaff@corqual, javasoft@taller +Message-ID: +MIME-Version: 1.0 +Content-Type: TEXT/plain; charset=us-ascii +Content-MD5: WooCnyaVzV2dMaC08r5XYg== +X-Mailer: dtmail 1.1.0 CDE Version 1.1 SunOS 5.5.1 sun4u sparc +Sender: owner-java-internal@qwerty.eng.sun.com +Precedence: bulk +Content-Length: 11314 +Status: RO +X-Status: +X-Keywords: +X-UID: 9 + + +---------------------------------------------------------------------- + + The JavaBeansTM Advisor + + Hot news and advice from the source! + + Issue #7 - August 5, 1997 + +The JavaBeans Advisor provides the latest news and advice to assist +JavaBeans developers in creating, using and reusing portable, +platform-independent JavaBeans components. + +Past issues of the JavaBeans Advisor are available at: + + http://java.sun.com/beans/Advisor.html + +---------------------------------------------------------------------- + +In this issue + + * beans.hot.news + o Register your Beans! Be part of Sun's JavaBeans Component Directory + o JavaBeans Migration Assistant for ActiveX available for download + o InfoBus specification available for download and public comment + o JFC Developer Release public download now available + o JavaBeans Bridge for ActiveX beta 5 available for download + * beans.developer.notes + o Correction to last month's note + * beans.events + o Java Internet Business Expo (JIBE), NY + * beans.tools + o Another tool to help with your JavaBeans development + * beans.learning + o New JavaBeans books and titles + * beans.in.the.news + o JavaWorld's new JavaBeans column, IBM's JavaBeans support and more + * beans.misc + o We want your feedback! + * beans.resources + o JavaBeans developer resources on the web + o Java marketing and support programs + * beans.keep.in.touch + +---------------------------------------------------------------------- + +[beans.hot.news] + + +Register your Beans! Be part of Sun's JavaBeans Component Directory + + Don't miss this opportunity to be included in Sun's new directory of + JavaBeans components. We've extended the registration deadline, so there's + still time to enroll. Register your Beans today! For more + information, or to register, see: + + http://java.sun.com/beans/form.html + + +JavaBeans Migration Assistant for ActiveX Available for Download + + The JavaBeans Migration Assistant for ActiveX is a tool that + generates JavaBeans code from an ActiveX control. This tool + analyzes an ActiveX control's properties and creates a 100% Pure + Java container that takes on the features of the ActiveX control and + then implements the component functions. If you are an ActiveX + developer, and you want to participate in the growing JavaBeans + market, this is the fastest way to leverage your existing investment + to gain an early foothold in this new market. + + The free JavaBeans Migration Assistant for ActiveX is available for + download at: + + http://java.sun.com/beans/assistant/ + + +InfoBus Specification Available for Download and Public Comment + + At JavaOne, Sun and Lotus Development announced that they were + working together to develop Lotus's InfoBus dynamic data interchange + architecture into a Java standard for use by JavaBeans developers. + The first draft technical specifications for InfoBus are now + available for download at: + + http://java.sun.com/beans/infobus/ + + +JFC Developer Release Public Download Now Available + + Sun and Netscape have announced the availability of the first + developer release of the Java Foundation Classes (JFC) for public + download through the Java Developer Connection. All of the JFC + components are JavaBeans components, so developers can easily bring + in other JavaBeans GUI components to enhance their applications. + For more information, see the JFC web site at: + + http://java.sun.com/products/jfc + + +JavaBeans Bridge for ActiveX Beta 5 Available Wednesday, August 6 + + The Beta 5 release of the JavaBeans Bridge for ActiveX will be + available for download at: + + http://java.sun.com/beans/bridge/ + This release includes administrative enhancements, better + Internet Explorer support, bug fixes, and an improved runtime version. + See the Readme file that comes with the JavaBeans Bridge for ActiveX + for more details. + + The JavaBeans Bridge for ActiveX allows any JavaBeans component to + be hosted by any legacy COM/OLE/ActiveX container. With the + JavaBeans Bridge for ActiveX, developers can migrate their + development efforts easily to JavaBeans today, while preserving + their investment in - and adding value to - any previous work based + on ActiveX. + + +---------------------------------------------------------------------- + +[beans.developer.notes] + + +Correction to Last Month's Note + + There was an error in last month's "New Beans from Old Beans" note. + In the section "Use BeanInfo to modify the features", it should have + read... + + Now, though we can modified the features through a BeanInfo class, + which in this case is using the support class + java.beans.SimpleBeanInfo. For example, in the code fragment + shown below we define an icon for the Bean, and we give it a + customizer class. + + package sunw.demo.buttons; + public class ExplicitButtonBeanInfo extends java.beans.SimpleBeanInfo { + ... + public java.awt.Image getIcon(int iconKind) { + ... + } + private final static Class customizerClass = OurButtonCustomizer.class; + } + + BeanInfo is a powerful mechanism that will help you in creating + new Beans from old Beans. + + We apologize for any inconvenience that this may have caused. + + +---------------------------------------------------------------------- + +[beans.events] + + +Java Internet Business Expo (JIBE) + + Java Internet Business Expo is the first-ever forum for the + Java-based business community. It will be held on August 25 - 28, + 1997 at the Jacob K. Javits Convention Center in New York City. + Register now for early bird rates! See: + + http://www.javaexpo.sbforums.com/root.html + + +---------------------------------------------------------------------- + +[beans.tools] + + + Another tool to help with your JavaBeans development: + + o RadJa by Applicom Software, LTD + + Note: The tools displayed above, and on the JavaBeans web site are + listed purely as a convenience to JavaBeans developers. Their + mention in no way confers an endorsement by Sun Microsystems, Inc. + + +---------------------------------------------------------------------- + +[beans.learning] + + +New JavaBeans Books and Titles + + Three new JavaBeans titles have been released to aid your + JavaBeans development efforts. New additions include: + + o How to Program JavaBeans + by Peter Coffee, et. al. Published by Ziff Davis Press. + + o Inside JavaBeans + by MindQ Publishing. Published by MindQ Publishing, Inc. + + o JavaBeans Developer's Resource + by Prashant Sridharan. Published by Prentice Hall Computer Books. + + For a more complete listing of JavaBeans titles in print, see: + + http://java.sun.com/beans/resources.html + + Note: The books and titles referenced below are listed purely as a + convenience to JavaBeans developers. Their mention here in no way + confers an endorsement by Sun Microsystems, Inc., nor any comment on + their accuracy or completeness. + + +---------------------------------------------------------------------- + +[beans.in.the.news] + + + o JavaWorld + A Walking Tour of JavaBeans + http://www.javaworld.com/javaworld/jw-08-1997/jw-08-beans.html + + o JavaWorld + Building a Bevy of Beans + http://www.javaworld.com/javaworld/jw-08-1997/jw-08-step.html + + o c|net + IBM Brews New Java Tools + http://www.news.com/News/Item/0,4,12212,00.html + + o Parts (LanTimes) + ShopTalk: An excerpt from Michael Morrison's Presenting JavaBeans + http://www.ltparts.com/ltparts/connect/shoptalk.htm + + +---------------------------------------------------------------------- + +[beans.misc] + + +We Want Your Feedback + + The JavaBeans Advisor is a free resource provided by Sun to the + JavaBeans developer community. We would like to know how the + Advisor is, or is not meeting your needs. Is the content relevant + to your development efforts? Why, or why not? What information + would you like to see added? Please let us know. Send your ideas + and comments to webmaster@wombat.eng.sun.com. + + +---------------------------------------------------------------------- + +[beans.resources] + + +JavaBeans Developer Resources + + If you are developing or deploying JavaBeans components, your + one-stop shop for JavaBeans information, tools and resources is the + JavaBeans Developer Resources page at: + + http://java.sun.com/beans/resources.html + + You'll find pointers to JavaBeans books, technical training, + tutorials, whitepapers, newsletters, FAQs, and other valuable + information here. + + +JavaSelect + + The Java Select Program is an exclusive information resource + designed to provides developers with a set of marketing and + technical services that can accelerate product development, focus + your marketing efforts, and expose your products and services to the + right audience, at the right time. + + As a Java Select member, you leverage expertise that can help you + add value to the Java platform and reinforce the Java message of + ubiquity and "write once, run anywhere". At the same time, your + company can take advantage of the close association with Sun to + build recognition in the growing worldwide market for Java products + and services. + + Full membership in the Java Select Program is U.S. $4,995 annually. + Associate membership is $2,995 annually, and includes no technical + support incidents. + + For more information and to join, see: + + http://java.sun.com/marketing/javaselect/ + + +Java Developer Connection + + Membership in the Java Developer Connection is free and provides + valuable information on Java, including JavaBeans. Services + include: technical support information through a searchable + database, discussion forums, training and special events, product + discounts, and convenient access to Java documentation. For more + information and to join, see: + + http://java.sun.com/jdc/ + + +---------------------------------------------------------------------- + +[beans.keep.in.touch] + + +comp.lang.java.beans + + comp.lang.java.beans is a public newsgroup that is a replacement for + the beans-users list. We encourage developers to start using the + comp.lang.java.beans group for new topics instead of beans-users. + + +Frequently Asked Questions (FAQ) + + The JavaBeans FAQ is updated on a regular basis with new + information, technical tips, etc. See + + http://java.sun.com/beans/FAQ.html + + +beans-info + + We maintain a low-volume mailing list for regular information about + JavaBeans updates and events. To subscribe, send email to + LISTERV@JAVASOFT.COM + + In the body of the message, type: + SUBSCRIBE BEANS-INFO + + +beans-business + + For any specific JavaBeans business issues, questions or comments, + send e-mail to beans-business@wombat.eng.sun.com. + + +JavaBeans Comments and Feedback + + If you have comments or feedback on the JavaBeans architecture + please send them to java-beans@java.sun.com. Unfortunately because + of the volume of interest in JavaBeans we can't respond individually + to reviewer comments, but we do carefully read and consider all the + input we receive. + + +Reporting Bugs + + Use our Bug Report page to report JavaBeans or BDK bugs at: + + http://java.sun.com/beans/BugReport.html + + +---------------------------------------------------------------------- + + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/11 b/glassfish-runner/mail-platform-tck/mailboxes/test3/11 new file mode 100644 index 0000000000..81efcdb8fb --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/11 @@ -0,0 +1,101 @@ +From jmk@cochin Thu Feb 12 14:06:32 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id MAA02058; Wed, 6 Aug 1997 12:16:30 -0700 +Received: from saturn.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id MAA05234; Wed, 6 Aug 1997 12:16:24 -0700 +Received: from SEGATE.SUNET.SE (segate.sunet.se [192.36.125.6]) by saturn.Sun.COM (SMI-8.6/mail.byaddr) with ESMTP id MAA29971; Wed, 6 Aug 1997 12:16:21 -0700 +Received: from segate.sunet.se by SEGATE.SUNET.SE (LSMTP for OpenVMS v1.1a) with SMTP id <5.7107A165@SEGATE.SUNET.SE>; Wed, 6 Aug 1997 21:16:17 +0100 +Received: from SEGATE.SUNET.SE by SEGATE.SUNET.SE (LISTSERV release 1.8c) with + NJE id 320973 for MHTML@SEGATE.SUNET.SE; Wed, 6 Aug 1997 21:16:16 + +0200 +Received: from paris.ics.uci.edu by SEGATE.SUNET.SE (LSMTP for OpenVMS v1.1a) + with SMTP id <0.70032CC1@SEGATE.SUNET.SE>; Wed, 6 Aug 1997 21:16:15 + +0100 +Received: from nma.com by paris.ics.uci.edu id aa26191; 6 Aug 97 12:11 PDT +Received: from paris.ics.uci.edu by norn.nma.com id aa10294; 6 Aug 97 12:05 PDT +To: mhtml@segate.sunet.se +Subject: Re: from draft-ietf-http-negotiation-03.txt +In-reply-to: Your message of "Tue, 05 Aug 1997 22:02:31 +0200." + +Reply-to: mhtml@segate.sunet.se +From: Einar Stefferud +MIME-Version: 1.0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: <10290.870894303.1@nma.com> +Date: Wed, 06 Aug 1997 12:05:04 -0700 +Message-ID: <10292.870894304@nma.com> +Sender: owner-mhtml@segate.sunet.se +Content-Length: 2638 +Status: RO +X-Status: +X-Keywords: +X-UID: 10 + +Thanks Jacob -- My concern is that we shoudl not summarily, without +proper cause, discourage or disable future abilities of developers to +deal with MHTML hyperlinks across separate messages. + +If we suggest, or alowe interpretation to conclude that it is not the +right thing to enable, surely many developers will seriously disable +any possible potential. + +So, if we see how to do it, then we need to identify the possibilities +and state clearly that it is possible, is OK to do, and is in fact +encouraged where ever possible. + +I think it might only be a matter of emphasis. +Lets discuss this in Munich. + +Cheers...\Stef + + +>From your message Tue, 5 Aug 1997 22:02:31 +0200: +} +}At 09:30 -0700 97-08-05, Einar Stefferud wrote: +}> Thanks Jacob -- Looks to me that you have the topic well covered;-)... +}> +}> Now, have we thought much about how all this will work if two separate +}> messages want to reference each others MIME parts? +}> +}> Suppose that I subscribe via EMail to a periodical of some kind that +}> will include future references to MIME barts in past issues, by URL or +}> by MID/CID references. +}> +}> Does our MHTML spec cover this situation, or does it just punt on this +}> question? Seems to me that this scenaaario is clearly in our future. +} +}RFC 2110 probably allows this, since it says that Content-ID can +}be used to identify a body part, and MIME Content-ID-s are globally +}unique according to RFC 2110. +} +}However, RFC 2110 says: +} +} A body part, such as a text/HTML body part, may contain hyperlinks to +} objects which are included as other body parts in the same message +} and within the same multipart/related content. +} +}And this might of course be interpreted to mean that hyperlinks to +}body parts in other messages are not allowed, but I do not think +}that was the intention. +} +}RFC 2110 also says: +} +} If a message contains one or more MIME body parts containing links +} and also contains as separate body parts, data, to which these links +} (as defined, for example, in RFC 1866 [HTML2]) refers, then this +} whole set of body parts (referring body parts and referred-to body +} parts) SHOULD be sent within a multipart/related body part as defined +} in [REL]. +} +}This however only applies to body parts within the same message, +}so this probably will not forbid references to body parts in other +}messages. +} +}Anothing thing is that many implementations may have problems with +}links between messages! +} +}------------------------------------------------------------------------ +}Jacob Palme (Stockholm University and KTH) +}for more info see URL: http://www.dsv.su.se/~jpalme + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/12 b/glassfish-runner/mail-platform-tck/mailboxes/test3/12 new file mode 100644 index 0000000000..ae3b075f13 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/12 @@ -0,0 +1,120 @@ +From jmk@cochin Thu Feb 12 14:06:32 1998 -0800 +Return-Path: +Received: from krakatoa.Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA24579; Wed, 6 Aug 1997 10:31:14 -0700 +Received: from Eng.Sun.COM by krakatoa.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id KAA26630; Wed, 6 Aug 1997 10:31:07 -0700 +Received: from Ebay.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA06193; Wed, 6 Aug 1997 10:31:06 -0700 +Received: from ssattachments.EBay.Sun.COM by Ebay.Sun.COM (SMI-8.6/SMI-5.3) + id KAA27475; Wed, 6 Aug 1997 10:31:06 -0700 +Received: by ssattachments.EBay.Sun.COM (SMI-8.6/SMI-SVR4) + id KAA06185; Wed, 6 Aug 1997 10:30:54 -0700 +Date: Wed, 6 Aug 1997 10:30:54 -0700 +Message-Id: <199708061730.KAA06185@ssattachments.EBay.Sun.COM> +From: mitch.silverstein@East +To: mail-eng@krakatoa.eng.sun.com, mitch.silverstein@East, vivian.wong@Eng +Precedence: junk +Reply-To: mitch.silverstein@East +Subject: BugId 4070025 : (P4/S4) New Bug Created, Please Evaluate +Content-Length: 2361 +Status: RO +X-Status: +X-Keywords: +X-UID: 11 + + Bug Id: 4070025 + Product: cde + Category: cde + Subcategory: mail + Release summary: cde1.2_37 + Bug/Rfe/EOU: rfe + State: dispatched + Development Status: + Synopsis: Allow separate, persistent message view window. + Keywords: dtmail, separate, view, window + Severity: 4 + Severity Impact: Limited + Severity Functionality: Secondary + Priority: 4 + Responsible Manager: vivianw + Responsible Engineer: + Description: +Rather than have the message displayed in a pane below the headers, +customer would like the option to have a separate window where the +message contents could be viewed. This window would be re-used for +the next message, so that only one view window would ever need to +be active. Current functionality of double-clicking on a header +to bring up a separate window would not be affected. + + + Justification: + + Work around: + + Suggested fix: +One way to implement this option would be to set the message pane height to +zero as a flag to maintain this separate view window. This would allow users +to continue to use the current interface unchanged. + + State triggers: + Accepted: no + Evaluation complete: no + Evaluation: + + Commit to fix in releases: + Fixed in releases: + Integrated in releases: + Verified in releases: + Closed because: + Incomplete because: + Duplicate of: + Introduced in Release: + Root cause: + Program management: + Fix affects documentation: no + Exempt from dev rel: no + Fix affects L10N: + Interest list: + Patch id: + Comments: + + See also: + Hooks: + Hook 1(hook1): + Hook 2(hook2): + Hook 3(hook3): + Hook 4(hook4): + Hook 5(hook5): + Hook 6(hook6): + History: + Submitter: mitch@east Date: Aug 6 1997 10:26AM + Dispatch Operator: bugtraq Date: Aug 6 1997 10:26AM + Acceptor: Date: + Evaluator: Date: + Commit operator: Date: + Fix operator: Date: + Integrating operator: Date: + Verify operator: Date: + Closeout operator: Date: + Called in by: + Customer: + Company: AMP + Employee: Greg Kranz + User Role: B + User Type: E + Release: cde1.2_37 + Hardware version: generic + O/S version (unbundled products): s297_37c + SO Number: + Sun Contact: mitch@east + Contact Name: Mitchell Silverstein + Contact Mailaddr: mitch.silverstein@East + Escalation(s): + Public Summary: + + Old Name: + Bug End: +-------------------------------------------------------------------------------- + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/13 b/glassfish-runner/mail-platform-tck/mailboxes/test3/13 new file mode 100644 index 0000000000..a85e837084 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/13 @@ -0,0 +1,54 @@ +From jmk@cochin Thu Feb 12 14:06:32 1998 -0800 +Return-Path: +Received: from cochin.eng.sun.com by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA24749; Wed, 6 Aug 1997 10:32:48 -0700 +Received: from Eng.Sun.COM by cochin.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA21069; Wed, 6 Aug 1997 10:32:45 -0700 +Received: from saturn.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA06621; Wed, 6 Aug 1997 10:32:44 -0700 +Received: from java1.javasoft.com (java0.javasoft.com [204.160.241.100]) by saturn.Sun.COM (SMI-8.6/mail.byaddr) with ESMTP id KAA22620; Wed, 6 Aug 1997 10:32:43 -0700 +Received: from java1 (java1.javasoft.com [204.160.241.101]) + by java1.javasoft.com (8.8.4/8.8.4) with SMTP + id KAA13940; Wed, 6 Aug 1997 10:14:18 -0700 (PDT) +Received: from JAVASOFT.COM by JAVASOFT.COM (LISTSERV-TCP/IP release 1.8b) with + spool id 516245 for BEANS-USERS@JAVASOFT.COM; Wed, 6 Aug 1997 + 10:14:14 -0700 +Received: from gemstone.com (root@slcgate.gemstone.com [207.79.207.46]) by + java1.javasoft.com (8.8.4/8.8.4) with SMTP id JAA01852 for + ; Wed, 6 Aug 1997 09:47:35 -0700 (PDT) +Received: by gemstone.com (Smail-3.2.0.91 1997-Jan-14 #1) id + ; Wed, 6 Aug 1997 09:57:00 -0700 (PDT) +Received: from gharlane.gemstone.com by servio.slc.com with smtp (Smail3.1.28.1 + #1) id m0ww9Ld-001H7LC; Wed, 6 Aug 97 09:54 PDT +Received: by gharlane.gemstone.com (Smail3.1.29.1 #4) id m0ww9Lc-000DM5C; Wed, + 6 Aug 97 09:54 PDT +Message-ID: +Date: Wed, 6 Aug 1997 09:54:08 -0700 +Reply-To: cohenb@gemstone.com +Sender: A public mailing list for the discussion of JavaBeans + +From: Bruce Cohen +Subject: Re: Distributed Object +To: Multiple recipients of list BEANS-USERS +In-Reply-To: Your message of Tue, 05 Aug 1997 19:28:24 -0700. + +Content-Length: 841 +Status: RO +X-Status: +X-Keywords: +X-UID: 12 + +"Frentress, James" asks: +>> Any guys out there doing distributed object using beans? +>> Any one know whats the progress for distributed object with java? + +My company, GemStone Systems, Inc. has introduced a Java distributed +application object server called GemStone/J in which the client API is +expressed as a set of beans, and which provides tools that allow you to build +remote bean adaptors easily. See http://www.gemstone.com/Products/java.htm +----------------------------------------------------------------------------- +Bruce Cohen, | email: cohenb@gemstone.com +GemStone Systems, Inc. | phone: (503)533-3602 +20575 NW Von Neumann Drive | fax: (503)629-8556 +Beaverton, OR USA 97006 | web: http://www.gemstone.com + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/14 b/glassfish-runner/mail-platform-tck/mailboxes/test3/14 new file mode 100644 index 0000000000..6868fcaa14 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/14 @@ -0,0 +1,108 @@ +From jmk@cochin Thu Feb 12 14:06:33 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA25200; Wed, 6 Aug 1997 10:41:17 -0700 +Received: from java-aces.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA09134; Wed, 6 Aug 1997 10:41:09 -0700 +Received: by java-aces.eng.sun.com (SMI-8.6/SMI-SVR4) + id MAA20160; Wed, 6 Aug 1997 12:32:30 -0500 +Received: from Eng.Sun.COM by java-aces.eng.sun.com (SMI-8.6/SMI-SVR4) + id MAA20155; Wed, 6 Aug 1997 12:32:27 -0500 +Received: from shadows.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA08528; Wed, 6 Aug 1997 10:38:27 -0700 +Received: from Eng.Sun.COM by shadows.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA26525; Wed, 6 Aug 1997 10:38:24 -0700 +Received: from sunmail1.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA08319; Wed, 6 Aug 1997 10:38:24 -0700 +Received: from Corp.Sun.COM by sunmail1.Sun.COM (SMI-8.6/SMI-4.1) + id KAA27611; Wed, 6 Aug 1997 10:38:23 -0700 +Received: from chico.Corp.Sun.COM by Corp.Sun.COM (SMI-8.6/SMI-5.3) + id KAA00124; Wed, 6 Aug 1997 10:38:19 -0700 +Received: from fantazia by chico.Corp.Sun.COM (SMI-8.6/SMI-SVR4) + id KAA28008; Wed, 6 Aug 1997 10:38:20 -0700 +Date: Wed, 6 Aug 1997 10:33:04 -0700 (PDT) +From: Minnie Tanglao +Reply-To: Minnie Tanglao +Subject: Re: HotJava & Threads +To: java-internal@Sun.COM, Philip.Doyle@UK +Message-ID: +MIME-Version: 1.0 +Content-Type: TEXT/plain; charset=us-ascii +Content-MD5: 3Jv6tO47lR4raAvjmNVaHA== +X-Mailer: dtmail 1.1.0 CDE Version 1.1 SunOS 5.5.1 sun4u sparc +Sender: owner-java-internal@qwerty.eng.sun.com +Precedence: bulk +Content-Length: 1747 +Status: RO +X-Status: +X-Keywords: +X-UID: 13 + + +If you haven't already done so, you might have to instantiate a Thread that +would talk to the server. This way, the AWT thread will not control the entire applet. + +Something like this (JDK 1.0.2 since you mentioned using handleEvent): + +public class JustAnotherApplet extends Applet implements Runnable { + + Button sendButton = new Button("Send"); + + public void init() { + : + add(sendButton); + : + } + public boolean handleEvent(Event e) { + if (e.target.equals(sendButton) && e.id == Event.ACTION_EVENT) { + sendMessenger(); + return(true); + } + : + : + } + private void sendMessenger() { + Thread messengerThread = new Thread(this); + messengerThread.start(); + } + public void run() { + // talk to server + } +} + +Just a thought, + +-Minnie + +> Date: Wed, 6 Aug 1997 11:12:12 +0100 (BST) +> From: Philip Doyle - Sun UK - Flag IR +> Subject: HotJava & Threads +> To: java-internal@Sun.COM +> MIME-Version: 1.0 +> Content-MD5: Sm58PwedFjRS9MM2ch19nA== +> +> Hi +> +> I hava an applet which communicates with a server side application using +> sockets. +> +> It sends messages to the server side, triggered by button clicks in the +> applets handleEvent method. It receieves messages from the server side in +> the applets run method. +> +> Occasionally, the applet sends a message, the server side app generates +> the response but the applet receieves nothing. Using jdb on appletviewer +> It looks like an AWT-Input thread runs to pick up the button click. +> This causes the applets run method to sleep. It looks like the applets run +> method never resumes. +> +> If the JVM is time-slicing, I have trouble understanding why the run method +> never restarts. +> +> Any input into this (urgent) problem would be welcome. +> +> regards +> Phil +> + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/15 b/glassfish-runner/mail-platform-tck/mailboxes/test3/15 new file mode 100644 index 0000000000..244b3bf136 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/15 @@ -0,0 +1,51 @@ +From jmk@cochin Thu Feb 12 14:06:33 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA25648; Wed, 6 Aug 1997 10:48:04 -0700 +Received: from java-aces.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA10789; Wed, 6 Aug 1997 10:47:56 -0700 +Received: by java-aces.eng.sun.com (SMI-8.6/SMI-SVR4) + id MAA20180; Wed, 6 Aug 1997 12:39:10 -0500 +Received: from Eng.Sun.COM by java-aces.eng.sun.com (SMI-8.6/SMI-SVR4) + id MAA20175; Wed, 6 Aug 1997 12:39:09 -0500 +Received: from shadows.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA10194; Wed, 6 Aug 1997 10:45:10 -0700 +Received: from Eng.Sun.COM by shadows.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA26532; Wed, 6 Aug 1997 10:45:08 -0700 +Received: from sunmail1.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA10191; Wed, 6 Aug 1997 10:45:07 -0700 +Received: from Eng.Sun.COM by sunmail1.Sun.COM (SMI-8.6/SMI-4.1) + id KAA28182; Wed, 6 Aug 1997 10:45:06 -0700 +Received: from hape.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA10185; Wed, 6 Aug 1997 10:45:06 -0700 +Received: from positive.eng.sun.com by hape.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA18569; Wed, 6 Aug 1997 10:45:03 -0700 +Received: by positive.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA01406; Wed, 6 Aug 1997 10:45:05 -0700 +Date: Wed, 6 Aug 1997 10:45:05 -0700 +From: linden@hsmpk14a-105.eng.sun.com (Peter van der Linden) +Message-Id: <199708061745.KAA01406@positive.eng.sun.com> +To: java-internal@Sun.COM, bakke@hsmpka-122.eng.sun.com +Subject: Re: PLEASE VERIFY +X-Sun-Charset: US-ASCII +Sender: owner-java-internal@qwerty.eng.sun.com +Precedence: bulk +Content-Length: 395 +Status: RO +X-Status: +X-Keywords: +X-UID: 14 + +I wouldn't say that. + +I would say something like + + The Java Development Kit (JDK) provides a complete software development + and execution environment for the Java language. + + Java was designed with simplicity in mind, and Java programs are binary + compatible on all systems, so it is simpler, easier, and faster than + programming in C++. + +Don't believe everything you read on the web. + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/16 b/glassfish-runner/mail-platform-tck/mailboxes/test3/16 new file mode 100644 index 0000000000..c37a511890 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/16 @@ -0,0 +1,69 @@ +From jmk@cochin Thu Feb 12 14:06:33 1998 -0800 +Return-Path: +Received: from cochin.eng.sun.com by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA23398; Wed, 6 Aug 1997 10:15:07 -0700 +Received: from Eng.Sun.COM by cochin.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA21066; Wed, 6 Aug 1997 10:15:05 -0700 +Received: from saturn.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA01874; Wed, 6 Aug 1997 10:15:02 -0700 +Received: from java1.javasoft.com (java0.javasoft.com [204.160.241.100]) by saturn.Sun.COM (SMI-8.6/mail.byaddr) with ESMTP id KAA16368; Wed, 6 Aug 1997 10:14:54 -0700 +Received: from java1 (java1.javasoft.com [204.160.241.101]) + by java1.javasoft.com (8.8.4/8.8.4) with SMTP + id JAA05880; Wed, 6 Aug 1997 09:56:51 -0700 (PDT) +Received: from JAVASOFT.COM by JAVASOFT.COM (LISTSERV-TCP/IP release 1.8b) with + spool id 516062 for BEANS-USERS@JAVASOFT.COM; Wed, 6 Aug 1997 + 09:56:43 -0700 +Received: from eserver.paradigm.bc.ca (smtpgate.paradigmdev.com [207.107.56.5]) + by java1.javasoft.com (8.8.4/8.8.4) with ESMTP id JAA04541 for + ; Wed, 6 Aug 1997 09:53:41 -0700 (PDT) +Received: by smtpgate.paradigmdev.com with Internet Mail Service (5.0.1458.49) + id ; Wed, 6 Aug 1997 10:06:02 -0700 +X-Priority: 3 +MIME-Version: 1.0 +X-Mailer: Internet Mail Service (5.0.1458.49) +Content-Type: text/plain +Message-ID: <57B675B21506D1118BAB0060081C295D525B@VSERVER> +Date: Wed, 6 Aug 1997 10:02:35 -0700 +Reply-To: A public mailing list for the discussion of JavaBeans + +Sender: A public mailing list for the discussion of JavaBeans + +From: Howard Katz +Subject: Re: a BeanBox question +To: Multiple recipients of list BEANS-USERS +Content-Length: 1212 +Status: RO +X-Status: +X-Keywords: +X-UID: 15 + +The list contains public no-arg methods whose return type is void PLUS +one-arg methods whose single arg is the event type emitted by the source +bean. + +Howard + +> -----Original Message----- +> From: JWLI.US.ORACLE.COM [SMTP:JWLI@US.ORACLE.COM] +> Sent: Tuesday, August 05, 1997 3:25 PM +> To: Multiple recipients of list BEANS-USERS +> Subject: a BeanBox question +> +> In BeanBox, when you wire an event source to an destination bean, +> a list of the bean's public methods is brought up. However, looks +> like the list only gives public methods whose return type is void. +> Is this a limitation of current BDK verion, or any other IDE could +> have similar limitations(which I think is unacceptable for a +> commercial +> IDE, if it supports wiring)? Anyone know this about VisualAge for +> Java? +> +> Thanks! +> -Jerry +> ==================================================================== +> Jerry Jingwei Li Voice : (415)506-5932 +> Java & Object Services Group Fax : (415)506-7303 +> Application Server Division Email : jwli@us.oracle.com +> Oracle Corporation, Redwood Shores, CA 94065 +> ==================================================================== + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/17 b/glassfish-runner/mail-platform-tck/mailboxes/test3/17 new file mode 100644 index 0000000000..c167e66033 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/17 @@ -0,0 +1,193 @@ +From jmk@cochin Thu Feb 12 14:06:33 1998 -0800 +Return-Path: +Received: from icdev.eng.sun.com by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA23645; Wed, 6 Aug 1997 10:18:56 -0700 +Received: from shorter.eng.sun.com by icdev.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA02238; Wed, 6 Aug 1997 10:18:49 -0700 +Received: from scylla.eng.sun.com by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA23638; Wed, 6 Aug 1997 10:18:53 -0700 +Received: from java-aces.eng.sun.com by scylla.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA01643; Wed, 6 Aug 1997 10:18:52 -0700 +Received: by java-aces.eng.sun.com (SMI-8.6/SMI-SVR4) + id MAA20053; Wed, 6 Aug 1997 12:12:01 -0500 +Received: from Eng.Sun.COM by java-aces.eng.sun.com (SMI-8.6/SMI-SVR4) + id MAA20048; Wed, 6 Aug 1997 12:11:55 -0500 +Received: from East.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA02626; Wed, 6 Aug 1997 10:17:55 -0700 +Received: from suneast.East.Sun.COM by East.Sun.COM (SMI-8.6/SMI-5.3) + id NAA20892; Wed, 6 Aug 1997 13:17:54 -0400 +Received: from atlantic.East.Sun.COM by suneast.East.Sun.COM (SMI-8.6/SMI-SVR4) + id NAA07901; Wed, 6 Aug 1997 13:17:55 -0400 +Received: from merrimac-1 by atlantic.East.Sun.COM (SMI-8.6/SMI-SVR4) + id NAA16808; Wed, 6 Aug 1997 13:19:31 -0400 +Date: Wed, 6 Aug 1997 13:16:30 -0400 (EDT) +From: Mike Carney +Reply-To: Mike Carney +Subject: Re: JSTech: Sharing NT and Solaris DHCP server IP address ranges? +To: Mike Pellegrino +cc: Geordie.Klueber@East, jstech@java-aces.eng.sun.com +In-Reply-To: "Your message with ID" +Message-ID: +Mime-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Sender: owner-jstech@java-aces.eng.sun.com +Precedence: bulk +Content-Length: 6924 +Status: RO +X-Status: +X-Keywords: +X-UID: 16 + +++ + + + + + + + + + + + + + + + + + + + + + + + + ++ + +> Geordie, +> I'm being told by my client that NT supports multiple DHCP servers that can +> manage overlapping dynamic IP address ranges, i.e. each server has common +> ip address ranges between each other. In fact, they are using this scheme +> to provide some redundancy in their DHCP server setup. + +You get this for free among Solaris DHCP servers if NIS+ is selected as the +datastore for dhcp data. + +> Is this capable of +> being done for the javastation boot DHCP servers as a redundant +> architecture scheme? If yes, then is co-existence between an NT DHCP +> server and Solaris DHCP server with overlapping dynamic address ranges +> doable? + +Yes and No... + +Yes: +For the current version of the JavaStation (mr coffee), mac addresses are +"bolted" to the IP addresses for each JavaSTation (this is because +rarp/bootparams are used by the PROM and the standalone boot program to +locate and download the JavaOS, and DHCP has been hardwired to return the +same address as in.rarpd). So, you can make the same MAC address to IP +address mappings in the NT server's database and the Solaris Server's dhcp +network tables. In the Solaris server's dhcp network tables, the "server +ip" field has the affect that if the Solaris server's ip address is listed, +it'll respond immediately. If the NT server's address is there, the Solaris +server will consider the address "owned" by the NT server, and will let the +NT server get first crack at serving the client. If the client is still +requesting an address after 10 seconds, the Solaris server will respond. +The key is to configure both servers to return the same address for a +given mac address, and to return the same "payload" of configuration +parameters. + +No: +For the next instance of the JavaStation (Krups) and standard DHCP clients like +Solaris, NT, Windows95, etc, one IP address good as another. Thus, You don't +want to "bolt" a mac address to an IP address - you'd like to let the DHCP +server and client to "work it out" as to which IP address a specific client +gets. In this case, it's best to divide the IP address ranges between servers. +This is to prevent the situation where both servers have allocated an IP +address to the same client (not the same IP address) due to one or the other +servers being unavailable during the time a client's lease expires. + + +> I'm trying to understand DHCP config, in general, so if you can +> also point me to any docs on the topic, it would be appreciated. + +There's answerbook docs in 2.6, as well as the manual pages: dhcp, in.dhcpd, +dhcptab, dhcp_network. + + +I responded to Charles' mail as follows: + +> From mwc@merrimac-1 Thu Jul 17 14:28:41 1997 +> Date: Thu, 17 Jul 1997 14:28:39 -0400 (EDT) +> From: Mike Carney +> Reply-To: Mike Carney +> Subject: Re: JSTech: Compatibility Problem with JavaStations/Server and NT works +> tations +> To: Charles Ditzel - TE Sun Seattle 206-889-1328 +> cc: jstech@java-aces.Eng.Sun.COM +> In-Reply-To: "Your message with ID" .west> +> Message-ID: +> Content-Type: text +> X-Sun-Text-Type: ascii +> Content-Length: 851 +> +> +> > A customer (Boeing) is having some nasty compatibility problems between +> > a Sun server/JavaStation configuration and their NT workstations. +> > +> > I seem to remember originally a problem in Beta with Sun servers +> > responding to DHCP requests from NT servers (feel free to correct my +> > memory :-) +> +> This makes no sense. servers don't talk to one another. +> +> > +> > Anyway Boeing which is evaluating JavaStations has the following problem +> > (quote) : +> > +> > "the server answers all DHCP requests which screws up 200 NT +> > wkstns (your bug)" +> +> A DHCP server is going to respond to DHCP requests, regardless. The solaris +> DHCP server is serving MS NT clients at many sites. Do you have any useful +> information? (The above quote doesn't tell us anything). + +His reply and my subsequent response: + +> From mwc@merrimac-1 Thu Jul 17 15:42:26 1997 +> Date: Thu, 17 Jul 1997 15:42:24 -0400 (EDT) +> From: Mike Carney +> Reply-To: Mike Carney +> Subject: Re: JSTech: Compatibility Problem with JavaStations/Server and NT works +> tations +> To: Charles Ditzel - TE Sun Seattle 206-889-1328 +> cc: Mike Carney , js-tech@java-aces.eng.sun.com +> In-Reply-To: "Your message with ID" .west> +> Message-ID: +> Content-Type: text +> X-Sun-Text-Type: ascii +> Content-Length: 880 +> +> > I was trying to illicit more information regarding a DHCP or Bootparam +> > problem with NT and our JavaStations and servers - that was acknowledged to +> > exist in a previous release awhile back. I have done a little more research +> > since the email went out and DID discover that a problem DID IN FACT exist +> > (and may still exist - that is what I was trying to ascertain) in the +> > interaction between : +> > +> > o a JavaStation that is booting and the NT 3.51 systems which +> > respond to it (prior to a Netra J boot server responding). +> +> So the problem you are seeing is that an NT DHCP server is responding to the +> JavaStation before the Solaris DHCP server does? Or is it that the portmapper +> on the NT boxes is responding to the BOOTPARAMS whoami request before the +> solaris box? +> +> Mike Carney +> SNT Internet Engineering +> Sun Microsystems, Inc. +> 2 Elizabeth Drive +> Chelmsford, MA 01824 + + +Before you start hacking up your DHCP configuration, you really should find +out what the "real" problem is. As I said above, that quote doesn't give +any information. From this mail, there isn't a DHCP bug at all: it's just that +some vendor's portmapper implementation running on the NT boxes is responding +inappropriately. + + + +Mike Carney +SNT Internet Engineering +Sun Microsystems, Inc. +2 Elizabeth Drive +Chelmsford, MA 01824 + +++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ++ +++ This alias tends to generate a tremendous volume of mail. If you wish, ++ +++ you can resubscribe to the digest version of the list, which is sent out ++ +++ just once a day. If you don't already know how to do this, please send ++ +++ mail to majordomo@java-aces.eng.sun.com with the word "help" in the ++ +++ message body (the subject line is ignored). ++ +++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ++ + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/18 b/glassfish-runner/mail-platform-tck/mailboxes/test3/18 new file mode 100644 index 0000000000..33e74f8ed6 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/18 @@ -0,0 +1,42 @@ +From jmk@cochin Thu Feb 12 14:06:34 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA22664; Wed, 6 Aug 1997 10:04:16 -0700 +Received: from saturn.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA28956; Wed, 6 Aug 1997 10:04:13 -0700 +Received: from netcom12.netcom.com (netcom12.netcom.com [192.100.81.124]) by saturn.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id KAA12495 for ; Wed, 6 Aug 1997 10:04:14 -0700 +Received: from kui (sgigate.SGI.COM [204.94.209.1]) by netcom12.netcom.com (8.6.13/Netcom) + id KAA09838; Wed, 6 Aug 1997 10:04:13 -0700 +Sender: sght@intouch-software.com +Message-ID: <33E8AEB2.2992@intouch-software.com> +Date: Wed, 06 Aug 1997 10:04:50 -0700 +From: Steven Tom +Organization: Intouch Software +X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.5.1 sun4m) +MIME-Version: 1.0 +To: John Mani +Subject: lunch +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: 7bit +Content-Length: 290 +Status: RO +X-Status: +X-Keywords: +X-UID: 17 + +I was thinking if you'd like to see Dave Curley, +his wife and kid, maybe we should +do dinner tonight instead of lunch today. + +Haven't decided on a place yet. + +What do you prefer? + +-steve + +-- +Steve Tom +Intouch Software, Inc. +Voice: 408-278-9457; Fax: 408-975-0663 +sght@intouch-software.com + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/19 b/glassfish-runner/mail-platform-tck/mailboxes/test3/19 new file mode 100644 index 0000000000..bcf384226d --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/19 @@ -0,0 +1,55 @@ +From jmk@cochin Thu Feb 12 14:06:34 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id MAA00941; Wed, 6 Aug 1997 12:00:52 -0700 +Received: from cde-serv.Eng.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id LAA26572; Wed, 6 Aug 1997 11:56:32 -0700 +Received: from Eng.Sun.COM by cde-serv.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id MAA07657; Wed, 6 Aug 1997 12:13:36 -0700 +Received: from sunmail1.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id LAA00269; Wed, 6 Aug 1997 11:55:47 -0700 +Received: from West.Sun.COM by sunmail1.Sun.COM (SMI-8.6/SMI-4.1) + id LAA04401; Wed, 6 Aug 1997 11:55:48 -0700 +Received: from cypress.West.Sun.COM by West.Sun.COM (SMI-8.6/SMI-5.3) + id LAA22257; Wed, 6 Aug 1997 11:55:46 -0700 +Received: from rex.West.Sun.COM (rex70) by cypress.West.Sun.COM (5.0/SMI-SVR4) + id AA17268; Wed, 6 Aug 1997 11:55:46 -0700 +Received: from babu.West.Sun.COM by rex.West.Sun.COM (4.1/SMI-4.1-np392) + id AA03822; Wed, 6 Aug 97 11:55:45 PDT +Received: by babu.West.Sun.COM (SMI-8.6/SMI-SVR4) + id LAA07360; Wed, 6 Aug 1997 11:52:45 -0700 +Date: Wed, 6 Aug 1997 11:52:45 -0700 +From: hae@rex75.West (Hae Hirdler) +Message-Id: <199708061852.LAA07360@babu.West.Sun.COM> +To: cde-interest@Sun.COM +Subject: screenblank with animated saver +Cc: hae@babu.West +X-Sun-Charset: US-ASCII +Content-Length: 655 +Status: RO +X-Status: +X-Keywords: +X-UID: 18 + +** Hello! I am not in this alias. Please include me in your reply. ** + +The dtscreen (-mode option) allows an animated image display like pyro +or qix, but it looks like dtscreen is used with a screenlock feature +(user locks the screen). + + +My customer is interested in using the same animated image display +with a screenblank feature (inactivity auto timeout). The default +seems to make the screen go blank. + +Is this possible to use an animated image instead of going blank +with the screenblank, and any tips on how to do it? + +I guess what I am really looking for here is a "ScreenAminated with +a timeout" instead of a screenblank :). + + +Regards, + +-hh + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/2 b/glassfish-runner/mail-platform-tck/mailboxes/test3/2 new file mode 100644 index 0000000000..b1f8ea17f5 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/2 @@ -0,0 +1,61 @@ +From jmk@cochin Thu Feb 12 14:06:30 1998 -0800 +Return-Path: +Received: from rita.eng.sun.com by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA15773; Fri, 20 Jun 1997 10:25:51 -0700 +Received: from labyrinth.eng.sun.com by rita.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA06857; Fri, 20 Jun 1997 10:25:49 -0700 +Received: from labyrinth by labyrinth.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA03369; Fri, 20 Jun 1997 10:25:02 -0700 +Date: Fri, 20 Jun 1997 10:25:02 -0700 (PDT) +From: John Russo +Reply-To: John Russo +Subject: Re: Attachment dialog +To: javamail@rita +Message-ID: +MIME-Version: 1.0 +Content-Type: TEXT/plain; charset=us-ascii +Content-MD5: nCvZV8LEH92j0CceprVrcw== +X-Mailer: dtmail 1.1.0 CDE Version 1.1_48 SunOS 5.5.1 sun4u sparc +Content-Length: 1253 +Status: RO +X-Status: +X-Keywords: +X-UID: 1 + +We couldn't abandon something we never had ;) I guess we could +abandon the idea of double click, but it's my understanding if +there's a double click in the system now, it's a bug. + +BTW - I'm not discounting the merits of double-click. This is +just the way I understand the spec to-date. + +> From: cotton@snow-goon (Chris Cotton) +> Date: 20 Jun 1997 18:13:33 GMT +> To: mspivak@apilon, jmk@shorter, gentner@apilon +> Cc: javamail@rita +> Subject: Re: Attachment dialog +> Content-Transfer-Encoding: 7bit +> Mime-Version: 1.0 +> +> +> > Date: Fri Jun 20 09:55:20 PDT 1997 +> > From: mspivak@apilon +> > To: jmk@shorter gentner@apilon +> > Cc: javamail@rita +> > Subject: Re: Attachment dialog +> > +> > And it'll get worse too. With the new FileChooser that I'm currently +implementing, double-click goes away completely, as we're moving to the +single-click model to be consistent with the rest of views. +> +> I hope that we are not seriously abadoning double click. I agree that if we +have a single click model, we should try to use that everyone it makes sense. +But double click can easily allow you to distinguish between a selection of an +item and a particular action on an item. +> +> What's the word Don? +> +> ___________________ +> Christopher Cotton + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/20 b/glassfish-runner/mail-platform-tck/mailboxes/test3/20 new file mode 100644 index 0000000000..7e4a408455 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/20 @@ -0,0 +1,67 @@ +From jmk@cochin Thu Feb 12 14:06:34 1998 -0800 +Return-Path: +Received: from krakatoa.Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id MAA01211; Wed, 6 Aug 1997 12:05:31 -0700 +Received: from antipathy.Eng.Sun.COM by krakatoa.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id MAA26668; Wed, 6 Aug 1997 12:05:22 -0700 +Received: from antipathy by antipathy.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id MAA00965; Wed, 6 Aug 1997 12:05:15 -0700 +Message-Id: <199708061905.MAA00965@antipathy.Eng.Sun.COM> +Date: Wed, 6 Aug 1997 12:05:15 -0700 (PDT) +From: "Martin Gruschow [TEMP]" +Reply-To: "Martin Gruschow [TEMP]" +Subject: CDE 1.2.1 (TAP_PATCHES) +To: df-ops@gramps, dt-iteam@mteverest, cdefound-c@xsun1, mail-eng@krakatoa, + mtchan@basilisk-153 +MIME-Version: 1.0 +Content-Type: TEXT/plain; charset=us-ascii +Content-MD5: QO4Epcr3dioW4SjPJjht7w== +X-Mailer: dtmail 1.2.0 CDE Version 1.2 SunOS 5.6 sun4m sparc +Content-Length: 1469 +Status: RO +X-Status: +X-Keywords: +X-UID: 19 + +Hi Team, + +I created the 1.2.1 mws for TAP patches, called TAP_PATCHES. + +This workspace is for *PATCHES ONLY*. This means putbacks should be +done only for official CTE patches. + +Bug fixes which are not official CTE patches *SHOULD NOT* be putback +here. + +For those who didn't see this before: This workspace +includes the last 2 patches which didn't get included in 2.6 Solaris. +So they correspond to 1.2_fcs_i rather than 1.2_fcs_g. This is to +save people the trouble of putting back what has already been putback. +Actually the 1.2_fcs_i patch (dtterm fo Japan) has already been made +into an official patch, and John McKernan assures me that any patch +made with the 1.2_fcs_h patch (Motif - XmGetPostedFromWidget() returns +wrong widget) could only be better for it, if it's not the next. + +It's going to be a while before I have new automount maps created, +tested, and pushed by ENS. So for a while you won't be able to use +the familiar /scde/mws directory. It's in: + +/net/meatball/cde_stuff/TAP_PATCHES + +It's better to use /net addresses for your parent directory, rather +than /scde/mws anyway. That way if there's net problems with /scde +as we had a couple months ago, you won't be stuck. + +Please let me know if you have any problems/questions. + +Marty + + +/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ +Marty Gruschow + +CDE - SunSoft Phone : (415) 336-2894 +Mountain View, CA E-mail : martyg@Eng.Sun.COM + + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/21 b/glassfish-runner/mail-platform-tck/mailboxes/test3/21 new file mode 100644 index 0000000000..3488281db3 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/21 @@ -0,0 +1,53 @@ +From jmk@cochin Thu Feb 12 14:06:34 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id JAA14280; Thu, 7 Aug 1997 09:42:58 -0700 +Received: from java-aces.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id JAA27593; Thu, 7 Aug 1997 09:42:50 -0700 +Received: by java-aces.eng.sun.com (SMI-8.6/SMI-SVR4) + id LAA22633; Thu, 7 Aug 1997 11:33:35 -0500 +Received: from Eng.Sun.COM by java-aces.eng.sun.com (SMI-8.6/SMI-SVR4) + id LAA22628; Thu, 7 Aug 1997 11:33:33 -0500 +Received: from shadows.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id JAA11661; Thu, 7 Aug 1997 09:39:34 -0700 +Received: from news2me. by shadows.eng.sun.com (SMI-8.6/SMI-SVR4) + id JAA27011; Thu, 7 Aug 1997 09:39:32 -0700 +Received: by news2me. (SMI-8.6/SMI-SVR4) + id JAA21919; Thu, 7 Aug 1997 09:39:31 -0700 +To: java-internal@shadows.eng.sun.com +X-Reflected-By: news@news2me.EBay.Sun.COM +Path: news2me.EBay.Sun.COM!engnews3.Eng.Sun.COM!quetzal!jonz +From: jonz@quetzal.eng.sun.com (Jon Ziegler) +Newsgroups: sun.java-internal +Subject: Re: microsoft & apple alliance +Date: 7 Aug 1997 16:48:43 GMT +Organization: JavaSoft, Sun Microsystems +Lines: 16 +Message-ID: <5scu9b$717@engnews3.Eng.Sun.COM> +References: <5sacba$ma7@news2me.ebay.sun.com> +NNTP-Posting-Host: quetzal.eng.sun.com +Sender: owner-java-internal@qwerty.eng.sun.com +Precedence: bulk +Content-Length: 389 +Status: RO +X-Status: +X-Keywords: +X-UID: 20 + +Doug Sutherland wrote: +>ouch ... + +Not so. Anything that fosters a diversity of platforms +is a win for Java. + +Microsoft support for Apple is simply shoring up the +7%'er so it appears that MS does not have +a monopoly. Keeps the gov't off their backs. + +Jon Ziegler +Java Commerce Manager +-- +Jon Ziegler +Java Commerce Manager +(408) 343-1687, jon.ziegler@sun.com + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/22 b/glassfish-runner/mail-platform-tck/mailboxes/test3/22 new file mode 100644 index 0000000000..2019a82bbc --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/22 @@ -0,0 +1,62 @@ +From jmk@cochin Thu Feb 12 14:06:34 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA24235; Wed, 6 Aug 1997 10:25:52 -0700 +Received: from java-aces.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA04030; Wed, 6 Aug 1997 10:25:43 -0700 +Received: by java-aces.eng.sun.com (SMI-8.6/SMI-SVR4) + id MAA20081; Wed, 6 Aug 1997 12:15:43 -0500 +Received: from Eng.Sun.COM by java-aces.eng.sun.com (SMI-8.6/SMI-SVR4) + id MAA20076; Wed, 6 Aug 1997 12:15:42 -0500 +Received: from shadows.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA02694; Wed, 6 Aug 1997 10:21:43 -0700 +Received: from Eng.Sun.COM by shadows.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA26520; Wed, 6 Aug 1997 10:21:41 -0700 +Received: from sunmail1.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA03597; Wed, 6 Aug 1997 10:21:40 -0700 +Received: from Eng.Sun.COM by sunmail1.Sun.COM (SMI-8.6/SMI-4.1) + id KAA25417; Wed, 6 Aug 1997 10:21:39 -0700 +Received: from hsmpka.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id KAA02671; Wed, 6 Aug 1997 10:21:39 -0700 +Received: from minoo by hsmpka.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA16077; Wed, 6 Aug 1997 10:21:38 -0700 +Message-Id: <199708061721.KAA16077@hsmpka.eng.sun.com> +Date: Wed, 6 Aug 1997 10:21:35 -0700 (PDT) +From: Minoo Bakke +Reply-To: Minoo Bakke +Subject: PLEASE VERIFY +To: java-internal@Sun.COM +Cc: bakke@minoo.eng.sun.com +MIME-Version: 1.0 +Content-Type: TEXT/plain; charset=us-ascii +Content-MD5: RaqGxqzCemmWa46e4A+mRw== +X-Mailer: dtmail 1.2.0 CDE Version 1.2 SunOS 5.6 sun4m sparc +Sender: owner-java-internal@qwerty.eng.sun.com +Precedence: bulk +Content-Length: 586 +Status: RO +X-Status: +X-Keywords: +X-UID: 21 + +I am about to put the following statement in some sales brochure. I +would like to verify its accuracy with you. Any help would be appreciated. + + +---------------------- + +The Java Development Kit (JDK) provides an environment that requires no +compiling, no debugging, and no extra tools. In fact, Java requires absolutely +no porting, so it is simpler, easier, and faster than programming in C++. + +----------------------- + +I got this claim from the web. However, it does not sound right to me due to +the fact we have debugger tools, etc. + +I would appreciate your commments. + +Minoo + + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/23 b/glassfish-runner/mail-platform-tck/mailboxes/test3/23 new file mode 100644 index 0000000000..326d6f468a --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/23 @@ -0,0 +1,247 @@ +From jmk@cochin Thu Feb 12 14:06:35 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id PAA08847; Thu, 7 Aug 1997 15:16:08 -0700 +Received: from Ebay.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id PAA21831; Thu, 7 Aug 1997 15:16:03 -0700 +Received: from ssattachments.EBay.Sun.COM by Ebay.Sun.COM (SMI-8.6/SMI-5.3) + id PAA27541; Thu, 7 Aug 1997 15:15:59 -0700 +Received: by ssattachments.EBay.Sun.COM (SMI-8.6/SMI-SVR4) + id PAA29996; Thu, 7 Aug 1997 15:16:00 -0700 +Date: Thu, 7 Aug 1997 15:16:00 -0700 +Message-Id: <199708072216.PAA29996@ssattachments.EBay.Sun.COM> +From: monica.gaines@Eng +To: java-bugs@javasoft.japan, john.mani@Eng, john.russo@Eng, + masaki.katakai@Japan, monica.gaines@Eng +Precedence: junk +Reply-To: monica.gaines@Eng +Subject: BugId 4068737 : (P3/S3) monique, Now Responsible Engineer +Content-Length: 6183 +Status: RO +X-Status: +X-Keywords: +X-UID: 22 + +Due to a change requested by monique, monique is now the +responsible engineer for: + +Synopsis: HJV I18N: MailView messages need to be extracted to ResourceBundle + +Bug Id: 4068737 changed on Aug 7 1997 by monique +-------------------------------------------------------------------------------- + + Field New Value Old Value +-------------------- ----------------------------- ----------------------------- +Commit Date Aug 7 1997 3:08PM +Commit to fix 1.1_beta +Commited By monique +Evaluate Date Aug 7 1997 3:08PM +Evaluated By monique +Resp. Engineer monique jmr +State evaluated accepted +State committed evaluated +-------------------- ----------------------------- ----------------------------- + Bug Id: 4068737 + Product: hotjava_views + Category: hotjava_views + Subcategory: mailview + Release summary: 1.1_alpha + Bug/Rfe/EOU: bug + State: committed + Development Status: NYI + Synopsis: HJV I18N: MailView messages need to be extracted to ResourceBundle + Keywords: I18N, hjv-ja + Severity: 3 + Severity Impact: Significant + Severity Functionality: Secondary + Priority: 3 + Responsible Manager: knutson + Responsible Engineer: monique + Description: +[katakai 7/31/97 JST] +MailView has hardcoded messages. Please use ResoureBundle and +extract the messages into ResourceBundle file for L10N. + +8) "Commands" is hardcoded. "mailview.attachment.popup.title" is extracted + but is not used. + +src/share/sunw/sunw/jdt/mail/ui + +AttachmentIcon.java: + +FileChooserDialog.java: + + popup = new PopupMenu("Commands"); + +7) "Save Attachment" is hardocded + +src/share/sunw/sunw/jdt/mail/comp/attachmentchooser: + +FileChooserDialog.java: + + public FileChooserDialog(Frame f) { + super(f, "Save Attachment", false, (java.awt.Image)null, + +FileChooser.java: + + + public FileChooser(int mode) { + this("Save Attachment", + + +6) "No Messages" and "Message ..." are hardcoded + +src/share/sunw/sunw/jdt/mail/comp/msgchsr/display/awt: + +AWTMessageCountDisplay.java: + + private void update() { + if (total < 0) { + setText("No Messages"); + } else { + setText("Message "+current+" of "+displayed+", "+newcount+" new"); + } + } + + +5) "Find" is hardcoded. + +src/share/sunw/sunw/jdt/mail/ui + + FindDialog.java: + + // The Find previous button + findPrev = new ImageTextButton( + MailResource.getImage("mailview.button.prev.image"), + "Find"); + + // The Find Next button + findNext = new ImageTextButton( + MailResource.getImage("mailview.button.next.image"), + "Find"); + + +4) frame title is hardcoded + +src/share/sunw/sunw/jdt/mail/comp/attachmentchooser/ + + AttachmentChooserDialog.java: + + super(f, "Choose Attachment", false, (Image)null, + + +3) frame title and buttons are hardcoded + +src/share/sunw/sunw/jdt/mail/applet/display/ + + FolderManagementDialog.java: + + super(MailResource.frame, "Save Dialog", false, (Image)null, + (Component)null, null, "Close"); + + buttonPanel.add(newButton = new Button("New Folder")); + + buttonPanel.add(saveButton = new Button("Save Message")); + + +2) many messages are hardcoded on "attachment chooser". + +comp/attachmentchooser/: + +FileChooser.java + + upBtn = new Button("Up"); + newDirBtn = new Button("New Folder"); + fileLabel = new Label("File: "); + dotfiles = new Checkbox(" Show All Files"); + +URLChooser.java + choice.add("URL (reference)"); + choice.add("Actual Content"); + +1) "OK" and "Cancel" are hardcoded. For example, the messages are + still english on "Address List" window. + +src/share/sunw/sunw/jdt/mail/ui: + +AliasDialog.java: else if (name.equals("Cancel")) { +AliasDialog.java: "mailview.button.cancel.image"), "Cancel"); +Login.java: "Cancel" +PropertiesDialog.java: (Image)null, null, "OK", "Cancel", 6, 6); // we replace the names later +PropertiesDialog.java: (Image)null, null, "OK", "Cancel", 6, 6); // we replace the names later +QuestionNotice.java: this(frame, question, "OK", "Cancel"); + + + Justification: +[katakai 7/31/97 JST] +All messages need to be translated. + + Work around: + + Suggested fix: + + State triggers: + Accepted: yes + Evaluation complete: yes + Evaluation: +I fixed the problems in FileChooser and AttachmentChooser areas. I think it would be easier if the remaining strings were fixed by their respective owners. +max.spivak@Eng 1997-08-05 + Commit to fix in releases: 1.1_beta + Fixed in releases: + Integrated in releases: + Verified in releases: + Closed because: + Incomplete because: + Duplicate of: + Introduced in Release: + Root cause: + Program management: + Fix affects documentation: no + Exempt from dev rel: no + Fix affects L10N: + Interest list: java-bugs@javasoft.japan, john.mani@Eng, john.russo@Eng + Patch id: + Comments: + +john.russo@Eng 1997-08-01 +Everyone, please be careful when introducing new strings into the code +(that includes myself!) Thanks. + See also: + Hooks: + Hook 1(hook1): + Hook 2(hook2): + Hook 3(hook3): + Hook 4(hook4): + Hook 5(hook5): + Hook 6(hook6): + History: + Submitter: katakai Date: Jul 31 1997 3:33AM + Dispatch Operator: bugtraq Date: Jul 31 1997 3:33AM + Acceptor: mspivak Date: Aug 5 1997 10:17AM + Evaluator: monique Date: Aug 7 1997 3:08PM + Commit operator: monique Date: Aug 7 1997 3:08PM + Fix operator: Date: + Integrating operator: Date: + Verify operator: Date: + Closeout operator: Date: + Called in by: + Customer: + Company: SunSoft + Employee: katakai + User Role: D + User Type: I + Release: 1.1_alpha + Hardware version: sun4u + O/S version (unbundled products): s297_fcs + SO Number: + Sun Contact: katakai + Contact Name: Masaki Katakai + Contact Mailaddr: masaki.katakai@Japan + Escalation(s): + Public Summary: + + Old Name: + Bug End: +-------------------------------------------------------------------------------- + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/24 b/glassfish-runner/mail-platform-tck/mailboxes/test3/24 new file mode 100644 index 0000000000..6aacecbaf6 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/24 @@ -0,0 +1,41 @@ +From jmk@cochin Thu Feb 12 14:06:35 1998 -0800 +Return-Path: +Received: from rita.eng.sun.com by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id QAA12456; Thu, 7 Aug 1997 16:17:05 -0700 +Received: from shorter.eng.sun.com by rita.eng.sun.com (SMI-8.6/SMI-SVR4) + id QAA06121; Thu, 7 Aug 1997 16:17:04 -0700 +Received: from lajka.eng.sun.com by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id QAA12453; Thu, 7 Aug 1997 16:17:03 -0700 +Received: by lajka.eng.sun.com (SMI-8.6/SMI-SVR4) + id QAA09916; Thu, 7 Aug 1997 16:16:07 -0700 +Date: Thu, 7 Aug 1997 16:16:07 -0700 +From: juliem@shorter (Julie Mehta) +Message-Id: <199708072316.QAA09916@lajka.eng.sun.com> +To: javamail@rita +Subject: Code Manager notification +Precedence: bulk +Mime-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Content-Length: 566 +Status: RO +X-Status: +X-Keywords: +X-UID: 23 + +Event: putback-to +Parent workspace: /net/icdev/export1/ic/krakatoa/javamail/WS + (icdev:/export1/ic/krakatoa/javamail/WS) +Child workspace: /home/juliem/ws/final + (shorter:/export/home7/juliem/ws/final) +User: juliem + +Comment: +fixed the problem of messages less than buffer size not getting written +in plain/text datatype +forgotten to set the mimebody charset parameter to us-ascii - fixed + +Files: +update: src/share/sunw/sunw/jdt/mail/MessageEdit.java +update: src/share/sunw/sunw/jdt/datatypes/text/plain.java + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/25 b/glassfish-runner/mail-platform-tck/mailboxes/test3/25 new file mode 100644 index 0000000000..e36839af90 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/25 @@ -0,0 +1,49 @@ +From jmk@cochin Thu Feb 12 14:06:35 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id QAA08640; Fri, 8 Aug 1997 16:54:02 -0700 +Received: from sunmail1.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id QAA16059; Fri, 8 Aug 1997 16:53:48 -0700 +Received: from Eng.Sun.COM by sunmail1.Sun.COM (SMI-8.6/SMI-4.1) + id QAA26870; Fri, 8 Aug 1997 16:53:35 -0700 +Received: from doppio.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id QAA08575; Fri, 8 Aug 1997 16:53:30 -0700 +Received: from nerika.eng.sun.com by doppio.eng.sun.com (SMI-8.6/SMI-SVR4) + id QAA12678; Fri, 8 Aug 1997 16:53:35 -0700 +Received: from nerika by nerika.eng.sun.com (SMI-8.6/SMI-SVR4) + id QAA18522; Fri, 8 Aug 1997 16:52:11 -0700 +Date: Fri, 8 Aug 1997 16:52:11 -0700 (PDT) +From: Annette Wagner +Reply-To: Annette Wagner +Subject: for Macintosh users... +To: javasoft@doppio.eng.sun.com +Message-ID: +MIME-Version: 1.0 +Content-Type: TEXT/plain; charset=us-ascii +Content-MD5: 7bVQqDfys13LhHS/gerCKw== +X-Mailer: dtmail 1.1.0 CDE Version 1.1 SunOS 5.5.1 sun4m sparc +Content-Length: 436 +Status: RO +X-Status: +X-Keywords: +X-UID: 24 + +Hi, + +In the interests of helping each other out and keeping +our Macintoshes running until someone is hired to replace +Ron Mandel, I have created an alias intended for JavaSoft +employees ONLY. + +If you are interested in joining the alias, go to the +Net Admin page, http://usna1.ebay/ngna/index.html, and sign +up for the "javasoft-mac@eng" alias. + +If we can't have Ron, maybe we can replace him with 400 +of us? :) + +bye, +Annette Wagner + + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/26 b/glassfish-runner/mail-platform-tck/mailboxes/test3/26 new file mode 100644 index 0000000000..ed78648fd5 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/26 @@ -0,0 +1,42 @@ +From jmk@cochin Thu Feb 12 14:06:35 1998 -0800 +Return-Path: +Received: from rita.eng.sun.com by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id RAA10322; Fri, 8 Aug 1997 17:23:07 -0700 +Received: from jumanji.eng.sun.com by rita.eng.sun.com (SMI-8.6/SMI-SVR4) + id RAA06403; Fri, 8 Aug 1997 17:23:03 -0700 +Received: by jumanji.eng.sun.com (SMI-8.6/SMI-SVR4) + id RAA22671; Fri, 8 Aug 1997 17:23:05 -0700 +Date: Fri, 8 Aug 1997 17:23:05 -0700 +From: ptn@jumanji (Phuong T. Nguyen) +Message-Id: <199708090023.RAA22671@jumanji.eng.sun.com> +To: javamail@rita +Subject: Code Manager notification +Precedence: bulk +Mime-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Content-Length: 682 +Status: RO +X-Status: +X-Keywords: +X-UID: 25 + +Event: putback-to +Parent workspace: /net/icdev/export1/ic/krakatoa/ws/jdt1.1-master + (icdev:/export1/ic/krakatoa/ws/jdt1.1-master) +Child workspace: /export0/ws/jdt1.1-ptn + (jumanji:/export0/ws/jdt1.1-ptn) +User: ptn + +Comment: +- Fixed bug 4064017 + HJV I18N: do not use System.getProperty("jdt.locale") to get Help + locale dir + +Files: +update: src/share/lib/textmessages.properties +update: src/share/lib/props/default/jdt.props +update: src/share/sunw/sunw/hotjava/sw/applets/HomePageApplet.java +update: src/share/sunw/sunw/hotjava/sw/misc/swBrowserProperties.java +update: src/share/sunw/sunw/hotjava/sw/ui/SwEditorFrame.java + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/3 b/glassfish-runner/mail-platform-tck/mailboxes/test3/3 new file mode 100644 index 0000000000..dcc44e7c58 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/3 @@ -0,0 +1,92 @@ +From jmk@cochin Thu Feb 12 14:06:30 1998 -0800 +Return-Path: +Received: from cochin.eng.sun.com by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id LAA07604; Tue, 24 Jun 1997 11:09:36 -0700 +Received: from Eng.Sun.COM by cochin.eng.sun.com (SMI-8.6/SMI-SVR4) + id LAA24183; Tue, 24 Jun 1997 11:09:31 -0700 +Received: from saturn.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id LAA10178; Tue, 24 Jun 1997 11:09:28 -0700 +Received: from java1.javasoft.com (java0.javasoft.com [204.160.241.100]) by saturn.Sun.COM (SMI-8.6/mail.byaddr) with ESMTP id LAA23930; Tue, 24 Jun 1997 11:09:36 -0700 +Received: from java1 (java1.javasoft.com [204.160.241.101]) + by java1.javasoft.com (8.8.4/8.8.4) with SMTP + id KAA05708; Tue, 24 Jun 1997 10:55:45 -0700 (PDT) +Received: from JAVASOFT.COM by JAVASOFT.COM (LISTSERV-TCP/IP release 1.8b) with + spool id 434740 for BEANS-USERS@JAVASOFT.COM; Tue, 24 Jun 1997 + 10:55:13 -0700 +Received: from mailserver.aimtech.com (mailserver.aimtech.com [208.193.42.6]) + by java1.javasoft.com (8.8.4/8.8.4) with SMTP id KAA04677 for + ; Tue, 24 Jun 1997 10:11:56 -0700 (PDT) +Received: by mailserver.aimtech.com with SMTP (Microsoft Exchange Server + Internet Mail Connector Version 4.0.993.5) id + <01BC80A0.FD5CEEA0@mailserver.aimtech.com>; Tue, 24 Jun 1997 13:17:39 + -0400 +X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.993.5 +MIME-Version: 1.0 +Content-Type: text/plain; charset="us-ascii" +Content-Transfer-Encoding: 7bit +Message-ID: +Date: Tue, 24 Jun 1997 13:17:38 -0400 +Reply-To: A public mailing list for the discussion of JavaBeans + +Sender: A public mailing list for the discussion of JavaBeans + +From: Mark Florence +Subject: Re: setting properties in a stand alone application +To: Multiple recipients of list BEANS-USERS +Content-Length: 1589 +Status: RO +X-Status: +X-Keywords: +X-UID: 2 + +A more sophisticated idea might be: write a GUI that +presents a property sheet editor for your bean. You write +this only once, such that it would work for all the beans +you develop. Have the GUI serialize your bean's state, +as modified by the user. Use java.util.zip classes to +write the serialized state back into your original JAR +file. Voila. No config file, no messy parsing, no comp- +licated instructions for your users to get wrong. + +-- Mark Florence +Aimtech Corporation + +>---------- +>From: Mark L. Watson[SMTP:markw@MARKWATSON.COM] +>Sent: Tuesday, June 24, 1997 5:13 AM +>To: Multiple recipients of list BEANS-USERS +>Subject: Q: setting properties in a stand alone application +> +>Good morning, +> +>I am packaging my first commercial JavaBean +>component to also function as a stand alone +>Java application. This is cool since JAR +>files are also a great way to package all of +>the class files, data files, etc. for Java +>applications. +> +>My problem is this: my component needs to be +>customized (via properties) to set required +>environmental parameters. I came up with +>a solution for setting properties when the +>component is used as an application: +> +>Give directions for placing a text file +>named 'config' in the JAR file to set properties +>if the component is to be used as a stand alone +>application. +> +>I wrote this up at www.markwatson.com/javacombo.htm +>if you are interested. +> +>This seems a little klugy to me (but it works +>great!). Does anyone have a better idea? +> +>Thanks, +>Mark +> +>Mark Watson, author and computer scientist +>http://www.markwatson.com/ +> + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/4 b/glassfish-runner/mail-platform-tck/mailboxes/test3/4 new file mode 100644 index 0000000000..9a94bc63c3 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/4 @@ -0,0 +1,61 @@ +From jmk@cochin Thu Feb 12 14:06:30 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id OAA21575; Tue, 24 Jun 1997 14:44:18 -0700 +Received: from sunmail1.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id OAA04515; Tue, 24 Jun 1997 14:44:44 -0700 +Received: from Eng.Sun.COM by sunmail1.Sun.COM (SMI-8.6/SMI-4.1) + id OAA26270; Tue, 24 Jun 1997 14:44:40 -0700 +Received: from shorter.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id OAA11425; Tue, 24 Jun 1997 14:44:30 -0700 +Received: from tackie2.eng.sun.com by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id OAA21560; Tue, 24 Jun 1997 14:43:57 -0700 +Received: by tackie2.eng.sun.com (SMI-8.6/SMI-SVR4) + id OAA08823; Tue, 24 Jun 1997 14:43:20 -0700 +Date: Tue, 24 Jun 1997 14:43:20 -0700 +From: Jackie.Demore@Eng (Jackie Demore) +Message-Id: <199706242143.OAA08823@tackie2.eng.sun.com> +To: cup02@shorter.eng.sun.com +Subject: Weekend Repair Alert! Please Read !!! +Cc: mark.leonard@corp, vivian.kwan@shorter.eng.sun.com +X-Sun-Charset: US-ASCII +Content-Length: 1365 +Status: RO +X-Status: +X-Keywords: +X-UID: 3 + +Hi Everyone: + +Please read: EVACUATION WILL BE NECESSARY when this occurs! +The date for the repairs necessary below is 95% certain to +happen this weekend - there are still two approvals to go. +I wanted to give you as much advance warning as I could so +I am sending this message to you today. If the date for the +compressor repairs changes to another weekend date I will +get back to all of you immediately. I am awaiting final +confirmation of the date this afternoon. + +There is a component (i,e, a compressor) in one of the air +conditioning units on the roof that has failed and requires +replacement. This unit supplies the a/c for the west wing +of the building. + +Due to the heavy weight of the compressor there are two ways to +remove and replace it. That is, either with a crane or with a +helicopter. Both methods will be disruptive to people within +the building. + +Facilities will make this major repair on the weekend of June +28th (a Saturday) between the hours of 6:00 a.m. to noon. In +effect during those hours the building will have to be fully +EVACUATED if a helicopter is used or partially evacuated if a +crane is used (undetermined as of today). It is probably best +to plan your work schedule around the above timetable and +avoid CUP-02 until later in the afternoon for safety's sake. + +If you have any questions please let me know. + +Thanks +JacKie + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/5 b/glassfish-runner/mail-platform-tck/mailboxes/test3/5 new file mode 100644 index 0000000000..6e6a5a7311 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/5 @@ -0,0 +1,73 @@ +From jmk@cochin Thu Feb 12 14:06:31 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id JAA13873; Thu, 10 Jul 1997 09:52:30 -0700 +Received: from saturn.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id JAA10706; Thu, 10 Jul 1997 09:52:44 -0700 +Received: from java1.javasoft.com (java0.javasoft.com [204.160.241.100]) by saturn.Sun.COM (SMI-8.6/mail.byaddr) with ESMTP id JAA17964; Thu, 10 Jul 1997 09:53:48 -0700 +Received: from java1 (java1.javasoft.com [204.160.241.101]) + by java1.javasoft.com (8.8.4/8.8.4) with SMTP + id JAA02538; Thu, 10 Jul 1997 09:31:09 -0700 (PDT) +Received: from JAVASOFT.COM by JAVASOFT.COM (LISTSERV-TCP/IP release 1.8b) with + spool id 480054 for JSERV-INTEREST@JAVASOFT.COM; Thu, 10 Jul 1997 + 09:30:41 -0700 +Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) by + java1.javasoft.com (8.8.4/8.8.4) with SMTP id JAA02014 for + ; Thu, 10 Jul 1997 09:19:37 -0700 (PDT) +Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM + (SMI-8.6/mail.byaddr) with SMTP id JAA26642 for + ; Thu, 10 Jul 1997 09:54:19 -0700 +Received: from shorter.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) id + JAA20608; Thu, 10 Jul 1997 09:27:28 -0700 +Received: from intrados.eng.sun.com by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id JAA12451; Thu, 10 Jul 1997 09:26:54 -0700 +Received: from intrados by intrados.eng.sun.com (SMI-8.6/SMI-SVR4) id JAA09529; + Thu, 10 Jul 1997 09:27:19 -0700 +MIME-Version: 1.0 +Content-Type: TEXT/plain; charset=us-ascii +Content-MD5: iOpKSMZs5CwkE8YxQ1v/aw== +X-Mailer: dtmail 1.1.0 CDE Version 1.1 SunOS 5.5.1 sun4u sparc +Message-ID: +Date: Thu, 10 Jul 1997 09:27:19 -0700 +Reply-To: James Davidson +Sender: Java Web Server interest mailing list + +From: James Davidson +Subject: Re: [Fwd: Broken pipe] +To: Multiple recipients of list JSERV-INTEREST + +Content-Length: 1072 +Status: RO +X-Status: +X-Keywords: +X-UID: 4 + +> > indeed both are harmless and they shouldn't affect normal +> > performance. +> > it is disturbing, however that the broken pipe error is going all +> > the +> > way back to the browser. this shouldn't be. infact in my experience, +> > the broken pipe occurs in a short servlet as well. +> > here is a stack trace from snoopservlet. i got this from my browser, +> > not from the logs: +> > +> > 500 Internal Server Error +> > +> > The servlet named "java.io.IOException", at the requested URL +> > +> > http://courses.testing.digitalthink.com/servlet/SnoopServlet + +I think that the broken pipe I observed, and this particular broken pipe are 2 +distinct phenomenon. I just tried to hit the above URL and couldn't from here. +Are you behind a firewall or down? + +James Duncan Davidson +JavaSoft Server Group +james.davidson@eng.sun.com + +=========================================================================== +For general help, send email to listserv@javasoft.com and include in the +body of the message "help". To unsubscribe, send in the message body +"signoff JSERV-INTEREST". + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/6 b/glassfish-runner/mail-platform-tck/mailboxes/test3/6 new file mode 100644 index 0000000000..8d1dfa5297 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/6 @@ -0,0 +1,79 @@ +From jmk@cochin Thu Feb 12 14:06:31 1998 -0800 +Return-Path: +Received: from krakatoa.Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id KAA14622; Thu, 10 Jul 1997 10:04:15 -0700 +Received: from tanzanite.Eng.Sun.COM by krakatoa.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id KAA16011; Thu, 10 Jul 1997 10:04:40 -0700 +Received: from tanzanite by tanzanite.Eng.Sun.COM (SMI-8.6/SMI-SVR4) + id KAA03380; Thu, 10 Jul 1997 10:04:43 -0700 +Message-Id: <199707101704.KAA03380@tanzanite.Eng.Sun.COM> +Date: Thu, 10 Jul 1997 10:04:43 -0700 (PDT) +From: Esther Tong +Reply-To: Esther Tong +Subject: Re: dtmail starting from session is still broken... +To: gregl@tofu +Cc: mail-eng@krakatoa +MIME-Version: 1.0 +Content-Type: TEXT/plain; charset=us-ascii +Content-MD5: /mLnWTHsPlSClkPcvWeCFw== +X-Mailer: dtmail 1.2.0 CDE Version 1.2 SunOS 5.6 sun4m sparc +Content-Length: 1520 +Status: RO +X-Status: +X-Keywords: +X-UID: 5 + +In that case, this is not the same problem I was talking about. +Sounds like a new bug. + +Esther + +> Date: Thu, 10 Jul 1997 10:02:36 -0700 (PDT) +> From: Gregory Layer +> Subject: Re: dtmail starting from session is still broken... +> To: perry@tofu, esthert@tanzanite +> Cc: mail-eng@krakatoa +> MIME-Version: 1.0 +> Content-MD5: wnC7JDTbKKwDeCSVccoYbA== +> +> They both open my INBOX on tofu. I'll file a bug on it. +> +> -greg +> +> > Date: Thu, 10 Jul 1997 09:57:46 -0700 (PDT) +> > From: Esther Tong +> > Subject: Re: dtmail starting from session is still broken... +> > To: perry@tofu, gregl@tofu +> > Cc: mail-eng@krakatoa +> > +> > Greg, +> > +> > Do you get a local version and a remote version of the same mailbox? +> > I ran into this problem a while back and I thought it got fixed with changes +> > that was checked in for another bug. Pop was looking into this problem. +> There +> > is no formal bug number for this problem. +> > +> > Esther +> > +> > > Date: Thu, 10 Jul 1997 09:46:44 -0700 (PDT) +> > > From: Gregory Layer +> > > Subject: dtmail starting from session is still broken... +> > > To: perry@tofu +> > > Cc: mail-eng@krakatoa +> > > MIME-Version: 1.0 +> > > Content-MD5: tyyXaSv7/fe+1eBjQL/Jpg== +> > > +> > > I still get two mailbox windows when I login to CDE. I am using IMAP. +> > > Is this a known problem? I am using 1.2_fcs_g +> > > ("CDEVersion1.2":sparc:08Jul97-19:21:25). I will file a bug if needed. +> > > +> > > -greg +> > > +> > +> + +Esther Tong +SunSoft + + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/7 b/glassfish-runner/mail-platform-tck/mailboxes/test3/7 new file mode 100644 index 0000000000..0504720742 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/7 @@ -0,0 +1,66 @@ +From jmk@cochin Thu Feb 12 14:06:31 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id IAA24960; Wed, 9 Jul 1997 08:54:01 -0700 +From: Postmaster@mail.nhmccd.edu +Received: from saturn.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id IAA16535; Wed, 9 Jul 1997 08:54:30 -0700 +Received: from mail.nhmccd.edu ([192.234.8.38]) by saturn.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id IAA08131 for ; Wed, 9 Jul 1997 08:55:37 -0700 +Received: from localhost (root@localhost) by mail.nhmccd.edu with SMTP (8.7.5/8.7.3) id KAA27859 for Don.Gentner@Eng.Sun.COM; Wed, 9 Jul 1997 10:56:08 -0500 (CDT) +Message-Id: <199707091556.KAA27859@mail.nhmccd.edu> +X-OpenMail-Hops: 1 +Date: Wed, 9 Jul 97 10:56:03 -0500 +Subject: Returned Mail: Message Could Not Be Delivered +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="openmail-part-0515f551-00000001" +Apparently-To: +X-Lines: 42 +Content-Length: 1308 +Status: RO +X-Status: +X-Keywords: +X-UID: 6 + +--openmail-part-0515f551-00000001 +Content-Type: text/plain; charset="iso-8859-1" +Content-Transfer-Encoding: quoted-printable +X-Sun-Content-Length: 134 + +To:Machauer_Chuck/nhmccd_employee@mail +550 Machauer_Chuck/nhmccd_employee@mail .... OM.UX 1014 Recipient not kn= +own at destination. + + +--openmail-part-0515f551-00000001 +Content-Type: message/rfc822 +Date: Wed, 9 Jul 97 16:52:44 +0000 +X-Sun-Content-Length: 859 + +Subject: +MIME-Version: 1.0 +Sender: Don#f#Gentner/unix-mime////////RFC-822/Don#f#Gentner#a#Eng#f#Sun#f#COM@mail +FROM: Don#f#Gentner/unix-mime////////RFC-822/Don#f#Gentner#a#Eng#f#Sun#f#COM@mail +TO: Machauer_Chuck/nhmccd_employee@mail +Content-Type: multipart/Mixed; boundary="openmail-part-0515f551-00000002" + + +--openmail-part-0515f551-00000002 +Content-Type: text/plain; charset=8859_1 +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable + +Chuck, + +I recieved an email message from Achim Machauer saying that you +had ancestors from Wiesental. I have researched my ancestors in +Wiesental, which include some members of the Machauer family. + +Let me know if you are interested in comparing notes. + +Don Gentner +email: don.gentner@sun.com +(I have a genealogy web site at http://www.mediacity.com/~judith/tree/) +--openmail-part-0515f551-00000002-- + +--openmail-part-0515f551-00000001-- + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/8 b/glassfish-runner/mail-platform-tck/mailboxes/test3/8 new file mode 100644 index 0000000000..ffc8558174 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/8 @@ -0,0 +1,67 @@ +From jmk@cochin Thu Feb 12 14:06:31 1998 -0800 +Return-Path: +Received: from Eng.Sun.COM by shorter.eng.sun.com (SMI-8.6/SMI-SVR4) + id VAA29110; Mon, 7 Jul 1997 21:23:34 -0700 +Received: from saturn.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) + id VAA02513; Mon, 7 Jul 1997 21:24:01 -0700 +Received: from pop2.restena.lu (caladan.restena.lu [158.64.1.36]) by saturn.Sun.COM (SMI-8.6/mail.byaddr) with ESMTP id VAA08957 for ; Mon, 7 Jul 1997 21:25:09 -0700 +Received: from vobis (slip1-4.restena.lu [158.64.101.4]) + by pop2.restena.lu (8.8.5/8.8.4) with SMTP + id GAA20783; Tue, 8 Jul 1997 06:24:21 +0200 (MET DST) +Message-ID: <33C1C002.D28@ci.rech.lu> +Date: Tue, 08 Jul 1997 06:20:19 +0200 +From: Jean ENSCH +Reply-To: jean@pop2.restena.lu,ensch@ci.rech.lu +X-Mailer: Mozilla 3.01 (Win95; I) +MIME-Version: 1.0 +To: Don Gentner +CC: jean.ensch@ci.rech.lu +Subject: Re: gentner genealogy on the web +References: <199707080112.SAA22684@shorter.eng.sun.com> +Content-Transfer-Encoding: quoted-printable +X-MIME-Autoconverted: from 8bit to quoted-printable by pop2.restena.lu id GAA20783 +X-Lines: 36 +Content-Type: text/plain; charset="iso-8859-1" +Content-Length: 1433 +Status: RO +X-Status: +X-Keywords: +X-UID: 7 + +A few more updates on the Joneses: +Marriage Michael JONES-KILL SUSAN CONTRACTED 24.1.1809 in Eich +Michael Jones, day laborer, born in Siechenhof [Luxembourg-City] 6 Nov +1785 residing in Siechenhof, son of William Jones, during life day +laborer and who died in Siechenhof 11 Sep 1807 and of VERGENS Margaret +and +KILL Susan born in Weimerskirch [ Luxembourg-City] 29 Nov 1795, residing +same, daughter of Peter Kill, farmer and of Anna Wolff + +Marriage Jones Wergens contracted 6 Feb 1766 Luxembourg. St Michael's +parish +JONES william, legitimate son of Nicholas JONES and of the late Maria +BINGEN from Kleinmacher [in Southeastern Luxembourg on the Moselle +River] +WERGENS Margaret, legitimate daughter of the late Michael WERGENS and +Catherine WEBERS from Petit Marly [Luxembourg-City] + +Requests for copies of the above can the directed to the + Archives of the City of Luxembourg + c/o M. Fernand EMMEL + P.O. Box 42 + L-2090 Luxembourg +The normal fee for a photocopy of vital statistics records is 100.- lux +francs. + +Further information of the Jones from Kleinmacher might be available.The +relevant Ancien R=E9gime parish registers have been indexed. A copy of +this index is in the custody of Mr. Georges KIESSEL, former secretary of +the Luxembourg genealogical society (ALGH). His E-mail address is: + GKiessel@CompuServe.COM + +Regards. +--=20 +Jean ENSCH +9, rue de la R=E9sistance, L-8020 Strassen, Luxembourg +E-mail: jean.ensch@ci.rech.lu + diff --git a/glassfish-runner/mail-platform-tck/mailboxes/test3/9 b/glassfish-runner/mail-platform-tck/mailboxes/test3/9 new file mode 100644 index 0000000000..ce2bbe1822 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/mailboxes/test3/9 @@ -0,0 +1,276 @@ +From jmk@cochin Thu Feb 12 14:06:32 1998 -0800 +From: dbowen@taller (David Bowen) +To: shannon@datsun +Subject: Re: Extensions +Content-Length: 14144 +MIME-Version: 1.0 +Content-Type: Multipart/Mixed; + boundary="-LA_F2155743591R-1A-868646210=:7522NCE.IlHAFeR" +Status: RO +X-Status: +X-Keywords: +X-UID: 8 + +---LA_F2155743591R-1A-868646210=:7522NCE.IlHAFeR +Content-Type: Text/plain; + charset=X-us-ascii; + name="text" +Content-Description: text + + +There is a preliminary discussion in /home/saraiya/notes/extensions. +Dac is working on how to have extensions be sharable between different +applets. Attached is some (totally unpolished) recent discussion. + +- Dave + +---LA_F2155743591R-1A-868646210=:7522NCE.IlHAFeR +Content-Type: Application/X-sun-sun-deskset-message; + conversions="X-uuencode"; + name="sun-deskset-message" +Content-Description: sun-deskset-message + +begin 600 sun-deskset-message +M1G)O;2!D86- =&%L;&5R(%1U92!*=6P@(#$@,#$Z,32!T86QL97(N96YG+G-U;BYC;VT@*%--22TX+C8O4TU)+5-6 +M4C0I"@EI9"!"04$Q,#,W,CL@5'5E+" Q($IU;" Q.3DW(# Q.C$W.C$S("TP +M-S P"E)E8V5I=F5D.B!B>2!E;F\N96YG+G-U;BYC;VT@*%--22TX+C8O4TU) +M+5-64C0I"@EI9"!"04$P-# Y-SL@5'5E+" Q($IU;" Q.3DW(# Q.C$W.C$Q +M("TP-S P"D1A=&4Z(%1U92P@,2!*=6P@,3DY-R P,3HQ-SHQ,2 M,#2D*365S2!P'1E +M;G-I;VYS+B!&;W(*97AA;7!L92P@:68@:6X@=&AE(&9O;&QO=VEN9R!C;V1E +M(&9R86=M96YT(&-L87-S($$@:6X@;&]A9&5R($,Q(&EM<&]R=',*8VQAPH)9F]O*"D@>PH)(" @($$@ +M82 ]($(N9F]O*"D["@D@(" @82YB87(H*3H*"7T*"6)A7-T96TN;W5T+G!R:6YT;&XH(D-L87-S($$@:6X@0S$B*3L*"7T*(" @('T* +M"DEN(&-L87-S(&QO861E7-T96TN;W5T+G!R:6YT;&XH(D-L87-S($$@:6X@0S(B*3L*"7T* +M(" @('T*"B @("!C;&%S2!D +M;VEN9R!S;VUE=&AI;F<@;&EK92!T:&4@86)O=F4@:70@;6EG:'0@8F4@<&]S +M7!E('-A9F5T>2!I;B!T:&4@=F5R:69I97(@ +M2!U2P@86YD(&YO="!D:7)E8W1O2!*05(*9FEL +M97,@9&5F:6YE9"!I;B!T:&4@87!P+F-L87-S+G!A=&@@'1E;G-I;VYS('1O($I! +M4B!F:6QE7-T96T@"B @(&-L87-S97,L(&-L87-S +M97,@9G)O;2!A('!R92UD969I;F5D('-E="!O9B!P86-K86=E7-T96T@*#$N,2DL(&$@8VQA2!T86QL97(N96YG+G-U;BYC;VT@*%--22TX+C8O4TU)+5-6 +M4C0I"@EI9"!304$Q-C Y-3L@5'5E+" Q($IU;" Q.3DW(#$X.C$P.C0T("TP +M-S P"E)E8V5I=F5D.B!F2!E;F\N96YG+G-U;BYC;VT@*%-- +M22TX+C8O4TU)+5-64C0I"@EI9"!304$P-3@U.3L@5'5E+" Q($IU;" Q.3DW +M(#$X.C$P.C0R("TP-S P"D1A=&4Z(%1U92P@,2!*=6P@,3DY-R Q.#HQ,#HT +M,B M,#2 \9&%C0'1A;&QE +M6% =&%L;&5R+"!S +M8VAE;65R2U4;SH@(EEO=7(@;65S2!T +M;R!E>&%M:6YE('1H92!M86YI9F5S="!O7-T +M96T@"CX@(" @8VQA('1H:6YG4!%;F6]U)W)E('1R>6EN9R!T;R!O<'1I;6EZ92!A(&)I="!T;V\@96%R +M;'DN(%1H97)E(&%R92!A;&P*:VEN9',@;V8@<')O8FQE;7,@=VET:"!T7!E(&UA=&-H:6YG(&)E8V]M97,@2!M96YT:6]N +M960@96%R;&EE2!N;W0@2!W92!C86X@879O:60@ +M861D:6YG(&YE=R!P'1E;G-I;VYS('1O(')E9F5R('1O(&]T:&5R(&5X=&5N2!W86YT('1O(&-R96%T92!A(&YE +M2!O9B!T:&4@7-T96T@*#$N,2DL(&$@ +M8VQA7-T96U#;&%S + + + 4.0.0 + + org.glassfish + standalone-tck + 11.0.0-SNAPSHOT + ../pom.xml + + jakarta + glassfish.mail-platform-tck + 11.0.0-SNAPSHOT + jar + + 1.9.1.Final + 1.9.1.Final + imap://${escaped.javamail.username}:${javamail.password}@${javamail.server}:${imap.port} + user01%40james.local + ${glassfish.home}/glassfish/bin/asadmin + ${project.build.directory}/glassfish7 + ${glassfish.home}/glassfish/lib + ${glassfish.home}/glassfish/modules + 1143 + test1 + + 1234 + imap + + localhost + user01@james.local + mail/Session + 5.9.1 + user01@james.local + localhost + 1234 + user01 + ${project.build.directory}/../mailboxes + 1025 + 11.0.0-SNAPSHOT + 1.0.0-M16 + + + + + org.junit + junit-bom + ${junit.jupiter.version} + pom + import + + + + + + org.junit.jupiter + junit-jupiter + ${junit.jupiter.version} + + + jakarta.tck + common + ${project.version} + + + jakarta.tck + libutil + ${project.version} + + + jakarta.tck + runtime + ${project.version} + + + jakarta.tck + javamail + 11.0.0-SNAPSHOT + + + org.eclipse.angus + angus-mail + 1.0.0 + + + jakarta.mail + jakarta.mail-api + 2.1.2 + + + org.jboss.arquillian.container + arquillian-container-test-spi + ${arquillian.core.version} + + + org.jboss.arquillian.junit5 + arquillian-junit5-container + ${arquillian.core.version} + test + + + org.junit.vintage + junit-vintage-engine + test + + + jakarta.tck.arquillian + arquillian-protocol-appclient + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + arquillian-protocol-common + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + arquillian-protocol-javatest + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + arquillian-protocol-lib + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + tck-porting-lib + ${version.jakarta.tck.arquillian} + + + org.omnifaces.arquillian + arquillian-glassfish-server-managed + 1.6 + test + + + org.jboss.arquillian + arquillian-bom + ${arquillian.junit} + pom + import + + + org.jboss.arquillian + arquillian-build + ${arquillian.junit} + pom + import + + + org.jboss.arquillian.container + arquillian-container-spi + ${arquillian.junit} + + + org.jboss.arquillian.container + arquillian-container-test-spi + ${arquillian.junit} + + + org.jboss.arquillian.core + arquillian-core-spi + ${arquillian.junit} + + + org.jboss.arquillian.test + arquillian-test-impl-base + ${arquillian.junit} + + + org.jboss.shrinkwrap + shrinkwrap-api + 1.2.6 + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.2.0 + + + 1-unpack + + unpack + + pre-integration-test + + + + org.glassfish.main.distributions + ${glassfish-artifact-id} + ${glassfish.container.version} + zip + true + ${project.build.directory} + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.2.0 + + + 1-unpack + + unpack + + pre-integration-test + + + + org.glassfish.main.distributions + ${glassfish-artifact-id} + ${glassfish.container.version} + zip + true + ${project.build.directory} + + + + + + 2-copy-lib + + copy + + pre-integration-test + + + + jakarta.tck.arquillian + arquillian-protocol-lib + true + ${glassfish.lib.dir} + arquillian-protocol-lib.jar + + + jakarta.tck + libutil + true + ${glassfish.lib.dir} + libutil.jar + + + jakarta.tck.arquillian + tck-porting-lib + true + ${glassfish.lib.dir} + tck-porting-lib.jar + + + jakarta.tck + runtime + true + ${glassfish.lib.dir} + runtime.jar + + + + + + + + org.codehaus.mojo + exec-maven-plugin + + + 1-stop-domain + + exec + + pre-integration-test + + ${exec.asadmin} + + stop-domain + + + + + 2-start-domain + + exec + + pre-integration-test + + ${exec.asadmin} + + start-domain + + + + + 91-create-mail-resource + + exec + + pre-integration-test + + ${exec.asadmin} + + create-mail-resource + --mailhost + ${mail.host} + --mailuser + ${mail.user} + --fromaddress + ${mail.from} + --property + mail.smtp.port=${smtp.port} + ${jndiName} + + + + + 92-stop-domain + + exec + + pre-integration-test + + ${exec.asadmin} + + stop-domain + + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + com.sun.ts.tests.javamail.ee.util.fpopulate + + -s + ${mailboxFolder1} + -d + ${destinationURL} + -user + ${javamail.username} + -password + ${javamail.password} + -host + ${javamail.server} + -port + ${imap.port} + -protocol + ${javamail.protocol} + + + + + 1-populate-mailbox + + java + + pre-integration-test + + + + + maven-failsafe-plugin + 3.0.0-M5 + + + mail-tests-appclient + + integration-test + verify + + + jakarta.tck:javamail + + **/*EJB*.* + **/*AppClient*.* + + + ${glassfish.module.dir}/angus-mail.jar + ${glassfish.module.dir}/jakarta.mail-api.jar + ${glassfish.module.dir}/mail-connector.jar + ${glassfish.module.dir}/mail-runtime.jar + ${glassfish.module.dir}/glassfish-naming.jar + + + ${project.build.directory}/${glassfish.toplevel.dir} + com.sun.enterprise.naming.impl.SerialInitContextFactory + ${env.TS_HOME} + ${project.basedir} + appclient-arquillian.xml + + + ${project.build.directory}/${glassfish.toplevel.dir} + + + + + mail-tests-javatest + + integration-test + verify + + + jakarta.tck:javamail + + **/*JSP*.* + **/*Servlet*.* + + + ${glassfish.module.dir}/angus-mail.jar + ${glassfish.module.dir}/jakarta.mail-api.jar + ${glassfish.module.dir}/mail-connector.jar + ${glassfish.module.dir}/mail-runtime.jar + ${glassfish.module.dir}/glassfish-naming.jar + + + ${project.build.directory}/${glassfish.toplevel.dir} + com.sun.enterprise.naming.impl.SerialInitContextFactory + ${env.TS_HOME} + ${project.basedir} + arquillian.xml + + + ${project.build.directory}/${glassfish.toplevel.dir} + + + + + + + + + + full + + true + + + glassfish + + + + web + + web + + + + diff --git a/glassfish-runner/mail-platform-tck/src/main/resources/logging.properties b/glassfish-runner/mail-platform-tck/src/main/resources/logging.properties new file mode 100644 index 0000000000..5139b6bf9d --- /dev/null +++ b/glassfish-runner/mail-platform-tck/src/main/resources/logging.properties @@ -0,0 +1,15 @@ +handlers=java.util.logging.FileHandler,java.util.logging.ConsoleHandler + +tck.jakarta.platform.ant.level = FINER +org.glassfish.appclient.client.level = FINER + +java.util.logging.FileHandler.pattern = tck-run.log +java.util.logging.FileHandler.level = FINEST +#java.util.logging.FileHandler.formatter = tck.conversion.log.TestLogFormatter +java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter +# date(1), source(2), logger(3), level(4), message(5), thrown(6) +java.util.logging.SimpleFormatter.format = [%1$tH:%tM:%1$tS.%1$tL] %2$.12s/%4$s %5$s %n + +# Limit the message that are printed on the console to INFO and above. +java.util.logging.ConsoleHandler.level = FINEST +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter \ No newline at end of file diff --git a/glassfish-runner/mail-platform-tck/src/test/java/arquillian/AppclientConfigTest.txt b/glassfish-runner/mail-platform-tck/src/test/java/arquillian/AppclientConfigTest.txt new file mode 100644 index 0000000000..56fcdb2ec1 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/src/test/java/arquillian/AppclientConfigTest.txt @@ -0,0 +1,34 @@ +package arquillian; + +import org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor; +import org.jboss.arquillian.config.descriptor.api.ProtocolDef; +import org.jboss.arquillian.container.test.impl.MapObject; +import org.jboss.shrinkwrap.descriptor.api.Descriptors; +import org.junit.jupiter.api.Test; +import tck.arquillian.protocol.appclient.AppClientProtocolConfiguration; + +import java.io.InputStream; +import java.util.Arrays; +import java.util.Map; + +public class AppclientConfigTest { + @Test + public void testLoadAppclientConfig() throws Exception{ + System.out.println("AppclientConfigTest.testLoadAppclientConfig"); + InputStream input = AppclientConfigTest.class.getResource("/arquillian.xml").openStream(); + ArquillianDescriptor descriptor = Descriptors.importAs(ArquillianDescriptor.class) + .fromStream(input); + System.out.println("########################" +descriptor.getGroups().get(0)); + AppClientProtocolConfiguration config = new AppClientProtocolConfiguration(); + ProtocolDef appclientDef = descriptor.getGroups().get(0).getGroupContainers().get(0).getProtocols().get(0); + System.out.println(appclientDef); + Map props = appclientDef.getProtocolProperties(); + System.out.println(props); + MapObject.populate(config, props); + System.out.println(config.getClientCmdLineString()); + System.out.println("--- ENV array:"); + System.out.println(Arrays.asList(config.clientEnvAsArray())); + System.out.println("--- CMD array:"); + System.out.println(Arrays.asList(config.clientCmdLineAsArray())); + } +} diff --git a/glassfish-runner/mail-platform-tck/src/test/java/arquillian/GlassfishTckExtension.java b/glassfish-runner/mail-platform-tck/src/test/java/arquillian/GlassfishTckExtension.java new file mode 100644 index 0000000000..413555b96a --- /dev/null +++ b/glassfish-runner/mail-platform-tck/src/test/java/arquillian/GlassfishTckExtension.java @@ -0,0 +1,13 @@ +package arquillian; + +import org.jboss.arquillian.container.test.spi.client.deployment.ApplicationArchiveProcessor; +import org.jboss.arquillian.core.spi.LoadableExtension; +import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; + +public class GlassfishTckExtension implements LoadableExtension { + @Override + public void register(ExtensionBuilder builder) { + builder.service(ResourceProvider.class, GlassfishXmlProcessor.class); + builder.observer(GlassfishXmlProcessor.class); + } +} \ No newline at end of file diff --git a/glassfish-runner/mail-platform-tck/src/test/java/arquillian/GlassfishXmlProcessor.java b/glassfish-runner/mail-platform-tck/src/test/java/arquillian/GlassfishXmlProcessor.java new file mode 100644 index 0000000000..0db6d11f0b --- /dev/null +++ b/glassfish-runner/mail-platform-tck/src/test/java/arquillian/GlassfishXmlProcessor.java @@ -0,0 +1,139 @@ +package arquillian; + +import org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor; +import org.jboss.arquillian.config.descriptor.api.ExtensionDef; +import org.jboss.arquillian.core.api.annotation.Observes; +import org.jboss.shrinkwrap.api.Archive; +import org.jboss.shrinkwrap.api.container.ManifestContainer; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import tck.arquillian.porting.lib.spi.AbstractTestArchiveProcessor; +import org.jboss.shrinkwrap.api.asset.StringAsset; + + +import java.io.File; +import java.io.IOException; +import java.net.URL; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.logging.Logger; + +public class GlassfishXmlProcessor extends AbstractTestArchiveProcessor { + static Logger log = Logger.getLogger(GlassfishXmlProcessor.class.getName()); + static HashSet sunXmlFiles = new HashSet(); + static { + sunXmlFiles.add("META-INF/sun-application-client.xml"); + sunXmlFiles.add("META-INF/sun-application.xml"); + sunXmlFiles.add("META-INF/sun-ra.xml"); + sunXmlFiles.add("WEB-INF/sun-web.xml"); + sunXmlFiles.add("META-INF/sun-ejb-jar.xml"); + } + + private Path descriptorDirRoot; + + /** + * Called on completion of the Arquillian configuration. + */ + public void initalize(@Observes ArquillianDescriptor descriptor) { + // Must call to setup the ResourceProvider + super.initalize(descriptor); + + // Get the descriptor path + ExtensionDef descriptorsDef = descriptor.extension("jboss-descriptors"); + String descriptorDir = descriptorsDef.getExtensionProperties().get("descriptorDir"); + if(descriptorDir == null) { + String msg = "Specify the descriptorDir property in arquillian.xml as extension:\n"+ + "\n" + + " path-to-descriptors-dir\n" + + ""; + //throw new IllegalStateException(msg); + } else { + this.descriptorDirRoot = Paths.get(descriptorDir); + if(!Files.exists(this.descriptorDirRoot)) { + //throw new RuntimeException("Descriptor directory does not exist: " + this.descriptorDirRoot); + } + } + } + + @Override + public void processClientArchive(JavaArchive clientArchive, Class testClass, URL sunXmlURL) { + String name = clientArchive.getName(); + addDescriptors(name, clientArchive, testClass); + } + + @Override + public void processWebArchive(WebArchive webArchive, Class testClass, URL sunXmlURL) { + String name = webArchive.getName(); + addDescriptors(name, webArchive, testClass); + } + + @Override + public void processRarArchive(JavaArchive warArchive, Class testClass, URL sunXmlURL) { + + } + + @Override + public void processParArchive(JavaArchive javaArchive, Class aClass, URL url) { + + } + + @Override + public void processEarArchive(EnterpriseArchive earArchive, Class testClass, URL sunXmlURL) { + String name = earArchive.getName(); + addDescriptors(name, earArchive, testClass); + } + + @Override + public void processEjbArchive(JavaArchive ejbArchive, Class testClass, URL sunXmlURL) { + String name = ejbArchive.getName(); + addDescriptors(name, ejbArchive, testClass); + } + + /** + * + * @param archiveName + * @param archive + * @param testClass + */ + protected void addDescriptors(String archiveName, ManifestContainer archive, Class testClass) { + /*String pkgName = testClass.getPackageName(); + Path pkgPath = Paths.get(pkgName.replace(".", "/")); + Path descriptorDir = descriptorDirRoot.resolve(pkgPath); + List files = findJBossDescriptors(descriptorDir); + for (File f : files) { + String name = f.getName(); + if(!name.startsWith(archiveName)) { + continue; + } + try { + URL url = f.toURL(); + // stateful_migration_threetwo_annotated.ear.jboss-deployment-structure.xml -> jboss-deployment-structure.xml + String descriptorName = name.replace(archiveName+".", ""); + if(archive instanceof WebArchive webArchive) { + webArchive.addAsWebInfResource(url, descriptorName); + } else { + + archive.addAsManifestResource(url, descriptorName); + } + } catch (IOException e) { + throw new RuntimeException(e); + } + }*/ + } + protected List findJBossDescriptors(Path pkgPath) { + try { + List files = Files.walk(pkgPath, 1) + .map(Path::toFile) + .filter(File::isFile) + .toList(); + return files; + } catch (Exception e) { + } + return Collections.emptyList(); + } +} diff --git a/glassfish-runner/mail-platform-tck/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension b/glassfish-runner/mail-platform-tck/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension new file mode 100644 index 0000000000..213f7f5aa9 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension @@ -0,0 +1 @@ +arquillian.GlassfishTckExtension \ No newline at end of file diff --git a/glassfish-runner/mail-platform-tck/src/test/resources/appclient-arquillian.xml b/glassfish-runner/mail-platform-tck/src/test/resources/appclient-arquillian.xml new file mode 100644 index 0000000000..0c311e2a65 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/src/test/resources/appclient-arquillian.xml @@ -0,0 +1,64 @@ + + + + + + true + true + target/appclient + true + + ${glassfish.home}/glassfish/bin/appclient \ + -Djdk.tls.client.enableSessionTicketExtension=false \ + -Djdk.tls.server.enableSessionTicketExtension=false \ + -Djava.security.policy=${glassfish.home}/glassfish/lib/appclient/client.policy \ + -Dcts.tmp=${ts.home}/tmp \ + -Djava.security.auth.login.config=${glassfish.home}/glassfish/lib/appclient/appclientlogin.conf \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Djavax.net.ssl.keyStore=${ts.home}/bin/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Djavax.net.ssl.trustStore=${glassfish.home}/glassfish/domains/domain1/config/cacerts.jks \ + -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl \ + -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl \ + -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl \ + -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser \ + -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter \ + -Doracle.jdbc.J2EE13Compliant=true \ + -Doracle.jdbc.mapDateToTimestamp \ + -Dstartup.login=false \ + -Dauth.gui=false \ + -Dlog.file.location=${glassfish.home}/glassfish/domains/domain1/logs \ + -Dri.log.file.location=${glassfish.home}/glassfish/domains/domain1/logs \ + -DwebServerHost.2=localhost \ + -DwebServerPort.2=8080 \ + -Ddeliverable.class=com.sun.ts.lib.deliverable.cts.CTSDeliverable \ + -jar \ + ${clientEarDir}/${clientAppArchive} + + \\ + + PATH=${env.PATH};LD_LIBRARY_PATH=${glassfish.home}/lib;AS_DEBUG=true; + APPCPATH=${glassfish.home}/glassfish/lib/arquillian-protocol-lib.jar:target/appclient/lib/arquillian-core.jar:target/appclient/lib/arquillian-junit5.jar:${glassfish.home}/glassfish/modules/security.jar + ${project.basedir} + ${ts.home}/tmp + ${ts.home}/bin/ts.jte + ${ts.home}/bin/tssql.stmt + true + 20000 + + + \ No newline at end of file diff --git a/glassfish-runner/mail-platform-tck/src/test/resources/arquillian.xml b/glassfish-runner/mail-platform-tck/src/test/resources/arquillian.xml new file mode 100644 index 0000000000..02ab1a7c68 --- /dev/null +++ b/glassfish-runner/mail-platform-tck/src/test/resources/arquillian.xml @@ -0,0 +1,32 @@ + + + + + + true + true + target/appclient + true + ${project.basedir} + ${ts.home}/tmp + ${ts.home}/bin/ts.jte + ${ts.home}/bin/tssql.stmt + true + 20000 + + + \ No newline at end of file diff --git a/glassfish-runner/mail-platform-tck/src/test/resources/logging.properties b/glassfish-runner/mail-platform-tck/src/test/resources/logging.properties new file mode 100644 index 0000000000..5139b6bf9d --- /dev/null +++ b/glassfish-runner/mail-platform-tck/src/test/resources/logging.properties @@ -0,0 +1,15 @@ +handlers=java.util.logging.FileHandler,java.util.logging.ConsoleHandler + +tck.jakarta.platform.ant.level = FINER +org.glassfish.appclient.client.level = FINER + +java.util.logging.FileHandler.pattern = tck-run.log +java.util.logging.FileHandler.level = FINEST +#java.util.logging.FileHandler.formatter = tck.conversion.log.TestLogFormatter +java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter +# date(1), source(2), logger(3), level(4), message(5), thrown(6) +java.util.logging.SimpleFormatter.format = [%1$tH:%tM:%1$tS.%1$tL] %2$.12s/%4$s %5$s %n + +# Limit the message that are printed on the console to INFO and above. +java.util.logging.ConsoleHandler.level = FINEST +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter \ No newline at end of file diff --git a/glassfish-runner/saaj-tck/pom.xml b/glassfish-runner/saaj-tck/pom.xml deleted file mode 100644 index 0f5f803d10..0000000000 --- a/glassfish-runner/saaj-tck/pom.xml +++ /dev/null @@ -1,177 +0,0 @@ - - - jakarta - glassfish.saaj-tck - 10.0.0-SNAPSHOT - jar - 4.0.0 - - org.glassfish - standalone-tck - 10.0.0 - ../pom.xml - - - jakarta.saaj-tck - 3.0.0 - 1.7.0.Alpha10 - - - - - org.junit - junit-bom - ${junit.jupiter.version} - pom - import - - - - - - org.junit.jupiter - junit-jupiter - ${junit.jupiter.version} - - - jakartatck - common - ${project.version} - - - jakartatck - libutil - ${project.version} - - - jakartatck - saaj-tck - 10.0.0-SNAPSHOT - - - org.jboss.arquillian.container - arquillian-container-test-spi - ${arquillian.core.version} - - - org.jboss.arquillian.junit5 - arquillian-junit5-container - ${arquillian.core.version} - test - - - org.junit.vintage - junit-vintage-engine - test - - - org.omnifaces.arquillian - arquillian-glassfish-server-managed - 1.2 - test - - - - - full - - true - - - glassfish - - - - web - - web - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 3.2.0 - - - unpack - pre-integration-test - - unpack - - - - - org.glassfish.main.distributions - ${glassfish-artifact-id} - ${glassfish.container.version} - zip - true - ${project.build.directory} - - - - - - copy-dependecies - pre-integration-test - - copy-dependencies - - - jakartatck - ${project.build.directory}/${glassfish.toplevel.dir}/glassfish/lib - - - - - - maven-failsafe-plugin - 3.0.0-M5 - - - gf-tests - - integration-test - verify - - - - **/*Client*.* - - - ${project.build.directory}/${glassfish.toplevel.dir}/glassfish/modules/webservices-osgi.jar - ${project.build.directory}/${glassfish.toplevel.dir}/glassfish/modules/jaxb-osgi.jar - - jakartatck:saaj-tck - - ${project.build.directory}/${glassfish.toplevel.dir} - localhost - 8080 - com.sun.ts.lib.porting.implementation.SunRIURL - - - - - - - - \ No newline at end of file diff --git a/glassfish-runner/xa-platform-tck/jakartaeetck/bin/certificates/clientcert.jks b/glassfish-runner/xa-platform-tck/jakartaeetck/bin/certificates/clientcert.jks new file mode 100644 index 0000000000000000000000000000000000000000..09f5569c47a3e472d830625a54508a94d5f98054 GIT binary patch literal 2257 zcmc&#XH%027tNCbl2DY;K}w{F?FmJtC;?PL5JHs@6hxLL5Lzf|YE(mO15ac6dB|H1p=%-nPDmpkX)IcI-=M$ zK6zXTfgm7Y2z(dhW<#E01K@xH^cVmjAn*|QG(D4)8fZRb!S$JcFw^uoGNaQ}r#xbT*+A-m%u z2VdIk)9j%evc|LL9EVd1;;@J0zkXv-N3j?z!TDBi)JoJ$+${`BB5t3SMh=a}xS= zZ#?tI!KL#V(x-Nn9+zBuK;GszKVf7?{J~#wscX(Rp469MP9G5d427(jRGn6X5bZn0 zW*BwKfld>J<8|C|8Vieq>y3JZx|PY8xM(L@f^>Tju)REK2Md<&{!{bZg=Smf&d^nm zg-i|2$f+N!ik3C=Jh{5j;TCo9EK4b~`*NF{*ps^zVGPj?KwAW%Kkq6vlSSECvM4u3 z7MnHZ%xV@_=Z@FElNcOk#SDC~#EPz0x)dF_s9mL98MvkHuOar^tv1&|{Alt0wDk5I zeeEfqm`+|yV>9szMzf?0t>|E_E)K4vv4WPO0@+Lx5uwdT*x(3J6}`$+mr(b_ELLzoi%77GAP|beC#VQpaAAO!H3( zHjCiqg06WKyryYNNCy@2eznRE^{EKHEZ(WHzD;gleDx+ZAbv9P?#PBALyo;5im@}8 zsqeyWKSDdYLMwF)C`wF@_)@A+$iR=GABkDjl+%UQT_}9_pg2xo0;3z-QYl8XX$|jD zOkk!6Q6AK)7a47K3g;7K>?N!jvAx(1j$AWR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.p12 b/glassfish-runner/xa-platform-tck/jakartaeetck/bin/certificates/clientcert.p12 new file mode 100644 index 0000000000000000000000000000000000000000..409e41e673587e2381ded8fdfe7958c5b2c616ae GIT binary patch literal 1615 zcmV-V2C(@sf(A2kx;s>GcIZ0;*S|y~<-^X=pwb0lP;Qtti>gC};O4;iJ9ZYc8h`9X{A8TqL=AoL- z?9N+iX5$_Ayw`nsB^=zGN~DUW?Y72c(I)0rKZXRbF=P*Cx`nsB+Ej+?;HAX~exhIzg4w3hxwIjNG=iz= z%|X^`1R-ZKc{)KA5(6h)EzyaC!>-v*Obr7E*ZiCY`W!^5>W_G}%y`3F&mi<3Kj_Sa zUo$ydR%%HTn(oiVGq$t^%qvdGaIt%hYuRSys>w(S)ROYxk(Xg9$6gZW)~ybmpZVwK zIC>#fGDg)SkNI|7JxBhjm1S~1%->>3wv~%;l+byf8+;u9^;=qPGmoZwK?K%N7%IOQu|x=w_mfDX zIAg9im~Fp4hJ1d(lzQvbKxw|H?D_b2zx7IIY|pVHQcX}T>kTL;Gl1)j?}%2M+KijB zsX!tkQ0*vLy;64d)9`aO0bFUf$u}~VF!8q-V%ew%6MruW!LyDURZ%5rC}8(o!`eEo z7STB=JT1jN%o$k>r>eNhd-*-U4>wG7(NASH3e3c8rRr{aG#YMaM02R0Lt`ntgDNI{ zUw9y61g=PJy%A0ff!aeKsTh{AHE?j6GWUK0sHz;NBhWdXf5;IGXXXZ3P%2Ta zkYX!*Ll1F|tCgf$dok}u0tLw;K`WtTQ_%%qF3bu47%S`8f~8d$`JY#t3~KXlxR_1j z+32VdcefI^NqT2MB@uKmE4Ef6S5qNamP1a-f0SEPu-m|=Z&+ibF`t4pwd<|*zWn5GLG9aJ&?-5X zT#zi%+lLZOd$15qm`hlNbR`&rAHMgAK3AX4XWoJ1a?aRN#A1G-vKpK<^l%|zhH3|> zQgTPbey`&?W_PRMB<|zJ5ufeIr}0zU`KNr|le2fU%NYM|=mtRG?4W!39VtgYzba zud!tvbKSLz*Bzj1!tCXSX*Ev)!T;>dRkw@k>%>Scm-qcBFJ|(_ai)hEhhd`MeVo{C z-xV3MiU+>K*Gmm_}qPsRWyWEShCj91hvc=-qe3YFh1nB4iWwHj>i}cP;>~ zs^F^^7xC%s7hz=c8=dY2X3mEB5wqx;U7jbLZVHrjxoIv%n#&Cr! zYC)_TU_W=dcbi}`>4^bbQ!RME;ne7Jb~8OPJ2>8gg$O;`9&gyhfr|iqhY#iqAVAOS zf@M_Vx#a9aaLPi=#O^+p*z!%V!?Q4y24f$rLyf67!TVu5)+TyzR_1t&=g&2o?Qp%l zieE1}5bi=OY|CJJor_7&`|d#AN85K^Mn-N{27^*VZUas>=1>+kVW!Yv z7>7fc$=A_P*gy~@!!FF_R9cjinU`LYpJym%AOjNQ5*7_E%~SBrOfJeVt}HG|%`H~& z%uCiY6f+P3$#VGI@9Ax=}hpS#$lqwX0zyJi1rrqGdySA8XQd)p6v0 z*ahd3O@W6bb2hD5b8*-ArPak^LJqNAyI5W?;a+m$qx{SxTk;qUL{3Ci^|2mjVrFDu zT&!pyZy*bdOj$k_F&2?)ZCi3zSFGea-THIww>6b>4UVTLA_pQcl>q~hks;Rj*Yk=M zN!_z=%A4#nOjDY2B>Cp@?&sHzR9}5S}frD z_0p@)i~c8j)!V3T(Y;~5WOIYGmx5V%-VUvIAN~KQM*Ls=#VXLAi9gN1dCRP>$~rE- z3l1q9eB58R&oQX~sQPK??U-xoR+{@Au>{rk;t z)2#2SD<64q!REonP1)XmpY(5G{M+Z%tLnO9+1b11e~;wu-@S6i_pN*KCN}dlcs=-V JxIjQ)2LO6WWJmx2 literal 0 HcmV?d00001 diff --git a/glassfish-runner/xa-platform-tck/jakartaeetck/bin/ts.jte b/glassfish-runner/xa-platform-tck/jakartaeetck/bin/ts.jte new file mode 100644 index 0000000000..b5f85dc381 --- /dev/null +++ b/glassfish-runner/xa-platform-tck/jakartaeetck/bin/ts.jte @@ -0,0 +1,2462 @@ +# +# Copyright (c) 2006, 2022 Oracle and/or its affiliates and others. +# All rights reserved. +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License v. 2.0, which is available at +# http://www.eclipse.org/legal/epl-2.0. +# +# This Source Code may also be made available under the following Secondary +# Licenses when the conditions for such availability set forth in the +# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, +# version 2 with the GNU Classpath Exception, which is available at +# https://www.gnu.org/software/classpath/license.html. +# +# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 +# + +######################################################################### +## +## JavaTest Environment file for Java EE Compatibility Test Suite +## +## Environment specific properties in this file will likely +## have to be modified prior to running the Java EE CTS. +## Instructions for modifying these properties are contained in this +## file. +## +## This file is processed by an external tool that helps generate the +## CTS documents. Therefore this file has a standard format that must +## be followed. This file is a standard Java Properties file with +## very specific comment formatting. Users can write property specific +## comments by using the property name and an ampersand (@). As an +## example the following comment applies to the foo.bar property: +## # @foo.bar - This is a comment pertaining to foo.bar +## # that spans multiple lines. +## This comment must be preceded by a single hash (#) character and +## the property name must be prepended with an ampersand (@). The +## comment can appear anywhere in the ts.jte file. If users have +## comments that belong in ts.jte but DO NOT pertain to a particular +## property the user must start the comment with at least 2 hash (#) +## characters. The following is a valid non-property comment: +## ## A valid non-property comment +## ## that spans multiple lines. +######################################################################### + +######################################################################### +## @jte.version This version denotes the bundle this JTE was +## originally included with. The version matches the ID +## in the bundle name. It can be used to identify a +## mismatched JTE file. This value is filled in during +## the build process as part of sanitizing the jte file. +######################################################################### +jte.version=@JTE_VERSION@ + +######################################################################## +## Javatest batch mode work directory and report directory, and policy for +## handling existing work and report directories. These properties affects +## runclient and report targets, but not gui target. +## To disable generating test report, unset report.dir, or set it to "none" +## either here or from command line, as in the following command: +## ant runclient -Dreport.dir="none" +## +# @work.dir The directory used to store Javatest test results and test +# information. +# @report.dir The directory used to store Javatest summary reports of +# test results. +# @if.existing.work.report.dirs specifies how existing work.dir and +# report.dir will be handled, and it must be one of the following values: +# overwrite overwrites all content in work.dir and report.dir +# backup moves all content in work.dir and report.dir to +# work.dir_time_day_bak and report.dir_time_day_bak, +# respectively +# append reuses and preserves the existing work.dir and report.dir +# auto lets the build files decide which mode to use +# (overwrite, backup or append). the value is determined +# like this: +# if.existing.work.report.dirs == auto +# if in CTS workspace +# if.existing.work.report.dirs = overwrite +# else we are in a distribution bundle +# if.existing.work.report.dirs = append +# end if +# else +# if.existing.work.report.dirs = value in this file +# end if +######################################################################## +work.dir=/home/jenkins/agent/workspace/jakartaee-tck_master/JTWork +report.dir=/home/jenkins/agent/workspace/jakartaee-tck_master/JTReport +if.existing.work.report.dirs=auto + +######################################################################## +# @javatest.timeout.factor This property specifies the scale factor used by +# Javatest to adjust the time JavaTest will wait for a given test to +# complete before returning failure. For instance if the default test timeout +# is 5 minutes, this value will be multiplied by 5 minutes to determine +# the total timeout delay. Note: this value only works with Javatest's +# batch mode (runclient). When using the Javatest GUI users must change +# this timeout factor in the GUI. Configure -> Edit Configuration -> View +# -> choose Standard Values -> select tab Execution -> set Time Factor. +# +# Note that javatest.timeout.factor can be a positive real number, such as 1.5 +######################################################################## +javatest.timeout.factor=1 + +######################################################################## +## Level of Vendor Java EE Implementation +# @javaee.level The level of Java EE support for the implementation under test. +# This property serves two purposes: First, it is used to determine +# whether the impl under test is a Java EE Full profile (full) or Java +# EE Web profile (web). Either "full" or "web" must be specified in +# the list values. "full" will tell the harness to deploy ears. "web" +# will tell the harness to deploy wars. +# This property is also used to help determine which apis (in the +# signature tests) are to be tested. +# +# NOTE: This property does not determine which CTS tests to run for +# different profiles and optional technologies. That is done using +# keywords. Please refer to the keywords functionality in the CTS +# User's Guide for information on how to use keywords when +# running CTS tests. +# +# Currently, there are 4 settings supported for this property: +# 1. full: This is the minimal set of signature requirements that vendors +# must support. Specifying a javaee.level of "full" with nothing +# else implies there are NO additional technologies existing within +# the vendors implementation. Again, "full" only covers the +# REQUIRED Technologies for Jakarta EE 8 Full profile +# ex/ javaee.level=full +# +# 2. web : This is the minimal set of signature requirements that vendors +# must support for Web Profile. Specifying a javaee.level of "web" +# with nothing else implies there are NO additional technologies +# existing within the vendors implementation. Again, "web" only +# covers REQUIRED Technologies for Jakarta EE 8 Web profile +# ex/ javaee.level=web +# +# 3. full + optional_technologies: This covers REQUIRED Technologies for +# Java EE 8 Full Profile and any combination of the optional +# technologies. +# Known optional technologies for CTS8 full profile include: +# "jaxr". +# ex 1/ javaee.level=full jaxr +# ex 2/ javaee.level=full jaxr +# ex 3/ javaee.level=full +# ex 4/ etc... +# +# 4. web + optional_technologies: This covers REQUIRED Technologies for +# Java EE 8 Web Profile and any combination of optional +# technologies. +# Known optional technologies for Web Profile include: +# "jaxr", "connector", "jaxb", +# "jms", "javamail", "jacc", "jaspic", "wsmd" +# ex 1/ javaee.level=web connector jms jacc +# ex 2/ javaee.level=web jaspic +# ex 3/ javaee.level=web jms connector +# ex 4/ etc... +# +# Note 1: spaces separate multiple entries +# +# Note 2: optional technologies for full/javaee profile are listed +# in the Java EE 8 spec, in Table EE.6-1. Currently, the only +# optional technologies for full profile are: "jaxr" (JAXR 1.0) +# +# Note 3: The list of optional technologies for Web Profile includes any OPTIONAL +# technology explicitly called out in the Web Profile spec (if applicable) +# as well as any additional technology which is listed within +# JavaEE Profile 8 spec *but* not included/Required in the +# Web Profile spec. +# +# Note 4: Two different examples of javaee.level are provided immediately +# following this comment block. One is for running CTS8 against +# the EE 8 (full) Profile RI and the other is for running CTS8 +# against the EE 8 Web Profile RI. Notice that optional technologies +# are supplied here since the RI for CTS8 contains those optional +# technologies in it. It's very possible vendors may provider different +# optional technologies in their implementations. If so, the list of +# optional technologies will need to be adjusted here to suite each +# vendors implementation. +# +# Note 5: For EE 8 (RI) Web Profile, you can uncomment and use the line +# below which starts with: javaee.level=web .... +# +# IMPORTANT: when testing Web Profile - be sure to adjust the +# "optional.tech.packages.to.ignore" property accordingly. +# (see comments for optional.tech.packages.to.ignore below) +# +############################################################################### +#javaee.level=web connector jaxws jaxb javamail jacc jaspic wsmd +javaee.level=full + + +######################################################################## +## Settings for Vendor Java EE Implementation +# @javaee.home The location of the vendor's Java EE platform +# implementation. +# @orb.host Hostname of the machine running the vendor's +# implementation. +# @orb.port The port number the vendor implementation is listening +# to for service requests. +######################################################################## +javaee.home= +orb.host=localhost +orb.port=3699 + +######################################################################## +## JVMOPTS_RUNTESTCOMMAND is a marker that implementations may replace with +# the JVM options to pass when starting JVMs for running tests. +# This is intended to be used for implementations convencience. +# See file docker/run_jakartaeetck.sh for an example. +######################################################################## + +######################################################################## +## Settings for Sun RI Java EE Implementation +# @javaee.home.ri The location of the RI. +# @orb.host Hostname of the machine running the RI. +# @orb.port The port number the RI is listening to for service +# requests. +######################################################################## +javaee.home.ri= +orb.host.ri=localhost +orb.port.ri=3700 + +################################################################### +################################################################### +################################################################### +## RI SPECIFIC PROPERTIES LIVE BELOW +################################################################### +################################################################### +################################################################### + +############################################################### +# @ts.display -- location to display CTS output on Unix +############################################################### +ts.display=:0.0 + +########################################################################### +# @endorsed.dirs using Java SE 6 or above and you provide newer versions +# of technologies than those contained in Java SE 6, verify +# that the property endorsed.dirs is set to the location of +# the VI api jars for those technologies you wish to +# override. For example, Java SE 6 contains an +# implementation of JAXWS 2.0 which will conflict with +# JAXWS 2.1, therefore this property would need to be set +# so that JAXWS 2.1 would be used during the building of +# tests and during test execution. +# +# @endorsed.dirs.ri If using Java SE 6 or above and you provide newer versions +# of technologies than those contained in Java SE 6, verify +# that the property endorsed.dirs is set to the location of +# the RI api jars for those technologies you wish to +# override. For example, Java SE 6 contains an +# implementation of JAXWS 2.0 which will conflict with +# JAXWS 2.1, therefore this property would need to be set +# so that JAXWS 2.1 would be used during the building of +# tests and during test execution. +########################################################################### +endorsed.dirs=${javaee.home}/modules/endorsed +endorsed.dirs.ri=${javaee.home.ri}/modules/endorsed + +############################################################### +## Config params needed for Java EE RI asadmin +## You must change these values as needed +## +# @ri.admin.user -- The Java EE RI asadmin user id +# @ri.admin.passwd -- The Java EE RI asadmin user password +# @ri.admin.host -- The Java EE RI host +# @ri.admin.port -- The Java EE RI port +# @ri.admin -- The Java EE RI admin command +# @ri.server -- The Java EE RI server instance being used +# @ri.domain.dir -- Points to where your domains are installed. +# @ri.domain.name -- The Java EE RI domain being used +# @ri.domain -- The Java EE RI domain path being used +# @ri.asenv.loc -- location of asenv.conf or asenv.bat +# @ri.imqbin.loc -- location of the IMQ bin directory +# @ri.lib -- Library directory for other Java EE RI +# jars +# @ri.imq.share.lib -- Shared library directory for imq +# @ri.jvm.options -- Java options needed by the Java EE RI +# note, the second option is not needed +# but is required to work around asadmin +# command line parsing issues. The +# xxxlogin and xxxpassword are used +# to set known server side creds for use +# with connector tests. +# @ri.applicationRoot-- Location of application repository +# Only needed when running on windows +# @ri.and.vi.run.on.same.host - set to true if interop tests are run +# with both RI and VI on same machine. set to +# false if they are run on different machines. +# This is used to work around an orb issue +# specific to running VI and RI on same box. +# +# @ri.orb.iiop.orbserverid - This is used to set a similarly +# named jvm option in the RI. It is only used +# when we are running interop where remote EJBs +# try to access target EJB's on the same host with +# zero port configuration for ssl. +# This only gets used when ri.and.vi.run.on.same.host=true. +# The value is to be an ORB server id. +############################################################### +ri.admin.user=admin +ri.admin.passwd= +ri.admin.host=${orb.host.ri} +ri.admin.port=4848 +ri.admin=${javaee.home.ri}/bin/asadmin +ri.server=server +ri.domain.dir=${javaee.home.ri}/domains +ri.domain.name=domain1 +ri.domain=${ri.domain.dir}/${ri.domain.name} +ri.asenv.loc=${javaee.home.ri}/config +ri.imqbin.loc=${javaee.home.ri}/../mq/bin +ri.lib=${javaee.home.ri}/lib +ri.log.file.location=${ri.domain}/logs +ri.modules=${javaee.home.ri}/modules +ri.imq.share.lib=${javaee.home.ri}/../mq/lib +ri.jvm.options=-Doracle.jdbc.J2EE13Compliant=true:-Xmx4096m:-Dj2eelogin.name=${user}:-Dj2eelogin.password=${password}:-Deislogin.name=${user1}:-Deislogin.password=${password1}:-Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds}:-DwebServerPort.2=${webServerPort.2}:-DwebServerHost.2=${webServerHost.2}:-Dcsiv2.save.log.file=${harness.log.traceflag}:-Djavax.xml.accessExternalStylesheet=all:-Djavax.xml.accessExternalDTD=file,http +ri.jvm.options.remove=-Xmx512m:${ri.jvm.options} +ri.java.endorsed.dirs=${endorsed.dirs.ri} +ri.applicationRoot=c: +ri.and.vi.run.on.same.host=true +ri.orb.iiop.orbserverid=200 + +############################################################### +## Config params needed for Java EE VI asadmin +## You must change these values as needed +## +# @vi.admin.user -- The Java EE VI asadmin user id +# @vi.admin.passwd -- The Java EE VI asadmin user password +# @vi.admin.host -- The Java EE VI host +# @vi.admin.port -- The Java EE VI port +# @vi.admin -- The Java EE VI admin command +# @vi.server -- The Java EE VI server instance being used +# @vi.domain.dir -- Points to where your domains are installed. +# @vi.domain.name -- The Java EE VI domain being used +# @vi.domain -- The Java EE VI domain path being used +# @vi.asenv.loc -- location of asenv.conf or asenv.bat +# @vi.imqbin.loc -- location of the IMQ bin directory +# @vi.lib -- Library directory for other Java EE VI +# jars +# @vi.imq.share.lib -- Shared library directory for imq +# @vi.jvm.options -- Java options needed by the Java EE VI +# note, the second option is not needed +# but is required to work around asadmin +# command line parsing issues. The +# xxxlogin and xxxpassword are used +# to set known server side creds for use +# with connector tests. +# @vi.applicationRoot-- Location of application repository +# Only needed when running on windows +############################################################### +vi.admin.user=admin +vi.admin.passwd= +vi.admin.host=${orb.host} +vi.admin.port=4848 +vi.admin=${javaee.home}/bin/asadmin +vi.server=server +vi.domain.dir=${javaee.home}/domains +vi.domain.name=domain1 +vi.domain=${vi.domain.dir}/${vi.domain.name} +vi.asenv.loc=${javaee.home}/config +vi.imqbin.loc=${javaee.home}/../mq/bin +vi.lib=${javaee.home}/server/lib +vi.log.file.location=${vi.domain}/logs +vi.modules=${javaee.home}/modules +vi.imq.share.lib=${javaee.home}/../mq/lib +vi.jvm.options=-Doracle.jdbc.J2EE13Compliant=true:-Xmx4096m:-Dj2eelogin.name=${user}:-Dj2eelogin.password=${password}:-Deislogin.name=${user1}:-Deislogin.password=${password1}:-Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds}:-DwebServerPort.2=${webServerPort.2}:-DwebServerHost.2=${webServerHost.2}:-Dcsiv2.save.log.file=${harness.log.traceflag}:-Djavax.xml.accessExternalStylesheet=all:-Djavax.xml.accessExternalDTD=file,http +vi.jvm.options.remove=-Xmx512m:${vi.jvm.options} +vi.java.endorsed.dirs=${endorsed.dirs} +vi.applicationRoot=c: + +############################################################### +## Config params needed for Sun Java System Application Server +## (SJSAS) asadmin. You must change these values as needed +## only if you are testing against SJSAS app server +## (javaee.home is pointing to SJSAS). +# +# @s1as.admin.user -- The SJSAS asadmin user id +# @s1as.admin.passwd -- The SJSAS asadmin user password +# @s1as.admin.host -- The SJSAS host +# @s1as.admin.port -- The SJSAS port +# @s1as.admin -- The SJSAS admin command +# @s1as.server -- The SJSAS server instance being used +# @s1as.domain.dir -- Points to where your domains are installed. +# @s1as.domain.name -- The SJSAS domain being used +# @s1as.domain -- The SJSAS domain path being used +# @s1as.asenv.loc -- location of asenv.conf or asenv.bat +# @s1as.imqbin.loc -- location of the IMQ bin directory +# @s1as.lib -- Library directory for other Java EE RI +# jars +# @s1as.imq.share.lib -- Shared library directory for imq +# @s1as.jvm.options -- Java options needed by SJSAS +# The xxxlogin and xxxpassword are used +# to set known server side creds for use +# with connector tests. +# @s1as.applicationRoot-- Location of application repository +# Only needed when running on windows +############################################################### +s1as.admin.user=admin +s1as.admin.passwd= +s1as.admin.host=${orb.host} +s1as.admin.port=4848 +s1as.admin=${javaee.home}/bin/asadmin +s1as.server=server +s1as.domain.dir=${javaee.home}/domains +s1as.domain.name=domain1 +s1as.domain=${s1as.domain.dir}/${s1as.domain.name} +s1as.asenv.loc=${javaee.home}/config +s1as.imqbin.loc=${javaee.home}/../mq/bin +s1as.lib=${javaee.home}/lib +s1as.modules=${javaee.home}/modules +s1as.imq.share.lib=${javaee.home}/../mq/lib +s1as.jvm.options=-Doracle.jdbc.J2EE13Compliant=true:-Xmx4096m:-Dj2eelogin.name=${user}:-Dj2eelogin.password=${password}:-Deislogin.name=${user1}:-Deislogin.password=${password1}:-Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds}:-DwebServerPort.2=${webServerPort.2}:-DwebServerHost.2=${webServerHost.2} +s1as.jvm.options.remove=-Xmx512m:${s1as.jvm.options} +s1as.java.endorsed.dirs=${endorsed.dirs} +s1as.applicationRoot=c: + +############################################################### +# @sjsas.das.orb.port -- ORB port number for the DAS +# @sjsas.das.orb.host -- ORB host name for the DAS +# @sjsas.das.webServerPort -- HTTP listener port for the DAS +# @sjsas.das.securedWebServicePort -- HTTPS listener port for the DAS +# @sjsas.nodeagent.name -- Name of node agent used by +# the remote instance. +# @sjsas.nodeinstance.name -- Name of the remote instance +# @sjsas.master.password -- Used to create a node agent only +# applicable to EE. Defaults to changeit. This +# can be changed at EE install time. +# @sjsas.instance.config.dir -- config directory used by the intsance +# being tested. +# For PE/DAS = config +# For remote instance = config +# @sjsas.cts.timer.resource -- Backend to use when we are using java2db with +# the CMP tests for the jdbc/DBTimer resource +# @sjsas.cmp.backend -- Backend to use when we are using java2db with +# the CMP tests +# @sjsas.node.agent.dir.name -- The name of the node agent directory to use. +# This value will be used on Windows only and +# ignored on non-Windows platforms. The default +# is 'n' meaning the create-node-agent command +# will pass the --agentdir argument with a value +# of ${s1as.applicationRoot}\${sjsas.node.agent.dir.name}. +# @sjsas.env.type -- CTS test configuration. Possible values are: +# das (for PE or DAS) +# remote (for remote intance) +# cluster (for cluster config not yet supported) +# @s1as.targets -- Instance(s) to deploy tests +# Supports multiple instances, For example: +# s1as.targets=server server-1 +############################################################### +sjsas.das.orb.port=3700 +sjsas.das.orb.host=${orb.host} +sjsas.das.webServerPort=8000 +sjsas.das.securedWebServicePort=1043 +sjsas.nodeagent.name=node-agent-1 +sjsas.nodeinstance.name=server-1 +sjsas.master.password=changeit +sjsas.instance.config.dir=config +sjsas.cts.timer.resource=derby +sjsas.cmp.backend=derby +sjsas.node.agent.dir.name=n + +sjsas.env.type=das +#sjsas.env.type=remote + +s1as.targets=${s1as.server} +#s1as.targets=${sjsas.nodeinstance.name} + +############################################################### +# @s1as.pe.jmsServer -- name of the JMS server the RI/PE +# @s1as.se.jmsServer -- name of the JMS server for SE/EE +############################################################### +s1as.pe.jmsServer=imqbroker +s1as.se.jmsServer=imqbroker +#s1as.se.jmsServer=${s1as.domain.name}_${s1as.server} + +############################################################### +# @extension.dir - The extension directory for the app +# server under test. This does not apply +# to the RI. +# +# Note: App server vendors will need to set this to their +# app server's extension directory. The CTS config.vi +# target will copy the CTS library jars to this location. +############################################################### +extension.dir=${s1as.domain}/lib + +############################################################### +# @instance.listenerName - Default value for the iiop listener +# for your instance. Users will +# most likely not need to change this. +############################################################### +instance.listenerName=orb-listener-1 + +############################################################### +# @tz - your local timezone. For valid values, consult your +# Operating System documentation. +############################################################### +tz=US/Eastern + +############################################################### +# @jdbc.lib.class.path - This property is used by the +# database.classes properties to point to +# where the JDBC drivers live. +############################################################### +jdbc.lib.class.path=${ts.home}/internal/lib + +############################################################### +## The following section is for CTS Database configuration +## For each database that you will test, configure the following: +## Here is an example using derby: Users will need to +## replace derby with the appropriate DB name. +# @derby.dbName -- Database Name +# @derby.server -- Database Server +# @derby.port -- Database Server port +# @derby.dml.file -- DML file used for CTS test cases +# @derby.user -- User Id configured +# @derby.passwd -- User password configured +# @derby.url -- URL to the cts database +# @derby.driver -- DriverManager driver +# @derby.classes -- CLASSPATH to JDBC driver classes +# @derby.poolName -- Name of pool configured in the Java EE +# RI (do not change!) +# @derby.dataSource -- DataSource driver +# @derby.properties -- Any additional JDBC driver required +# properties +# @derby.startup.delay-- delay to wait for DB to start + +############################################################### + +## +## Info for Cloudscape 10/Derby +## +derby.dbName=derbyDB +derby.server=${orb.host} +derby.port=1527 +derby.port.ri=1527 +derby.dml.file=derby/derby.dml.sql +derby.user=cts1 +derby.passwd=cts1 +derby.url=jdbc:derby://${derby.server}:${derby.port}/${derby.dbName};create=true +derby.driver=org.apache.derby.jdbc.ClientDriver +derby.home=${javaee.home}/../javadb +derby.system.home=${derby.home}/databases +derby.classpath=${ts.home}/lib/dbprocedures.jar${pathsep}${derby.home}/lib/derbynet.jar${pathsep}${derby.home}/lib/derbyshared.jar${pathsep}${derby.home}/lib/derbytools.jar +derby.classes=${derby.home}/lib/derbyclient.jar${pathsep}${derby.home}/lib/derbyshared.jar${pathsep}${derby.home}/lib/derbytools.jar +derby.poolName=cts-derby-pool +derby.dataSource=org.apache.derby.jdbc.ClientDataSource +derby.properties=DatabaseName\=\"${derby.dbName}\":user\=${derby.user}:password\=${derby.passwd}:serverName\=${derby.server}:portNumber=${derby.port} +derby.startup.delay=5 + +# +# Cloudscape 10 /Derby embedded driver +# +derbyEmbedded.dbName=/tmp/DerbyDB +derbyEmbedded.server=${orb.host} +derbyEmbedded.port=1527 +derbyEmbedded.dml.file=derby/derby.dml.sql +derbyEmbedded.user=cts1 +derbyEmbedded.passwd=cts1 +derbyEmbedded.url=jdbc:derby:${derbyEmbedded.dbName};create=true +derbyEmbedded.driver=org.apache.derby.jdbc.EmbeddedDriver +derbyEmbedded.classes=${javaee.home}/../javadb/lib/derby.jar${pathsep}${javaee.home}/../javadb/lib/derbyshared.jar${pathsep}${javaee.home}/../javadb/lib/derbytools.jar${pathsep}${ts.home}/lib/dbprocedures.jar +derbyEmbedded.poolName=cts-derbyEmbedded-pool +derbyEmbedded.dataSource=org.apache.derby.jdbc.EmbeddedDataSource +derbyEmbedded.pool.url='jdbc\\:derby\\:${derbyEmbedded.dbName}\\;create=true' +derbyEmbedded.properties=DatabaseName\=\"${derbyEmbedded.dbName}\":user\=${derbyEmbedded.user}:password\=${derbyEmbedded.passwd} + + +## +## Info for DB2 (8.1 type 2 driver) +## +db2.dbName=cts +db2.server=${orb.host} +db2.port=50000 +db2.dml.file=db2/db2.dml.sql +db2.user=db2inst1 +db2.passwd=ibmdb2 +db2.url=jdbc:db2:${db2.dbName} +db2.driver=com.ibm.db2.jcc.DB2Driver +db2.classes=${jdbc.lib.class.path}/db2jcc.jar:${jdbc.lib.class.path}/db2jcc_license_cu.jar:${jdbc.lib.class.path}/db2java.zip +db2.poolName=cts-db2-pool +db2.dataSource=com.ibm.db2.jcc.DB2SimpleDataSource +db2.properties=user=${db2.user}:password=${db2.passwd}:databaseName=${db2.dbName}:driverType=2:deferPrepares\=false + +## +## Info for db2 using the DataDirect driver +## +db2DD.dbName=cts +db2DD.server=${orb.host} +db2DD.port=50000 +db2DD.dml.file=db2/db2.dml.sql +db2DD.user=db2inst1 +db2DD.passwd=ibmdb2 +db2DD.url=jdbc:datadirect:db2://${db2DD.server}:${db2DD.port};DatabaseName\=${db2DD.dbName} +db2DD.driver=com.ddtek.jdbc.db2.DB2Driver +db2DD.classes=${jdbc.lib.class.path}/util.jar${pathsep}${jdbc.lib.class.path}/db2.jar${pathsep}${jdbc.lib.class.path}/base.jar +db2DD.poolName=cts-db2-DataDirect-pool +db2DD.dataSource=com.ddtek.jdbcx.db2.DB2DataSource +db2DD.properties=user\=${db2DD.user}:password\=${db2DD.passwd}:ServerName\=${db2DD.server}:portNumber\=${db2DD.port}:databasename\=${db2DD.dbName} + +## +## Info for db2 using the Sun driver +## +db2Sun.dbName=cts +db2Sun.server=${orb.host} +db2Sun.port=50000 +db2Sun.dml.file=db2/db2.dml.sql +db2Sun.user=db2inst1 +db2Sun.passwd=ibmdb2 +db2Sun.url=jdbc:sun:db2://${db2Sun.server}:${db2Sun.port};DatabaseName\=${db2Sun.dbName} +db2Sun.driver=com.sun.sql.jdbc.db2.DB2Driver +db2Sun.classes=${jdbc.lib.class.path}/smdb2.jar +db2Sun.poolName=cts-db2-Sun-pool +db2Sun.dataSource=com.sun.sql.jdbcx.db2.DB2DataSource +db2Sun.properties=user\=${db2Sun.user}:password\=${db2Sun.passwd}:ServerName\=${db2Sun.server}:portNumber\=${db2Sun.port}:databasename\=${db2Sun.dbName} + +## +## Info for Microsoft SQL Server +## +mssqlserver.dbName=cts +mssqlserver.server=${orb.host} +mssqlserver.port=1433 +mssqlserver.dml.file=mssqlserver/mssqlserver.dml.sql +mssqlserver.user=guest +mssqlserver.passwd=guest +mssqlserver.url=jdbc:microsoft:sqlserver://${mssqlserver.server}:${mssqlserver.port} +mssqlserver.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver +mssqlserver.classes=${jdbc.lib.class.path}/sqljdbc.jar +mssqlserver.poolName=cts-mssqlserver-pool +mssqlserver.dataSource=com.microsoft.sqlserver.jdbc.SQLServerDataSource +mssqlserver.properties=user\=${mssqlserver.user}:password\=${mssqlserver.passwd}:ServerName\=${mssqlserver.server}:portNumber\=${mssqlserver.port} + + +## +## Info for Microsoft SQL Server using the DataDirect driver +## +mssqlserverDD.dbName=cts +mssqlserverDD.server=${orb.host} +mssqlserverDD.port=1433 +mssqlserverDD.dml.file=mssqlserver/mssqlserver.dml.sql +mssqlserverDD.user=guest +mssqlserverDD.passwd=guest +mssqlserverDD.url=jdbc:datadirect:sqlserver://${mssqlserverDD.server}:${mssqlserverDD.port} +mssqlserverDD.driver=com.ddtek.jdbc.sqlserver.SQLServerDriver +mssqlserverDD.classes=${jdbc.lib.class.path}/util.jar${pathsep}${jdbc.lib.class.path}/sqlserver.jar${pathsep}${jdbc.lib.class.path}/base.jar +mssqlserverDD.poolName=cts-mssqlserver-DataDirect-pool +mssqlserverDD.dataSource=com.ddtek.jdbcx.sqlserver.SQLServerDataSource +mssqlserverDD.properties=user\=${mssqlserverDD.user}:password\=${mssqlserverDD.passwd}:ServerName\=${mssqlserverDD.server}:portNumber\=${mssqlserverDD.port}:selectMethod\=cursor + +## +## Info for Microsoft SQL Server using the Inet driver +## +mssqlserverInet.dbName=cts1 +mssqlserverInet.server=${orb.host} +mssqlserverInet.port=1433 +mssqlserverInet.dml.file=mssqlserver/mssqlserver.dml.sql +mssqlserverInet.user=cts1 +mssqlserverInet.passwd=cts1 +mssqlserverInet.url=jdbc:inetdae7:${mssqlserverInet.server}:${mssqlserverInet.port} +mssqlserverInet.driver=com.inet.tds.TdsDriver +mssqlserverInet.classes=${jdbc.lib.class.path}/Merlia.jar +mssqlserverInet.poolName=cts-mssqlserver-Inet-pool +mssqlserverInet.dataSource=com.inet.tds.TdsDataSource +mssqlserverInet.properties=user\=${mssqlserverInet.user}:password\=${mssqlserverInet.passwd}:ServerName\=${mssqlserverInet.server}:port\=${mssqlserverInet.port} + +## +## Info for Microsoft SQL Server using the Sun driver +## +mssqlserverSun.dbName=cts +mssqlserverSun.server=${orb.host} +mssqlserverSun.port=1433 +mssqlserverSun.dml.file=mssqlserver/mssqlserver.dml.sql +mssqlserverSun.user=guest +mssqlserverSun.passwd=guest +mssqlserverSun.url=jdbc:sun:sqlserver://${mssqlserverSun.server}:${mssqlserverSun.port} +mssqlserverSun.driver=com.sun.sql.jdbc.sqlserver.SQLServerDriver +mssqlserverSun.classes=${jdbc.lib.class.path}/smsqlserver.jar +mssqlserverSun.poolName=cts-mssqlserver-Sun-pool +mssqlserverSun.dataSource=com.sun.sql.jdbcx.sqlserver.SQLServerDataSource +mssqlserverSun.properties=user\=${mssqlserverSun.user}:password\=${mssqlserverSun.passwd}:ServerName\=${mssqlserverSun.server}:portNumber\=${mssqlserverSun.port}:selectMethod\=cursor + +## +## Info for MYSQL driver +## +mysql.dbName=cts +mysql.server=${orb.host} +mysql.port=3306 +mysql.dml.file=mysql/mysql.dml.sql +mysql.user=cts1 +mysql.passwd=cts1 +mysql.url=jdbc:mysql://${mysql.server}:${mysql.port}/${mysql.dbName} +mysql.driver=com.mysql.jdbc.Driver +mysql.classes=${jdbc.lib.class.path}/mysql-connector-java-5.1.42-bin.jar +mysql.poolName=cts-mysql-pool +mysql.dataSource=com.mysql.jdbc.jdbc2.optional.MysqlDataSource +mysql.properties=user\=${mysql.user}:password\=${mysql.passwd}:DatabaseName\=${mysql.dbName}\:ServerName\=${mysql.server}\:port\=${mysql.port}\:jdbcCompliantTruncation\=false + +## +## Info for Oracle DataDirect +## +oracleDD.dbName=ora817 +oracleDD.server=${orb.host} +oracleDD.port=1521 +oracleDD.dml.file=oracle/oracle.dml.sql +oracleDD.user=la +oracleDD.passwd=la +oracleDD.url=jdbc:datadirect:oracle://${oracleDD.server};SID=${oracleDD.dbName} +oracleDD.driver=com.ddtek.jdbc.oracle.OracleDriver +oracleDD.classes=${jdbc.lib.class.path}/base.jar${pathsep}${jdbc.lib.class.path}/oracle.jar${pathsep}${jdbc.lib.class.path}/util.jar +oracleDD.poolName=cts-oracle-DataDirect-pool +oracleDD.dataSource=com.ddtek.jdbcx.oracle.OracleDataSource +oracleDD.properties=user\=${oracleDD.user}:password\=${oracleDD.passwd}:SID\="${oracleDD.dbName}":serverName=${oracleDD.server}:portNumber=${oracleDD.port} + +## +## Info for Oracle thin +## +oracle.dbName=cts +oracle.server=${orb.host} +oracle.port=1521 +oracle.dml.file=oracle/oracle.dml.sql +oracle.user=cts1 +oracle.passwd=cts1 +oracle.url=jdbc:oracle:thin:@${oracle.server}:${oracle.port}:${oracle.dbName} +oracle.driver=oracle.jdbc.OracleDriver +oracle.classes=${jdbc.lib.class.path}/ojdbc8.jar +oracle.poolName=cts-oracle-pool +oracle.dataSource=oracle.jdbc.pool.OracleDataSource +oracle.pool.url=jdbc\\:oracle\\:thin\\:@${oracle.server}\\:${oracle.port}\\:${oracle.dbName} +oracle.properties=user\=${oracle.user}:password\=${oracle.passwd}:URL\=\"${oracle.pool.url}\" + +# +# Info for Oracle oci driver +# +oracleOCI.dbName=cts1 +oracleOCI.server=${orb.host} +oracleOCI.port=1521 +oracleOCI.dml.file=oracle/oracle.dml.sql +oracleOCI.user=cts1 +oracleOCI.passwd=cts1 +oracleOCI.url=jdbc:oracle:oci:@${oracleOCI.dbName} +oracleOCI.driver=oracle.jdbc.OracleDriver +oracleOCI.classes=${jdbc.lib.class.path}/ojdbc8.jar +oracleOCI.poolName=cts-oracle-oci-pool +oracleOCI.dataSource=oracle.jdbc.pool.OracleDataSource +oracleOCI.pool.url=jdbc\\:oracle\\:oci\\:@${oracleOCI.dbName} +oracleOCI.properties=user\=${oracleOCI.user}:password\=${oracleOCI.passwd}:URL\=\"${oracleOCI.pool.url}\" + +## +## Info for Oracle inet +## +oracleInet.dbName=cts1 +oracleInet.server=${orb.host} +oracleInet.port=1521 +oracleInet.dml.file=oracle/oracle.dml.sql +oracleInet.user=cts1 +oracleInet.passwd=cts1 +oracleInet.url=jdbc:inetora:${oracleInet.server}:${oracleInet.port}:${oracleInet.dbName} +oracleInet.driver=com.inet.ora.OraDriver +oracleInet.classes=${jdbc.lib.class.path}/Oranxo.jar +oracleInet.poolName=cts-oracle-Inet-pool +oracleInet.dataSource=com.inet.ora.OraDataSource +oracleInet.properties=user\=${oracleInet.user}:password\=${oracleInet.passwd}:serviceName\="${oracleInet.dbName}":serverName=${oracleInet.server}:port=${oracleInet.port} + +## +## Info for Oracle Sun +## +oracleSun.dbName=ora817 +oracleSun.server=${orb.host} +oracleSun.port=1521 +oracleSun.dml.file=oracle/oracle.dml.sql +oracleSun.user=la +oracleSun.passwd=la +oracleSun.url=jdbc:sun:oracle://${oracleSun.server};SID=${oracleSun.dbName} +oracleSun.driver=com.sun.sql.jdbc.oracle.OracleDriver +oracleSun.classes=${jdbc.lib.class.path}/smoracle.jar +oracleSun.poolName=cts-oracle-Sun-pool +oracleSun.dataSource=com.sun.sql.jdbcx.oracle.OracleDataSource +oracleSun.properties=user\=${oracleSun.user}:password\=${oracleSun.passwd}:SID\="${oracleSun.dbName}":serverName=${oracleSun.server}:portNumber=${oracleSun.port} + +## +## Info for Pointbase +## +pointbase.dbName=cts +pointbase.server=${orb.host} +pointbase.port=9092 +pointbase.dml.file=pointbase/pointbase.dml.sql +pointbase.user=PBPUBLIC +pointbase.passwd=PBPUBLIC +pointbase.url=jdbc:pointbase:server://${pointbase.server}:${pointbase.port}/${pointbase.dbName},new +pointbase.driver=com.pointbase.jdbc.jdbcUniversalDriver +pointbase.classes=${jdbc.lib.class.path}/pbclient.jar${pathsep}${jdbc.lib.class.path}/pbembedded.jar +pointbase.poolName=cts-pointbase-pool +pointbase.dataSource=com.pointbase.jdbc.jdbcDataSource +pointbase.pool.url="jdbc\\:pointbase\\:server\\:\/\/${pointbase.server}\\:${pointbase.port}\/${pointbase.dbName},new" +pointbase.properties=user\=${pointbase.user}:password\=${pointbase.passwd}:DatabaseName\=\"${pointbase.pool.url}\" + +## +## Info for Postgres +## +postgresql.dbName=CTS5 +postgresql.server=${orb.host} +postgresql.port=5432 +postgresql.dml.file=postgresql/postgresql.dml.sql +postgresql.user=cts1 +postgresql.passwd=cts1 +postgresql.url=jdbc:postgresql://${postgresql.server}:${postgresql.port}/${postgresql.dbName} +postgresql.driver=org.postgresql.Driver +postgresql.classes=${jdbc.lib.class.path}/postgresql-8.4-701.jdbc4.jar +postgresql.poolName=cts-postgresql-pool +postgresql.pool.url="jdbc\\:postgresql\\:server\\:\/\/${postgresql.server}\\:${postgresql.port}\/${postgresql.dbName},new" +postgresql.dataSource=org.postgresql.ds.PGSimpleDataSource +postgresql.properties=user\=${postgresql.user}:password\=${postgresql.passwd}:DatabaseName\=${postgresql.dbName}\:ServerName\=${postgresql.server}\:port\=${postgresql.port} + +## +## Info for Sybase (jConnect Driver) +## +sybase.dbName=cts2 +sybase.server=${orb.host} +sybase.port=4100 +sybase.dml.file=sybase/sybase.dml.sql +sybase.user=cts1 +sybase.passwd=cts1 +sybase.url=jdbc:sybase:Tds:${sybase.server}:${sybase.port}/${sybase.dbName} +sybase.driver=com.sybase.jdbc2.jdbc.SybDriver +sybase.classes=${jdbc.lib.class.path}/jconn2.jar +sybase.poolName=cts-sybase-pool +sybase.dataSource= com.sybase.jdbc2.jdbc.SybDataSource +sybase.properties=user\=${sybase.user}:password\=${sybase.passwd}:DatabaseName\=${sybase.dbName}\:ServerName\=${sybase.server}\:PortNumber\=${sybase.port}\:BE_AS_JDBC_COMPLIANT_AS_POSSIBLE\=true\:FAKE_METADATA\=true + +## +## Info for Sybase (Inet Driver) +## +sybaseInet.dbName=cts2 +sybaseInet.server=${orb.host} +sybaseInet.port=4100 +sybaseInet.dml.file=sybase/sybase.dml.sql +sybaseInet.user=cts1 +sybaseInet.passwd=cts1 +sybaseInet.url=jdbc:inetsyb:${sybaseInet.server}:${sybaseInet.port}?database=${sybaseInet.dbName} +sybaseInet.driver=com.inet.syb.SybDriver +sybaseInet.classes=${jdbc.lib.class.path}/Sybelux.jar +sybaseInet.poolName=cts-sybase-Inet-pool +sybaseInet.dataSource= com.inet.syb.SybDataSource +sybaseInet.properties=user\=${sybaseInet.user}:password\=${sybaseInet.passwd}:DatabaseName\=${sybaseInet.dbName}\:ServerName\=${sybaseInet.server}\:PortNumber\=${sybaseInet.port} + + +## +## Info for Sybase using the DataDirect driver +## +sybaseDD.dbName=cts2 +sybaseDD.server=${orb.host} +sybaseDD.port=4100 +sybaseDD.dml.file=sybase/sybase.dml.sql +sybaseDD.user=cts1 +sybaseDD.passwd=cts1 +sybaseDD.url=jdbc:datadirect:sybase://${sybaseDD.server}:${sybaseDD.port} +sybaseDD.driver=com.ddtek.jdbc.sybase.SybaseDriver +sybaseDD.classes=${jdbc.lib.class.path}/util.jar${pathsep}${jdbc.lib.class.path}/sybase.jar${pathsep}${jdbc.lib.class.path}/base.jar +sybaseDD.poolName=cts-sybase-DataDirect-pool +sybaseDD.dataSource=com.ddtek.jdbcx.sybase.SybaseDataSource +sybaseDD.properties=user\=${sybaseDD.user}:password\=${sybaseDD.passwd}:ServerName\=${sybaseDD.server}:portNumber\=${sybaseDD.port}:selectMethod\=cursor:DatabaseName\=${sybaseDD.dbName} + +## +## Info for Sybase using the Sun driver +## +sybaseSun.dbName=cts2 +sybaseSun.server=${orb.host} +sybaseSun.port=4100 +sybaseSun.dml.file=sybase/sybase.dml.sql +sybaseSun.user=cts1 +sybaseSun.passwd=cts1 +sybaseSun.url=jdbc:sun:sybase://${sybaseSun.server}:${sybaseSun.port} +sybaseSun.driver=com.sun.sql.jdbc.sybase.SybaseDriver +sybaseSun.classes=${jdbc.lib.class.path}/smsybase.jar +sybaseSun.poolName=cts-sybase-Sun-pool +sybaseSun.dataSource=com.sun.sql.jdbcx.sybase.SybaseDataSource +sybaseSun.properties=user\=${sybaseSun.user}:password\=${sybaseSun.passwd}:ServerName\=${sybaseSun.server}:portNumber\=${sybaseSun.port}:selectMethod\=cursor:DatabaseName\=${sybaseSun.dbName} + +############################################################### +## The following database configuration section is for the CTS +## interop tests which require a database that is used by the +## reference implementation. These entries should not be changed. +# @derby.dbName.ri -- Database Name +# @derby.server.ri -- Database Server +# @derby.port.ri -- Database Server port +# @derby.dml.file.ri -- DML file used for CTS test cases +# @derby.user.ri -- User Id configured +# @derby.passwd.ri -- User password configured +# @derby.url.ri -- URL to the cts database +# @derby.driver.ri -- DriverManager driver +# @derby.classes.ri -- CLASSPATH to JDBC driver classes +# @derby.poolName.ri -- Name of pool configured in the Java EE +# RI (do not change!) +# @derby.dataSource.ri -- DataSource driver +# @derby.properties.ri -- Any additional JDBC driver required +# properties +# @derby.startup.delay.ri -- delay to wait for DB to start +############################################################### +derby.dbName.ri=derbyDBri +derby.server.ri=${orb.host.ri} +derby.port.ri=1527 +derby.dml.file.ri=derby/derby.dml.sql +derby.user.ri=cts1 +derby.passwd.ri=cts1 +derby.url.ri=jdbc:derby://${derby.server.ri}:${derby.port.ri}/${derby.dbName.ri};create=true +derby.driver.ri=org.apache.derby.jdbc.ClientDriver +derby.home.ri=${javaee.home.ri}/../javadb +derby.system.home.ri=${derby.home.ri}/databases +derby.classpath.ri=${ts.home}/lib/dbprocedures.jar${pathsep}${derby.home.ri}/lib/derbynet.jar${pathsep}${derby.home.ri}/lib/derbyshared.jar${pathsep}${derby.home.ri}/lib/derbytools.jar +derby.classes.ri=${derby.home.ri}/lib/derbyclient.jar{pathsep}${derby.home.ri}/lib/derbyshared.jar${pathsep}${derby.home.ri}/lib/derbytools.jar +derby.poolName.ri=cts-derby-pool +derby.dataSource.ri=org.apache.derby.jdbc.ClientDataSource +derby.properties.ri=DatabaseName\=\"${derby.dbName.ri}\":user\=${derby.user.ri}:password\=${derby.passwd.ri}:serverName\=${derby.server.ri}:portNumber=${derby.port.ri} +derby.startup.delay.ri=5 +############################################################### +# @alt.dtd.dir DTD location for Java EE and RI xml files. Used +# for xml validation when building tests. If +# javaee.home.ri is set, /lib/dtds +# will be used and alt.dtd.dir is ignored. +# @alt.schema.dir schema location for Java EE and RI xml files. +# Used for xml validation when building tests. +# If javaee.home.ri is set, +# /lib/schemas will be used and +# alt.schema.dir is ignored. +############################################################### +alt.dtd.dir=${ts.home}/lib/dtds +alt.schema.dir=${ts.home}/lib/schemas + +############################################################### +## Configure the behavior of which tables CTS will create when +## ant init.[datbaseName] is invoked. +# +# @create.cmp.tables - When set to false, the appserver is +# responsible for creating cmp tables +# at deployment of the ejb/ear +# When set to true, init.[datbaseName] +# will create the tables used by CMP +# EJBs. The sql for the CMP tables are +# contained in: +# $TS_HOME/[datbaseName]/sql/[databaseName].ddl.cmp.sql +# $TS_HOME/[datbaseName]/sql/[databaseName].ddl.interop.sql +# +############################################################### +create.cmp.tables=true + +############################################################### +# @jdbc.poolName - Configure the connection pool that will be +# tested in this cts test run. +# +# @jdbc.maxpoolsize - This property defines the max pool size +# when creating JDBC connection pools. +# +# @jdbc.steadypoolsize - This property defines the steady pool size +# when creating JDBC connection pools. +############################################################### +jdbc.poolName=${derby.poolName} +jdbc.maxpoolsize=64 +jdbc.steadypoolsize=32 + +############################################################### +## These properties are use for the CTS +## interop tests which require a database that is used by the +## reference implementation. +# +# @jdbc.poolName.ri - Configure the connection pool that will be +# use when configuring the JDBC connection +# pools for the reference implemetation. +# +# @jdbc.maxpoolsize.ri - This property defines the max pool size +# when creating JDBC connection pools. +# +# @jdbc.steadypoolsize.ri - This property defines the steady pool size +# when creating JDBC connection pools. +############################################################### +jdbc.poolName.ri=${derby.poolName.ri} +jdbc.maxpoolsize.ri=96 +jdbc.steadypoolsize.ri=32 + +############################################################### +# @jdbc.datasource.props - Used to to specify Vendor specific +# properties and less commonly used DataSource properties. +# Its value is a comma-separated array of name-value pairs. +# Each property pair follows the format of "name=value", +# including the surrounding double quotes. +# +# The value of this property must not contain any extra spaces. +# +# In most cases, this property is not needed and therefore +# commented out. +# +############################################################### +#jdbc.datasource.props="driverType=thin","name2=value2" + +############################################################### +# @jdbc.db - The name of the currently configured DB. This +# value is the prefix of the DB properties currently +# being used. Some valid values are; derby and +# derbyEmbedded. See the other DB property +# names for other valid values. +############################################################### +jdbc.db=derby +jdbc.db.classes=${derby.classes} + +############################################################### +## These properties are configurable and must specify valid +## usernames and passwords to establish JDBC connections to +## backend RDBMS. +## +# @user1 - Set this to the user for the jdbc/DB1 resource +# @password1 - Set this to the password for the jdbc/DB1 resource +# @user2 - Set this to the user for the jdbc/DB2 resource +# @password2 - Set this to the password for the jdbc/DB2 resource +# @user3 - Set this to the user for the jdbc/DBTimer resource +# @password3 - Set this to the password for the jdbc/DBTimer resource +############################################################### +user1=${derby.user} +password1=${derby.passwd} +user2=${derby.user} +password2=${derby.passwd} +user3=${derby.user} +password3=${derby.passwd} + +############################################################### +## Configure the dml file to use +# @db.dml.file - dml file for VI +# @db.dml.file.ri - dml file for RI +############################################################### +db.dml.file=${derby.dml.file} +db.dml.file.ri=${derby.dml.file} + +############################################################### +## Configure the DB specific information needed by JSTL +# @jstl.db.driver - JDBC driver +# @jstl.db.url - DB URL +############################################################### +jstl.db.driver=${derby.driver} +jstl.db.url=${derby.url} + +######################################################################## +# +# @jtaJarClasspath: This property must be set when running signature +# tests. This property should be set to the Path +# for the JTA API jar. +# +######################################################################## +jtaJarClasspath=${s1as.modules}/jakarta.transaction-api.jar + +############################################################### +## Classpath properties required by CTS: +# @javaee.classes.ri -- Classes required by Java EE RI +# @ts.run.classpath.ri -- Classpath required by Java EE RI +# appclient container. +# @ts.run.classpath -- Classpath required by the vendor +# appclient container. +# @ts.harness.classpath -- Classes required by javatest +# @ts.classpath -- Classes used to build the CTS tests +# @ts.lib.classpath -- Classes used to build cts.jar +############################################################### +implementation.classes.ri=${ri.modules}/orb-connector.jar${pathsep}${ri.modules}/deployment-client.jar${pathsep}${ri.modules}/security-ee.jar${pathsep}${ri.modules}/security.jar${pathsep}${ri.modules}/common-util.jar${pathsep}${ri.modules}/glassfish-corba-omgapi.jar${pathsep}${ri.modules}/glassfish-corba-orb.jar${pathsep}${ri.modules}/internal-api.jar${pathsep}${ri.modules}/deployment-common.jar${pathsep}${ri.modules}/gmbal.jar${pathsep}${ri.modules}/bean-validator.jar${pathsep}${ri.modules}/jersey-client.jar${pathsep}${ri.modules}/jersey-common.jar${pathsep}${ri.modules}/jersey-hk2.jar${pathsep}${ri.modules}/jersey-media-jaxb.jar${pathsep}${ri.modules}/jersey-media-sse.jar${pathsep}${ri.modules}/jersey-media-json-processing.jar${pathsep}${ri.modules}/jsonp-jaxrs.jar${pathsep}${ri.modules}/jersey-media-json-binding.jar${pathsep}${ri.modules}/jersey-server.jar${pathsep}${ri.modules}/jersey-container-servlet.jar${pathsep}${ri.modules}/jersey-container-servlet-core.jar${pathsep}${ri.modules}/guava.jar${pathsep}${ri.modules}/jakarta.el.jar${pathsep}${ri.modules}/jakarta.el-api.jar${pathsep}${ri.modules}/tyrus-websocket-core.jar${pathsep}${ri.modules}/tyrus-client.jar${pathsep}${ri.modules}/tyrus-container-grizzly-client.jar${pathsep}${ri.modules}/tyrus-core.jar${pathsep}${ri.modules}/tyrus-container-grizzly.jar${pathsep}${ri.modules}/tyrus-container-grizzly-client.jar${pathsep}${ri.modules}/glassfish-grizzly-extra-all.jar${pathsep}${ri.modules}/nucleus-grizzly-all.jar${pathsep}${ri.modules}/tyrus-server.jar${pathsep}${ri.modules}/tyrus-container-servlet.jar${pathsep}${ri.modules}/tyrus-spi.jar${pathsep}${ri.modules}/yasson.jar${pathsep}${ri.modules}/jakarta.websocket-client-api.jar${pathsep}${ri.modules}/parsson.jar${pathsep}${ri.modules}/parsson-media.jar${pathsep}${ri.modules}/angus-activation.jar${pathsep}${ri.modules}/angus-mail.jar${pathsep}${ri.modules}/expressly.jar + +implementation.classes=${s1as.modules}/deployment-client.jar${pathsep}${s1as.modules}/security.jar${pathsep}${s1as.modules}/common-util.jar${pathsep}${s1as.modules}/glassfish-corba-omgapi.jar${pathsep}${s1as.modules}/deployment-common.jar${pathsep}${s1as.modules}/gmbal.jar${pathsep}${s1as.modules}/bean-validator.jar${pathsep}${s1as.modules}/jakarta.ws.rs-api.jar${pathsep}${s1as.modules}/jersey-client.jar${pathsep}${s1as.modules}/jersey-common.jar${pathsep}${s1as.modules}/jersey-hk2.jar${pathsep}${s1as.modules}/jersey-media-jaxb.jar${pathsep}${s1as.modules}/jersey-media-sse.jar${pathsep}${s1as.modules}/jersey-media-json-processing.jar${pathsep}${s1as.modules}/jsonp-jaxrs.jar${pathsep}${s1as.modules}/jersey-media-json-binding.jar${pathsep}${s1as.modules}/jersey-server.jar${pathsep}${s1as.modules}/jersey-container-servlet.jar${pathsep}${s1as.modules}/jersey-container-servlet-core.jar${pathsep}${s1as.modules}/guava.jar${pathsep}${s1as.modules}/jakarta.el.jar${pathsep}${s1as.modules}/jakarta.el-api.jar${pathsep}${s1as.modules}/tyrus-websocket-core.jar${pathsep}${s1as.modules}/tyrus-client.jar${pathsep}${s1as.modules}/tyrus-core.jar${pathsep}${s1as.modules}/tyrus-container-grizzly.jar${pathsep}${s1as.modules}/tyrus-container-grizzly-client.jar${pathsep}${s1as.modules}/glassfish-grizzly-extra-all.jar${pathsep}${s1as.modules}/nucleus-grizzly-all.jar${pathsep}${s1as.modules}/tyrus-server.jar${pathsep}${s1as.modules}/tyrus-container-servlet.jar${pathsep}${s1as.modules}/tyrus-spi.jar${pathsep}${s1as.modules}/yasson.jar${pathsep}${s1as.modules}/jakarta.websocket-client-api.jar${pathsep}${s1as.modules}/parsson.jar${pathsep}${s1as.modules}/parsson-media.jar${pathsep}${s1as.modules}/angus-activation.jar${pathsep}${s1as.modules}/angus-mail.jar${pathsep}${s1as.modules}/expressly.jar + +javaee.classes.ri=${ri.modules}/jakarta.jms-api.jar${pathsep}${ri.modules}/jakarta.json.jar${pathsep}${ri.modules}/jakarta.json-api.jar${pathsep}${ri.modules}/jakarta.json.bind-api.jar${pathsep}${ri.modules}/jakarta.ejb-api.jar${pathsep}${ri.modules}/jakarta.annotation-api.jar${pathsep}${ri.modules}/jakarta.enterprise.deploy-api.jar${pathsep}${ri.modules}/jakarta.mail.jar${pathsep}${ri.modules}/jakarta.mail-api.jar${pathsep}${ri.modules}/jakarta.persistence.jar${pathsep}${ri.modules}/jakarta.persistence-api.jar${pathsep}${ri.modules}/jakarta.resource-api.jar${pathsep}${ri.modules}/jakarta.security.auth.message-api.jar${pathsep}${ri.modules}/jakarta.authentication-api.jar${pathsep}${ri.modules}/jakarta.security.jacc-api.jar${pathsep}${ri.modules}/jakarta.authorization-api.jar${pathsep}${ri.modules}/jakarta.interceptor-api.jar${pathsep}${ri.modules}/jakarta.servlet-api.jar${pathsep}${ri.modules}/jakarta.servlet.jsp-api.jar${pathsep}${ri.modules}/jakarta.transaction-api.jar${pathsep}${ri.modules}/jakarta.xml.bind-api.jar${pathsep}${ri.modules}/jaxb-osgi.jar${pathsep}${ri.modules}/jmxremote_optional-repackaged.jar${pathsep}${ri.modules}/jakarta.faces.jar${pathsep}${ri.modules}/jakarta.faces-api.jar${pathsep}${ri.modules}/jakarta.servlet.jsp.jstl.jar${pathsep}${ri.modules}/jakarta.servlet.jsp.jstl-api.jar${pathsep}${ri.modules}/webservices-osgi.jar${pathsep}${ri.modules}/webservices-api-osgi.jar${pathsep}${ri.modules}/ejb.security.jar${pathsep}${ri.modules}/glassfish-corba-csiv2-idl.jar${pathsep}${ri.modules}/weld-osgi-bundle.jar${pathsep}${implementation.classes.ri}${pathsep}${ri.modules}/javamail-connector.jar${pathsep}${ri.modules}/javamail-runtime.jar${pathsep}${ri.modules}/jakarta.websocket-api.jar${pathsep}${ri.modules}/jakarta.enterprise.concurrent-api.jar${pathsep}${ri.modules}/jakarta.enterprise.cdi-api.jar${pathsep}${ri.modules}/jakarta.security.enterprise-api.jar${pathsep}${ri.modules}/resolver.jar${pathsep}${ri.modules}/jakarta.websocket-client-api.jar${pathsep}${ri.modules}/parsson.jar${pathsep}${s1as.modules}/parsson-media.jar${pathsep}${ri.modules}/angus-activation.jar${pathsep}${s1as.modules}/angus-mail.jar${pathsep}${s1as.modules}/expressly.jar${pathsep}${ri.modules}/webservices-extra-jdk-packages.jar${pathsep}${ri.modules}/webservices-connector.jar${pathsep}${ri.modules}/webservices-extra-xmlsec.jar${pathsep}${ri.modules}/webservices.security.jar + +javaee.classes=${s1as.modules}/jakarta.jms-api.jar${pathsep}${s1as.modules}/jakarta.json.jar${pathsep}${s1as.modules}/jakarta.json-api.jar${pathsep}${s1as.modules}/jakarta.json.bind-api.jar${pathsep}${s1as.modules}/jakarta.ejb-api.jar${pathsep}${s1as.modules}/jakarta.annotation-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.deploy-api.jar${pathsep}${s1as.modules}/jakarta.mail.jar${pathsep}${s1as.modules}/jakarta.mail-api.jar${pathsep}${s1as.modules}/jakarta.persistence.jar${pathsep}${s1as.modules}/jakarta.persistence-api.jar${pathsep}${s1as.modules}/jakarta.resource-api.jar${pathsep}${s1as.modules}/jakarta.security.auth.message-api.jar${pathsep}${s1as.modules}/jakarta.security.jacc-api.jar${pathsep}${s1as.modules}/jakarta.authentication-api.jar${pathsep}${s1as.modules}/jakarta.authorization-api.jar${pathsep}${s1as.modules}/jakarta.servlet-api.jar${pathsep}${s1as.modules}/el-impl.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp-api.jar${pathsep}${jtaJarClasspath}${pathsep}${s1as.modules}/jakarta.xml.bind-api.jar${pathsep}${s1as.modules}/jaxb-osgi.jar${pathsep}${s1as.modules}/jmxremote_optional-repackaged.jar${pathsep}${s1as.modules}/jakarta.faces.jar${pathsep}${s1as.modules}/jakarta.faces-api.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp.jstl.jar${pathsep}${ri.modules}/jakarta.servlet.jsp.jstl-api.jar${pathsep}${s1as.modules}/webservices-osgi.jar${pathsep}${s1as.modules}/webservices-api-osgi.jar${pathsep}${s1as.modules}/jakarta.management.j2ee-api.jar${pathsep}${s1as.modules}/ejb.security.jar${pathsep}${s1as.modules}/glassfish-corba-csiv2-idl.jar${pathsep}${s1as.modules}/weld-osgi-bundle.jar${pathsep}${implementation.classes}${pathsep}${s1as.modules}/javamail-connector.jar${pathsep}${s1as.modules}/javamail-runtime.jar${pathsep}${s1as.modules}/jakarta.websocket-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.concurrent-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.cdi-api.jar$${pathsep}${s1as.modules}/jakarta.xml.ws-api.jar${pathsep}${s1as.modules}/jakarta.xml.bind-api.jar${pathsep}${s1as.modules}/jakarta.security.enterprise-api.jar${pathsep}${s1as.modules}/jakarta.inject-api.jar${pathsep}${s1as.modules}/jakarta.activation-api.jar${pathsep}${s1as.modules}/jakarta.validation-api.jar${pathsep}${s1as.modules}/resolver.jar${pathsep}${s1as.modules}/jakarta.websocket-client-api.jar${pathsep}${s1as.modules}/parsson.jar${pathsep}${s1as.modules}/parsson-media.jar${pathsep}${s1as.modules}/angus-activation.jar${pathsep}${s1as.modules}/angus-mail.jar${pathsep}${s1as.modules}/expressly.jar${pathsep}${s1as.modules}/webservices-extra-jdk-packages.jar${pathsep}${s1as.modules}/webservices-connector.jar${pathsep}${s1as.modules}/webservices-extra-xmlsec.jar${pathsep}${s1as.modules}/webservices.security.jar + +ts.run.classpath.ri=${javaee.classes.ri}${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar + +ts.run.classpath=${pathsep}${javaee.classes}${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${jdbc.db.classes} + +ts.harness.classpath=${ts.home}/lib/jaxb-api.jar${pathsep}${ts.home}/lib/jaxb-core.jar${pathsep}${ts.home}/lib/jaxb-impl.jar${pathsep}${ts.home}/lib/jaxb-xjc.jar${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${ts.home}/lib/sigtest.jar${pathsep}${ts.run.classpath}${pathsep}${ts.home}/lib/javatest.jar${pathsep}${ts.home}/lib/jdom-1.1.3.jar${pathsep}${ant.home}/lib/ant.jar${pathsep}${ri.modules}/admin-cli.jar + +#classpath used for building CTS tests only (DO NOT MODIFY) +ts.classpath=${ts.home}/lib/commons-lang3-3.3.2.jar${pathsep}${javaee.home.ri}/javadb/lib/derby.jar${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${ts.home}/lib/sigtest.jar${pathsep}${ts.run.classpath}${pathsep}${ts.run.classpath.ri}${pathsep}${ts.home}/lib/javatest.jar${pathsep}${ts.home}/lib/jdom-1.1.3.jar${pathsep}${ant.home}/lib/ant.jar${pathsep}${ts.home}/lib/commons-httpclient-3.1.jar${pathsep}${ts.home}/lib/commons-logging-1.1.3.jar${pathsep}${ts.home}/lib/htmlunit-2.15.jar${pathsep}${ts.home}/lib/htmlunit-core-js-2.15.jar${pathsep}${ts.home}/lib/unboundid-ldapsdk.jar${pathsep}${ts.home}/lib/commons-codec-1.9.jar${pathsep}${ts.home}/lib/xml-apis-1.4.01.jar${pathsep}${ts.home}/lib/jaxb-api.jar +#classpath used for building cts.jar (DO NOT MODIFY) +ts.lib.classpath=${javaee.home.ri}/javadb/lib/derby.jar${pathsep}${ts.harness.classpath} + + +############################################################### +# @javaee.home.ri.classpathsuffix - The classpath suffix of +# the RI used in interop tests. Must contain the RI JDBC +# driver jars and the RMI interceptor classes. +############################################################### +javaee.home.ri.classpathsuffix=${javaee.home.ri}/lib/riinterceptors.jar${pathsep}${javaee.home.ri}/javadb/lib/derbyclient.jar + +############################################################### +# @s1as.classpathsuffix - The classpath suffix of +# the RI when being used as the app server under test. +############################################################### +s1as.classpathsuffix=${javaee.home}/lib/tsprovider.jar + +######################################################################## +## Common environment for both ts_unix and ts_win32 +# +# @command.testExecute - This command is used to execute any test +# clients which are not run inside an +# application client container. For example, +# any URL clients or standalone java clients +# would be executed with this command. Some +# test directories which make use of this command +# are servlet and jsp. +######################################################################## + +command.testExecute=com.sun.ts.lib.harness.ExecTSTestCmd \ + CLASSPATH=${ts.harness.classpath}${pathsep}${ts.home}/classes${pathsep}\ + ${JAVA_HOME}/../lib/tools.jar${pathsep}\ + ${ri.modules}/security-ee.jar${pathsep}\ + ${ts.home}/lib/commons-httpclient-3.1.jar${pathsep}\ + ${ts.home}/lib/commons-logging-1.1.3.jar${pathsep}\ + ${ts.home}/lib/commons-codec-1.9.jar${pathsep}\ + ${ts.home}/lib/cssparser-0.9.25.jar${pathsep}\ + ${ts.home}/lib/htmlunit-2.15.jar${pathsep}\ + ${ts.home}/lib/htmlunit-core-js-2.15.jar${pathsep}\ + ${ts.home}/lib/httpcore-4.4.9.jar${pathsep}\ + ${ts.home}/lib/httpclient-4.5.5.jar${pathsep}\ + ${ts.home}/lib/httpmime-4.5.5.jar${pathsep}\ + ${ts.home}/lib/commons-collections-3.2.1.jar${pathsep}\ + ${ts.home}/lib/commons-io-2.4.jar${pathsep}\ + ${ts.home}/lib/commons-lang3-3.3.2.jar${pathsep}\ + ${ts.home}/lib/jaxen-1.1.6.jar${pathsep}\ + ${ts.home}/lib/nekohtml-1.9.21.jar${pathsep}\ + ${ts.home}/lib/sac-1.3.jar${pathsep}\ + ${ts.home}/lib/saxpath.jar${pathsep}\ + ${ts.home}/lib/xercesImpl-2.11.0.jar${pathsep}\ + ${ts.home}/lib/xalan-2.7.2.jar${pathsep}\ + ${ts.home}/lib/serializer-2.7.2.jar${pathsep}\ + ${ts.home}/lib/xml-apis-1.4.01.jar${pathsep}\ + ${ts.home}/lib/unboundid-ldapsdk.jar${pathsep}\ + ${jdbc.db.classes} \ + DISPLAY=${ts.display} \ + HOME="${user.home}" \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + PATH="${javaee.home}/nativelib" \ + ${JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Xss2048k \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Djavax.net.ssl.trustStore=${s1as.domain}/${sjsas.instance.config.dir}/cacerts.jks \ + -Dcom.sun.aas.installRoot=${javaee.home} \ + -Dlog.file.location=${log.file.location} \ + -Dservlet.is.jsr115.compatible=${servlet.is.jsr115.compatible} \ + -Dprovider.configuration.file=${provider.configuration.file} \ + -Djava.security.properties=${s1as.domain}/${sjsas.instance.config.dir}/ts.java.security \ + -Dlogical.hostname.servlet=${logical.hostname.servlet} \ + -Dcom.sun.aas.configRoot=${javaee.home}/config \ + -Ddeliverable.class=${deliverable.class} $testExecuteClass $testExecuteArgs + +######################################################################## +## Appclient Command line for the App Server under test +## Licensees modify this command +# +# @command.testExecuteAppClient - This command is used to execute +# the application client container for +# the vendor implementation (vi). +# Please note that $TS_HOME/classes +# should not be in the classpath for +# this command since all client classes +# are self contained in the application +# archive (or referenced via the manifest). +######################################################################## +command.testExecuteAppClient= \ + com.sun.ts.lib.harness.ExecTSTestCmd DISPLAY=${ts.display} HOME="${user.home}" \ + LD_LIBRARY_PATH=${javaee.home}/lib \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + PATH="${javaee.home}/nativelib" \ + APPCPATH=${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${javaee.home}/lib/jpa_alternate_provider.jar${pathsep}${ts.home}/lib/tssv.jar${pathsep}${javaee.home}/modules/weld-osgi-bundle.jar${pathsep}${javaee.home}/modules/jakarta.enterprise.cdi-api.jar \ + TZ=${tz} \ + ${JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Djava.system.class.loader=org.glassfish.appclient.client.acc.agent.ACCAgentClassLoader \ + -Djava.security.policy=${javaee.home}/lib/appclient/client.policy \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.security.auth.login.config=${javaee.home}/lib/appclient/appclientlogin.conf \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Dcom.sun.enterprise.home=${javaee.home} \ + -Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Dcom.sun.aas.installRoot=${javaee.home} \ + -Dcom.sun.aas.imqLib=${javaee.home}/../mq/lib \ + -Djavax.net.ssl.trustStore=${s1as.domain}/${sjsas.instance.config.dir}/cacerts.jks \ + -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl \ + -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl \ + -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl \ + -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser \ + -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter \ + -Doracle.jdbc.J2EE13Compliant=true \ + -Doracle.jdbc.mapDateToTimestamp \ + -Dstartup.login=false \ + -Dauth.gui=false \ + -Dlog.file.location=${log.file.location} \ + -Dri.log.file.location=${ri.log.file.location} \ + -DwebServerHost.2=${webServerHost.2} \ + -DwebServerPort.2=${webServerPort.2} \ + -Dprovider.configuration.file=${provider.configuration.file} \ + -Djava.security.properties=${s1as.domain}/${sjsas.instance.config.dir}/ts.java.security \ + -Dcom.sun.aas.configRoot=${javaee.home}/config \ + -Ddeliverable.class=${deliverable.class} -javaagent:${javaee.home}/lib/gf-client.jar=arg=-configxml,arg=${ts.home}/tmp/appclient/s1as.sun-acc.xml,client=jar=$testExecuteArgs + +#-Ddeliverable.class=${deliverable.class} -javaagent:${javaee.home}/modules/gf-client.jar=arg=-configxml,arg=${s1as.domain}/config/sun-acc.xml,client=jar=$testExecuteArgs +#-Xbootclasspath/a:${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar + +######################################################################## +# @command.testExecuteEjbEmbed - Command line for standalone embedded EJB tests. +# Its classpath must include all the APIs required +# by EJB Lite, vendor's implementation classes and +# configuration for embeddable EJB container, and +# JDBC driver classes (e.g., ${db2.classes}, +# ${oracle.classes}, etc). +# +# Current test archives are dynamically added to +# the classpath by the harness, and need not be +# included in the classpath here. +# +# Most test directories contain one test archive, +# all named ejbembed_vehicle_ejb.jar. If certain +# tooling and pre-processing of test archives are +# needed, the resulting test archives must remain +# the same name and location. +# +# ${ts.home}/classes must not be in the classpath +# since all the required test classes are packaged +# in the test archive (ejbembed_vehicle_ejb.jar). In +# addition, including ${ts.home}/classes in the +# classpath would incorrectly expose all EJBs in +# cts to EJB container bootstrapping process. +######################################################################## +command.testExecuteEjbEmbed=com.sun.ts.lib.harness.ExecTSTestCmd \ + CLASSPATH=${ts.home}/lib/tsharness.jar${pathsep}\ + ${ts.home}/lib/cts.jar${pathsep}\ + ${ts.home}/lib/glassfishporting.jar${pathsep}\ + ${ts.home}/lib/commons-lang3-3.3.2.jar${pathsep}\ + ${jdbc.db.classes}${pathsep}\ + ${javaee.home}/lib/embedded/glassfish-embedded-static-shell.jar \ + DISPLAY=${ts.display} \ + HOME="${user.home}" \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + ${JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.util.logging.config.file=${TS_HOME}/bin/client-logging.properties \ + -Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds} \ + -Ddeliverable.class=${deliverable.class} $testExecuteClass $testExecuteArgs + + +######################################################################## +## Appclient Command line for the Java EE RI (Do not modify) +######################################################################## +command.testExecuteAppClient2= \ + com.sun.ts.lib.harness.ExecTSTestCmd DISPLAY=${ts.display} HOME="${user.home}" \ + LD_LIBRARY_PATH=${javaee.home.ri}/lib \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + PATH="${javaee.home.ri}/nativelib" \ + APPCPATH=${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/cts.jar${pathsep}${ts.home}/lib/glassfishporting.jar${pathsep}${ts.home}/lib/riinterceptors.jar \ + TZ=${tz} \ + ${RI_JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Djava.system.class.loader=org.glassfish.appclient.client.acc.agent.ACCAgentClassLoader \ + -Djava.security.policy=${javaee.home.ri}/lib/appclient/client.policy \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.security.auth.login.config=${javaee.home.ri}/lib/appclient/appclientlogin.conf \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Dcom.sun.enterprise.home=${javaee.home.ri} \ + -Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Dcom.sun.aas.installRoot=${javaee.home.ri} \ + -Dcom.sun.aas.imqLib=${javaee.home.ri}/../mq/lib \ + -Djavax.net.ssl.trustStore=${ri.domain}/config/cacerts.jks \ + -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl \ + -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl \ + -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl \ + -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser \ + -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter \ + -Doracle.jdbc.J2EE13Compliant=true \ + -Doracle.jdbc.mapDateToTimestamp \ + -Dstartup.login=false \ + -Dauth.gui=false \ + -Dlog.file.location=${log.file.location} \ + -Dri.log.file.location=${ri.log.file.location} \ + -DwebServerHost.2=${webServerHost.2} \ + -DwebServerPort.2=${webServerPort.2} \ + -Dprovider.configuration.file=${provider.configuration.file} \ + -Djava.security.properties=${s1as.domain}/${sjsas.instance.config.dir}/ts.java.security \ + -Dcom.sun.aas.configRoot=${javaee.home.ri}/config \ + -Ddeliverable.class=${deliverable.class} -javaagent:${javaee.home.ri}/lib/gf-client.jar=arg=-configxml,arg=${ts.home}/tmp/appclient/ri.sun-acc.xml,client=jar=$testExecuteArgs + +######################################################################## +## Command line for standalone clients running against the +## Java EE RI (Do not modify) +######################################################################## +command.testExecute2=com.sun.ts.lib.harness.ExecTSTestCmd \ + CLASSPATH=${ts.harness.classpath}${pathsep}${ts.home}/classes${pathsep}\ + ${ts.home}/lib/commons-httpclient-3.1.jar${pathsep}\ + ${ts.home}/lib/commons-logging-1.1.3.jar${pathsep}\ + ${ts.home}/lib/commons-codec-1.9.jar${pathsep}\ + ${ts.home}/lib/cssparser-0.9.25.jar${pathsep}\ + ${ts.home}/lib/htmlunit-2.15.jar${pathsep}\ + ${ts.home}/lib/htmlunit-core-js-2.15.jar${pathsep}\ + ${ts.home}/lib/httpcore-4.4.9.jar${pathsep}\ + ${ts.home}/lib/httpclient-4.5.5.jar${pathsep}\ + ${ts.home}/lib/httpmime-4.5.5.jar${pathsep}\ + ${ts.home}/lib/commons-collections-3.2.1.jar${pathsep}\ + ${ts.home}/lib/commons-io-2.4.jar${pathsep}\ + ${ts.home}/lib/commons-lang3-3.3.2.jar${pathsep}\ + ${ts.home}/lib/jaxen-1.1.6.jar${pathsep}\ + ${ts.home}/lib/nekohtml-1.9.21.jar${pathsep}\ + ${ts.home}/lib/sac-1.3.jar${pathsep}\ + ${ts.home}/lib/saxpath.jar${pathsep}\ + ${ts.home}/lib/xercesImpl-2.11.0.jar${pathsep}\ + ${ts.home}/lib/xalan-2.7.2.jar${pathsep}\ + ${ts.home}/lib/serializer-2.7.2.jar${pathsep}\ + ${ts.home}/lib/xml-apis-1.4.01.jar \ + ${ts.home}/lib/unboundid-ldapsdk.jar\ + DISPLAY=${ts.display} \ + HOME="${user.home}" \ + TMP=${TMP} \ + windir=${windir} \ + SYSTEMROOT=${SYSTEMROOT} \ + PATH="${javaee.home}/nativelib" \ + ${RI_JAVA_HOME}/bin/java \ + ${JVMOPTS_RUNTESTCOMMAND} \ + -Dcts.tmp=$harness.temp.directory \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Djavax.net.ssl.trustStore=${ri.domain}/${ri.instance.config.dir}/cacerts.jks \ + -Ddeliverable.class=${deliverable.class} $testExecuteClass $testExecuteArgs + +######################################################################### +## Environment for ts_unix +## 3 test execution commands inherit from common environment +## defined above: testExecuteAppClient2, testExecuteAppClient, and +## testExecute. If you need to override them, uncomment them in the +## following section. +######################################################################### +env.ts_unix.menu=true +##env.ts_unix.command.testExecute= +##env.ts_unix.command.testExecuteAppClient= +##env.ts_unix.command.testExecuteAppClient2= + + +######################################################################## +## Environment for ts_win32 +## 3 test execution commands inherit from common environment +## defined above: testExecuteAppClient2, testExecuteAppClient, and +## testExecute. If you need to override them, uncomment them in the +## following section. +######################################################################## +env.ts_win32.menu=true +##env.ts_win32.command.testExecute= +##env.ts_win32.command.testExecuteAppClient= +##env.ts_win32.command.testExecuteAppClient2= + +######################################################################### +# @jimage.dir: This property specifies the directory where Java 11+ +# modules will be expanded by the jimage tool for use +# in sigTestClasspath +# @sigTestClasspath: This property must be set when running signature +# tests. This property should be set to a list of +# jar files and/or directories which contain your +# Java EE and Java SE classes. Paths must be +# separated by the appropriate path separator +# (';' windows, ':' Unixes). +######################################################################### + +jimage.dir=${ts.home}/tmp/jdk-bundles + +sigTestClasspath=${s1as.modules}/glassfish-corba-omgapi.jar${pathsep}${s1as.modules}/glassfish-corba-orb.jar${pathsep}${s1as.modules}/jakarta.enterprise.cdi-api.jar${pathsep}${s1as.modules}/jakarta.json-api.jar${pathsep}${s1as.modules}/jakarta.json.bind-api.jar${pathsep}${s1as.modules}/jakarta.batch-api.jar${pathsep}${s1as.modules}/jakarta.interceptor-api.jar${pathsep}${s1as.modules}/stax2-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.concurrent-api.jar${pathsep}${s1as.modules}/jakarta.websocket-api.jar${pathsep}${s1as.modules}/jakarta.websocket-client-api.jar${pathsep}${s1as.modules}/jakarta.jms-api.jar${pathsep}${s1as.modules}/jakarta.faces.jar${pathsep}${s1as.modules}/jakarta.validation-api.jar${pathsep}${s1as.modules}/jakarta.annotation-api.jar${pathsep}${s1as.modules}/jakarta.xml.bind-api.jar${pathsep}${s1as.modules}/webservices-api-osgi.jar${pathsep}${pathsep}${s1as.modules}/jakarta.ws.rs-api.jar${pathsep}${s1as.modules}/weld-osgi-bundle.jar${pathsep}${s1as.modules}/jakarta.ejb-api.jar${pathsep}${s1as.modules}/jakarta.mail-api.jar${pathsep}${s1as.modules}/jakarta.persistence-api.jar${pathsep}${s1as.modules}/jakarta.resource-api.jar${pathsep}${s1as.modules}/jakarta.authorization-api.jar${pathsep}${s1as.modules}/jakarta.authentication-api.jar${pathsep}${s1as.modules}/jakarta.servlet-api.jar${pathsep}${s1as.modules}/jakarta.inject-api.jar${pathsep}${s1as.modules}/jakarta.el-api.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp-api.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp.jstl-api.jar${pathsep}${jtaJarClasspath}${pathsep}${s1as.modules}/jakarta.security.enterprise-api.jar${pathsep}${s1as.modules}/jakarta.activation-api.jar${pathsep}${jimage.dir}/java.base${pathsep}${jimage.dir}/java.rmi${pathsep}${jimage.dir}/java.sql${pathsep}${jimage.dir}/java.naming + +######################################################################## +## This property is used to support the odd side case when we have an +## optional technology package that is used but should not be tested. +## +## This property (i.e. optional.tech.packages.to.ignore) must be a comma +## separated list of packages that are NOT to be validated/tested when +## during the sigtest utilities validation of Optional Technologies. +## Example Usage: +## optional.tech.packages.to.ignore=javax.foo.pkg1,javax.bar.pkg2,com.blah.foo.pkg3 +## +## Additional notes: +## - always ignore the optional JAXB packages: +## optional.tech.packages.to.ignore=jakarta.xml.bind +## +######################################################################### +optional.tech.packages.to.ignore=jakarta.xml.bind + +######################################################################## +## These properties are used by the harness. "harness.log.port" +## specifies the port that server components use to send logging +## output back to JavaTest. If the default port # is not available +## on the machine running JavaTest, then you can set it here. +## +# +# @harness.temp.directory directory location used by the +# harness to store temporary files +# +# @harness.log.port the port the harness listens on for log mesages +# from remote clients +# +# @harness.log.traceflag used to turn on/off verbose debugging output +# for the tests. +# +# @harness.executeMode used to run the harness in the following modes +# of execution: +# 0 - default (deploy, run, undeploy) +# 1 - deploy only +# 2 - run only +# 3 - undeploy only +# 4 - deploy and run only +# +# @harness.socket.retry.count - denotes the number of time we should +# attempt to create a server socket when intilizing a test +# client. The socket is used for logging purposes. +# +# @harness.log.delayseconds Number of seconds to delay to allow +# reporting from remote clients to finish. +# +# @harness.maxoutputsize Number of characters that the harness will use +# for a test's output. +######################################################################## +harness.temp.directory=${ts.home}/tmp +harness.log.port=2000 +harness.log.traceflag=true +harness.executeMode=0 +harness.socket.retry.count=10 +harness.log.delayseconds=1 +harness.maxoutputsize=200000 + + +######################################################################### +# @wsdlRepository1 Location to publish final wsdl files when using +# file URL publishing for Vendor Java EE implementation. +# @wsdlRepository2 Location to publish final wsdl files when using +# file URL publishing for Sun RI. +######################################################################### +wsdlRepository1=${harness.temp.directory}/wsdlRepository1 +wsdlRepository2=${harness.temp.directory}/wsdlRepository2 + +####################################################################### +# @deployment_host.1 name of machine running the JSR 88 deployment +# process for the vendor's Java EE implementation. +# @deployment_host.2 name of machine running the JSR 88 deployment +# process for the Java EE RI. +# @deployment_port.1 deployment port (if applicable) for the vendor's +# Java EE implementation. +# @deployment_port.2 deployment port (if applicable) for the +# Java EE RI. +####################################################################### +deployment_host.1=${orb.host} +deployment_host.2=${orb.host.ri} +deployment_port.1=${impl.vi.port} +deployment_port.2=${impl.ri.port} + +#################################################################### +# Implementation Property Settings for Vendor and RI. These properties +# are used when either porting.ts.deploy.class.1 or porting.ts.deploy.class.2 +# are set to com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeployment. +# Note: They are are also used when using the "ant deploy" and "ant undeploy" +# targets outside of running tests. +# +# The CTS provides the glassfish implementation out of the box. +# +# Here are the common properties that need to be defined for the common +# implementation functionality: +# +# @impl.vi This property must be set to the Vendor implementation +# under test. +# @impl.vi.deploy.dir This property must be set to the deploy directory for +# the Vendor implementation. +# @impl.vi.host This property must be set to the admin host where +# the Vendor implementation is running. +# @impl.vi.port This property must be set to the admin port where +# the Vendor implementation is running. +# @impl.ri This property must be set to the RI implementation +# under test. +# @impl.ri.deploy.dir This property must be set to the deploy directory for +# the RI implementation. +# @impl.ri.host This property must be set to the admin host where +# the RI implementation is running. +# @impl.ri.port This property must be set to the admin port where +# the RI implementation is running. +# +# @impl.deploy.timeout.multiplier The time it will wait for deployment to +# succeed or fail +#################################################################### +impl.vi=glassfish +impl.vi.deploy.dir=${s1as.domain}/autodeploy +impl.vi.host=${s1as.admin.host} +impl.vi.port=${s1as.admin.port} + +impl.ri=glassfish +impl.ri.deploy.dir=${ri.domain}/autodeploy +impl.ri.host=${ri.admin.host} +impl.ri.port=${ri.admin.port} + +impl.deploy.timeout.multiplier=240 + + +############################################################### +## These properties are implementations of the pre-1.4 Deployment +## porting interface. The impls defined below use those APIs. +# +# @porting.ts.deploy.class.1 This property must point to an implementation +# of com.sun.ts.lib.porting.TSDeploymentInterface. The default +# value for this property points to an impl that deploys via copying/deleting +# to/from the RI autodeploy directory. More details about setting +# porting.ts.deploy.class.1: +# +# 1. Set this property to deploy/undeploy to/from your impl in +# a custom way. In the case of the RI, it would be set to the following. +# This is the default setting for CTS 8. +# +# porting.ts.deploy.class.1=com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeployment +# +# 2. Note that Jakarta Deployment is removed, so do not use either of the following classes: +# com.sun.ts.lib.deliverable.cts.deploy.StandardDeployment14 +# com.sun.ts.lib.porting.TSDeploymentInterface2 +# com.sun.ts.lib.implementation.sun.javaee.SunRIDeployment2 +# +# +# @porting.ts.deploy.class.2 This property must point to an implementation +# of com.sun.ts.lib.porting.TSDeploymentInterface. +# The default value for this property points to an impl that deploys via copying/deleting +# to/from the RI autodeploy directory. This should be left unchanged... +# +# porting.ts.deploy.class.2=com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeployment +# +# +############################################################### +porting.ts.deploy.class.1=com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeployment +porting.ts.deploy.class.2=com.sun.ts.lib.implementation.sun.javaee.glassfish.AutoDeploymentSeparateVM + +######################################################################## +# @deploy.delay.in.minutes is no longer used, it was for pruned Jakarta Deployment +######################################################################## + +######################################################################## +## Following are no longer used, were settings for pruned Jakarta Deployment +######################################################################## +#deployManagerJarFile.1 +#deployManageruri.1 +#deployManageruname.1 +#deployManagerpasswd.1 + +######################################################################## +## Following are no longer used, were settings for pruned Jakarta Deployment +######################################################################## +#deployManagerJarFile.2 +#deployManageruri.2 +#deployManageruname.2 +#deployManagerpasswd.2 +# +# @porting.ts.deploy2.class.1 +# @porting.ts.deploy2.class.2 +# porting.ts.deploy2.class.1=com.sun.ts.lib.implementation.sun.javaee.SunRIDeployment2 +# porting.ts.deploy2.class.2=com.sun.ts.lib.implementation.sun.javaee.SunRIDeployment2 + + +############################################################### +## These properties must be set to tell the Test harness the +## class names of your porting class implementations. By default +## both property sets below point to Sun RI specific classes. To +## run interoperability tests, the ".2" set of properties should +## always point to Sun RI classes. The ".1" set should point to +## implementations that work in your specific Java EE environment. +# +# @porting.ts.login.class.1 VI of +# com.sun.ts.lib.porting.TSLoginContextInterface +# @porting.ts.url.class.1 VI of +# com.sun.ts.lib.porting.TSURLInterface +# @porting.ts.jms.class.1 VI of +# com.sun.ts.lib.porting.TSJMSAdminInterface +# @porting.ts.HttpsURLConnection.class.1 VI of +# com.sun.ts.lib.porting.TSHttpsURLConnectionInterface +# @porting.ts.login.class.2 RI of +# com.sun.ts.lib.porting.TSLoginContextInterface +# @porting.ts.url.class.2 RI of +# com.sun.ts.lib.porting.TSURLInterface +# @porting.ts.jms.class.2 RI of +# com.sun.ts.lib.porting.TSJMSAdminInterface +# @porting.ts.HttpsURLConnection.class.2 RI of +# com.sun.ts.lib.porting.TSHttpsURLConnectionInterface +############################################################### +porting.ts.login.class.1=com.sun.ts.lib.implementation.sun.javaee.GlassFishLoginContext +porting.ts.url.class.1=com.sun.ts.lib.implementation.sun.common.SunRIURL +porting.ts.jms.class.1=com.sun.ts.lib.implementation.sun.javaee.SunRIJMSAdmin +porting.ts.HttpsURLConnection.class.1=com.sun.ts.lib.implementation.sun.javaee.SunRIHttpsURLConnection + +##Porting class names for Sun RI Java EE Implementation #2 (must be Sun's RI) +porting.ts.login.class.2=com.sun.ts.lib.implementation.sun.javaee.GlassFishLoginContext +porting.ts.url.class.2=com.sun.ts.lib.implementation.sun.common.SunRIURL +porting.ts.jms.class.2=com.sun.ts.lib.implementation.sun.javaee.SunRIJMSAdmin +porting.ts.HttpsURLConnection.class.2=com.sun.ts.lib.implementation.sun.javaee.SunRIHttpsURLConnection + +############################################################## +# @namingServiceHost1 Naming Service host name for the +# Vendor's Implementation (VI) +# @namingServicePort1 Naming Service port for the VI +# @namingServiceHost2 Naming Service host name for the +# Reference Implementation (RI) +# @ namingServicePort2 Naming Service port for the RI +############################################################## +namingServiceHost1=${orb.host} +namingServicePort1=${orb.port} +namingServiceHost2=${orb.host.ri} +namingServicePort2=${orb.port.ri} + +############################################################## +# @certLoginUserAlias User alias for certificate based login. +# This property is used in mutual authentication to pickup the +# certificate based on the user alias. +############################################################## +certLoginUserAlias=cts + +##################################################################### +## The following properties must be set prior to running the Servlet +## or JSP API tests and interoperability tests. +## +## These properties must specify the host and port of the web server, +## in which the servlets and JSPs are deployed. +# +# @webServerHost hostname for the Vendor's Java EE Web Server +# @webServerPort port number of the Vendor's Java EE Web Server +# @webServerHost.2 hostname for the Java EE RI Web Server +# @webServerPort.2 port number of the Java EE RI Web Server +# @ServletClientThreads The ServletClientThreads property configures +# the number of threads used by the client for +# the SingleThreadModel servlet test. If the +# container implementation supports pooling of +# SingleThreadModel servlets, set the value of +# ServletClientThreads to twice the value of +# the default servlet instance pool size. If +# the container implementation only maintains +# a single instance of a SingleTheadModel +# servlet, leave the default value of 2. +##################################################################### +webServerHost=${orb.host} +webServerPort=8080 +webServerHost.2=${orb.host.ri} +webServerPort.2=8181 +ServletClientThreads=2 + +#################################################################### +# @EJBServer1TxInteropEnabled Transaction interoperability settings +# for Vendor Java EE EJB Server +# @EJBServer2TxInteropEnabled Transaction interoperability settings +# for Java EE RI EJB Server +#################################################################### +EJBServer1TxInteropEnabled=true +EJBServer2TxInteropEnabled=true + +############################################################### +## These properties are used for the Connector specific tests. +## +## You must be able to deploy the following resource adapters +## on your Java EE server. +############################################################### + +## JNDI name bindings. You should not change these. The TSDeploymentInterface +## will pass these values as a properties object. See the SunRIDeployment.java +## file for usage patterns. +whitebox-tx=java:comp/env/eis/whitebox-tx +whitebox-notx=java:comp/env/eis/whitebox-notx +whitebox-xa=java:comp/env/eis/whitebox-xa +whitebox-tx-param=java:comp/env/eis/whitebox-tx-param +whitebox-notx-param=java:comp/env/eis/whitebox-notx-param +whitebox-xa-param=java:comp/env/eis/whitebox-xa-param +whitebox-anno_no_md=java:comp/env/eis/whitebox-anno_no_md +whitebox-ibanno_no_md=java:comp/env/eis/whitebox-ibanno_no_md +whitebox-mixedmode=java:comp/env/eis/whitebox-mixedmode +whitebox-multianno=java:comp/env/eis/whitebox-multianno +whitebox-mdcomplete=java:comp/env/eis/whitebox-mdcomplete +whitebox-permissiondd=java:comp/env/eis/whitebox-permissiondd + +## Embedded resource adapter property +whitebox-embed=java:comp/env/eis/ejb_Deployment_whitebox-tx.rar + +whitebox-embed-xa="__SYSTEM/resource/ejb_Tsr#whitebox-xa#com.sun.ts.tests.common.connector.whitebox.TSConnectionFactory" +tsrJndiName=java:comp/TransactionSynchronizationRegistry +tsrHomeJndiName="java:global/ejb_Tsr/ejb_Tsr_ejb/Tsr" + +## JNDI name bindings for JDBC Connector. +JDBCwhitebox-tx=java:comp/env/eis/JDBCwhitebox-tx +JDBCwhitebox-notx=java:comp/env/eis/JDBCwhitebox-notx +JDBCwhitebox-xa=java:comp/env/eis/JDBCwhitebox-xa +JDBCwhitebox-tx-param=java:comp/env/eis/JDBCwhitebox-tx-param +JDBCwhitebox-notx-param=java:comp/env/eis/JDBCwhitebox-notx-param +JDBCwhitebox-xa-param=java:comp/env/eis/JDBCwhitebox-xa-param + +######################################################################### +## Resource adapter configuration values. You must modify these values +## to plug your JDBC driver into the TS JDBCwhitebox resource adapter. +## +## When you run the XA tests (src/com/sun/ts/tests/xa), you must +## configure this resource adapter to use a database. +## +# @xa.properties: These are the properties required by the XA driver. The +# managed connection factory will set these properties via +# reflection on the class specified by the +# xa.xadatasource.class property. +# +# Note: The xa.properties value is the set of properties that will be set on +# your XA JDBC driver (the class denoted by the xa.xadatasource.class property). +# See section 9.4.1 of the JDBC 3.0 specification for more details. +# +# When specifying the xa.properties property please escape the appropriate +# characters. The xa.properties value needs to be treated as a single property +# even though it is made up of many properties. The properties need to be +# separated by :'s and the names and values to be separated by ='s. +# We also need any values that contain colons or equals that do not +# need to be interrpretted to be inside single quotes. Anything in +# single quotes will be treated as a string literal. +# +# For example: The following xa.properties property: +# +# xa.properties=user=admin:password=some-password:DatabaseName='jdbc:pointbase:server://localhost:9092/cts,new' +# +# Would result in the following setters being called on the supplied XA JDBC driver denoted +# by the xa.xadatasource.class property. +# +# XADataSource.setUser("admin"); +# XADataSource.setPassword("some-password"); +# XADataSource.setDatabaseName("jdbc:pointbase:server://localhost:9092/cts,new"); +# +# Please map the property xa.properties to the property name XAProps and map the +# xa.xadatasource.class property to the property name XADataSourceName. This will +# ensure the appropriate setters will be called to make these properties +# available to the managed connection factory. See section 17.4.2 of the Connector +# specification version 1.5. +# +# @xa.xadatasource.class: The implementation of the XADataSource interface. +# This class is your XA JDBC driver. +# Please note: this class and any dependent classes +# must be accessible by the CTS libraries in the app +# server's extension directory. +# +# @connector_connectionURL: The URL for your JDBC driver. Should be the +# same as the one used for the rest of the TS. +# +######################################################################### + +### Cloudscape/Derby properties for XA +xa.properties="user\\\=${derbyEmbedded.user}\\\:password\\\=${derbyEmbedded.passwd}\\\:DatabaseName\\\=${derbyEmbedded.dbName}" +xa.xadatasource.class=org.apache.derby.jdbc.EmbeddedXADataSource +connector_connectionURL="jdbc\\:derby\\:${derbyEmbedded.dbName}\\;create\\=true" + +######################################################################### +## The following properties must be set before running any security +## related tests. The properties user, password, authuser, authpassword, +## and nobodyuser must be set. +## +## The value for user, password, authuser, and authpassword need to be set +## exactly as they are set in the container/server. +# +# @user User defined to exercise rolemapping feature +# @password Associated password for the user +# @authuser User defined to exercise rolemapping feature +# @authpassword Associated password for the authuser +# @user_vi Username for the vendor implementation used in +# interop tests +# @password_vi Associated password for the VI user +# @user_ri Username for the reference implementation used in +# interop tests +# @password_ri Associated password for the RI user +# @nobodyuser This value must be the same value returned by a call to +# getCallerPrincipal().getName() from the ejb-tier when +# an unauthenticated caller in the web tier invokes an +# ejb method. +######################################################################### +user=j2ee +password=j2ee +authuser=javajoe +authpassword=javajoe +user_vi=j2ee_vi +password_vi=j2ee_vi +user_ri=j2ee_ri +password_ri=j2ee_ri +nobodyuser=guest + +############################################################### +# @securedWebServicePort must be set to run secbasicssl and +# csiv2 tests. Set this property with your application +# server's secured webservice port. +# @securedWebServicePort.2 points to the secured webservice +# port in Sun's Reference Implementation(RI). +############################################################### +securedWebServicePort=1044 +securedWebServicePort.2=1045 + +############################################################################### +# @client.cert.test.jdk.tls.client.protocols JDK 11 in TLSv1.3 does not support +# Post-Handshake Authentication, so TLSv1.2 must be used +# for client-cert authentication to work. +############################################################################### +client.cert.test.jdk.tls.client.protocols=TLSv1.2 + +############################################################### +# @login This property must be set to run appclient security +# tests +############################################################### +login=default + +################################################################################ +##These properties are needed for jms tests. +# +# @jms_timeout - this is the amount of time in milliseconds that synchronous +# receives will wait for a message +############################################################################### +jms_timeout=10000 + +######################################################################### + +############################################################################### +## These properties are needed for the EJB timer tests. +# +# @ejb_timeout - this is the amount of time in milliseconds that duration will +# be set for an ejbtimeout callback method +# +# @ejb_wait - this is the amount of time in milliseconds that the client will +# wait for ejbtimeout callback method results +############################################################################## +ejb_timeout=30000 +ejb_wait=60000 + +############################################################################### +## This property is needed for ejb30 stateful timeout tests. +# @test.ejb.stateful.timeout.wait.seconds - the minimum amount of time in seconds +# the test client waits before verifying the status of the target stateful +# bean. Its value must be an integer number. Its default value in ts.jte +# file is 480 seconds. It may be set to a smaller number (e.g., 240 seconds) +# to speed up testing, depending on the stateful timeout implementation +# strategy in the target server. +# +# For these stateful timeout tests, the property javatest.timeout.factor +# must be set to a value such that the JavaTest harness does not timeout +# before the test completes. Usually setting javatest.timeout.factor to +# 2.0 or greater should suffice. +############################################################################### +test.ejb.stateful.timeout.wait.seconds=480 + +################################################################### +# @log.file.location This property is used by JACC tests to create +# and analyze provider logs. Specify the log directory in which +# your appserver generates logs. +################################################################### +log.file.location=${vi.log.file.location} + + +################################################################### +################################################################### +################################################################### +## PROPERTIES USERS WILL NOT HAVE TO SET LIVE BELOW +################################################################### +################################################################### +################################################################### + +## +## The directory seperator for the platform. User should not change +## this property. +## +dirsep=/ + +##build level +##1: compile only +##2: compile and build component archives (e.g., jar's, war's) +##3: compile and build component and application archives +##default is set to 3 +build.level=3 + +deliverable.class=com.sun.ts.lib.deliverable.cts.CTSDeliverable + +################################################################### +## Deliverables wanting ts.* packaging tasks to add extension list +## attributes to the manifest files must set this property to true. +################################################################### +create.manifest.extension.entries=true + +###################################################################### +## Deliverables must set this property to the name of the deliverable +## specific library jar file (iff create.manifest.extension.entries +## is set to true) +###################################################################### +tslib.name=cts + +############################################################### +## These properties are used by connector tests and are non configurable +## and must specify valid username,password to establish TSeis connection. +############################################################### +rauser1=cts1 +rapassword1=cts1 +rauser2=cts2 +rapassword2=cts2 + +############################################################### +## These properties are for JSTL +############################################################### +jstl.db.user=${user1} +jstl.db.password=${password1} + +############################################################### +## This command is only used when quickly checking any servlet +## or jsp related tests. The test clients will be run in +## the same JVM as JavaTest in this case. This mode can be +## enabled by passing "-Dsame.jvm=true" to the runclient or gui +## targets. NOTE: This option is only to be used for sanity +## checking and not when running CTS for compatibility. +############################################################### +command.testExecuteSameJVM=com.sun.ts.lib.harness.ExecuteTSTestSameJVMCmd \ + $testExecuteClass $testExecuteArgs + +############################################################### +## These properties are used for the JDBC specific tests, +## they do not need to be changed. +############################################################### +DriverManager=no +Driver=DriverOnlyUsedIfDriverManagerIsYes +db1=db1OnlyUsedIfDriverManagerIsYes +db2=db1OnlyUsedIfDriverManagerIsYes +ptable=ctstable1 +ftable=ctstable2 +cofSize=5 +cofTypeSize=5 +binarySize=24 +varbinarySize=48 +longvarbinarySize=50 + +ts_home=${ts.home} + +####################################################################### +## platform.mode is used by jpa tests to know whether to use +## the Java EE Programming Model for service and port access. +## platform.mode=jakartaEE Java EE Programming Model +###################################################################### +platform.mode=jakartaEE + +########################################################################### +# tools.jar should be set to the location of the tools.jar from the installed +# jdk +########################################################################### +tools.jar=/home/jenkins/agent/workspace/jakartaee-tck_master/modules/webservices-tools.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/modules/webservices-api.jar + +########################################################################### +# various flags used by the generation tools +########################################################################### +wsgen.ant.classname= +wsgen.classpath=${javaee.classes}${pathsep}${tools.jar} +wsgen.verbose=true +wsgen.debug=false +wsimport.ant.classname= +wsimport.classpath=${javaee.classes}${pathsep}${tools.jar} +wsimport.verbose=true +wsimport.debug=false +wsimport.jvmargs= + +########################################################################### +# various flags used by Suns generation tools +# DO NOT EDIT +########################################################################### +ri.wsgen.ant.classname=com.sun.tools.ws.ant.WsGen +ri.wsgen.classpath=${javaee.classes.ri}${pathsep}${tools.jar} +ri.wsgen.verbose=true +ri.wsgen.debug=false +ri.wsimport.ant.classname=com.sun.tools.ws.ant.WsImport +ri.wsimport.classpath=${javaee.classes.ri}${pathsep}${tools.jar} +ri.wsimport.verbose=true +ri.wsimport.debug=false +ri.wsimport.jvmargs= + +################################# +## Packaging properties for DAOs +################################# +ts.dao.root=com/sun/ts/tests/common/dao + +ts.dao.classes.base=\ + ${ts.dao.root}/InvalidDAOSettingException.class, \ + ${ts.dao.root}/DAOException.class, \ + ${ts.dao.root}/DAO.class, \ + ${ts.dao.root}/DataSourceDAO*.class, \ + ${ts.dao.root}/DAOFactory.class, \ + ${ts.dao.root}/TSDAOFactory*.class, \ + ${ts.dao.root}/coffee/CoffeeBean.class, \ + ${ts.dao.root}/coffee/CoffeeDAO.class, \ + ${ts.dao.root}/coffee/TxCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/StringPKCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/LongPKCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/FloatPKCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/CompoundPK.class, \ + ${ts.dao.root}/coffee/variants/CompoundPKCoffeeDAO.class + +ts.dao.classes.impl=\ + ${ts.dao.root}/coffee/DataSourceCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/StringPKDSCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/LongPKDSCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/FloatPKDSCoffeeDAO.class, \ + ${ts.dao.root}/coffee/variants/CompoundPKDSCoffeeDAO.class + +ts.dao.classes.coffee.standard=\ + ${ts.dao.classes.base}, \ + ${ts.dao.classes.impl} + +ts.dao.classes.coffee.txaware=\ + ${ts.dao.classes.base}, \ + ${ts.dao.classes.impl} + +ts.dao.classes.coffee.variants=\ + ${ts.dao.classes.base}, \ + ${ts.dao.classes.impl} + +##################################### +## Packaging properties for Wrappers +##################################### + +ts.wrappers.ejb.root=com/sun/ts/tests/common/ejb/wrappers + +ts.wrappers.web.root=com/sun/ts/tests/common/web + +## Classes to package in ejb-jar for EJB Stateless wrapper +ts.wrappers.classes.stateless.ejb=\ + ${ts.wrappers.ejb.root}/StatelessWrapper.class + +## Classes to package in ejb-jar for EJB Stateful wrapper +ts.wrappers.classes.stateful.ejb=\ + ${ts.wrappers.ejb.root}/StatefulWrapper.class + +## Classes to package in ejb-jar for EJB BMP wrapper +ts.wrappers.classes.bmp.ejb=\ + ${ts.dao.classes.coffee.standard}, \ + ${ts.wrappers.ejb.root}/BMPWrapper.class + +## Classes to package in ejb-jar for EJB CMP 1.1 wrapper +ts.wrappers.classes.cmp11.ejb=${ts.wrappers.ejb.root}/CMP11Wrapper.class + +## Classes to package in ejb-jar for EJB CMP 2.0 wrapper +ts.wrappers.classes.cmp20.ejb=${ts.wrappers.ejb.root}/CMP20Wrapper.class + +## Classes to package in ejb-jar for EJB MDB wrapper +ts.wrappers.classes.mdb.ejb=\ + com/sun/ts/tests/jms/common/JmsUtil.class, \ + com/sun/ts/tests/jms/commonee/ParentMsgBean.class, \ + ${ts.wrappers.ejb.root}/MDBWrapper.class + +## Classes to package in client module for EJB MDB wrapper +ts.wrappers.classes.mdb.client=com/sun/ts/tests/jms/commonee/Client.class + +## Classes to package in ejb-jar for all EJB wrappers +ts.wrappers.classes.all.ejb=\ + ${ts.wrappers.classes.stateless.ejb}, \ + ${ts.wrappers.classes.stateful.ejb}, \ + ${ts.wrappers.classes.bmp.ejb}, \ + ${ts.wrappers.classes.cmp11.ejb}, \ + ${ts.wrappers.classes.cmp20.ejb}, \ + ${ts.wrappers.classes.mdb.ejb} + +## Classes to package in client module for all WEB wrappers +ts.wrappers.classes.web.client=\ + ${ts.wrappers.web.root}/WebServer.class + +## Classes to package in war for all WEB wrappers +ts.wrappers.classes.web.server=\ + ${ts.wrappers.web.root}/WebUtil.class, \ + ${ts.wrappers.web.root}/JSPBeanWrapper.class, \ + ${ts.wrappers.web.root}/ServletWrapper.class + +## Classes to package in client module for Servlet wrapper +ts.wrappers.classes.servlet.client=${ts.wrappers.classes.web.client} + +## Classes to package in war for Servlet wrappers +ts.wrappers.classes.servlet.server=\ + ${ts.wrappers.web.root}/WebUtil.class, \ + ${ts.wrappers.web.root}/ServletWrapper.class + +## Classes to package in client module for JSP wrapper +ts.wrappers.classes.jsp.client=${ts.wrappers.classes.web.client} + +## Classes to package in war for JSP wrappers +ts.wrappers.classes.jsp.server=\ + ${ts.wrappers.web.root}/WebUtil.class, \ + ${ts.wrappers.web.root}/JSPBeanWrapper.class + + +############################################################################### +## DO NOT MODIFY ANY PROPERTIES BELOW THIS LINE. +############################################################################### + +#classpath used by standard deployment server to deploy to the RI in a separate +#VM (DO NOT MODIFY) +ts.standard.deployment.server.classpath=${ant.jars}:${pathsep}${ts.run.classpath.ri}${pathsep}${ts.home}/lib/javatest.jar${pathsep}${ts.home}/lib/jdom-1.1.3.jar${pathsep}${ri.modules}/admin-cli.jar + +harness.deployment.server.port=2002 + +java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory +org.omg.CORBA.ORBClass=foo +undeploy_redeploy_apps=${UNDEPLOY_REDEPLOY_FLAG} + +############################################################################### +# The following properties are aliases for the old J2EE properties. These +# properties are now named javaee instead of j2ee and will eventually be phased +# out of the CTS. These props are necessary until the props are renamed +# through out all CTS. +############################################################################### +j2ee.home=${javaee.home} +j2ee.home.ri=${javaee.home.ri} + +#################################################################### +## This propertry is passed to any test +## that needs to programatically login from with the appclient +## container and propogate that login context to test code running +## within the EJB container. The value is a no-op. The fact that +## the test includes the property is sufficient to cause the +## EJBVehicleRunner to programatically login. To have a test +## include this property simply add it to the javatest props list +## of the test. +#################################################################### +secured.ejb.vehicle.client=true + +#################################################################### +# This property is used to point to the location of the +# implementation of VariableMapper. The value for sjsas 9.x is +# +# variable.mapper=org.glassfish.expressly.lang.VariableMapperImpl +# +#################################################################### +variable.mapper=org.glassfish.expressly.lang.VariableMapperImpl + +####################################################################### +# Endpoint API test +# +# Port info is obtained dynamically for Endpoint API test. +# Uncomment port range min/max if you want to specify port range +# for Endpoint publish test. +# Server endpoints will be published on ports within this range. +# If you do not want to dynamically obtain the port but wish to publish +# to a fixed static port than make the values below both equal to the +# specific port. +####################################################################### +port.range.min=1025 +port.range.max=10000 + +################################################################ +# @http.server.supports.endpoint.publish +# Does HTTP server-side support endpoint publish API's. +# @http.server.supports.endpoint.publish.2 +# Does the RI HTTP server-side support endpoint publish API's. +# +# http.server.supports.endpoint.publish=(true|false) +# DO NOT TOUCH - value MUST be false for managed environments like Java EE +################################################################ +http.server.supports.endpoint.publish=false +http.server.supports.endpoint.publish.2=false + +########################################################################### +# This property is used by some test clients that need a delay between +# method invocations to server endpoints. The value specified is the amount +# of time the client will delay in seconds. +########################################################################### +client.delay=1 + +####################################################################### +## This persistence unit name is used by jpa/ee/pluggability tests. Its value is the +## same as the name attribute in persistence.xml +###################################################################### +persistence.unit.name=CTS-EM + +############################################################### +# @db.supports.sequence +# +# - This property is used to determine if a database supports +# the use of SEQUENCE. If it does not, this property +# should be set to false so the test is not run. The +# default value is true. +# This value should be set to false for the following databases: +# sybase, mysql, and mssqlserver. +############################################################### +db.supports.sequence=true + +####################################################################### +## @persistence.second.level.caching.supported +## - This property is used to determine if the persistence provider supports +## second level caching. +###################################################################### +persistence.second.level.caching.supported=true + +########################################################################## +## This section contains all properties that are specific to JAX-RS Tests. +## All default values are specific to GlassFish and Jersey. +## +## servlet_adaptor - implementation specific servlet for JAX-RS +## jaxrs_impl_class.dir - Directory that servlet_adaptor locates +## jaxrs_impl_name - used to tag intermediate file names +########################################################################## +servlet_adaptor=org/glassfish/jersey/servlet/ServletContainer.class +jaxrs_impl_lib=${javaee.home}/modules/jakarta.ws.rs-api.jar +jaxrs_impl_name=jersey + + +########################################################################## +# This section contains all properties that are specific to JSR-196 Tests. +# All default values are specific to GlassFish. +# +# @servlet.is.jsr115.compatible This property is used by JASPIC tests +# to determine if the servlet container is a jsr 115 compatible +# container. (true = compatible to JSR 115, false = not compatible.) +# +# @soap.is.jsr115.compatible This may used by JASPIC tests to +# determin if the SOAP container is JSR 115 compatible. This is +# only used when running SOAP profile tests. +# +# @provider.configuration.file +# This property is used by JASPIC tests to configure TestSuite's +# AuthConfig Provider and points at an xml file which is used +# to register the JASPIC test providers into the current +# ACF. This file contaiins known/expected test provider info. +# Only app-context-id element can be edited to suit the +# impl under test. +# +# @schema.file.location +# This points to the directory that the provider-configuration.xsd +# file will live. The provider-configuration.xsd is used to +# describe the provider.configuration.file (above). +# +# @logical.hostname.servlet +# This used to identify the the name of a logical host that +# processes Servlet requests. Servlet requests may be directed to +# a logical host using various physical or virtual host names or +# addresses, and a message processing runtime may be composed of +# multiple logical hosts (This is required to properly identify +# the servlet profiles AppContextId hostname.) +# If a logical.hostname.servlet does not exist, you can set this +# to the default hostname (eg webServerHost). +# +# @logical.hostname.soap +# This property is used to identify the name of the logical host +# that processes soap requests. This hostname is used in server +# side Application context Identifier in soap profile. +# +# @appclient.log.output +# The client logging level for appclient container depends on the +# log level specified in sun-acc.xml +# +# This log level directly affects the output of TSLogger which +# logs the JSR196 SPI calls made in appclient container. +# +# using this property we enable the appclient container's +# logging level to INFO +# +# @vendor.authconfig.factory +# This property specifies vendor's authconfig factory class +# this will be used by JASPIC tests to register TestSuite's +# provider in Vendor's AuthConfig Factory. +# +# For example for SJSAS RI this value is +# +# vendor.authconfig.factory= +# com.sun.enterprise.security.jmac.config.GFAuthConfigFactory +# +########################################################################## +servlet.is.jsr115.compatible=true +soap.is.jsr115.compatible=false +provider.configuration.file=${javaee.home}/domains/domain1/config/ProviderConfiguration.xml +schema.file.location=${javaee.home}/lib/schemas +logical.hostname.servlet=server +logical.hostname.soap=localhost +appclient.log.output=true +vendor.authconfig.factory=com.sun.enterprise.security.jmac.config.GFAuthConfigFactory + +########################################################################## +# @servlet_waittime: Time in seconds to wait after HttpSession expires +# to access the session +# @servlet_async_wait: Time in seconds to wait between sending asynchronous messages +########################################################################## +servlet_waittime=10 +servlet_async_wait=4 + +########################################################################################## +# The following properties are ONLY used if testing a Standalone JMS Resource Adapter. +# Since support for a JMS Resource Adapter is OPTIONAL by the JMS 2.0 Specification +# this funtionality is USE AT YOUR OWN RISK. We WILL NOT support it. Its here in the +# case that a vendor wants to test a Standalone JMS Resource Adapter which is OPTIONAL. +# +# test.sa.jmsra // Set to true ONLY if testing a standalone JMS Resource Adapter +# jmsra.rarfile // Location of the standalone JMS Resource Adapter RAR file +# jmsra.jarfile // Location of the standalone JMS Resource Adapter JAR file +# +# A standalone JMS Resource Adapter requires deployment/configuration to the Vendor +# Implementation under test (Example: Java EE 8 RI). If not testing a standalone JMS +# Resource Adapter then these properties MUST NOT be used and the value of the property +# (test.sa.jmsra) MUST BE SET to false (which is the DEFAULT setting). If you set the +# property (test.sa.jmsra=true) then you are testing a standalone JMS Resource Adapter +# and the (jmsra.rarfile and jmsra.jarfile) properties must point to the location of +# the standalone JMS Resource Adapter RAR and JAR files. During CTS configuration the +# (config.vi) ant task will call another script that will deploy the standalone JMS +# Resource Adapter, configure the standalone JMS Resource Adapter, create the JMS +# connector connection pools, create the JMS connector resources, and finally create +# the JMS administration objects. The ant scripts that handles all of these steps for +# the (Java EE 8 RI) are the following: +# +# $TS_HOME/bin/xml/impl/glassfish/jmsra.xml +# $TS_HOME/bin/xml/impl/glassfish/templates/create.jmsra.template +# +# These scripts work for the Standalone Generic JMS Resource Adapter (GenericJMSRA) +# located at: (http://genericjmsra.java.net/). If testing another standalone JMS +# Resource Adapter then these scripts will need to be rewritten/modified for that +# JMS Resource Adapter. +# +# Here is the summary of steps of what the (jmsra.xml) script does. It configures the JMS +# resource adapter by doing a resource-adapter-config, it deploys the JMS resource adapter +# RAR file specified in the "jmsra.rarfile" property to the (Java EE 8 RI), it copies the +# JMS Resource Adapter JAR file specified in the "jmsra.jarfile" property to the (Java EE +# 8 RI) lib directory under $JAVAEE_HOME/lib. It copies some of the JMS client library jars +# to the $JAVAEE_HOME/lib directory. it then creates the JMS connector connection pools, +# the JMS connector resources, and the JMS administration objects that are needed by CTS. +# When the (config.vi) ant task completes the Java EE 8 environment will be ready to run +# the JMS CTS tests. One final step is needed to the JMS MDB CTS tests which is to modify +# the sun-ejb-jar runtime xml files by adding the deployment info. +# +# Here are the manual steps for the Standalone Generic JMS Resource Adapter (GenericJMSRA) +# after the (config.vi) ant task completes. +# +# (1) Edit the ts.jte file and add the following: +# Add "-Dgenericra.inAppClientContainer=true" to the "command.testExecuteAppClient" +# property and then add "${pathsep}${jmsra.jarfile}" to the end of APPCPATH variable +# in the same "command.testExecuteAppClient" property. You can refer to the Generic +# JMS Resource Adapter (GenericJMSRA) user guide for more information on this. +# (2) Modify the sun-ejb-jar runtime xml files for the JMS MDB tests by adding the +# deployment info. +# cd $TS_HOME/bin +# ant -f xml/impl/glassfish/jmsra.xml modify-jmsmdbejbxml +# (3) Now you can run the JMS CTS tests. After you are done running the JMS CTS tests ypu +# can unconfigure the Java EE 8 RI and restore the original sun-ejb-jar runtime xml +# files. +# cd $TS_HOME/bin +# ant -f xml/impl/glassfish/jmsra.xml restore-jmsmdbejbxml +# ant clean.vi +# (4) Finally reset the properties back to there defaults. Set (test.sa.jmsra=false) and unset +# (jmsra.rarfile and jmsra.jarfile). Remove the "-Dgenericra.inAppClientContainer=true" +# and "${pathsep}${jmsra.jarfile}" from the ts.jte file from step 1. +# +# If using a different Java EE environment from the Java EE RI than a vendor will need to +# provide his own JMS Resource Adapter support scripts needed for that Java EE environment. +# It can reuse/modify the (Java EE 8 RI) scripts above or simply write their own scripts. A +# vendor can use the Java EE 8 RI or any Java EE 8 implementation of its choice as the Java +# EE 8 environment for testing its Standalone JMS Resource Adapter. The Standalone JMS Resource +# Adapter MUST pass all of the JMS CTS tests under: (TS_HOME/src/com/sun/ts/tests/jms) in order +# to be declared fully JMS 2.0 compliant. +# +# See the JMS 2.0 Specification and the CTS 8 User's Guide for more information. +########################################################################################## +test.sa.jmsra=false +jmsra.rarfile= +jmsra.jarfile= + +########################################################################################## +# The following property specifies the name of the JMS Resource Adapter under test. The +# Java EE 8 RI contains its own builtin JMS Resource Adapter (JMSRA). Its name is "jmsra". +# So we set (jmsra.name=jmsra) as the default value for the Java EE 8 RI. +# +# Change the value of this property for the JMS Resource Adapter that is under test. This +# hardcoded value is specific to the Java EE 8 RI. +# +# jmsra.name // Name of JMS Resource Adapter for the implementation under test +########################################################################################## +jmsra.name=jmsra + + +########################################################################## +# The following property is for WebSocket tests. +# +# @ws_wait: waiting time in seconds for socket to send/receive a message +########################################################################## +ws_wait=5 + +############################################################################################ +# These following properties are needed for Javamail tests. +# +# @mailHost hostname of the mail server +# @mailuser1 must be set to a valid email address where test mails will be sent to. +# @mailFrom reply to address set in the email messages generated by the javamail tests +# @javamail.username user account name on server +# @javamail.password password for the mailuser1 +# +############################################################################################ + +mailHost= +mailuser1= +mailFrom= +javamail.password= +smtp.port=25 +imap.port=143 + +### User need not change the following javamail properties + +javamail.username=${mailuser1} +transport_protocol=smtp + +# mail server used to run tests against. +javamail.server=${mailHost} + +# protocol used to run the Store tests +javamail.protocol=imap + +# mail server used to run tests against. +javamail.transport.server=$javamail.server + +# rootpath of test mailboxes +javamail.root.path="" + +# note the mailbox 'test1' +javamail.mailbox=test1 + +# search pattern used by list tests in Folder +javamail.listpattern=test + +# your own login account name +smtp.username=$javamail.username + +# smtp domain name ; i.e. oracle.com +smtp.domain=$javamail.server + +# smtp From address +smtp.from=$smtp.username + +# smtp To address +smtp.to=$smtp.username + +# io file +iofile=MailIOFile.txt + +##################################################################################################### +#### Properties used by ldap installation +# @ldap.server -- The type of ldap server. unboundid is supported by now +# @ldap.install.server -- Install ldap server by CTS script or not +# @ldap.ldif.file -- The ldif file containing data seeded in ldap server +# +# @unboundid.installation.package -- The package for installing Unboundid ldap server +######################################################################################################## +ldap.server=unboundid +ldap.install.server=true +ldap.ldif.file=${ts.home}/bin/ldap.ldif + +unboundid.installation.package=${ts.home}/lib/unboundid-ldapsdk.jar + +##################################################################################################### +# Properties used for JPA 2.2 Tests +######################################################################################################## +persistencs.properties.file=${bin.dir}/jpa-provider.properties +persistence.unit.name.2=JPATCK2 + +jpa.provider.implementation.specific.properties=eclipselink.logging.level\=OFF +jakarta.persistence.provider=org.eclipse.persistence.jpa.PersistenceProvider +jakarta.persistence.jdbc.driver=${derby.driver} +jakarta.persistence.jdbc.url=${derby.url} +jakarta.persistence.jdbc.user=${derby.user} +jakarta.persistence.jdbc.password=${derby.passwd} diff --git a/glassfish-runner/xa-platform-tck/jakartaeetck/bin/tssql.stmt b/glassfish-runner/xa-platform-tck/jakartaeetck/bin/tssql.stmt new file mode 100644 index 0000000000..2d279c5402 --- /dev/null +++ b/glassfish-runner/xa-platform-tck/jakartaeetck/bin/tssql.stmt @@ -0,0 +1,805 @@ +# @(#)ctssql.dml.derby 1.16 01/06/20 +#------------------------------------------------- +#All sql DML statements used in the test cases against derby +#------------------------------------------------- + + + +Dbschema_Tab1_Insert=insert into ctstable2 values(?, ?, ?, ?) +Dbschema_Tab2_Insert=insert into ctstable1 values(?, ?) + +Dbschema_Tab1_Delete=delete from ctstable2 +Dbschema_Tab2_Delete=delete from ctstable1 + +Dbschema_Concur_Insert=insert into concurrencetable values(?, ?) +Dbschema_Concur_Delete=delete from concurrencetable + +#****************************************************************** +# SQL Statements for creating procedures in side the test. +#****************************************************************** + +UpdCoffee_Proc=create method alias UpdCoffee_Proc for com.sun.ts.lib.tests.jdbc.CS_Procs.UpdCoffee_Proc + +#****************************************************************** +# SQL Statements for deleting tables for appropriate JDBC Datatypes +#****************************************************************** + +Numeric_Tab_Delete=delete from Numeric_Tab + +Decimal_Tab_Delete=delete from Decimal_Tab + +Double_Tab_Delete=delete from Double_Tab + +Float_Tab_Delete=delete from Float_Tab + +Real_Tab_Delete=delete from Real_Tab + +Bit_Tab_Delete=delete from Bit_Tab + +Smallint_Tab_Delete=delete from Smallint_Tab + +Tinyint_Tab_Delete=delete from Tinyint_Tab + +Integer_Tab_Delete=delete from Integer_Tab + +Bigint_Tab_Delete=delete from Bigint_Tab + +Char_Tab_Delete=delete from Char_Tab + +Varchar_Tab_Delete=delete from Varchar_Tab + +Longvarchar_Tab_Delete=delete from Longvarchar_Tab + +Longvarcharnull_Tab_Delete=delete from Longvarcharnull_Tab + +Date_Tab_Delete=delete from Date_Tab + +Time_Tab_Delete=delete from Time_Tab + +Timestamp_Tab_Delete=delete from Timestamp_Tab + +Binary_Tab_Delete=delete from Binary_Tab + +Varbinary_Tab_Delete=delete from Varbinary_Tab + +Longvarbinary_Tab_Delete=delete from Longvarbinary_Tab + + + +#**************************************************** +# SQL Statements for inserting values into the tables +#**************************************************** + +Numeric_Tab_Insert=insert into Numeric_Tab values(999999999999999,0.000000000000001, null) + +Decimal_Tab_Insert= insert into Decimal_Tab values(999999999999999,0.000000000000001, null) + +#Double_Tab_Insert=insert into Double_Tab values(1.7976931348623157E308,4.9E-324,null) +Double_Tab_Insert=insert into Double_Tab values(1.0E125,1.0E-130,null) + +Float_Tab_Insert=insert into Float_Tab values(3.4028235E37,1.4E-45,null) + +Real_Tab_Insert= insert into Real_Tab values(3.402E38,1.4E-37, null) + +Bit_Tab_Insert=insert into Bit_Tab values(true,false,null) + +Smallint_Tab_Insert= insert into Smallint_Tab values(32767,-32768,null) + +Tinyint_Tab_Insert=insert into Tinyint_Tab values(127,0,null) + +Integer_Tab_Insert=insert into Integer_Tab values(2147483647,-2147483648,null) + +Bigint_Tab_Insert= insert into Bigint_Tab values(9223372036854775807,-9223372036854775808,null) + +Char_Tab_Insert= insert into Char_Tab values('Test Coffee', null) + +Varchar_Tab_Insert= insert into Varchar_Tab values('Test Coffee',null) + +Longvarchar_Tab_Insert= insert into Longvarchar_Tab values('Test Coffee') + +Longvarcharnull_Tab_Insert= insert into Longvarcharnull_Tab values(null) + +Date_Tab_Insert=insert into Date_Tab values({d '1999-05-05'}, null) + +Time_Tab_Insert= insert into Time_Tab values({t '12:59:59'}, null) + +Timestamp_Tab_Insert= insert into Timestamp_Tab values({ts '1999-12-31 12:59:59'}, null) + +Binary_Tab_Insert= insert into Binary_Tab values(null) + +Varbinary_Tab_Insert= insert into Varbinary_Tab values(null) + +Longvarbinary_Tab_Insert= insert into Longvarbinary_Tab values(null) + +Boolean_Tab_Insert = insert into Boolean_Tab values(true,false,null) + + +#***************************************************** +# SQL Statements for retrieving values from the tables +#***************************************************** + +SelCoffeeAll=SELECT COF_NAME, PRICE FROM ctstable2 +SelCoffeeNull=select * from ctstable2 where TYPE_ID=0 + +Numeric_Query_Max=Select MAX_VAL from Numeric_Tab +Numeric_Query_Min=Select MIN_VAL from Numeric_Tab +Numeric_Query_Null=Select NULL_VAL from Numeric_Tab + +Decimal_Query_Max=Select MAX_VAL from Decimal_Tab +Decimal_Query_Min=Select MIN_VAL from Decimal_Tab +Decimal_Query_Null=Select NULL_VAL from Decimal_Tab + +Double_Query_Max=Select MAX_VAL from Double_Tab +Double_Query_Min=Select MIN_VAL from Double_Tab +Double_Query_Null=Select NULL_VAL from Double_Tab + +Float_Query_Max=Select MAX_VAL from Float_Tab +Float_Query_Min=Select MIN_VAL from Float_Tab +Float_Query_Null=Select NULL_VAL from Float_Tab + +Real_Query_Max=Select MAX_VAL from Real_Tab +Real_Query_Min=Select MIN_VAL from Real_Tab +Real_Query_Null=Select NULL_VAL from Real_Tab + +Bit_Query_Max=Select MAX_VAL from Bit_Tab +Bit_Query_Min=Select MIN_VAL from Bit_Tab +Bit_Query_Null=Select NULL_VAL from Bit_Tab + +Smallint_Query_Max=Select MAX_VAL from Smallint_Tab +Smallint_Query_Min=Select MIN_VAL from Smallint_Tab +Smallint_Query_Null=Select NULL_VAL from Smallint_Tab + +Tinyint_Query_Max=Select MAX_VAL from Tinyint_Tab +Tinyint_Query_Min=Select MIN_VAL from Tinyint_Tab +Tinyint_Query_Null=Select NULL_VAL from Tinyint_Tab + +Integer_Query_Max=Select MAX_VAL from Integer_Tab +Integer_Query_Min=Select MIN_VAL from Integer_Tab +Integer_Query_Null=Select NULL_VAL from Integer_Tab + +Bigint_Query_Max=Select MAX_VAL from Bigint_Tab +Bigint_Query_Min=Select MIN_VAL from Bigint_Tab +Bigint_Query_Null=Select NULL_VAL from Bigint_Tab + +Char_Query_Name=Select COFFEE_NAME from Char_Tab +Char_Query_Null=Select NULL_VAL from Char_Tab + +Varchar_Query_Name=Select COFFEE_NAME from Varchar_Tab +Varchar_Query_Null=Select NULL_VAL from Varchar_Tab + +Longvarchar_Query_Name=Select COFFEE_NAME from Longvarchar_Tab +Longvarchar_Query_Null=Select NULL_VAL from Longvarcharnull_Tab + +Date_Query_Mfg=Select MFG_DATE from Date_Tab +Date_Query_Null=Select NULL_VAL from Date_Tab + +Time_Query_Brk=Select BRK_TIME from Time_Tab +Time_Query_Null=Select NULL_VAL from Time_Tab + +Timestamp_Query_In=Select IN_TIME from Timestamp_Tab +Timestamp_Query_Null=Select NULL_VAL from Timestamp_Tab + +Binary_Query_Val=Select BINARY_VAL from Binary_Tab +Varbinary_Query_Val=Select VARBINARY_VAL from Varbinary_Tab +Longvarbinary_Query_Val=Select LONGVARBINARY_VAL from Longvarbinary_Tab + + + + + +#*************************************** +# SQL Statements for updating the tables +#*************************************** + +Numeric_Tab_Max_Update=update Numeric_Tab set MAX_VAL=? +Numeric_Tab_Min_Update=update Numeric_Tab set MIN_VAL=? +Numeric_Tab_Null_Update=update Numeric_Tab set NULL_VAL=? + +Decimal_Tab_Max_Update=update Decimal_Tab set MAX_VAL=? +Decimal_Tab_Min_Update=update Decimal_Tab set MIN_VAL=? +Decimal_Tab_Null_Update=update Decimal_Tab set NULL_VAL=? + +Double_Tab_Max_Update=update Double_Tab set MAX_VAL=? +Double_Tab_Min_Update=update Double_Tab set MIN_VAL=? +Double_Tab_Null_Update=update Double_Tab set NULL_VAL=? + +Float_Tab_Max_Update=update Float_Tab set MAX_VAL=? +Float_Tab_Min_Update=update Float_Tab set MIN_VAL=? +Float_Tab_Null_Update=update Float_Tab set NULL_VAL=? + +Real_Tab_Max_Update=update Real_Tab set MAX_VAL=? +Real_Tab_Min_Update=update Real_Tab set MIN_VAL=? +Real_Tab_Null_Update=update Real_Tab set NULL_VAL=? + +Bit_Tab_Max_Update=update Bit_Tab set MAX_VAL=? +Bit_Tab_Min_Update=update Bit_Tab set MIN_VAL=? +Bit_Tab_Null_Update=update Bit_Tab set NULL_VAL=? + +Smallint_Tab_Max_Update=update Smallint_Tab set MAX_VAL=? +Smallint_Tab_Min_Update=update Smallint_Tab set MIN_VAL=? +Smallint_Tab_Null_Update=update Smallint_Tab set NULL_VAL=? + +Tinyint_Tab_Max_Update=update Tinyint_Tab set MAX_VAL=? +Tinyint_Tab_Min_Update=update Tinyint_Tab set MIN_VAL=? +Tinyint_Tab_Null_Update=update Tinyint_Tab set NULL_VAL=? + +Integer_Tab_Max_Update=update Integer_Tab set MAX_VAL=? +Integer_Tab_Min_Update=update Integer_Tab set MIN_VAL=? +Integer_Tab_Null_Update=update Integer_Tab set NULL_VAL=? + +Bigint_Tab_Max_Update=update Bigint_Tab set MAX_VAL=? +Bigint_Tab_Min_Update=update Bigint_Tab set MIN_VAL=? +Bigint_Tab_Null_Update=update Bigint_Tab set NULL_VAL=? + +Char_Tab_Name_Update=update Char_Tab set COFFEE_NAME=? +Char_Tab_Null_Update=update Char_Tab set NULL_VAL=? + +Varchar_Tab_Name_Update=update Varchar_Tab set COFFEE_NAME=? +Varchar_Tab_Null_Update=update Varchar_Tab set NULL_VAL=? + +Longvarchar_Tab_Name_Update=update Longvarchar_Tab set COFFEE_NAME=? +Longvarchar_Tab_Null_Update=update Longvarcharnull_Tab set NULL_VAL=? + +Date_Tab_Mfgdate_Update=update Date_Tab set MFG_DATE=? +Date_Tab_Null_Update=update Date_Tab set NULL_VAL=? + +Time_Tab_Brktime_Update=update Time_Tab set BRK_TIME=? +Time_Tab_Null_Update=update Time_Tab set NULL_VAL=? + +Timestamp_Tab_Intime_Update=update Timestamp_Tab set IN_TIME=? +Timestamp_Tab_Null_Update=update Timestamp_Tab set NULL_VAL=? + +Binary_Tab_Val_Update=update Binary_Tab set BINARY_VAL=? +Varbinary_Tab_Val_Update=update Varbinary_Tab set VARBINARY_VAL=? +Longvarbinary_Tab_Val_Update=update Longvarbinary_Tab set LONGVARBINARY_VAL=? + +CoffeeTab_Query=select COF_NAME,PRICE from ctstable2 where TYPE_ID=? +CoffeeTab_Delete=delete from ctstable2 where KEY_ID=? + +CoffeeTab_Select=select PRICE from ctstable2 where KEY_ID=? +CoffeeTab_Update=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=? + +Ins_Coffee_Tab=insert into ctstable2 values (9,'COFFEE-9',9.0,5) +Del_Coffee_Tab=delete from ctstable2 where KEY_ID=9 +Upd_Coffee_Tab=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=1 +Sel_Coffee_Tab=select PRICE from ctstable2 where KEY_ID>4 + +#********************************************************************************** +# is used in ResultSet. To update with BIT value. +#********************************************************************************** +Update_decimal_tab=update Decimal_Tab set MAX_VAL=1.0, MIN_VAL=0.0, NULL_VAL=null +Update_numeric_tab=update Numeric_Tab set MAX_VAL=1.0, MIN_VAL=0.0, NULL_VAL=null +Update_char_tab1=update Char_Tab set COFFEE_NAME=1, NULL_VAL=null +Update_char_tab2=update Char_Tab set COFFEE_NAME=0, NULL_VAL=null +Update_varchar_tab1=update Varchar_Tab set COFFEE_NAME=1, NULL_VAL=null +Update_varchar_tab2=update Varchar_Tab set COFFEE_NAME=0, NULL_VAL=null + +#********************************************************************************** +# is used in BatchUpdate Tests. +#********************************************************************************** +BatchUpdate_Query=select count(*) from ctstable2 where TYPE_ID=? +BatchUpdate_Delete=delete from ctstable2 +BatchInsert_String=insert into ctstable2 values(?,?,?,?) + +#********************************************************************************** +# is used in BatchUpdate exception +#********************************************************************************** +Coffee_InsTab=insert into ctstable2 values (9,'COFFEE-9',9.0,5) +Coffee_DelTab=delete from ctstable2 where KEY_ID=2 +Coffee_UpdTab=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=1 +Coffee_SelTab=select PRICE from ctstable2 where KEY_ID>4 +Coffee_Inscount_Query=select count(*) from ctstable2 where KEY_ID=9 +Coffee_Delcount_Query=select count(*) from ctstable2 where KEY_ID=2 +Coffee_Updcount_Query=select count(*) from ctstable2 where TYPE_ID=1 +CoffeeTab_Continue1=update ctstable2 set KEY_ID=?, COF_NAME=? where COF_NAME=? +CoffeeTab_ContinueSelect1=Select count(*) from ctstable2 where COF_NAME in ('Continue-1') +CoffeeTab_Continue2=update ctstable2 set KEY_ID=1,COF_NAME = 'Continue-1' where COF_NAME='COFFEE-1' +CoffeeTab_Continue3=update ctstable2 set KEY_ID=1 ,COF_NAME = 'Invalid' where COF_NAME='COFFEE-3' +CoffeeTab_Continue4=update ctstable2 set KEY_ID=2,COF_NAME = 'Continue-3' where COF_NAME='COFFEE-2' +Coffee_Proc1=create procedure Coffee_Proc1(keyid in Numeric) as begin update ctstable2 set KEY_ID=keyid,COF_NAME = 'Continue-1' where KEY_ID=1;end; +Coffee_Proc1_Delete=Drop procedure Coffee_Proc1 +#********************************************************************************** +# is used in DataTruncation exception +#********************************************************************************** +DTrunc_Ins_Coffee=insert into ctstable2 values (10,'kumarjadjsjdhsjhdjsjdajhdjasdsdsdsd',21.00,1) + +#********************************************************************************** +# is used in SQLException +#********************************************************************************** +Error_Query=select * from + +#********************************************************************************** +# Constructor arguments for exceptions +#********************************************************************************** +Reason_BatUpdExec=Message +SQLState_BatUpdExec=S100 +VendorCode_BatUpdExec=10 +IntialValue_BatUpdExec={1,1,1} +Index_DataTrunc=1 +Param_DataTrunc=true +Read_DataTrunc=true +DataSize_DataTrunc=100 +TranSize_DataTrunc=50 + +#********************************************************************************** +# is used to print a message to the current logging writer +#********************************************************************************** +JDBCLogstream_Message=Hello World + + +#********************************************************************************** +#The following pair of values are related and so must be changed simultaneously +#The first one is a reference value and the second one is a equivalent in millisecond after epoch +#********************************************************************************** +DateTime_Str_Val1=1970-01-02 00:00:00.001 +DateTime_Long_Val1=86400001 + +#********************************************************************************** +#The following pair of values are related and so must be changed simultaneously +#The first one is a reference value and the second one is a equivalent in millisecond after epoch +#********************************************************************************** +DateTime_Str_Val2=1969-12-30 23:59:59.999 +DateTime_Long_Val2=-86400001 + +#********************************************************************************** +#value in millisecond for testing after() and before() in Timestamp +#********************************************************************************** +Ref_Milli_Val = 86400000 + +#********************************************************************************** +#Value in nanoseconds for testing time values +#********************************************************************************** +Ref_Nano_Val = 999999999 + + +#********************************************************************************** +#Value in nanoseconds and must be equivalent equivalent to multiples of milliseconds +#********************************************************************************** +Ref_Nano_Val2 = 1000000 + +Trial_String=TrialSetting +Escape_Seq_Query=select count(*) from ctstable2 where cof_name like '\%-%' { escape '\\' } +Escape_Seq_ChkQuery=select count(*) from ctstable2 +Max_Set_Val=10 + + +#********************************************************************************** +#The SQL Statements which are used to test the Scalar functions using escape syntax +#********************************************************************************** +Concat_Fn_Query=SELECT {FN CONCAT(STRING1,STRING2)} FROM ctstable3 +Ascii_Fn_Query=SELECT {FN ASCII(STRING1)} FROM ctstable3 +Insert_Fn_Query=SELECT {FN INSERT(STRING1,2,4,STRING2)} FROM ctstable3 +Lcase_Fn_Query=SELECT {FN LCASE(STRING1)} FROM ctstable3 +Left_Fn_Query=SELECT {FN LEFT(STRING1,2)} FROM ctstable3 +Length_Fn_Query=SELECT {FN LENGTH(STRING1)} FROM ctstable3 +Locate_Fn_Query=SELECT {FN LOCATE(STRING1,STRING2)} FROM ctstable3 +Ltrim_Fn_Query=SELECT {FN LTRIM(STRING2)} FROM ctstable3 +Repeat_Fn_Query=SELECT {FN REPEAT(STRING1,3)} FROM ctstable3 +Right_Fn_Query=SELECT {FN RIGHT(STRING1,3)} FROM ctstable3 +Rtrim_Fn_Query=SELECT {FN RTRIM(STRING2)} FROM ctstable3 +Soundex_Fn_Query=SELECT {FN SOUNDEX(STRING1)} FROM ctstable3 +Space_Fn_Query=SELECT {FN SPACE(5)} FROM ctstable3 +Substring_Fn_Query=SELECT {FN SUBSTR(STRING2,2,3)} FROM ctstable3 +Ucase_Fn_Query=SELECT {FN UCASE(STRING1)} FROM ctstable3 +Char_Fn_Query=SELECT {FN CHAR(NUMCOL)} FROM ctstable3 +Replace_Fn_Query=SELECT {FN REPLACE(STRING2,STRING1,STRING3)} FROM ctstable3 +User_Fn_Query=SELECT {FN USER()} FROM ctstable3 +Ifnull_Fn_Query=SELECT {FN IFNULL(STRING1,100)} FROM ctstable3 +Sin_Fn_Query=SELECT {FN SIN(0)} FROM ctstable3 +Abs_Fn_Query=SELECT {FN ABS(NUMCOL)} FROM ctstable3 +Power_Fn_Query=SELECT {FN POWER(NUMCOL,2)} FROM ctstable3 +Round_Fn_Query=SELECT {FN ROUND(FLOATCOL,2)} FROM ctstable3 +Sign_Fn_Query=SELECT {FN SIGN(NUMCOL)} FROM ctstable3 +Sqrt_Fn_Query=SELECT {FN SQRT(FLOATCOL)} FROM ctstable3 +Truncate_Fn_Query=SELECT {FN TRUNCATE(FLOATCOL,1)} FROM ctstable3 +Mod_Fn_Query=SELECT {FN MOD(NUMCOL,7)} FROM ctstable3 +Floor_Fn_Query=SELECT {FN FLOOR(FLOATCOL)} FROM ctstable3 +Ceiling_Fn_Query=SELECT {FN CEILING(NUMCOL)} FROM ctstable3 +Log10_Fn_Query=SELECT {FN LOG10(NUMCOL)} FROM ctstable3 +Log_Fn_Query=SELECT {FN LOG(NUMCOL)} FROM ctstable3 +Exp_Fn_Query=SELECT {FN EXP(FLOATCOL)} FROM ctstable3 +Cos_Fn_Query=SELECT {FN COS(FLOATCOL)} FROM ctstable3 +Tan_Fn_Query=SELECT {FN TAN(FLOATCOL)} FROM ctstable3 +Cot_Fn_Query=SELECT {FN COT(FLOATCOL)} FROM ctstable3 +Curdate_Fn_Query=SELECT {FN CURDATE()} FROM ctstable3 +Dayname_Fn_Query=SELECT {FN DAYNAME(DATECOL)} FROM ctstable3 +Dayofmonth_Fn_Query=SELECT {FN DAYOFMONTH(DATECOL)} FROM ctstable3 +Dayofweek_Fn_Query=SELECT {FN DAYOFWEEK(DATECOL)} FROM ctstable3 +Dayofyear_Fn_Query=SELECT {FN DAYOFYEAR(DATECOL)} FROM ctstable3 +Week_Fn_Query=SELECT {FN WEEK(DATECOL)} FROM ctstable3 +Month_Fn_Query=SELECT {FN MONTH(DATECOL)} FROM ctstable3 +Year_Fn_Query=SELECT {FN YEAR(DATECOL)} FROM ctstable3 +Monthname_Fn_Query=SELECT {FN MONTHNAME(DATECOL)} FROM ctstable3 +Quarter_Fn_Query=SELECT {FN QUARTER(DATECOL)} FROM ctstable3 +Now_Fn_Query=SELECT {FN NOW()} FROM ctstable3 +Hour_Fn_Query=SELECT {FN HOUR(TIMECOL)} FROM ctstable3 +Minute_Fn_Query=SELECT {FN MINUTE(TIMECOL)} FROM ctstable3 +Second_Fn_Query=SELECT {FN SECOND(TIMECOL)} FROM ctstable3 +Database_Fn_Query=SELECT {FN DATABASE()} FROM ctstable3 +Acos_Fn_Query=SELECT {FN ACOS(FLOATCOL)} FROM ctstable3 +Asin_Fn_Query=SELECT {FN ASIN(FLOATCOL)} FROM ctstable3 +Atan_Fn_Query=SELECT {FN ATAN(FLOATCOL)} FROM ctstable3 +Atan2_Fn_Query=SELECT {FN ATAN2(FLOATCOL,FLOATCOL)} FROM ctstable3 +Degrees_Fn_Query=SELECT {FN DEGREES(NUMCOL)} FROM ctstable3 +Radians_Fn_Query=SELECT {FN RADIANS(NUMCOL)} FROM ctstable3 +Pi_Fn_Query=SELECT {FN PI()} FROM ctstable3 +Rand_Fn_Query=SELECT {FN RAND(NUMCOL)} FROM ctstable3 +Difference_Fn_Query=SELECT {FN DIFFERENCE(STRING1,STRING2)} FROM ctstable3 +Locate_Fn_Query=SELECT {FN LOCATE(STRING1,STRING2,2)} FROM ctstable3 +Timestampaddfrac_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_FRAC_SECOND,2,TSCOL1)} FROM ctstable3 +Timestampaddsecond_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_SECOND,2,TSCOL1)} FROM ctstable3 +Timestampaddminute_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_MINUTE,2,TSCOL1)} FROM ctstable3 +Timestampaddhour_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_HOUR,2,TSCOL1)} FROM ctstable3 +Timestampaddday_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_DAY,2,TSCOL1)} FROM ctstable3 +Timestampaddweek_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_WEEK,2,TSCOL1)} FROM ctstable3 +Timestampaddmonth_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_MONTH,2,TSCOL1)} FROM ctstable3 +Timestampaddquarter_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_QUARTER,2,TSCOL1)} FROM ctstable3 +Timestampaddyear_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_YEAR,2,TSCOL1)} FROM ctstable3 +Timestampdifffrac_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_FRAC_SECOND,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffsecond_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_SECOND,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffminute_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_MINUTE,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffhour_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_HOUR,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffday_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_DAY,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffweek_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_WEEK,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffmonth_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_MONTH,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffquarter_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_QUARTER,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffyear_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_YEAR,TSCOL1,TSCOL2)} FROM ctstable3 + + +#***************************************************************************** +#The SQL Statements which are used to test the Outer Joins using escape syntax +#***************************************************************************** +Left_Oj_Query=SELECT * FROM {OJ ctstable3 LEFT OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} +Right_Oj_Query=SELECT * FROM {OJ ctstable3 RIGHT OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} +Full_Oj_Query=SELECT * FROM {OJ ctstable3 FULL OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} + + +#***************************************************************************** +#The SQL Statements for creating, inserting and dropping the tables which are +#used in testing the scalar functions and outer joins using escape syntax +#***************************************************************************** + +Fnschema_Tab1_Insert=INSERT INTO ctstable3 VALUES ('Java',' HotJava ','JAVA',100,0.5,{d '1993-07-13'},{t '10:30:55'},{ts '1996-05-10 10:07:04'},{ts '1996-05-10 10:07:05'}) +Fnschema_Tab2_Insert=INSERT INTO ctstable4 VALUES ('STRING3',100) + +Fnschema_Tab1_Delete=delete from ctstable3 +Fnschema_Tab2_Delete=delete from ctstable4 + +#***************************************************************************** +#The SQL Statements which are used in TxBean (Session bean) +#***************************************************************************** +TxBean_insert1=insert into TxBean_Tab1 values(?, ?, ?) +TxBean_insert2=insert into TxBean_Tab2 values(?, ?, ?) + +TxBean_delete1=delete from TxBean_Tab1 where KEY_ID = ? +TxBean_delete2=delete from TxBean_Tab2 where KEY_ID = ? + +TxBean_update1=update TxBean_Tab1 set TABONE_NAME = ? where KEY_ID = ? +TxBean_update2=update TxBean_Tab2 set TABTWO_NAME = ? where KEY_ID = ? +TxBean_update3=update TxBean_Tab1 set PRICE = ? where KEY_ID = ? +TxBean_update4=update TxBean_Tab2 set PRICE = ? where KEY_ID = ? + +TxBean_query1=select * from TxBean_Tab1 +TxBean_query2=select * from TxBean_Tab2 +TxBean_query3=select KEY_ID, TABONE_NAME, PRICE from TxBean_Tab1 where KEY_ID = ? +TxBean_query4=select KEY_ID, TABTWO_NAME, PRICE from TxBean_Tab2 where KEY_ID = ? + + +TxBean_Tab1_Delete=delete from TxBean_Tab1 +TxBean_Tab2_Delete=delete from TxBean_Tab2 + +#***************************************************************************** +#The SQL Statements which are used in TxEBean (Entity bean) +#***************************************************************************** +TxEBean_updateString1=insert into TxEBean_Tab values(?, ?, ?) +TxEBean_updateString2=delete from TxEBean_Tab where KEY_ID = ? +TxEBean_updateString3=update TxEBean_Tab set BRAND_NAME = ?, PRICE = ? where KEY_ID = ? + +TxEBean_selectString1=select KEY_ID from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString2=select KEY_ID from TxEBean_Tab where BRAND_NAME = ? +TxEBean_selectString3=select KEY_ID from TxEBean_Tab where PRICE = ? +TxEBean_selectString4=select KEY_ID, BRAND_NAME, PRICE from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString5=select BRAND_NAME from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString6=select PRICE from TxEBean_Tab where KEY_ID = ? + +TxEBean_queryStr1=select KEY_ID from TxEBean_Tab where KEY_ID = ? + +TxEBean_Delete=delete from TxEBean_Tab + +#***************************************************************************** +#The SQL Statements which are used in the integration/session and +#integration/entity tests +#***************************************************************************** +Integration_Tab_Delete=delete from Integration_Tab +Integration_Insert=insert into Integration_Tab values(?, ?) +Integration_Insert1=insert into Integration_Tab values(1000, 50000.0) +Integration_Insert2=insert into Integration_Tab values(1075, 10490.75) +Integration_Insert3=insert into Integration_Tab values(40, 200.50) +Integration_Insert4=insert into Integration_Tab values(30564, 25000.0) +Integration_Insert5=insert into Integration_Tab values(387, 1000000.0) +Integration_Select_Account=select * from Integration_Tab WHERE ACCOUNT = ? +Integration_Select_All=select * from Integration_Tab +Integration_Update_Account=update Integration_Tab set BALANCE = ? where ACCOUNT = ? +Integration_Delete_Account=delete from Integration_Tab where ACCOUNT = ? + +#***************************************************************************** +#The SQL Statements which are used in the integration/sec tests +#***************************************************************************** +Integration_Sec_Tab_Delete=delete from Integration_Sec_Tab +Integration_Sec_Tab_Insert=insert into Integration_Sec_Tab values(?, ?, ?) +Integration_Sec_Tab_Delete1=delete from Integration_Sec_Tab WHERE LOG_NO=? +Integration_Sec_Tab_Delete2=delete FROM Integration_Sec_Tab where LOG_NO=? and not ( LINE_NO = ? ) +Integration_Sec_Tab_Update=update Integration_Sec_Tab set MESSAGE= ? where LOG_NO = ? and LINE_NO = ? +Integration_Sec_Tab_Select1=select MESSAGE, LINE_NO from Integration_Sec_Tab where LOG_NO = ? and not( LINE_NO= ? ) order by LINE_NO +Integration_Sec_Tab_Select2=select MESSAGE FROM Integration_Sec_Tab where LOG_NO = ? and LINE_NO = ? +Integration_Sec_Tab_Select3=select MAX(LOG_NO) FROM Integration_Sec_Tab +Integration_Sec_Tab_Select4=select LOG_NO from Integration_Sec_Tab where MESSAGE = ? and LINE_NO = ? +Integration_Sec_Tab_Select5=select LINE_NO from Integration_Sec_Tab where LOG_NO = ? and LINE_NO= ? + + +#***************************************************************************** +#The SQL Statements which are used in DBSupport used by ejb/ee/bb tests +#***************************************************************************** +BB_Tab_Delete=delete from BB_Tab +BB_Insert1=insert into BB_Tab values(?, ?, ?) +BB_Select1=select KEY_ID from BB_Tab where KEY_ID = ? +BB_Select2=select KEY_ID from BB_Tab where BRAND_NAME = ? +BB_Select3=select KEY_ID from BB_Tab where PRICE = ? +BB_Select4=select KEY_ID from BB_Tab where PRICE >= ? and PRICE <= ? +BB_Select5=select KEY_ID from BB_Tab where KEY_ID >= ? and KEY_ID <= ? +BB_Select6=select PRICE from BB_Tab where KEY_ID = ? +BB_Update1=update BB_Tab set PRICE = ? where KEY_ID = ? +BB_Delete1=delete from BB_Tab where KEY_ID = ? + +#***************************************************************************** +#The SQL Statements which are used in DAO by ejb/ee/bb tests +#***************************************************************************** +COFFEE_BB_Tab_Delete=delete from BB_Tab +COFFEE_BB_Insert1=insert into BB_Tab values(?, ?, ?) +COFFEE_BB_Select1=select KEY_ID from BB_Tab where KEY_ID = ? +COFFEE_BB_Select2=select KEY_ID from BB_Tab where BRAND_NAME = ? +COFFEE_BB_Select3=select KEY_ID from BB_Tab where PRICE = ? +COFFEE_BB_Select4=select KEY_ID from BB_Tab where PRICE >= ? and PRICE <= ? +COFFEE_BB_Select5=select KEY_ID from BB_Tab where KEY_ID >= ? and KEY_ID <= ? +COFFEE_BB_Select6=select PRICE from BB_Tab where KEY_ID = ? +COFFEE_BB_Update1=update BB_Tab set PRICE = ? where KEY_ID = ? +COFFEE_BB_Delete1=delete from BB_Tab where KEY_ID = ? + +#***************************************************************************** +#The SQL Statements which are used in DBSupport in jta/ee/txpropagationtest +#***************************************************************************** +JTA_Tab1_Delete=delete from JTA_Tab1 +JTA_Tab2_Delete=delete from JTA_Tab2 + +JTA_Tab1_Insert=insert into JTA_Tab1 values(?, ?, ?) +JTA_Tab2_Insert=insert into JTA_Tab2 values(?, ?, ?) + +JTA_Delete1=delete from JTA_Tab1 where KEY_ID = ? +JTA_Delete2=delete from JTA_Tab2 where KEY_ID = ? + +JTA_Tab1_Update1=update JTA_Tab1 set COF_NAME = ? where KEY_ID = ? +JTA_Tab2_Update1=update JTA_Tab2 set CHOC_NAME = ? where KEY_ID = ? + +JTA_Tab1_Update2=update JTA_Tab1 set PRICE = ? where KEY_ID = ? +JTA_Tab2_Update2=update JTA_Tab2 set PRICE = ? where KEY_ID = ? + +JTA_Tab1_Select=select * from JTA_Tab1 +JTA_Tab2_Select=select * from JTA_Tab2 + +JTA_Tab1_Select1=select KEY_ID, COF_NAME, PRICE FROM JTA_Tab1 where KEY_ID = ? +JTA_Tab2_Select1=select KEY_ID, CHOC_NAME, PRICE FROM JTA_Tab2 where KEY_ID = ? + + +#***************************************************************************** +# SQL Statements used by deployment tests +# +# See /tests/assembly/util/dbsupport for more details +# +#***************************************************************************** + +# +# BMP table with Integer Primary Key +# +DEPLOY_intPKTable_Insert=insert into Deploy_Tab1 values(?, ?, ?) +DEPLOY_intPKTable_Select_PK=select KEY_ID from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Select_Price=select PRICE from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Update=update Deploy_Tab1 set PRICE = ? where KEY_ID = ? +DEPLOY_intPKTable_Delete=delete from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Cleanup=delete from Deploy_Tab1 + +# +# BMP table with String Primary Key +# +DEPLOY_strPKTable_Insert=insert into Deploy_Tab2 values(?, ?, ?) +DEPLOY_strPKTable_Select_PK=select KEY_ID from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Select_Price=select PRICE from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Update=update Deploy_Tab2 set PRICE = ? where KEY_ID = ? +DEPLOY_strPKTable_Delete=delete from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Cleanup=delete from Deploy_Tab2 + +# +# BMP table with Long Primary Key +# +DEPLOY_longPKTable_Insert=insert into Deploy_Tab3 values(?, ?, ?) +DEPLOY_longPKTable_Select_PK=select KEY_ID from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Select_Price=select PRICE from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Update=update Deploy_Tab3 set PRICE = ? where KEY_ID = ? +DEPLOY_longPKTable_Delete=delete from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Cleanup=delete from Deploy_Tab3 + +# +# BMP table with Float Primary Key +# +DEPLOY_floatPKTable_Insert=insert into Deploy_Tab4 values(?, ?, ?) +DEPLOY_floatPKTable_Select_PK=select KEY_ID from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Select_Price=select PRICE from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Update=update Deploy_Tab4 set PRICE = ? where KEY_ID = ? +DEPLOY_floatPKTable_Delete=delete from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Cleanup=delete from Deploy_Tab4 + +# +# BMP table with Compound Primary Key +# +DEPLOY_compoundPKTable_Insert=insert into Deploy_Tab5 values(?, ?, ?, ?, ?) +DEPLOY_compoundPKTable_Select_PK=select KEY_ID1, KEY_ID2, KEY_ID3 from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Select_Price=select PRICE from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Update=update Deploy_Tab5 set PRICE = ? where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Delete=delete from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Cleanup=delete from Deploy_Tab5 + +#***************************************************************************** +#The SQL Statements which are used in DBSupport2 used by secpropagation tests +#***************************************************************************** +SEC_Insert1=insert into SEC_Tab1 values(?, ?, ?) +SEC_Select1=select KEY_ID from SEC_Tab1 where KEY_ID = ? +SEC_Select2=select KEY_ID from SEC_Tab1 where BRAND = ? +SEC_Select3=select KEY_ID from SEC_Tab1 where PRICE = ? +SEC_Select4=select KEY_ID from SEC_Tab1 where PRICE >= ? and PRICE <= ? +SEC_Select5=select KEY_ID from SEC_Tab1 where KEY_ID >= ? and KEY_ID <= ? +SEC_Select6=select PRICE from SEC_Tab1 where KEY_ID = ? +SEC_Update1=update SEC_Tab1 set PRICE = ? where KEY_ID = ? +SEC_Delete1=delete from SEC_Tab1 where KEY_ID = ? +SEC_Tab1_Delete=delete from SEC_Tab1 + +#***************************************************************************** +# Connector tests in src/tests/connector +#***************************************************************************** +ConnectorTable_Insert=insert into Connector_Tab values(?, ?, ?) +ConnectorTable_Delete=delete from Connector_Tab + +#***************************************************************************** +# insert values EIS +#***************************************************************************** +TSEIS_insert_init=1 +TSEIS_insert1=2 +TSEIS_insert2=3 + +#***************************************************************************** +#The SQL Statements which are used in xa multires tests +#***************************************************************************** + +Xa_Tab1_Select=select * from Xa_Tab1 + +# insert values +Xa_Tab1_Insert=insert into Xa_Tab1 values(?, ?, ?) + +# delete using id +Xa_Tab1_Delete1=delete from Xa_Tab1 where col1 = ? + +Xa_Tab1_Delete=delete from Xa_Tab1 +Xa_Tab2_Delete=delete from Xa_Tab2 + +#initial insert +Xa_Tab1_insert_init=insert into Xa_Tab1 values (1, 'Table1 Line one ', '1.0' ) +Xa_Tab2_insert_init=insert into Xa_Tab2 values (1, 'Table2 Line one ', '2.0' ) + +#subsequent insert +Xa_Tab1_insert1=insert into Xa_Tab1 values (2, 'Table1 Line two ', '11.0' ) +Xa_Tab1_insert2=insert into Xa_Tab1 values (3, 'Table1 Line three ','111.0' ) + +Xa_Tab2_insert1=insert into Xa_Tab2 values (2, 'Table2 Line two ', '22.0' ) +Xa_Tab2_insert2=insert into Xa_Tab2 values (3, 'Table2 Line three ', '222.0' ) + +#get results + +Xa_Tab1_query=select col1 from Xa_Tab1 order by col1 +Xa_Tab2_query=select col1 from Xa_Tab2 order by col1 + + + +#***************************************************************************** +# Coffee DAO SQL statements +#***************************************************************************** + +# +# Standard Coffee DAO +# +COFFEE_insert=insert into Coffee_Table values(?, ?, ?) +COFFEE_select=select BRAND_NAME, PRICE from Coffee_Table where KEY_ID = ? +COFFEE_select_pk_by_name=select KEY_ID from Coffee_Table where BRAND_NAME = ? +COFFEE_select_pk_by_price=select KEY_ID from Coffee_Table where PRICE = ? +COFFEE_select_pk_by_price_range=select KEY_ID from Coffee_Table where PRICE >= ? and PRICE <= ? +COFFEE_select_pk_by_pk_range=select KEY_ID from Coffee_Table where KEY_ID >= ? and KEY_ID <= ? +COFFEE_select_price=select PRICE from Coffee_Table where KEY_ID = ? +COFFEE_update=update Coffee_Table set BRAND_NAME = ?, PRICE = ? where KEY_ID = ? +COFFEE_update_price=update Coffee_Table set PRICE = ? where KEY_ID = ? +COFFEE_delete=delete from Coffee_Table where KEY_ID = ? +COFFEE_delete_all=delete from Coffee_Table + + +# +# Coffee DAO variant with String Primary Key +# +COFFEE_STRING_PK_insert=insert into Coffee_StringPK_Table values(?, ?, ?) +COFFEE_STRING_PK_select=select KEY_ID from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_select_price=select PRICE from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_update_price=update Coffee_StringPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_STRING_PK_delete=delete from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_delete_all=delete from Coffee_StringPK_Table + +# +# Coffee DAO variant with Long Primary Key +# +COFFEE_LONG_PK_insert=insert into Coffee_LongPK_Table values(?, ?, ?) +COFFEE_LONG_PK_select=select KEY_ID from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_select_price=select PRICE from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_update_price=update Coffee_LongPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_LONG_PK_delete=delete from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_delete_all=delete from Coffee_LongPK_Table + +# +# Coffee DAO variant with Float Primary Key +# +COFFEE_FLOAT_PK_insert=insert into Coffee_FloatPK_Table values(?, ?, ?) +COFFEE_FLOAT_PK_select=select KEY_ID from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_select_price=select PRICE from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_update_price=update Coffee_FloatPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_FLOAT_PK_delete=delete from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_delete_all=delete from Coffee_FloatPK_Table + +# +# Coffee DAO variant with Compound Primary Key +# +COFFEE_COMPOUND_PK_insert=insert into Coffee_CompoundPK_Table values(?, ?, ?, ?, ?) +COFFEE_COMPOUND_PK_select=select KEY_ID1, KEY_ID2, KEY_ID3 from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_select_price=select PRICE from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_update_price=update Coffee_CompoundPK_Table set PRICE = ? where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_delete=delete from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_delete_all=delete from Coffee_CompoundPK_Table + + +Simple_Select_Query= SELECT * FROM jstl_tab1 +Select_NoRows_Query= SELECT * FROM jstl_tab1 WHERE idNum = -9999 +Select_Jstl_Tab1_OneRow_Query= SELECT * FROM jstl_tab1 where idNum = 1 +Select_Jstl_Tab1_By_Id_Query= SELECT * FROM jstl_tab1 ORDER BY idNum +Select_Jstl_Tab1_Using_Param_Query= SELECT * FROM jstl_tab1 WHERE idNum = ? +Select_Jstl_Tab2_Using_Param_Query= SELECT idNum, lastName FROM jstl_tab2 WHERE idNum = ? + +Update_Jstl_Tab2_Using_Param_Query= UPDATE jstl_tab2 SET lastName= ? WHERE idNum = ? + +Delete_NoRows_Query= DELETE FROM jstl_tab2 WHERE idNum = -9999 +Delete_AllRows_Query= DELETE FROM jstl_tab2 + +Insert_Row_Query= INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (1, {d '1961-08-30'}, 'Clark', 'Kent', 1, 4.5) +Insert2_Row_Query= INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (2, {d '1980-12-30'}, 'Fred', 'Flinstone', 2, 4.5) +Insert3_Row_Query= INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (3, {d '1961-01-01'}, 'Scooby', 'Doo', 4, 4.5) +Insert4_Row_Query= INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (4, {d '1990-03-15'}, 'Bruce', 'Wayne', 3, 4.5) +Delete_Jstl_Tab2_Using_Param_Query=DELETE FROM jstl_tab2 where idNum = ? +Failed_Insert_Query=INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (2, '1992-02-03'}, NULL,NULL, 2, 4.5) +Select_Jstl_Tab2_AllRows_Query=SELECT * from jstl_tab2 +Invalid_SQL_Query=This Will Fail on Any RDBMS I Hope! +Select_Jstl_Tab1_MultiParam_Query=SELECT idNum, firstName, lastName from jstl_tab1 where idNum= ? and lastName = ? +Delete_Jstl_Tab2_MultiParam_Query=DELETE FROM jstl_tab2 where idNum = ? and lastName = ? +Select_Jstl_Tab3_Date_Query=SELECT * from jstl_tab3 where aDate= ? +Select_Jstl_Tab3_Time_Query=SELECT * from jstl_tab3 where aTime= ? +Select_Jstl_Tab3_Timestamp_Query=SELECT * from jstl_tab3 where aTimestamp= ? +Insert_Jstl_Tab3_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(1, {d '2001-08-30'}, {t '20:20:20'}, {ts '2001-08-30 20:20:20'}) +Insert_Jstl_Tab3_Date_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(1, ?, {t '20:20:20'}, {ts '2001-08-30 20:20:20'}) +Insert_Jstl_Tab3_Time_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(1, {d '2001-08-30'}, ?, {ts '2001-08-30 20:20:20'}) +Insert_Jstl_Tab3_Timestamp_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(1, {d '2001-08-30'}, {t '20:20:20'}, ?) +Delete_Jstl_Tab3_AllRows_Query= DELETE FROM jstl_tab3 + +Insert_Jstl_Tab3_Null_Query=INSERT INTO jstl_tab3(idNum, aDate, aTime, aTimestamp) VALUES(99, null, null, null) +Select_Jstl_Tab2_NullParam_Query= SELECT * FROM jstl_tab2 WHERE rank = ? +Insert_Jstl_Tab2_Null_Query=INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (5, {d '1970-07-04'}, 'Peter', 'Parker', 5, null) +Insert_Jstl_Tab2_NullParam_Query=INSERT INTO jstl_tab2(idNum, dob, firstName, lastName, rank, rating) VALUES (5, {d '1970-07-04'}, 'Peter', 'Parker', 5, ?) diff --git a/glassfish-runner/xa-platform-tck/pom.xml b/glassfish-runner/xa-platform-tck/pom.xml new file mode 100644 index 0000000000..ac5d23398f --- /dev/null +++ b/glassfish-runner/xa-platform-tck/pom.xml @@ -0,0 +1,761 @@ + + + + 4.0.0 + + org.glassfish + standalone-tck + 11.0.0-SNAPSHOT + ../pom.xml + + jakarta + glassfish.xa-platform-tck + 11.0.0-SNAPSHOT + jar + + 1.9.1.Final + cts-derby-pool + ; + + + derbyDB + cts1 + 1527 + localhost + cts1 + + + ${glassfish.home}/glassfish/bin/asadmin + ${project.build.directory}/glassfish7 + ${glassfish.home}/glassfish/lib + ${glassfish.home}/javadb/lib + + + derby + org.apache.derby.jdbc.ClientDriver + ${javadb.lib}/derbyclient.jar:${javadb.lib}/derbyshared.jar:${javadb.lib}/derbytools.jar + 64 + cts1 + 32 + jdbc:derby://localhost:1527/derbyDB;create=true + cts1 + + 5.9.1 + cts1 + cts1 + ./sql + jakarta.tck.jdbc + 11.0.0-SNAPSHOT + 1.0.0-M16 + + + org.apache.derby.jdbc.ClientXADataSource + 64 + cts-derby-XA-pool + serverName=${derby.server}:portNumber=${derby.port}:user=${derby.user}:password=${derby.passwd}:DatabaseName=${derby.dbName}:connectionAttributes=";create\=true;" + javax.sql.XADataSource + 32 + + + + + org.junit + junit-bom + ${junit.jupiter.version} + pom + import + + + + + + org.junit.jupiter + junit-jupiter + ${junit.jupiter.version} + + + jakarta.tck + common + ${project.version} + + + jakarta.tck + libutil + ${project.version} + + + jakarta.tck + runtime + ${project.version} + + + jakarta.tck + xa + 11.0.0-SNAPSHOT + + + org.jboss.arquillian.container + arquillian-container-test-spi + ${arquillian.core.version} + + + org.jboss.arquillian.junit5 + arquillian-junit5-container + ${arquillian.core.version} + test + + + org.junit.vintage + junit-vintage-engine + test + + + jakarta.tck.arquillian + arquillian-protocol-appclient + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + arquillian-protocol-common + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + arquillian-protocol-javatest + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + arquillian-protocol-lib + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + tck-porting-lib + ${version.jakarta.tck.arquillian} + + + org.omnifaces.arquillian + arquillian-glassfish-server-managed + 1.6 + test + + + org.apache.derby + derbyclient + 10.15.2.0 + + + org.apache.derby + derbytools + 10.15.2.0 + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.2.0 + + + 1-unpack + + unpack + + pre-integration-test + + + + org.glassfish.main.distributions + ${glassfish-artifact-id} + ${glassfish.container.version} + zip + true + ${project.build.directory} + + + + + + 2-copy-lib + + copy + + pre-integration-test + + + + jakarta.tck.arquillian + arquillian-protocol-lib + true + ${glassfish.lib.dir} + arquillian-protocol-lib.jar + + + jakarta.tck + libutil + true + ${glassfish.lib.dir} + libutil.jar + + + jakarta.tck.arquillian + tck-porting-lib + true + ${glassfish.lib.dir} + tck-porting-lib.jar + + + jakarta.tck + runtime + true + ${glassfish.lib.dir} + runtime.jar + + + org.apache.derby + derbyclient + true + ${glassfish.lib.dir} + derbyclient.jar + + + org.apache.derby + derbytools + true + ${glassfish.lib.dir} + derbytools.jar + + + jakarta.tck.arquillian + arquillian-protocol-lib + true + ${project.build.directory}/protocol + protocol.jar + + + + + + + + org.codehaus.mojo + exec-maven-plugin + + + 1-start-database + + exec + + pre-integration-test + + ${exec.asadmin} + + start-database + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + initdb + + run + + pre-integration-test + + + + + + + + + + + + + + + + maven-resources-plugin + 3.0.2 + + + copy-resource-one + + copy-resources + + generate-sources + + ${glassfish.lib.dir} + + + ${basedir} + + *.jar + + + + + + + + + org.codehaus.mojo + exec-maven-plugin + + + 10-start-database + + exec + + pre-integration-test + + ${exec.asadmin} + + start-database + + + + + 11-stop-domain + + exec + + pre-integration-test + + ${exec.asadmin} + + stop-domain + + + + + 12-start-domain + + exec + + pre-integration-test + + ${exec.asadmin} + + start-domain + + + + + 13-create-jvm-options + + exec + + pre-integration-test + + ${exec.asadmin} + + create-jvm-options + -Dwhitebox-tx-map=${rauser1}=${user}:-Dwhitebox-tx-param-map=${rauser1}=${user}:-Dwhitebox-notx-map=${rauser1}=${user}:-Dwhitebox-notx-param-map=${rauser1}=${user}:-Dwhitebox-xa-map=${rauser1}=${user}:-Dwhitebox-xa-param-map=${rauser1}=${user} + + + + + 18-create-xa-jdbc-pool + + exec + + pre-integration-test + + ${exec.asadmin} + + create-jdbc-connection-pool + --restype + ${xa.restype} + --datasourceclassname + ${xa.datasource.class} + --property + ${xa.properties} + --steadypoolsize + ${xa.steadypoolsize} + --maxpoolsize + ${xa.maxpoolsize} + ${xa.poolName} + + + + + 19-create-jndi + + exec + + pre-integration-test + + ${exec.asadmin} + + create-jdbc-resource + --connectionpoolid + ${xa.poolName} + eis/JDBCwhitebox-xa + + + + + 20-create-jndi + + exec + + pre-integration-test + + ${exec.asadmin} + + create-jdbc-resource + --connectionpoolid + ${xa.poolName} + eis/JDBCwhitebox-tx + + + + + 21-create-jndi + + exec + + pre-integration-test + + ${exec.asadmin} + + create-jdbc-resource + --connectionpoolid + ${xa.poolName} + eis/JDBCwhitebox-notx + + + + + 22-list-jdbc-connection-pools + + exec + + pre-integration-test + + ${exec.asadmin} + + list-jdbc-connection-pools + + + + + 23-ping-connection-pool + + exec + + pre-integration-test + + ${exec.asadmin} + + ping-connection-pool + ${xa.poolName} + + + + + 24-deploy-whitebox-tx-connector + + exec + + pre-integration-test + + ${exec.asadmin} + + deploy + ${project.basedir}/xa-connectors/whitebox/whitebox-tx.rar + + + + + 25-create-whitebox-tx-connector-pool + + exec + + pre-integration-test + + ${exec.asadmin} + + create-connector-connection-pool + --raname + whitebox-tx + --property + user=cts1:password=cts1:TSRValue=comp/TransactionSynchronizationRegistry + --connectiondefinition + com.sun.ts.tests.common.connector.whitebox.TSConnectionFactory + whitebox-tx-pool + + + + + 26-create-whitebox-tx-jndi + + exec + + pre-integration-test + + ${exec.asadmin} + + create-connector-resource + --poolname + whitebox-tx-pool + eis/whitebox-tx + + + + + 27-deploy-whitebox-xa-connector + + exec + + pre-integration-test + + ${exec.asadmin} + + deploy + ${project.basedir}/xa-connectors/whitebox/whitebox-xa.rar + + + + + 28-create-whitebox-xa-connector-pool + + exec + + pre-integration-test + + ${exec.asadmin} + + create-connector-connection-pool + --raname + whitebox-xa + --property + user=cts1:password=cts1:TSRValue=comp/TransactionSynchronizationRegistry + --connectiondefinition + com.sun.ts.tests.common.connector.whitebox.TSConnectionFactory + whitebox-xa-pool + + + + + 29-create-whitebox-xa-jndi + + exec + + pre-integration-test + + ${exec.asadmin} + + create-connector-resource + --poolname + whitebox-xa-pool + eis/whitebox-xa + + + + + 30-deploy-whitebox-notx-connector + + exec + + pre-integration-test + + ${exec.asadmin} + + deploy + ${project.basedir}/xa-connectors/whitebox/whitebox-notx.rar + + + + + 31-create-whitebox-notx-connector-pool + + exec + + pre-integration-test + + ${exec.asadmin} + + create-connector-connection-pool + --raname + whitebox-notx + --property + user=cts1:password=cts1:TSRValue=comp/TransactionSynchronizationRegistry + --connectiondefinition + com.sun.ts.tests.common.connector.whitebox.TSConnectionFactory + whitebox-notx-pool + + + + + 32-create-whitebox-notx-jndi + + exec + + pre-integration-test + + ${exec.asadmin} + + create-connector-resource + --poolname + whitebox-notx-pool + eis/whitebox-notx + + + + + 33-stop-domain + + exec + + pre-integration-test + + ${exec.asadmin} + + stop-domain + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.2.0 + + + unpack + + unpack + + pre-integration-test + + + + org.glassfish.main.distributions + ${glassfish-artifact-id} + ${glassfish.container.version} + zip + true + ${project.build.directory} + + + + + + + + maven-failsafe-plugin + 3.0.0-M5 + + + xa-javatest-tests + + integration-test + verify + + + jakarta.tck:xa + + ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbytools.jar + ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbyclient.jar + ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derby.jar + ${project.build.directory}/${glassfish.toplevel.dir}/glassfish/modules/glassfish-naming.jar + + + ${project.build.directory}/${glassfish.toplevel.dir} + ${env.TS_HOME} + ${project.basedir} + arquillian.xml + + + **/*Servlet*.* + **/*JSP*.* + + + ${project.build.directory}/${glassfish.toplevel.dir} + + + + + + + maven-failsafe-plugin + 3.0.0-M5 + + + xa-appclient-tests + + integration-test + verify + + + jakarta.tck:xa + + ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbytools.jar + ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbyclient.jar + ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derby.jar + ${project.build.directory}/${glassfish.toplevel.dir}/glassfish/modules/glassfish-naming.jar + + + ${project.build.directory}/${glassfish.toplevel.dir} + com.sun.enterprise.naming.impl.SerialInitContextFactory + ${env.TS_HOME} + ${project.basedir} + appclient-arquillian.xml + + + **/*EJB*.* + + + ${project.build.directory}/${glassfish.toplevel.dir} + + + + + + + + + + full + + true + + + glassfish + + + + web + + web + + + + diff --git a/glassfish-runner/xa-platform-tck/sql/derby/derby.ddl.cmp.sql b/glassfish-runner/xa-platform-tck/sql/derby/derby.ddl.cmp.sql new file mode 100644 index 0000000000..12466f0d55 --- /dev/null +++ b/glassfish-runner/xa-platform-tck/sql/derby/derby.ddl.cmp.sql @@ -0,0 +1,288 @@ +ALTER TABLE PHONEEJB_TABLE DROP CONSTRAINT FK_FOR_ADDRESSEJB_ ; +ALTER TABLE ORDEREJB_TABLE DROP CONSTRAINT FK4_FOR_CUSTOMEREJ ; +ALTER TABLE ORDEREJB_TABLE DROP CONSTRAINT FK0_FOR_LINEITEMEJ ; +ALTER TABLE FKS_FOR_ALIAS_CUSTOMER DROP CONSTRAINT FK_FOR_ALIASEJB_TA ; +ALTER TABLE LINEITEMEJB_TABLE DROP CONSTRAINT FK1_FOR_ORDEREJB_T ; +ALTER TABLE LINEITEMEJB_TABLE DROP CONSTRAINT FK_FOR_PRODUCTEJB_ ; +ALTER TABLE SPOUSEEJB_TABLE DROP CONSTRAINT FK_INFOEJBTAB ; +ALTER TABLE SPOUSEEJB_TABLE DROP CONSTRAINT FK7_CUSTOMEREJBTAB ; +ALTER TABLE INFOEJB_TABLE DROP CONSTRAINT FK_SPOUSEEJBTAB ; +ALTER TABLE COMPLEXPK_TABLE1 DROP CONSTRAINT FK_FOR_LINEITEMS ; +ALTER TABLE COMPLEXPK_LINEITEM_TABLE1 DROP CONSTRAINT FK_FOR_ID ; +ALTER TABLE FKS_ALIASNOOP_CUSTNOOP DROP CONSTRAINT FK2_ALIASEJBTAB ; +ALTER TABLE FKS_ALIASNOOP_CUSTNOOP DROP CONSTRAINT FK8_CUSTOMEREJBTAB ; +ALTER TABLE FKS_FOR_ALIAS_CUSTOMER DROP CONSTRAINT FK_FOR_CUSTOMEREJB ; +ALTER TABLE ALIASEJB_TABLE DROP CONSTRAINT FK1_FOR_CUSTOMEREJ ; +ALTER TABLE ALIASEJB_TABLE DROP CONSTRAINT FK2_FOR_CUSTOMEREJ ; +ALTER TABLE CREDITCARDEJB_TABLE DROP CONSTRAINT FK3_FOR_CUSTOMEREJ ; + + +DROP TABLE COMMON_TABLE; +CREATE TABLE COMMON_TABLE (ID INT NOT NULL, BRANDNAME VARCHAR(25), PRICE REAL, CONSTRAINT COMMON_TABLE PRIMARY KEY (ID)); + +DROP TABLE COMMON_TABLE2; +CREATE TABLE COMMON_TABLE2 (ID INT NOT NULL, BRANDNAME VARCHAR(25), PRICE REAL, CONSTRAINT COMMON_TABLE2 PRIMARY KEY (ID)); + +DROP TABLE COMMON_TABLE3; +CREATE TABLE COMMON_TABLE3 (ID INT NOT NULL, BRANDNAME VARCHAR(25), PRICE REAL, CONSTRAINT COMMON_TABLE3 PRIMARY KEY (ID)); + +DROP TABLE LOCALACCESSTEST_TABLE1; +CREATE TABLE LOCALACCESSTEST_TABLE1 ( ID INT NOT NULL, NAME VARCHAR(25) , VALUE REAL , CONSTRAINT LOCALACCESS_TAB1 PRIMARY KEY (ID)); + +DROP TABLE EBACCESSTEST_TABLE2; +CREATE TABLE EBACCESSTEST_TABLE2 ( ID INT NOT NULL, NAME VARCHAR(25) , VALUE REAL , CONSTRAINT EBACCESSTEST_TABL1 PRIMARY KEY (ID)); + +DROP TABLE ENTITY_BEAN_TABLE1; +CREATE TABLE ENTITY_BEAN_TABLE1 ( KEY_ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT ENTITY_BEAN_TABLE2 PRIMARY KEY (KEY_ID)); + +DROP TABLE PHONEEJB_TABLE; +CREATE TABLE PHONEEJB_TABLE ( ID VARCHAR(255) PRIMARY KEY NOT NULL, AREA VARCHAR(255) , PHONE_NUMBER VARCHAR(255) , FK_FOR_ADDRESSEJB_TABLE VARCHAR(255) ); + +DROP TABLE ADDRESSEJB_TABLE; +CREATE TABLE ADDRESSEJB_TABLE ( ID VARCHAR(255) PRIMARY KEY NOT NULL, STREET VARCHAR(255) , CITY VARCHAR(255) , STATE VARCHAR(255) , ZIP VARCHAR(255) , FK5_FOR_CUSTOMEREJB_TABLE VARCHAR(255) , FK6_FOR_CUSTOMEREJB_TABLE VARCHAR(255) ); + +DROP TABLE CUSTOMEREJB_TABLE; +CREATE TABLE CUSTOMEREJB_TABLE ( ID VARCHAR(255) PRIMARY KEY NOT NULL, NAME VARCHAR(255) , COUNTRY BLOB(2G)); + +DROP TABLE ALIASEJB_TABLE; +CREATE TABLE ALIASEJB_TABLE ( ID VARCHAR(255) PRIMARY KEY NOT NULL, ALIAS VARCHAR(255) , FK1_FOR_CUSTOMEREJB_TABLE VARCHAR(255) , FK2_FOR_CUSTOMEREJB_TABLE VARCHAR(255) ); + +DROP TABLE FKS_FOR_ALIAS_CUSTOMER; +CREATE TABLE FKS_FOR_ALIAS_CUSTOMER ( FK_FOR_CUSTOMEREJB_TABLE VARCHAR(255) NOT NULL, FK_FOR_ALIASEJB_TABLE VARCHAR(255) ); + +DROP table FKS_ALIASNOOP_CUSTNOOP ; +CREATE TABLE FKS_ALIASNOOP_CUSTNOOP( FK8_FOR_CUSTOMEREJB_TABLE VARCHAR(255) , FK2_FOR_ALIASEJB_TABLE VARCHAR(255)); + +DROP TABLE CREDITCARDEJB_TABLE; +CREATE TABLE CREDITCARDEJB_TABLE ( ID VARCHAR(255) PRIMARY KEY NOT NULL, TYPE VARCHAR(255) , EXPIRES VARCHAR(255) , APPROVED DECIMAL(18,0) , CREDITCARD_NUMBER VARCHAR(255) , BALANCE DOUBLE, FK3_FOR_CUSTOMEREJB_TABLE VARCHAR(255) , FK_FOR_ORDEREJB_TABLE VARCHAR(255) ); + +DROP TABLE ORDEREJB_TABLE; +CREATE TABLE ORDEREJB_TABLE ( ID VARCHAR(255) PRIMARY KEY NOT NULL, TOTALPRICE DOUBLE , FK4_FOR_CUSTOMEREJB_TABLE VARCHAR(255) , FK0_FOR_LINEITEMEJB_TABLE VARCHAR(255) ); + +DROP TABLE PRODUCTEJB_TABLE; +CREATE TABLE PRODUCTEJB_TABLE ( ID VARCHAR(255) PRIMARY KEY NOT NULL, NAME VARCHAR(255) , PRICE DOUBLE , QUANTITY INT, PNUM INT ); + +DROP table INFOEJB_TABLE ; +CREATE TABLE INFOEJB_TABLE (ID VARCHAR(255) PRIMARY KEY NOT NULL, INFOSTREET VARCHAR(255), INFOCITY VARCHAR(255), INFOSTATE VARCHAR(255), INFOZIP VARCHAR(255), FK_FOR_SPOUSEEJB_TABLE VARCHAR(255) ) ; + +DROP table SPOUSEEJB_TABLE ; +CREATE TABLE SPOUSEEJB_TABLE (ID VARCHAR(255) PRIMARY KEY NOT NULL, FIRSTNAME VARCHAR(255), MAIDENNAME VARCHAR(255), LASTNAME VARCHAR(255), SOCSECNUM VARCHAR(255), FK7_FOR_CUSTOMEREJB_TABLE VARCHAR(255), FK_FOR_INFOEJB_TABLE VARCHAR(255) ); + +DROP TABLE LINEITEMEJB_TABLE; +CREATE TABLE LINEITEMEJB_TABLE ( ID VARCHAR(255) PRIMARY KEY NOT NULL, QUANTITY INT , FK_FOR_PRODUCTEJB_TABLE VARCHAR(255) , FK1_FOR_ORDEREJB_TABLE VARCHAR(255) ); + +ALTER TABLE PHONEEJB_TABLE ADD CONSTRAINT FK_FOR_ADDRESSEJB_ FOREIGN KEY (FK_FOR_ADDRESSEJB_TABLE) REFERENCES ADDRESSEJB_TABLE (ID) ; + +ALTER TABLE ALIASEJB_TABLE ADD CONSTRAINT FK1_FOR_CUSTOMEREJ FOREIGN KEY (FK1_FOR_CUSTOMEREJB_TABLE) REFERENCES CUSTOMEREJB_TABLE (ID) ; + +ALTER TABLE ALIASEJB_TABLE ADD CONSTRAINT FK2_FOR_CUSTOMEREJ FOREIGN KEY (FK2_FOR_CUSTOMEREJB_TABLE) REFERENCES CUSTOMEREJB_TABLE (ID) ; + +ALTER TABLE FKS_FOR_ALIAS_CUSTOMER ADD CONSTRAINT FK_FOR_CUSTOMEREJB FOREIGN KEY (FK_FOR_CUSTOMEREJB_TABLE) REFERENCES CUSTOMEREJB_TABLE (ID) ; + +ALTER TABLE FKS_FOR_ALIAS_CUSTOMER ADD CONSTRAINT FK_FOR_ALIASEJB_TA FOREIGN KEY (FK_FOR_ALIASEJB_TABLE) REFERENCES ALIASEJB_TABLE (ID) ; + +ALTER TABLE FKS_ALIASNOOP_CUSTNOOP add constraint FK2_ALIASEJBTAB Foreign Key (FK2_FOR_ALIASEJB_TABLE) references ALIASEJB_TABLE(id) ; + +ALTER TABLE FKS_ALIASNOOP_CUSTNOOP add constraint FK8_CUSTOMEREJBTAB Foreign Key (FK8_FOR_CUSTOMEREJB_TABLE) references CUSTOMEREJB_TABLE(id) ; + +ALTER TABLE CREDITCARDEJB_TABLE ADD CONSTRAINT FK3_FOR_CUSTOMEREJ FOREIGN KEY (FK3_FOR_CUSTOMEREJB_TABLE) REFERENCES CUSTOMEREJB_TABLE (ID) ; + +ALTER TABLE CREDITCARDEJB_TABLE ADD CONSTRAINT FK_FOR_ORDEREJB_TA FOREIGN KEY (FK_FOR_ORDEREJB_TABLE) REFERENCES ORDEREJB_TABLE (ID) ; + +ALTER TABLE ORDEREJB_TABLE ADD CONSTRAINT FK4_FOR_CUSTOMEREJ FOREIGN KEY (FK4_FOR_CUSTOMEREJB_TABLE) REFERENCES CUSTOMEREJB_TABLE (ID) ; + +ALTER TABLE ORDEREJB_TABLE ADD CONSTRAINT FK0_FOR_LINEITEMEJ FOREIGN KEY (FK0_FOR_LINEITEMEJB_TABLE) REFERENCES LINEITEMEJB_TABLE (ID) ; + +ALTER TABLE LINEITEMEJB_TABLE ADD CONSTRAINT FK_FOR_PRODUCTEJB_ FOREIGN KEY (FK_FOR_PRODUCTEJB_TABLE) REFERENCES PRODUCTEJB_TABLE (ID) ; + +ALTER TABLE LINEITEMEJB_TABLE ADD CONSTRAINT FK1_FOR_ORDEREJB_T FOREIGN KEY (FK1_FOR_ORDEREJB_TABLE) REFERENCES ORDEREJB_TABLE (ID) ; + +ALTER TABLE ADDRESSEJB_TABLE ADD CONSTRAINT FK5_FOR_CUSTOMEREJ FOREIGN KEY (FK5_FOR_CUSTOMEREJB_TABLE) REFERENCES CUSTOMEREJB_TABLE (ID) ; + +ALTER TABLE ADDRESSEJB_TABLE ADD CONSTRAINT FK6_FOR_CUSTOMEREJ FOREIGN KEY (FK6_FOR_CUSTOMEREJB_TABLE) REFERENCES CUSTOMEREJB_TABLE (ID) ; + +ALTER TABLE SPOUSEEJB_TABLE add constraint FK7_CUSTOMEREJBTAB Foreign Key (FK7_FOR_CUSTOMEREJB_TABLE) references CUSTOMEREJB_TABLE(ID) ; + +ALTER TABLE SPOUSEEJB_TABLE add constraint FK_INFOEJBTAB Foreign Key (FK_FOR_INFOEJB_TABLE) references INFOEJB_TABLE(ID) ; + +ALTER TABLE INFOEJB_TABLE add constraint FK_SPOUSEEJBTAB Foreign Key (FK_FOR_SPOUSEEJB_TABLE) references SPOUSEEJB_TABLE(ID) ; + +DROP table COMPLEXPK_LINEITEM_TABLE1 ; +CREATE table COMPLEXPK_LINEITEM_TABLE1(ID varchar(25) NOT NULL, QUANTITY INTEGER, FK_FOR_ID INTEGER, FK_FOR_BRANDNAME varchar(25), constraint PK_LineItem_Tab1 primary key(ID)); + +DROP TABLE COMPLEXPK_TABLE1; +CREATE TABLE COMPLEXPK_TABLE1 ( ID INT NOT NULL, BRANDNAME VARCHAR(25) NOT NULL, PRICE REAL , PRODUCT BLOB(2G), FK_FOR_LINEITEMS varchar(25), CONSTRAINT COMPLEXPK_TABLE1 PRIMARY KEY (ID, BRANDNAME)); + +ALTER TABLE COMPLEXPK_TABLE1 add constraint FK_FOR_LINEITEMS Foreign Key (FK_FOR_LINEITEMS) references COMPLEXPK_LINEITEM_TABLE1(ID); + +ALTER TABLE COMPLEXPK_LINEITEM_TABLE1 add constraint FK_FOR_ID Foreign Key (FK_FOR_ID, FK_FOR_BRANDNAME) references COMPLEXPK_TABLE1(ID,BRANDNAME) ; + +DROP TABLE CMP20_ENTITYCMP_TABLE1; +CREATE TABLE CMP20_ENTITYCMP_TABLE1 ( KEY_ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , B BLOB(2G), CONSTRAINT CMP20_ENTITYCMP_TA PRIMARY KEY (KEY_ID)); + +DROP table CMP20_ENTITY_CTX_TABLE1 ; +CREATE TABLE CMP20_ENTITY_CTX_TABLE1 (KEY_ID VARCHAR(255) NOT NULL, BRAND_NAME VARCHAR(255) , CONSTRAINT CMP20ENTITYCTXTAB primary key (KEY_ID) ) ; + +DROP TABLE CMP20_HANDLE_TABLE1; +CREATE TABLE CMP20_HANDLE_TABLE1 ( KEY_ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_HANDLE_TABLE PRIMARY KEY (KEY_ID)); + +DROP TABLE CMP20_HOMEM_TABLE1; +CREATE TABLE CMP20_HOMEM_TABLE1 ( NAME VARCHAR(25) , STATE VARCHAR(25) , CODE VARCHAR(25) , ZIP INT , ID INT NOT NULL, EXPIRES VARCHAR(25) , STREET VARCHAR(25) , CARDBALANCE DOUBLE , CITY VARCHAR(25) , HOMEPHONE VARCHAR(25) , WORKPHONE VARCHAR(25) , LASTNAME VARCHAR(25) , PAYMENTTYPE VARCHAR(25) , CREDITCARDNUMBER VARCHAR(25) , ACCOUNTNUMBER VARCHAR(25) , MIDDLENAME VARCHAR(25) , FIRSTNAME VARCHAR(25) , CONSTRAINT CMP20_HOMEM_TABLE2 PRIMARY KEY (ID)); + +DROP TABLE UNKNOWNPK_TABLE1; +CREATE TABLE UNKNOWNPK_TABLE1 ( MIDDLENAME VARCHAR(255) , LASTNAME VARCHAR(25) , FIRSTNAME VARCHAR(25) , STREET VARCHAR(25) , CITY VARCHAR(25) , STATE VARCHAR(25) , ZIP INT , ACCOUNTNUMBER VARCHAR(25) , ABC DECIMAL(29,0) NOT NULL, CONSTRAINT UNKNOWNPK_TABLE11 PRIMARY KEY (ABC)); + +DROP TABLE CMP_COMPLEXPK_TABLE1; +CREATE TABLE CMP_COMPLEXPK_TABLE1 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) NOT NULL, PRICE REAL , PRODUCT BLOB(2G), CONSTRAINT CMP_COMPLEXPK_TABL PRIMARY KEY (ID, BRAND_NAME)); + +DROP TABLE LRAPITEST_TABLE1; +CREATE TABLE LRAPITEST_TABLE1 ( ID INT NOT NULL, NAME VARCHAR(25) , VALUE REAL , CONSTRAINT LRAPITEST_TABLE11 PRIMARY KEY (ID)); + +DROP TABLE LRAPITEST_TABLE2; +CREATE TABLE LRAPITEST_TABLE2 ( ID INT NOT NULL, NAME VARCHAR(25) , VALUE REAL , CONSTRAINT LRAPITEST_TABLE21 PRIMARY KEY (ID)); + +DROP TABLE LRAPITEST_TABLE3; +CREATE TABLE LRAPITEST_TABLE3 ( ID VARCHAR(25) NOT NULL, NAME VARCHAR(25) , VALUE REAL , CONSTRAINT LRAPITEST_TABLE31 PRIMARY KEY (ID)); + +DROP TABLE COMPAT_ENTITYCMP_TABLE1; +CREATE TABLE COMPAT_ENTITYCMP_TABLE1 ( KEY_ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT COMPAT_ENTITYCMP_T PRIMARY KEY (KEY_ID)); + + +DROP TABLE TX_NOT_TABLE3; +CREATE TABLE TX_NOT_TABLE3 ( KEY_ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT TX_NOT_TABLE31 PRIMARY KEY (KEY_ID)); + +DROP TABLE TX_NOT_TABLE4; +CREATE TABLE TX_NOT_TABLE4 ( KEY_ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT TX_NOT_TABLE41 PRIMARY KEY (KEY_ID)); + +DROP TABLE CMP11PK_TABLE1; +CREATE TABLE CMP11PK_TABLE1 ( CMPID VARCHAR(25) NOT NULL, CMPBRANDNAME VARCHAR(25) , CMPPRICE REAL , CONSTRAINT CMP11PK_TABLE11 PRIMARY KEY (CMPID)); + +DROP TABLE CMP11PK_TABLE2; +CREATE TABLE CMP11PK_TABLE2 ( CMPID INT NOT NULL, CMPBRANDNAME VARCHAR(25) , CMPPRICE REAL , CONSTRAINT CMP11PK_TABLE21 PRIMARY KEY (CMPID)); + +DROP TABLE CMP11PK_TABLE3; +CREATE TABLE CMP11PK_TABLE3 ( CMPID REAL NOT NULL, CMPBRANDNAME VARCHAR(25) , CMPPRICE REAL , CONSTRAINT CMP11PK_TABLE31 PRIMARY KEY (CMPID)); + +DROP TABLE CMP11PK_TABLE4; +CREATE TABLE CMP11PK_TABLE4 ( PMIDINTEGER INT NOT NULL, PMIDSTRING VARCHAR(25) NOT NULL, PMIDFLOAT REAL NOT NULL, CMPBRANDNAME VARCHAR(25) , CMPPRICE REAL , CONSTRAINT CMP11PK_TABLE41 PRIMARY KEY (PMIDINTEGER, PMIDSTRING, PMIDFLOAT)); + +DROP TABLE CMP20_DEP_PKEY_TABLE1; +CREATE TABLE CMP20_DEP_PKEY_TABLE1 ( KEY_ID DECIMAL(18,0) NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_DEP_PKEY_TAB PRIMARY KEY (KEY_ID)); + +DROP TABLE CMP20_DEP_PKEY_TABLE2; +CREATE TABLE CMP20_DEP_PKEY_TABLE2 ( KEY_ID REAL NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_DEP_PKEY_TA1 PRIMARY KEY (KEY_ID)); + +DROP TABLE CMP20_DEP_PKEY_TABLE3; +CREATE TABLE CMP20_DEP_PKEY_TABLE3 ( KEY_ID VARCHAR(50) NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_DEP_PKEY_TA2 PRIMARY KEY (KEY_ID)); + +DROP TABLE CMP20_DEP_PKEY_TABLE4; +CREATE TABLE CMP20_DEP_PKEY_TABLE4 ( PMIDINTEGER INT NOT NULL, PMIDSTRING VARCHAR(25) NOT NULL, PMIDFLOAT REAL NOT NULL, BRANDNAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_DEP_PKEY_TA3 PRIMARY KEY (PMIDINTEGER, PMIDSTRING, PMIDFLOAT)); + +DROP TABLE TABLER5_DELETE; +CREATE TABLE TABLER5_DELETE ( ID VARCHAR(255) PRIMARY KEY NOT NULL, NAME VARCHAR(255) , VALUE DECIMAL(18,0) NOT NULL, FK1_FOR_TABLER6_DELETE_ID VARCHAR(255) , FK2_FOR_TABLER6_DELETE_ID VARCHAR(255) , FK1_FOR_TABLER7_DELETE_ID VARCHAR(255) , FK2_FOR_TABLER7_DELETE_ID VARCHAR(255) ); + +DROP TABLE TABLER7_DELETE; +CREATE TABLE TABLER7_DELETE ( ID VARCHAR(255) PRIMARY KEY NOT NULL, NAME VARCHAR(255) , VALUE DECIMAL(18,0) NOT NULL, FK_FOR_TABLER6_DELETE_ID VARCHAR(255) ); + +DROP TABLE TABLER6_DELETE; +CREATE TABLE TABLER6_DELETE ( ID VARCHAR(255) PRIMARY KEY NOT NULL, NAME VARCHAR(255) , VALUE DECIMAL(18,0) NOT NULL); + +ALTER TABLE TABLER5_DELETE ADD CONSTRAINT FK1_FOR_TABLER6_DE FOREIGN KEY (FK1_FOR_TABLER6_DELETE_ID) REFERENCES TABLER6_DELETE (ID) ; + +ALTER TABLE TABLER5_DELETE ADD CONSTRAINT FK2_FOR_TABLER6_DE FOREIGN KEY (FK2_FOR_TABLER6_DELETE_ID) REFERENCES TABLER6_DELETE (ID) ; + +ALTER TABLE TABLER5_DELETE ADD CONSTRAINT FK1_FOR_TABLER7_DE FOREIGN KEY (FK1_FOR_TABLER7_DELETE_ID) REFERENCES TABLER7_DELETE (ID) ; + +ALTER TABLE TABLER5_DELETE ADD CONSTRAINT FK2_FOR_TABLER7_DE FOREIGN KEY (FK2_FOR_TABLER7_DELETE_ID) REFERENCES TABLER7_DELETE (ID) ; + +ALTER TABLE TABLER7_DELETE ADD CONSTRAINT FK_FOR_TABLER6_DEL FOREIGN KEY (FK_FOR_TABLER6_DELETE_ID) REFERENCES TABLER6_DELETE (ID) ; + +DROP TABLE CMP20_LSECP_TABLE1; +CREATE TABLE CMP20_LSECP_TABLE1 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_LSECP_TABLE2 PRIMARY KEY (ID)); + +DROP TABLE CMP20_LSECP_TABLE2; +CREATE TABLE CMP20_LSECP_TABLE2 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_LSECP_TABLE3 PRIMARY KEY (ID)); + +DROP TABLE CMP20_LSECP_TABLE3; +CREATE TABLE CMP20_LSECP_TABLE3 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_LSECP_TABLE4 PRIMARY KEY (ID)); + +DROP TABLE CMP20_LSECR_TABLE1; +CREATE TABLE CMP20_LSECR_TABLE1 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_LSECR_TABLE2 PRIMARY KEY (ID)); + +DROP TABLE CMP20_LSECR_TABLE2; +CREATE TABLE CMP20_LSECR_TABLE2 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_LSECR_TABLE3 PRIMARY KEY (ID)); + +DROP TABLE CMP20_LSECR_TABLE3; +CREATE TABLE CMP20_LSECR_TABLE3 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_LSECR_TABLE4 PRIMARY KEY (ID)); + +DROP TABLE CMP20_SEC_TABLE1; +CREATE TABLE CMP20_SEC_TABLE1 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_SEC_TABLE11 PRIMARY KEY (ID)); + +DROP TABLE CMP20_SEC_TABLE2; +CREATE TABLE CMP20_SEC_TABLE2 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , + CONSTRAINT CMP20_SEC_TABLE2 PRIMARY KEY (ID)); + +DROP TABLE CMP20_SECP_TABLE1; +CREATE TABLE CMP20_SECP_TABLE1 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_SECP_TABLE11 PRIMARY KEY (ID)); + +DROP TABLE CMP20_SECP_TABLE2; +CREATE TABLE CMP20_SECP_TABLE2 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_SECP_TABLE21 PRIMARY KEY (ID)); + +DROP TABLE CMP20_SECP_TABLE3; +CREATE TABLE CMP20_SECP_TABLE3 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_SECP_TABLE31 PRIMARY KEY (ID)); + +DROP TABLE CMP_SEC_TABLE1; +CREATE TABLE CMP_SEC_TABLE1 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , + CONSTRAINT CMP_SEC_TABLE11 PRIMARY KEY (ID)); + +DROP TABLE CMP_SEC_TABLE2; +CREATE TABLE CMP_SEC_TABLE2 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , + CONSTRAINT CMP_SEC_TABLE2 PRIMARY KEY (ID)); + +DROP TABLE CMP_SECP_TABLE1; +CREATE TABLE CMP_SECP_TABLE1 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , + CONSTRAINT CMP_SECP_TABLE1 PRIMARY KEY (ID)); + +DROP TABLE CMP_SECP_TABLE2; +CREATE TABLE CMP_SECP_TABLE2 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , + CONSTRAINT CMP_SECP_TABLE2 PRIMARY KEY (ID)); + +DROP TABLE CMP_SECP_TABLE3; +CREATE TABLE CMP_SECP_TABLE3 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP_SECP_TABLE PRIMARY KEY (ID)); + +DROP TABLE CMP20_SECRASP_TABLE1; +CREATE TABLE CMP20_SECRASP_TABLE1 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_SECRASP_TABL PRIMARY KEY (ID)); + +DROP TABLE CMP20_SECRASP_TABLE2; +CREATE TABLE CMP20_SECRASP_TABLE2 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_SECRASP_TAB1 PRIMARY KEY (ID)); + +DROP TABLE CMP20_SECRASP_TABLE3; +CREATE TABLE CMP20_SECRASP_TABLE3 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP20_SECRASP_TAB2 PRIMARY KEY (ID)); + +DROP TABLE CMP_SECRASP_TABLE1; +CREATE TABLE CMP_SECRASP_TABLE1 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP_SECRASP_TABLE2 PRIMARY KEY (ID)); + +DROP TABLE CMP_SECRASP_TABLE2; +CREATE TABLE CMP_SECRASP_TABLE2 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP_SECRASP_TABLE3 PRIMARY KEY (ID)); + +DROP TABLE CMP_SECRASP_TABLE3; +CREATE TABLE CMP_SECRASP_TABLE3 ( ID INT NOT NULL, BRAND_NAME VARCHAR(25) , PRICE REAL , CONSTRAINT CMP_SECRASP_TABLE4 PRIMARY KEY (ID)); + +DROP table TIMER_TABLE1 ; +CREATE TABLE TIMER_TABLE1 (KEY_ID INTEGER NOT NULL, BRAND_NAME VARCHAR(255), PRICE REAL NOT NULL, CONSTRAINT TIMER_TABLE1 PRIMARY KEY (KEY_ID) ); + +DROP table TIMER_FLAGSTORE ; +CREATE TABLE TIMER_FLAGSTORE (KEY_ID INTEGER NOT NULL, BRAND_NAME VARCHAR(255) , PRICE REAL NOT NULL , REQUIRESNEWACCESSED SMALLINT NOT NULL, REQUIREDACCESSED SMALLINT NOT NULL , CONSTRAINT TIMER_FLAGSTORE PRIMARY KEY (KEY_ID) ); + +DROP table CMP20_JACC_TABLE1 ; +CREATE TABLE CMP20_JACC_TABLE1 (ARG1 VARCHAR(255) NOT NULL, ARG2 INTEGER NOT NULL, ARG3 INTEGER NOT NULL, CONSTRAINT CMP20_JACC_TAB PRIMARY KEY (ARG1,ARG2,ARG3) ); + +DROP TABLE EMPLOYEEEJB ; +CREATE TABLE EMPLOYEEEJB (HIREDATE DATE , ID INTEGER NOT NULL, FIRSTNAME VARCHAR(256) , SALARY REAL NOT NULL, LASTNAME VARCHAR(256) , EMPLOYEEEJB_ID INTEGER , DEPARTMENTEJB_ID INTEGER , CONSTRAINT PK_EMPLOYEEEJB PRIMARY KEY (ID)) ; + +DROP TABLE DEPARTMENTEJB ; +CREATE TABLE DEPARTMENTEJB (NAME VARCHAR(256) , ID INTEGER NOT NULL, CONSTRAINT PK_DEPARTMENTEJB PRIMARY KEY (ID)) ; + +ALTER TABLE EMPLOYEEEJB ADD CONSTRAINT FK_MANAGER FOREIGN KEY (EMPLOYEEEJB_ID) REFERENCES EMPLOYEEEJB (ID) ; +ALTER TABLE EMPLOYEEEJB ADD CONSTRAINT FK_DEPARTMENT FOREIGN KEY (DEPARTMENTEJB_ID) REFERENCES DEPARTMENTEJB (ID) ; + diff --git a/glassfish-runner/xa-platform-tck/sql/derby/derby.ddl.sprocs.sql b/glassfish-runner/xa-platform-tck/sql/derby/derby.ddl.sprocs.sql new file mode 100644 index 0000000000..e1054cc968 --- /dev/null +++ b/glassfish-runner/xa-platform-tck/sql/derby/derby.ddl.sprocs.sql @@ -0,0 +1,347 @@ +drop procedure Numeric_Proc ; +create procedure Numeric_Proc(out MAX_PARAM NUMERIC(30,15), out MIN_PARAM NUMERIC(30,15), out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_Proc' parameter style java; + +drop procedure Decimal_Proc ; +create procedure Decimal_Proc(out MAX_PARAM DECIMAL(30,15), out MIN_PARAM DECIMAL(30,15), out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_Proc' parameter style java; + +drop procedure Double_Proc ; +create procedure Double_Proc (out MAX_PARAM DOUBLE PRECISION, out MIN_PARAM DOUBLE PRECISION, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_Proc' parameter style java; + +drop procedure Float_Proc ; +create procedure Float_Proc (out MAX_PARAM FLOAT, out MIN_PARAM FLOAT, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_Proc' parameter style java; + +drop procedure Real_Proc ; +create procedure Real_Proc (out MAX_PARAM REAL, out MIN_PARAM REAL, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_Proc' parameter style java; + +drop procedure Bit_Proc ; +create procedure Bit_Proc (out MAX_PARAM BOOLEAN, out MIN_PARAM BOOLEAN, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_Proc' parameter style java; + +drop procedure Smallint_Proc ; +create procedure Smallint_Proc (out MAX_PARAM SMALLINT, out MIN_PARAM SMALLINT, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_Proc' parameter style java; + +drop procedure Tinyint_Proc ; +create procedure Tinyint_Proc (out MAX_PARAM INTEGER, out MIN_PARAM INTEGER, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_Proc' parameter style java; + +drop procedure Integer_Proc ; +create procedure Integer_Proc (out MAX_PARAM INTEGER, out MIN_PARAM INTEGER, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_Proc' parameter style java; + +drop procedure Bigint_Proc ; +create procedure Bigint_Proc (out MAX_PARAM BIGINT, out MIN_PARAM BIGINT, out NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_Proc' parameter style java; + +drop procedure Char_Proc ; +create procedure Char_Proc (out NAME_PARAM CHAR(30), out NULL_PARAM CHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Char_Proc' parameter style java; + +drop procedure Varchar_Proc ; +create procedure Varchar_Proc (out NAME_PARAM VARCHAR(30), out NULL_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varchar_Proc' parameter style java; + +drop procedure Longvarchar_Proc ; +create procedure Longvarchar_Proc (out NAME_PARAM VARCHAR(448)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarchar_Proc' parameter style java; + +drop procedure Lvarcharnull_Proc ; +create procedure Lvarcharnull_Proc (out NULL_PARAM VARCHAR(448)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarcharnull_Proc' parameter style java; + +drop procedure Date_Proc ; +create procedure Date_Proc (out MFG_PARAM DATE, out NULL_PARAM DATE) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Date_Proc' parameter style java; + +drop procedure Time_Proc ; +create procedure Time_Proc (out BRK_PARAM TIME, out NULL_PARAM TIME) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Time_Proc' parameter style java; + +drop procedure Timestamp_Proc ; +create procedure Timestamp_Proc (out IN_PARAM TIMESTAMP, out NULL_PARAM TIMESTAMP) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Timestamp_Proc' parameter style java; + +drop procedure Binary_Proc ; +create procedure Binary_Proc (out BINARY_PARAM VARCHAR(24) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Binary_Proc' parameter style java; + +drop procedure Varbinary_Proc ; +create procedure Varbinary_Proc (out VARBINARY_PARAM VARCHAR(255) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varbinary_Proc' parameter style java; + +drop procedure Longvarbinary_Proc ; +create procedure Longvarbinary_Proc (out LONGVARBINARY_PARAM VARCHAR(255) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarbinary_Proc' parameter style java; + +drop procedure Integer_In_Proc ; +create procedure Integer_In_Proc (IN_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_In_Proc' parameter style java; + +drop procedure Integer_InOut_Proc ; +create procedure Integer_InOut_Proc (inout INOUT_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_InOut_Proc' parameter style java; + +drop procedure UpdCoffee_Proc ; +create procedure UpdCoffee_Proc (in TYPE_PARAM NUMERIC) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.UpdCoffee_Proc' parameter style java; + +drop procedure SelCoffee_Proc ; +create procedure SelCoffee_Proc (out KEYID_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.SelCoffee_Proc' parameter style java; + +drop procedure IOCoffee_Proc ; +create procedure IOCoffee_Proc (inout PRICE_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.IOCoffee_Proc' parameter style java; + +drop procedure Coffee_Proc ; +create procedure Coffee_Proc (in TYPE_PARAM Numeric) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Coffee_Proc' parameter style java; + +drop procedure Numeric_Io_Max ; +create procedure Numeric_Io_Max (inout MAX_PARAM NUMERIC(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_Io_Max' parameter style java; + +drop procedure Numeric_Io_Min ; +create procedure Numeric_Io_Min (inout MIN_PARAM NUMERIC(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_Io_Min' parameter style java; + +drop procedure Numeric_Io_Null ; +create procedure Numeric_Io_Null (inout NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_Io_Null' parameter style java; + +drop procedure Decimal_Io_Max ; +create procedure Decimal_Io_Max (inout MAX_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_Io_Max' parameter style java; + +drop procedure Decimal_Io_Min ; +create procedure Decimal_Io_Min (inout MIN_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_Io_Min' parameter style java; + +drop procedure Decimal_Io_Null ; +create procedure Decimal_Io_Null (inout NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_Io_Null' parameter style java; + +drop procedure Double_Io_Max ; +create procedure Double_Io_Max (inout MAX_PARAM DOUBLE PRECISION) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_Io_Max' parameter style java; + +drop procedure Double_Io_Min ; +create procedure Double_Io_Min (inout MIN_PARAM DOUBLE PRECISION) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_Io_Min' parameter style java; + +drop procedure Double_Io_Null ; +create procedure Double_Io_Null (inout NULL_PARAM DOUBLE PRECISION) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_Io_Null' parameter style java; + +drop procedure Float_Io_Max ; +create procedure Float_Io_Max (inout MAX_PARAM FLOAT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_Io_Max' parameter style java; + +drop procedure Float_Io_Min ; +create procedure Float_Io_Min (inout MIN_PARAM FLOAT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_Io_Min' parameter style java; + +drop procedure Float_Io_Null ; +create procedure Float_Io_Null (inout NULL_PARAM FLOAT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_Io_Null' parameter style java; + +drop procedure Real_Io_Max ; +create procedure Real_Io_Max (inout MAX_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_Io_Max' parameter style java; + +drop procedure Real_Io_Min ; +create procedure Real_Io_Min (inout MIN_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_Io_Min' parameter style java; + +drop procedure Real_Io_Null ; +create procedure Real_Io_Null (inout NULL_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_Io_Null' parameter style java; + +drop procedure Bit_Io_Max ; +create procedure Bit_Io_Max (inout MAX_PARAM BOOLEAN) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_Io_Max' parameter style java; + +drop procedure Bit_Io_Min ; +create procedure Bit_Io_Min (inout MIN_PARAM BOOLEAN) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_Io_Min' parameter style java; + +drop procedure Bit_Io_Null ; +create procedure Bit_Io_Null (inout NULL_PARAM BOOLEAN) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_Io_Null' parameter style java; + +drop procedure Smallint_Io_Max ; +create procedure Smallint_Io_Max (inout MAX_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_Io_Max' parameter style java; + +drop procedure Smallint_Io_Min ; +create procedure Smallint_Io_Min (inout MIN_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_Io_Min' parameter style java; + +drop procedure Smallint_Io_Null ; +create procedure Smallint_Io_Null (inout NULL_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_Io_Null' parameter style java; + +drop procedure Tinyint_Io_Max ; +create procedure Tinyint_Io_Max (inout MAX_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_Io_Max' parameter style java; + +drop procedure Tinyint_Io_Min ; +create procedure Tinyint_Io_Min (inout MIN_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_Io_Min' parameter style java; + +drop procedure Tinyint_Io_Null ; +create procedure Tinyint_Io_Null (inout NULL_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_Io_Null' parameter style java; + +drop procedure Integer_Io_Max ; +create procedure Integer_Io_Max (inout MAX_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_Io_Max' parameter style java; + +drop procedure Integer_Io_Min ; +create procedure Integer_Io_Min (inout MIN_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_Io_Min' parameter style java; + +drop procedure Integer_Io_Null ; +create procedure Integer_Io_Null (inout NULL_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_Io_Null' parameter style java; + +drop procedure Bigint_Io_Max ; +create procedure Bigint_Io_Max (inout MAX_PARAM BIGINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_Io_Max' parameter style java; + +drop procedure Bigint_Io_Min ; +create procedure Bigint_Io_Min (inout MIN_PARAM BIGINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_Io_Min' parameter style java; + +drop procedure Bigint_Io_Null ; +create procedure Bigint_Io_Null (inout NULL_PARAM BIGINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_Io_Null' parameter style java; + +drop procedure Char_Io_Name ; +create procedure Char_Io_Name (inout NAME_PARAM CHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Char_Io_Name' parameter style java; + +drop procedure Char_Io_Null ; +create procedure Char_Io_Null (inout NULL_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Char_Io_Null' parameter style java; + +drop procedure Varchar_Io_Name ; +create procedure Varchar_Io_Name (inout NAME_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varchar_Io_Name' parameter style java; + +drop procedure Varchar_Io_Null ; +create procedure Varchar_Io_Null (inout NULL_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varchar_Io_Null' parameter style java; + +drop procedure Lvarchar_Io_Name ; +create procedure Lvarchar_Io_Name (inout NAME_PARAM VARCHAR(448)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarchar_Io_Name' parameter style java; + +drop procedure Lvarchar_Io_Null ; +create procedure Lvarchar_Io_Null (inout NULL_PARAM VARCHAR(448)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarchar_Io_Null' parameter style java; + +drop procedure Date_Io_Mfg ; +create procedure Date_Io_Mfg (inout MFG_PARAM DATE) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Date_Io_Mfg' parameter style java; + +drop procedure Date_Io_Null ; +create procedure Date_Io_Null (inout NULL_PARAM DATE) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Date_Io_Null' parameter style java; + +drop procedure Time_Io_Brk ; +create procedure Time_Io_Brk (inout BRK_PARAM TIME) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Time_Io_Brk' parameter style java; + +drop procedure Time_Io_Null ; +create procedure Time_Io_Null (inout NULL_PARAM TIME) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Time_Io_Null' parameter style java; + +drop procedure Timestamp_Io_Intime ; +create procedure Timestamp_Io_Intime (inout INTIME_PARAM TIMESTAMP) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Timestamp_Io_Intime' parameter style java; + +drop procedure Timestamp_Io_Null ; +create procedure Timestamp_Io_Null (inout NULL_PARAM TIMESTAMP) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Timestamp_Io_Null' parameter style java; + +drop procedure Binary_Proc_Io ; +create procedure Binary_Proc_Io (inout BINARY_PARAM VARCHAR(24) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Binary_Proc_Io' parameter style java; + +drop procedure Varbinary_Proc_Io ; +create procedure Varbinary_Proc_Io (inout VARBINARY_PARAM VARCHAR(255) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varbinary_Proc_Io' parameter style java; + +drop procedure Longvarbinary_Io ; +create procedure Longvarbinary_Io (inout LONGVARBINARY_PARAM VARCHAR(255) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarbinary_Io' parameter style java; + +drop procedure Numeric_In_Max ; +create procedure Numeric_In_Max (in MAX_PARAM NUMERIC(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_In_Max' parameter style java; + +drop procedure Numeric_In_Min ; +create procedure Numeric_In_Min (in MIN_PARAM NUMERIC(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_In_Min' parameter style java; + +drop procedure Numeric_In_Null ; +create procedure Numeric_In_Null (in NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Numeric_In_Null' parameter style java; + +drop procedure Decimal_In_Max ; +create procedure Decimal_In_Max (in MAX_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_In_Max' parameter style java; + +drop procedure Decimal_In_Min ; +create procedure Decimal_In_Min (in MIN_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_In_Min' parameter style java; + +drop procedure Decimal_In_Null ; +create procedure Decimal_In_Null (in NULL_PARAM DECIMAL(30,15)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Decimal_In_Null' parameter style java; + +drop procedure Double_In_Max ; +create procedure Double_In_Max (in MAX_PARAM DOUBLE PRECISION) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_In_Max' parameter style java; + +drop procedure Double_In_Min ; +create procedure Double_In_Min (in MIN_PARAM DOUBLE PRECISION) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_In_Min' parameter style java; + +drop procedure Double_In_Null ; +create procedure Double_In_Null (in NULL_PARAM DOUBLE PRECISION) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Double_In_Null' parameter style java; + +drop procedure Float_In_Max ; +create procedure Float_In_Max (in MAX_PARAM FLOAT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_In_Max' parameter style java; + +drop procedure Float_In_Min ; +create procedure Float_In_Min (in MIN_PARAM FLOAT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_In_Min' parameter style java; + +drop procedure Float_In_Null ; +create procedure Float_In_Null (in NULL_PARAM FLOAT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Float_In_Null' parameter style java; + +drop procedure Real_In_Max ; +create procedure Real_In_Max (in MAX_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_In_Max' parameter style java; + +drop procedure Real_In_Min ; +create procedure Real_In_Min (in MIN_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_In_Min' parameter style java; + +drop procedure Real_In_Null ; +create procedure Real_In_Null (in NULL_PARAM REAL) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Real_In_Null' parameter style java; + +drop procedure Bit_In_Max ; +create procedure Bit_In_Max (in MAX_PARAM BOOLEAN) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_In_Max' parameter style java; + +drop procedure Bit_In_Min ; +create procedure Bit_In_Min (in MIN_PARAM BOOLEAN) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_In_Min' parameter style java; + +drop procedure Bit_In_Null ; +create procedure Bit_In_Null (in NULL_PARAM BOOLEAN) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bit_In_Null' parameter style java; + +drop procedure Smallint_In_Max ; +create procedure Smallint_In_Max (in MAX_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_In_Max' parameter style java; + +drop procedure Smallint_In_Min ; +create procedure Smallint_In_Min (in MIN_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_In_Min' parameter style java; + +drop procedure Smallint_In_Null ; +create procedure Smallint_In_Null (in NULL_PARAM SMALLINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Smallint_In_Null' parameter style java; + +drop procedure Tinyint_In_Max ; +create procedure Tinyint_In_Max (in MAX_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_In_Max' parameter style java; + +drop procedure Tinyint_In_Min ; +create procedure Tinyint_In_Min (in MIN_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_In_Min' parameter style java; + +drop procedure Tinyint_In_Null ; +create procedure Tinyint_In_Null (in NULL_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Tinyint_In_Null' parameter style java; + +drop procedure Integer_In_Max ; +create procedure Integer_In_Max (in MAX_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_In_Max' parameter style java; + +drop procedure Integer_In_Min ; +create procedure Integer_In_Min (in MIN_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_In_Min' parameter style java; + +drop procedure Integer_In_Null ; +create procedure Integer_In_Null (in NULL_PARAM INTEGER) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Integer_In_Null' parameter style java; + +drop procedure Bigint_In_Max ; +create procedure Bigint_In_Max (in MAX_PARAM BIGINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_In_Max' parameter style java; + +drop procedure Bigint_In_Min ; +create procedure Bigint_In_Min (in MIN_PARAM BIGINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_In_Min' parameter style java; + +drop procedure Bigint_In_Null ; +create procedure Bigint_In_Null (in NULL_PARAM BIGINT) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Bigint_In_Null' parameter style java; + +drop procedure Char_In_Name ; +create procedure Char_In_Name (in NAME_PARAM CHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Char_In_Name' parameter style java; + +drop procedure Char_In_Null ; +create procedure Char_In_Null (in NULL_PARAM CHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Char_In_Null' parameter style java; + +drop procedure Varchar_In_Name ; +create procedure Varchar_In_Name (in NAME_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varchar_In_Name' parameter style java; + +drop procedure Varchar_In_Null ; +create procedure Varchar_In_Null (in NULL_PARAM VARCHAR(30)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varchar_In_Null' parameter style java; + +drop procedure Lvarchar_In_Name ; +create procedure Lvarchar_In_Name (in NAME_PARAM VARCHAR(448)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarchar_In_Name' parameter style java; + +drop procedure Lvarchar_In_Null ; +create procedure Lvarchar_In_Null (in NULL_PARAM VARCHAR(448)) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarchar_In_Null' parameter style java; + +drop procedure Date_In_Mfg ; +create procedure Date_In_Mfg (in MFG_PARAM DATE) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Date_In_Mfg' parameter style java; + +drop procedure Date_In_Null ; +create procedure Date_In_Null (in NULL_PARAM DATE) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Date_In_Null' parameter style java; + +drop procedure Time_In_Brk ; +create procedure Time_In_Brk (in BRK_PARAM TIME) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Time_In_Brk' parameter style java; + +drop procedure Time_In_Null ; +create procedure Time_In_Null (in NULL_PARAM TIME) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Time_In_Null' parameter style java; + +drop procedure Timestamp_In_Intime ; +create procedure Timestamp_In_Intime (in INTIME_PARAM TIMESTAMP) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Timestamp_In_Intime' parameter style java; + +drop procedure Timestamp_In_Null ; +create procedure Timestamp_In_Null (in NULL_PARAM TIMESTAMP) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Timestamp_In_Null' parameter style java; + +drop procedure Binary_Proc_In ; +create procedure Binary_Proc_In (in BINARY_PARAM VARCHAR(24) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Binary_Proc_In' parameter style java; + +drop procedure Varbinary_Proc_In ; +create procedure Varbinary_Proc_In (in VARBINARY_PARAM VARCHAR(255) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Varbinary_Proc_In' parameter style java; + +drop procedure Longvarbinary_In ; +create procedure Longvarbinary_In (in LONGVARBINARY_PARAM VARCHAR(255) FOR BIT DATA) language java external name 'com.sun.ts.lib.tests.jdbc.CS_Procs.Longvarbinary_Proc_In' parameter style java; diff --git a/glassfish-runner/xa-platform-tck/sql/derby/derby.ddl.sql b/glassfish-runner/xa-platform-tck/sql/derby/derby.ddl.sql new file mode 100644 index 0000000000..b2bd297182 --- /dev/null +++ b/glassfish-runner/xa-platform-tck/sql/derby/derby.ddl.sql @@ -0,0 +1,176 @@ +drop table ctstable2 ; +drop table ctstable1 ; +create table ctstable1 (TYPE_ID int NOT NULL, TYPE_DESC varchar(32), primary key(TYPE_ID)) ; +create table ctstable2 (KEY_ID int NOT NULL, COF_NAME varchar(32), PRICE float, TYPE_ID int, primary key(KEY_ID), foreign key(TYPE_ID) references ctstable1) ; + +drop table concurrencetable ; +create table concurrencetable (TYPE_ID int NOT NULL, TYPE_DESC varchar(32), primary key(TYPE_ID)) ; + +drop table Numeric_Tab ; +create table Numeric_Tab (MAX_VAL NUMERIC(30,15), MIN_VAL NUMERIC(30,15), NULL_VAL NUMERIC(30,15)) ; + +drop table Decimal_Tab ; + create table Decimal_Tab (MAX_VAL DECIMAL(30,15),MIN_VAL DECIMAL(30,15), NULL_VAL DECIMAL(30,15)) ; + +drop table Double_Tab ; +create table Double_Tab (MAX_VAL DOUBLE PRECISION, MIN_VAL DOUBLE PRECISION, NULL_VAL DOUBLE PRECISION) ; + +drop table Float_Tab ; +create table Float_Tab (MAX_VAL FLOAT, MIN_VAL FLOAT, NULL_VAL FLOAT) ; + +drop table Real_Tab ; +create table Real_Tab (MAX_VAL REAL, MIN_VAL REAL,NULL_VAL REAL) ; + +drop table Bit_Tab ; +create table Bit_Tab (MAX_VAL BOOLEAN, MIN_VAL BOOLEAN, NULL_VAL SMALLINT) ; + +drop table Smallint_Tab ; +create table Smallint_Tab (MAX_VAL SMALLINT, MIN_VAL SMALLINT, NULL_VAL SMALLINT) ; + +drop table Tinyint_Tab ; +create table Tinyint_Tab (MAX_VAL SMALLINT, MIN_VAL SMALLINT, NULL_VAL SMALLINT) ; + +drop table Integer_Tab ; +create table Integer_Tab (MAX_VAL INTEGER, MIN_VAL INTEGER, NULL_VAL INTEGER) ; + +drop table Bigint_Tab ; +create table Bigint_Tab (MAX_VAL BIGINT, MIN_VAL BIGINT, NULL_VAL BIGINT) ; + +drop table Char_Tab ; +create table Char_Tab (COFFEE_NAME CHAR(30), NULL_VAL CHAR(30)) ; + +drop table Varchar_Tab ; +create table Varchar_Tab (COFFEE_NAME VARCHAR(30), NULL_VAL VARCHAR(30)) ; + +drop table Longvarchar_Tab ; +create table Longvarchar_Tab (COFFEE_NAME LONG VARCHAR) ; + +drop table Longvarcharnull_Tab ; +create table Longvarcharnull_Tab (NULL_VAL LONG VARCHAR) ; + +drop table Date_Tab ; +create table Date_Tab (MFG_DATE DATE, NULL_VAL DATE) ; + +drop table Time_Tab ; +create table Time_Tab (BRK_TIME TIME, NULL_VAL TIME) ; + +drop table Timestamp_Tab ; +create table Timestamp_Tab (IN_TIME TIMESTAMP, NULL_VAL TIMESTAMP) ; + +drop table Binary_Tab ; +create table Binary_Tab (BINARY_VAL VARCHAR(24) FOR BIT DATA) ; + +drop table Varbinary_Tab ; +create table Varbinary_Tab (VARBINARY_VAL VARCHAR(255) FOR BIT DATA) ; + +drop table Longvarbinary_Tab ; +create table Longvarbinary_Tab (LONGVARBINARY_VAL VARCHAR(255) FOR BIT DATA) ; + +drop table ctstable3 ; +create table ctstable3(STRING1 VARCHAR(20), STRING2 VARCHAR(20), STRING3 VARCHAR(20), NUMCOL INTEGER, FLOATCOL FLOAT, DATECOL DATE, TIMECOL TIME, TSCOL1 TIMESTAMP, TSCOL2 TIMESTAMP) ; + +drop table ctstable4 ; +create table ctstable4(STRING4 VARCHAR(20), NUMCOL NUMERIC) ; + + +drop table TxBean_Tab1 ; +create table TxBean_Tab1 (KEY_ID int, TABONE_NAME varchar(32), PRICE float) ; + +drop table TxBean_Tab2 ; +create table TxBean_Tab2 (KEY_ID int, TABTWO_NAME varchar(32), PRICE float) ; + ; +drop table TxEBean_Tab ; +create table TxEBean_Tab (KEY_ID INTEGER NOT NULL, BRAND_NAME VARCHAR(32), PRICE FLOAT, primary key(KEY_ID)) ; + +drop table Integration_Tab ; +create table Integration_Tab (ACCOUNT INTEGER NOT NULL, BALANCE FLOAT, primary key(ACCOUNT)) ; + +drop table BB_Tab ; +create table BB_Tab (KEY_ID INTEGER NOT NULL, BRAND_NAME varchar(32), PRICE float, primary key(KEY_ID)) ; + +drop table JTA_Tab1 ; +create table JTA_Tab1 (KEY_ID int, COF_NAME varchar(32), PRICE float) ; + +drop table JTA_Tab2 ; +create table JTA_Tab2 (KEY_ID int, CHOC_NAME varchar(32), PRICE float) ; + +drop table Deploy_Tab1 ; +create table Deploy_Tab1 (KEY_ID INTEGER NOT NULL, BRAND_NAME varchar(32), PRICE float, primary key(KEY_ID)) ; + +drop table Deploy_Tab2 ; +create table Deploy_Tab2 (KEY_ID VARCHAR(100) NOT NULL, BRAND_NAME varchar(32), PRICE float, primary key(KEY_ID)) ; + +drop table Deploy_Tab3 ; +create table Deploy_Tab3 (KEY_ID BIGINT NOT NULL, BRAND_NAME varchar(32), PRICE float, primary key(KEY_ID)) ; + +drop table Deploy_Tab4 ; +create table Deploy_Tab4 (KEY_ID FLOAT NOT NULL, BRAND_NAME varchar(32), PRICE float, primary key(KEY_ID)) ; + +drop table Deploy_Tab5 ; +create table Deploy_Tab5 (KEY_ID1 int NOT NULL, KEY_ID2 varchar(100) NOT NULL, KEY_ID3 float NOT NULL, BRAND_NAME varchar(32), PRICE float, primary key(KEY_ID1, KEY_ID2, KEY_ID3)) ; + +drop table Xa_Tab1 ; +create table Xa_Tab1 (col1 int NOT NULL, col2 varchar(32), col3 varchar(32), primary key(col1)) ; + +drop table Xa_Tab2 ; +create table Xa_Tab2 (col1 int NOT NULL, col2 varchar(32), col3 varchar(32), primary key(col1)) ; + +drop table SEC_Tab1 ; +create table SEC_Tab1 (KEY_ID INTEGER NOT NULL, PRICE float, BRAND varchar(32), primary key(KEY_ID)) ; + +drop table Connector_Tab ; +create table Connector_Tab (KEY_ID int, PRODUCT_NAME varchar(32), PRICE float) ; + +drop table Coffee_Table ; +create table Coffee_Table (KEY_ID INTEGER NOT NULL, BRAND_NAME varchar(32) NOT NULL, PRICE float NOT NULL, primary key(KEY_ID)) ; + +drop table Coffee_StringPK_Table ; +create table Coffee_StringPK_Table (KEY_ID VARCHAR(100) NOT NULL, BRAND_NAME varchar(32) NOT NULL, PRICE float NOT NULL, primary key(KEY_ID)) ; + +drop table Coffee_LongPK_Table ; +create table Coffee_LongPK_Table (KEY_ID BIGINT NOT NULL, BRAND_NAME varchar(32) NOT NULL, PRICE float NOT NULL, primary key(KEY_ID)) ; + +drop table Coffee_FloatPK_Table ; +create table Coffee_FloatPK_Table (KEY_ID FLOAT NOT NULL, BRAND_NAME varchar(32) NOT NULL, PRICE float NOT NULL, primary key(KEY_ID)) ; + +drop table Coffee_CompoundPK_Table ; +create table Coffee_CompoundPK_Table (KEY_ID1 int NOT NULL, KEY_ID2 varchar(100) NOT NULL, KEY_ID3 float NOT NULL, BRAND_NAME varchar(32) NOT NULL, PRICE float NOT NULL, primary key(KEY_ID1, KEY_ID2, KEY_ID3)) ; + +DROP TABLE COFFEEEJBLITE; +CREATE TABLE COFFEEEJBLITE (ID INT NOT NULL, BRANDNAME VARCHAR(25), PRICE REAL, CONSTRAINT PK_COFFEEEJBLITE PRIMARY KEY (ID)); + + +DROP TABLE EJB_AUTOCLOSE_TAB ; +CREATE TABLE EJB_AUTOCLOSE_TAB (NAME VARCHAR(25) NOT NULL, MESSAGE VARCHAR(25) NOT NULL); + + +DROP TABLE caller ; +DROP TABLE caller_groups ; + +CREATE TABLE caller(name VARCHAR(64) PRIMARY KEY, password VARCHAR(1024)) ; +CREATE TABLE caller_groups(caller_name VARCHAR(64), group_name VARCHAR(64)) ; + +INSERT INTO caller VALUES('tom', 'secret1') ; +INSERT INTO caller VALUES('emma', 'secret2') ; +INSERT INTO caller VALUES('bob', 'secret3') ; + +INSERT INTO caller_groups VALUES('tom', 'Administrator') ; +INSERT INTO caller_groups VALUES('tom', 'Manager') ; + +INSERT INTO caller_groups VALUES('emma', 'Administrator') ; +INSERT INTO caller_groups VALUES('emma', 'Employee') ; + +INSERT INTO caller_groups VALUES('bob', 'Administrator') ; + + INSERT INTO caller VALUES('tom_hash512_saltsize16', 'PBKDF2WithHmacSHA512:1024:DbjXqT9p8VhJ7OtU6DrqDw==:p/qihG8IZKkz03JzKd6XXA==') ; + INSERT INTO caller VALUES('tom_hash256_saltsize32', 'PBKDF2WithHmacSHA256:2048:suVayUIJMQMc6wCgckvAIgKRlo1UkxyFXhXbTxX6C7s=:cvdHkBXVUCN2WL3LRAYodeCdNZxEM4RLlNCCYP68Kmg=') ; + INSERT INTO caller VALUES('tom_hash512_saltsize32', 'PBKDF2WithHmacSHA512:2048:dPTjUfiklfyg2bas/KOQKqEfdtoXK8YvbBscIxA8tNg=:ixBg0wr3ySBI86y8HP7+Yw==') ; + + INSERT INTO caller_groups VALUES('tom_hash512_saltsize16', 'Administrator') ; + INSERT INTO caller_groups VALUES('tom_hash512_saltsize16', 'Manager') ; + + INSERT INTO caller_groups VALUES('tom_hash256_saltsize32', 'Administrator') ; + INSERT INTO caller_groups VALUES('tom_hash256_saltsize32', 'Manager') ; + + INSERT INTO caller_groups VALUES('tom_hash512_saltsize32', 'Administrator') ; + INSERT INTO caller_groups VALUES('tom_hash512_saltsize32', 'Manager') ; diff --git a/glassfish-runner/xa-platform-tck/sql/derby/derby.dml.sql b/glassfish-runner/xa-platform-tck/sql/derby/derby.dml.sql new file mode 100644 index 0000000000..f1ccdae780 --- /dev/null +++ b/glassfish-runner/xa-platform-tck/sql/derby/derby.dml.sql @@ -0,0 +1,770 @@ +# @(#)ctssql.dml.derby 1.16 01/06/20 +#------------------------------------------------- +#All sql DML statements used in the test cases against derby +#------------------------------------------------- + + + +Dbschema_Tab1_Insert=insert into ctstable2 values(?, ?, ?, ?) +Dbschema_Tab2_Insert=insert into ctstable1 values(?, ?) + +Dbschema_Tab1_Delete=delete from ctstable2 +Dbschema_Tab2_Delete=delete from ctstable1 + +Dbschema_Concur_Insert=insert into concurrencetable values(?, ?) +Dbschema_Concur_Delete=delete from concurrencetable + +#****************************************************************** +# SQL Statements for creating procedures in side the test. +#****************************************************************** + +UpdCoffee_Proc=create method alias UpdCoffee_Proc for com.sun.ts.lib.tests.jdbc.CS_Procs.UpdCoffee_Proc + +#****************************************************************** +# SQL Statements for deleting tables for appropriate JDBC Datatypes +#****************************************************************** + +Numeric_Tab_Delete=delete from Numeric_Tab + +Decimal_Tab_Delete=delete from Decimal_Tab + +Double_Tab_Delete=delete from Double_Tab + +Float_Tab_Delete=delete from Float_Tab + +Real_Tab_Delete=delete from Real_Tab + +Bit_Tab_Delete=delete from Bit_Tab + +Smallint_Tab_Delete=delete from Smallint_Tab + +Tinyint_Tab_Delete=delete from Tinyint_Tab + +Integer_Tab_Delete=delete from Integer_Tab + +Bigint_Tab_Delete=delete from Bigint_Tab + +Char_Tab_Delete=delete from Char_Tab + +Varchar_Tab_Delete=delete from Varchar_Tab + +Longvarchar_Tab_Delete=delete from Longvarchar_Tab + +Longvarcharnull_Tab_Delete=delete from Longvarcharnull_Tab + +Date_Tab_Delete=delete from Date_Tab + +Time_Tab_Delete=delete from Time_Tab + +Timestamp_Tab_Delete=delete from Timestamp_Tab + +Binary_Tab_Delete=delete from Binary_Tab + +Varbinary_Tab_Delete=delete from Varbinary_Tab + +Longvarbinary_Tab_Delete=delete from Longvarbinary_Tab + + + +#**************************************************** +# SQL Statements for inserting values into the tables +#**************************************************** + +Numeric_Tab_Insert=insert into Numeric_Tab values(9999999999,0.000000000000001, null) + +Decimal_Tab_Insert= insert into Decimal_Tab values(9999999999,0.000000000000001, null) + +#Double_Tab_Insert=insert into Double_Tab values(1.7976931348623157E308,4.9E-324,null) +Double_Tab_Insert=insert into Double_Tab values(1.0E125,1.0E-130,null) + +Float_Tab_Insert=insert into Float_Tab values(3.4028235E37,1.4E-45,null) + +Real_Tab_Insert= insert into Real_Tab values(3.402E38,1.4E-37, null) + +Bit_Tab_Insert=insert into Bit_Tab values(true,false,null) + +Smallint_Tab_Insert= insert into Smallint_Tab values(32767,-32768,null) + +Tinyint_Tab_Insert=insert into Tinyint_Tab values(127,0,null) + +Integer_Tab_Insert=insert into Integer_Tab values(2147483647,-2147483648,null) + +Bigint_Tab_Insert= insert into Bigint_Tab values(9223372036854775807,-9223372036854775808,null) + +Char_Tab_Insert= insert into Char_Tab values('Test Coffee', null) + +Varchar_Tab_Insert= insert into Varchar_Tab values('Test Coffee',null) + +Longvarchar_Tab_Insert= insert into Longvarchar_Tab values('Test Coffee') + +Longvarcharnull_Tab_Insert= insert into Longvarcharnull_Tab values(null) + +Date_Tab_Insert=insert into Date_Tab values({d '1999-05-05'}, null) + +Time_Tab_Insert= insert into Time_Tab values({t '12:59:59'}, null) + +Timestamp_Tab_Insert= insert into Timestamp_Tab values({ts '1999-12-31 12:59:59'}, null) + +Binary_Tab_Insert= insert into Binary_Tab values(null) + +Varbinary_Tab_Insert= insert into Varbinary_Tab values(null) + +Longvarbinary_Tab_Insert= insert into Longvarbinary_Tab values(null) + +Boolean_Tab_Insert = insert into Boolean_Tab values(true,false,null) + + +#***************************************************** +# SQL Statements for retrieving values from the tables +#***************************************************** + +SelCoffeeAll=SELECT COF_NAME, PRICE FROM ctstable2 +SelCoffeeNull=select * from ctstable2 where TYPE_ID=0 + +Numeric_Query_Max=Select MAX_VAL from Numeric_Tab +Numeric_Query_Min=Select MIN_VAL from Numeric_Tab +Numeric_Query_Null=Select NULL_VAL from Numeric_Tab + +Decimal_Query_Max=Select MAX_VAL from Decimal_Tab +Decimal_Query_Min=Select MIN_VAL from Decimal_Tab +Decimal_Query_Null=Select NULL_VAL from Decimal_Tab + +Double_Query_Max=Select MAX_VAL from Double_Tab +Double_Query_Min=Select MIN_VAL from Double_Tab +Double_Query_Null=Select NULL_VAL from Double_Tab + +Float_Query_Max=Select MAX_VAL from Float_Tab +Float_Query_Min=Select MIN_VAL from Float_Tab +Float_Query_Null=Select NULL_VAL from Float_Tab + +Real_Query_Max=Select MAX_VAL from Real_Tab +Real_Query_Min=Select MIN_VAL from Real_Tab +Real_Query_Null=Select NULL_VAL from Real_Tab + +Bit_Query_Max=Select MAX_VAL from Bit_Tab +Bit_Query_Min=Select MIN_VAL from Bit_Tab +Bit_Query_Null=Select NULL_VAL from Bit_Tab + +Smallint_Query_Max=Select MAX_VAL from Smallint_Tab +Smallint_Query_Min=Select MIN_VAL from Smallint_Tab +Smallint_Query_Null=Select NULL_VAL from Smallint_Tab + +Tinyint_Query_Max=Select MAX_VAL from Tinyint_Tab +Tinyint_Query_Min=Select MIN_VAL from Tinyint_Tab +Tinyint_Query_Null=Select NULL_VAL from Tinyint_Tab + +Integer_Query_Max=Select MAX_VAL from Integer_Tab +Integer_Query_Min=Select MIN_VAL from Integer_Tab +Integer_Query_Null=Select NULL_VAL from Integer_Tab + +Bigint_Query_Max=Select MAX_VAL from Bigint_Tab +Bigint_Query_Min=Select MIN_VAL from Bigint_Tab +Bigint_Query_Null=Select NULL_VAL from Bigint_Tab + +Char_Query_Name=Select COFFEE_NAME from Char_Tab +Char_Query_Null=Select NULL_VAL from Char_Tab + +Varchar_Query_Name=Select COFFEE_NAME from Varchar_Tab +Varchar_Query_Null=Select NULL_VAL from Varchar_Tab + +Longvarchar_Query_Name=Select COFFEE_NAME from Longvarchar_Tab +Longvarchar_Query_Null=Select NULL_VAL from Longvarcharnull_Tab + +Date_Query_Mfg=Select MFG_DATE from Date_Tab +Date_Query_Null=Select NULL_VAL from Date_Tab + +Time_Query_Brk=Select BRK_TIME from Time_Tab +Time_Query_Null=Select NULL_VAL from Time_Tab + +Timestamp_Query_In=Select IN_TIME from Timestamp_Tab +Timestamp_Query_Null=Select NULL_VAL from Timestamp_Tab + +Binary_Query_Val=Select BINARY_VAL from Binary_Tab +Varbinary_Query_Val=Select VARBINARY_VAL from Varbinary_Tab +Longvarbinary_Query_Val=Select LONGVARBINARY_VAL from Longvarbinary_Tab + + + + + +#*************************************** +# SQL Statements for updating the tables +#*************************************** + +Numeric_Tab_Max_Update=update Numeric_Tab set MAX_VAL=? +Numeric_Tab_Min_Update=update Numeric_Tab set MIN_VAL=? +Numeric_Tab_Null_Update=update Numeric_Tab set NULL_VAL=? + +Decimal_Tab_Max_Update=update Decimal_Tab set MAX_VAL=? +Decimal_Tab_Min_Update=update Decimal_Tab set MIN_VAL=? +Decimal_Tab_Null_Update=update Decimal_Tab set NULL_VAL=? + +Double_Tab_Max_Update=update Double_Tab set MAX_VAL=? +Double_Tab_Min_Update=update Double_Tab set MIN_VAL=? +Double_Tab_Null_Update=update Double_Tab set NULL_VAL=? + +Float_Tab_Max_Update=update Float_Tab set MAX_VAL=? +Float_Tab_Min_Update=update Float_Tab set MIN_VAL=? +Float_Tab_Null_Update=update Float_Tab set NULL_VAL=? + +Real_Tab_Max_Update=update Real_Tab set MAX_VAL=? +Real_Tab_Min_Update=update Real_Tab set MIN_VAL=? +Real_Tab_Null_Update=update Real_Tab set NULL_VAL=? + +Bit_Tab_Max_Update=update Bit_Tab set MAX_VAL=? +Bit_Tab_Min_Update=update Bit_Tab set MIN_VAL=? +Bit_Tab_Null_Update=update Bit_Tab set NULL_VAL=? + +Smallint_Tab_Max_Update=update Smallint_Tab set MAX_VAL=? +Smallint_Tab_Min_Update=update Smallint_Tab set MIN_VAL=? +Smallint_Tab_Null_Update=update Smallint_Tab set NULL_VAL=? + +Tinyint_Tab_Max_Update=update Tinyint_Tab set MAX_VAL=? +Tinyint_Tab_Min_Update=update Tinyint_Tab set MIN_VAL=? +Tinyint_Tab_Null_Update=update Tinyint_Tab set NULL_VAL=? + +Integer_Tab_Max_Update=update Integer_Tab set MAX_VAL=? +Integer_Tab_Min_Update=update Integer_Tab set MIN_VAL=? +Integer_Tab_Null_Update=update Integer_Tab set NULL_VAL=? + +Bigint_Tab_Max_Update=update Bigint_Tab set MAX_VAL=? +Bigint_Tab_Min_Update=update Bigint_Tab set MIN_VAL=? +Bigint_Tab_Null_Update=update Bigint_Tab set NULL_VAL=? + +Char_Tab_Name_Update=update Char_Tab set COFFEE_NAME=? +Char_Tab_Null_Update=update Char_Tab set NULL_VAL=? + +Varchar_Tab_Name_Update=update Varchar_Tab set COFFEE_NAME=? +Varchar_Tab_Null_Update=update Varchar_Tab set NULL_VAL=? + +Longvarchar_Tab_Name_Update=update Longvarchar_Tab set COFFEE_NAME=? +Longvarchar_Tab_Null_Update=update Longvarcharnull_Tab set NULL_VAL=? + +Date_Tab_Mfgdate_Update=update Date_Tab set MFG_DATE=? +Date_Tab_Null_Update=update Date_Tab set NULL_VAL=? + +Time_Tab_Brktime_Update=update Time_Tab set BRK_TIME=? +Time_Tab_Null_Update=update Time_Tab set NULL_VAL=? + +Timestamp_Tab_Intime_Update=update Timestamp_Tab set IN_TIME=? +Timestamp_Tab_Null_Update=update Timestamp_Tab set NULL_VAL=? + +Binary_Tab_Val_Update=update Binary_Tab set BINARY_VAL=? +Varbinary_Tab_Val_Update=update Varbinary_Tab set VARBINARY_VAL=? +Longvarbinary_Tab_Val_Update=update Longvarbinary_Tab set LONGVARBINARY_VAL=? + +CoffeeTab_Query=select COF_NAME,PRICE from ctstable2 where TYPE_ID=? +CoffeeTab_Delete=delete from ctstable2 where KEY_ID=? + +CoffeeTab_Select=select PRICE from ctstable2 where KEY_ID=? +CoffeeTab_Update=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=? + +Ins_Coffee_Tab=insert into ctstable2 values (9,'COFFEE-9',9.0,5) +Del_Coffee_Tab=delete from ctstable2 where KEY_ID=9 +Upd_Coffee_Tab=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=1 +Sel_Coffee_Tab=select PRICE from ctstable2 where KEY_ID>4 + +#********************************************************************************** +# is used in ResultSet. To update with BIT value. +#********************************************************************************** +Update_decimal_tab=update Decimal_Tab set MAX_VAL=1.0, MIN_VAL=0.0, NULL_VAL=null +Update_numeric_tab=update Numeric_Tab set MAX_VAL=1.0, MIN_VAL=0.0, NULL_VAL=null +Update_char_tab1=update Char_Tab set COFFEE_NAME=1, NULL_VAL=null +Update_char_tab2=update Char_Tab set COFFEE_NAME=0, NULL_VAL=null +Update_varchar_tab1=update Varchar_Tab set COFFEE_NAME=1, NULL_VAL=null +Update_varchar_tab2=update Varchar_Tab set COFFEE_NAME=0, NULL_VAL=null + +#********************************************************************************** +# is used in BatchUpdate Tests. +#********************************************************************************** +BatchUpdate_Query=select count(*) from ctstable2 where TYPE_ID=? +BatchUpdate_Delete=delete from ctstable2 +BatchInsert_String=insert into ctstable2 values(?,?,?,?) + +#********************************************************************************** +# is used in BatchUpdate exception +#********************************************************************************** +Coffee_InsTab=insert into ctstable2 values (9,'COFFEE-9',9.0,5) +Coffee_DelTab=delete from ctstable2 where KEY_ID=2 +Coffee_UpdTab=update ctstable2 set PRICE=PRICE*20 where TYPE_ID=1 +Coffee_SelTab=select PRICE from ctstable2 where KEY_ID>4 +Coffee_Inscount_Query=select count(*) from ctstable2 where KEY_ID=9 +Coffee_Delcount_Query=select count(*) from ctstable2 where KEY_ID=2 +Coffee_Updcount_Query=select count(*) from ctstable2 where TYPE_ID=1 +CoffeeTab_Continue1=update ctstable2 set KEY_ID=?, COF_NAME=? where COF_NAME=? +CoffeeTab_ContinueSelect1=Select count(*) from ctstable2 where COF_NAME in ('Continue-1') +CoffeeTab_Continue2=update ctstable2 set KEY_ID=1,COF_NAME = 'Continue-1' where COF_NAME='COFFEE-1' +CoffeeTab_Continue3=update ctstable2 set KEY_ID=1 ,COF_NAME = 'Invalid' where COF_NAME='COFFEE-3' +CoffeeTab_Continue4=update ctstable2 set KEY_ID=2,COF_NAME = 'Continue-3' where COF_NAME='COFFEE-2' +Coffee_Proc1=create procedure Coffee_Proc1(keyid in Numeric) as begin update ctstable2 set KEY_ID=keyid,COF_NAME = 'Continue-1' where KEY_ID=1;end; +Coffee_Proc1_Delete=Drop procedure Coffee_Proc1 +#********************************************************************************** +# is used in DataTruncation exception +#********************************************************************************** +DTrunc_Ins_Coffee=insert into ctstable2 values (10,'kumarjadjsjdhsjhdjsjdajhdjasdsdsdsd',21.00,1) + +#********************************************************************************** +# is used in SQLException +#********************************************************************************** +Error_Query=select * from + +#********************************************************************************** +# Constructor arguments for exceptions +#********************************************************************************** +Reason_BatUpdExec=Message +SQLState_BatUpdExec=S100 +VendorCode_BatUpdExec=10 +IntialValue_BatUpdExec={1,1,1} +Index_DataTrunc=1 +Param_DataTrunc=true +Read_DataTrunc=true +DataSize_DataTrunc=100 +TranSize_DataTrunc=50 + +#********************************************************************************** +# is used to print a message to the current logging writer +#********************************************************************************** +JDBCLogstream_Message=Hello World + + +#********************************************************************************** +#The following pair of values are related and so must be changed simultaneously +#The first one is a reference value and the second one is a equivalent in millisecond after epoch +#********************************************************************************** +DateTime_Str_Val1=1970-01-02 00:00:00.001 +DateTime_Long_Val1=86400001 + +#********************************************************************************** +#The following pair of values are related and so must be changed simultaneously +#The first one is a reference value and the second one is a equivalent in millisecond after epoch +#********************************************************************************** +DateTime_Str_Val2=1969-12-30 23:59:59.999 +DateTime_Long_Val2=-86400001 + +#********************************************************************************** +#value in millisecond for testing after() and before() in Timestamp +#********************************************************************************** +Ref_Milli_Val = 86400000 + +#********************************************************************************** +#Value in nanoseconds for testing time values +#********************************************************************************** +Ref_Nano_Val = 999999999 + + +#********************************************************************************** +#Value in nanoseconds and must be equivalent equivalent to multiples of milliseconds +#********************************************************************************** +Ref_Nano_Val2 = 1000000 + +Trial_String=TrialSetting +Escape_Seq_Query=select count(*) from ctstable2 where cof_name like '\%-%' { escape '\\' } +Escape_Seq_ChkQuery=select count(*) from ctstable2 +Max_Set_Val=10 + + +#********************************************************************************** +#The SQL Statements which are used to test the Scalar functions using escape syntax +#********************************************************************************** +Concat_Fn_Query=SELECT {FN CONCAT(STRING1,STRING2)} FROM ctstable3 +Ascii_Fn_Query=SELECT {FN ASCII(STRING1)} FROM ctstable3 +Insert_Fn_Query=SELECT {FN INSERT(STRING1,2,4,STRING2)} FROM ctstable3 +Lcase_Fn_Query=SELECT {FN LCASE(STRING1)} FROM ctstable3 +Left_Fn_Query=SELECT {FN LEFT(STRING1,2)} FROM ctstable3 +Length_Fn_Query=SELECT {FN LENGTH(STRING1)} FROM ctstable3 +Locate_Fn_Query=SELECT {FN LOCATE(STRING1,STRING2)} FROM ctstable3 +Ltrim_Fn_Query=SELECT {FN LTRIM(STRING2)} FROM ctstable3 +Repeat_Fn_Query=SELECT {FN REPEAT(STRING1,3)} FROM ctstable3 +Right_Fn_Query=SELECT {FN RIGHT(STRING1,3)} FROM ctstable3 +Rtrim_Fn_Query=SELECT {FN RTRIM(STRING2)} FROM ctstable3 +Soundex_Fn_Query=SELECT {FN SOUNDEX(STRING1)} FROM ctstable3 +Space_Fn_Query=SELECT {FN SPACE(5)} FROM ctstable3 +Substring_Fn_Query=SELECT {FN SUBSTR(STRING2,2,3)} FROM ctstable3 +Ucase_Fn_Query=SELECT {FN UCASE(STRING1)} FROM ctstable3 +Char_Fn_Query=SELECT {FN CHAR(NUMCOL)} FROM ctstable3 +Replace_Fn_Query=SELECT {FN REPLACE(STRING2,STRING1,STRING3)} FROM ctstable3 +User_Fn_Query=SELECT {FN USER()} FROM ctstable3 +Ifnull_Fn_Query=SELECT {FN IFNULL(STRING1,100)} FROM ctstable3 +Sin_Fn_Query=SELECT {FN SIN(0)} FROM ctstable3 +Abs_Fn_Query=SELECT {FN ABS(NUMCOL)} FROM ctstable3 +Power_Fn_Query=SELECT {FN POWER(NUMCOL,2)} FROM ctstable3 +Round_Fn_Query=SELECT {FN ROUND(FLOATCOL,2)} FROM ctstable3 +Sign_Fn_Query=SELECT {FN SIGN(NUMCOL)} FROM ctstable3 +Sqrt_Fn_Query=SELECT {FN SQRT(FLOATCOL)} FROM ctstable3 +Truncate_Fn_Query=SELECT {FN TRUNCATE(FLOATCOL,1)} FROM ctstable3 +Mod_Fn_Query=SELECT {FN MOD(NUMCOL,7)} FROM ctstable3 +Floor_Fn_Query=SELECT {FN FLOOR(FLOATCOL)} FROM ctstable3 +Ceiling_Fn_Query=SELECT {FN CEILING(NUMCOL)} FROM ctstable3 +Log10_Fn_Query=SELECT {FN LOG10(NUMCOL)} FROM ctstable3 +Log_Fn_Query=SELECT {FN LOG(NUMCOL)} FROM ctstable3 +Exp_Fn_Query=SELECT {FN EXP(FLOATCOL)} FROM ctstable3 +Cos_Fn_Query=SELECT {FN COS(FLOATCOL)} FROM ctstable3 +Tan_Fn_Query=SELECT {FN TAN(FLOATCOL)} FROM ctstable3 +Cot_Fn_Query=SELECT {FN COT(FLOATCOL)} FROM ctstable3 +Curdate_Fn_Query=SELECT {FN CURDATE()} FROM ctstable3 +Dayname_Fn_Query=SELECT {FN DAYNAME(DATECOL)} FROM ctstable3 +Dayofmonth_Fn_Query=SELECT {FN DAYOFMONTH(DATECOL)} FROM ctstable3 +Dayofweek_Fn_Query=SELECT {FN DAYOFWEEK(DATECOL)} FROM ctstable3 +Dayofyear_Fn_Query=SELECT {FN DAYOFYEAR(DATECOL)} FROM ctstable3 +Week_Fn_Query=SELECT {FN WEEK(DATECOL)} FROM ctstable3 +Month_Fn_Query=SELECT {FN MONTH(DATECOL)} FROM ctstable3 +Year_Fn_Query=SELECT {FN YEAR(DATECOL)} FROM ctstable3 +Monthname_Fn_Query=SELECT {FN MONTHNAME(DATECOL)} FROM ctstable3 +Quarter_Fn_Query=SELECT {FN QUARTER(DATECOL)} FROM ctstable3 +Now_Fn_Query=SELECT {FN NOW()} FROM ctstable3 +Hour_Fn_Query=SELECT {FN HOUR(TIMECOL)} FROM ctstable3 +Minute_Fn_Query=SELECT {FN MINUTE(TIMECOL)} FROM ctstable3 +Second_Fn_Query=SELECT {FN SECOND(TIMECOL)} FROM ctstable3 +Database_Fn_Query=SELECT {FN DATABASE()} FROM ctstable3 +Acos_Fn_Query=SELECT {FN ACOS(FLOATCOL)} FROM ctstable3 +Asin_Fn_Query=SELECT {FN ASIN(FLOATCOL)} FROM ctstable3 +Atan_Fn_Query=SELECT {FN ATAN(FLOATCOL)} FROM ctstable3 +Atan2_Fn_Query=SELECT {FN ATAN2(FLOATCOL,FLOATCOL)} FROM ctstable3 +Degrees_Fn_Query=SELECT {FN DEGREES(NUMCOL)} FROM ctstable3 +Radians_Fn_Query=SELECT {FN RADIANS(NUMCOL)} FROM ctstable3 +Pi_Fn_Query=SELECT {FN PI()} FROM ctstable3 +Rand_Fn_Query=SELECT {FN RAND(NUMCOL)} FROM ctstable3 +Difference_Fn_Query=SELECT {FN DIFFERENCE(STRING1,STRING2)} FROM ctstable3 +Locate_Fn_Query=SELECT {FN LOCATE(STRING1,STRING2,2)} FROM ctstable3 +Timestampaddfrac_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_FRAC_SECOND,2,TSCOL1)} FROM ctstable3 +Timestampaddsecond_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_SECOND,2,TSCOL1)} FROM ctstable3 +Timestampaddminute_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_MINUTE,2,TSCOL1)} FROM ctstable3 +Timestampaddhour_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_HOUR,2,TSCOL1)} FROM ctstable3 +Timestampaddday_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_DAY,2,TSCOL1)} FROM ctstable3 +Timestampaddweek_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_WEEK,2,TSCOL1)} FROM ctstable3 +Timestampaddmonth_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_MONTH,2,TSCOL1)} FROM ctstable3 +Timestampaddquarter_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_QUARTER,2,TSCOL1)} FROM ctstable3 +Timestampaddyear_Fn_Query=SELECT {FN TIMESTAMPADD(SQL_TSI_YEAR,2,TSCOL1)} FROM ctstable3 +Timestampdifffrac_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_FRAC_SECOND,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffsecond_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_SECOND,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffminute_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_MINUTE,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffhour_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_HOUR,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffday_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_DAY,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffweek_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_WEEK,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffmonth_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_MONTH,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffquarter_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_QUARTER,TSCOL1,TSCOL2)} FROM ctstable3 +Timestampdiffyear_Fn_Query=SELECT {FN TIMESTAMPDIFF(SQL_TSI_YEAR,TSCOL1,TSCOL2)} FROM ctstable3 + + +#***************************************************************************** +#The SQL Statements which are used to test the Outer Joins using escape syntax +#***************************************************************************** +Left_Oj_Query=SELECT * FROM {OJ ctstable3 LEFT OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} +Right_Oj_Query=SELECT * FROM {OJ ctstable3 RIGHT OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} +Full_Oj_Query=SELECT * FROM {OJ ctstable3 FULL OUTER JOIN ctstable4 ON ctstable3.NUMCOL=ctstable4.NUMCOL} + + +#***************************************************************************** +#The SQL Statements for creating, inserting and dropping the tables which are +#used in testing the scalar functions and outer joins using escape syntax +#***************************************************************************** + +Fnschema_Tab1_Insert=INSERT INTO ctstable3 VALUES ('Java',' HotJava ','JAVA',100,0.5,{d '1993-07-13'},{t '10:30:55'},{ts '1996-05-10 10:07:04'},{ts '1996-05-10 10:07:05'}) +Fnschema_Tab2_Insert=INSERT INTO ctstable4 VALUES ('STRING3',100) + +Fnschema_Tab1_Delete=delete from ctstable3 +Fnschema_Tab2_Delete=delete from ctstable4 + +#***************************************************************************** +#The SQL Statements which are used in TxBean (Session bean) +#***************************************************************************** +TxBean_insert1=insert into TxBean_Tab1 values(?, ?, ?) +TxBean_insert2=insert into TxBean_Tab2 values(?, ?, ?) + +TxBean_delete1=delete from TxBean_Tab1 where KEY_ID = ? +TxBean_delete2=delete from TxBean_Tab2 where KEY_ID = ? + +TxBean_update1=update TxBean_Tab1 set TABONE_NAME = ? where KEY_ID = ? +TxBean_update2=update TxBean_Tab2 set TABTWO_NAME = ? where KEY_ID = ? +TxBean_update3=update TxBean_Tab1 set PRICE = ? where KEY_ID = ? +TxBean_update4=update TxBean_Tab2 set PRICE = ? where KEY_ID = ? + +TxBean_query1=select * from TxBean_Tab1 +TxBean_query2=select * from TxBean_Tab2 +TxBean_query3=select KEY_ID, TABONE_NAME, PRICE from TxBean_Tab1 where KEY_ID = ? +TxBean_query4=select KEY_ID, TABTWO_NAME, PRICE from TxBean_Tab2 where KEY_ID = ? + + +TxBean_Tab1_Delete=delete from TxBean_Tab1 +TxBean_Tab2_Delete=delete from TxBean_Tab2 + +#***************************************************************************** +#The SQL Statements which are used in TxEBean (Entity bean) +#***************************************************************************** +TxEBean_updateString1=insert into TxEBean_Tab values(?, ?, ?) +TxEBean_updateString2=delete from TxEBean_Tab where KEY_ID = ? +TxEBean_updateString3=update TxEBean_Tab set BRAND_NAME = ?, PRICE = ? where KEY_ID = ? + +TxEBean_selectString1=select KEY_ID from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString2=select KEY_ID from TxEBean_Tab where BRAND_NAME = ? +TxEBean_selectString3=select KEY_ID from TxEBean_Tab where PRICE = ? +TxEBean_selectString4=select KEY_ID, BRAND_NAME, PRICE from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString5=select BRAND_NAME from TxEBean_Tab where KEY_ID = ? +TxEBean_selectString6=select PRICE from TxEBean_Tab where KEY_ID = ? + +TxEBean_queryStr1=select KEY_ID from TxEBean_Tab where KEY_ID = ? + +TxEBean_Delete=delete from TxEBean_Tab + +#***************************************************************************** +#The SQL Statements which are used in the integration/session and +#integration/entity tests +#***************************************************************************** +Integration_Tab_Delete=delete from Integration_Tab +Integration_Insert=insert into Integration_Tab values(?, ?) +Integration_Insert1=insert into Integration_Tab values(1000, 50000.0) +Integration_Insert2=insert into Integration_Tab values(1075, 10490.75) +Integration_Insert3=insert into Integration_Tab values(40, 200.50) +Integration_Insert4=insert into Integration_Tab values(30564, 25000.0) +Integration_Insert5=insert into Integration_Tab values(387, 1000000.0) +Integration_Select_Account=select * from Integration_Tab WHERE ACCOUNT = ? +Integration_Select_All=select * from Integration_Tab +Integration_Update_Account=update Integration_Tab set BALANCE = ? where ACCOUNT = ? +Integration_Delete_Account=delete from Integration_Tab where ACCOUNT = ? + +#***************************************************************************** +#The SQL Statements which are used in the integration/sec tests +#***************************************************************************** +Integration_Sec_Tab_Delete=delete from Integration_Sec_Tab +Integration_Sec_Tab_Insert=insert into Integration_Sec_Tab values(?, ?, ?) +Integration_Sec_Tab_Delete1=delete from Integration_Sec_Tab WHERE LOG_NO=? +Integration_Sec_Tab_Delete2=delete FROM Integration_Sec_Tab where LOG_NO=? and not ( LINE_NO = ? ) +Integration_Sec_Tab_Update=update Integration_Sec_Tab set MESSAGE= ? where LOG_NO = ? and LINE_NO = ? +Integration_Sec_Tab_Select1=select MESSAGE, LINE_NO from Integration_Sec_Tab where LOG_NO = ? and not( LINE_NO= ? ) order by LINE_NO +Integration_Sec_Tab_Select2=select MESSAGE FROM Integration_Sec_Tab where LOG_NO = ? and LINE_NO = ? +Integration_Sec_Tab_Select3=select MAX(LOG_NO) FROM Integration_Sec_Tab +Integration_Sec_Tab_Select4=select LOG_NO from Integration_Sec_Tab where MESSAGE = ? and LINE_NO = ? +Integration_Sec_Tab_Select5=select LINE_NO from Integration_Sec_Tab where LOG_NO = ? and LINE_NO= ? + + +#***************************************************************************** +#The SQL Statements which are used in DBSupport used by ejb/ee/bb tests +#***************************************************************************** +BB_Tab_Delete=delete from BB_Tab +BB_Insert1=insert into BB_Tab values(?, ?, ?) +BB_Select1=select KEY_ID from BB_Tab where KEY_ID = ? +BB_Select2=select KEY_ID from BB_Tab where BRAND_NAME = ? +BB_Select3=select KEY_ID from BB_Tab where PRICE = ? +BB_Select4=select KEY_ID from BB_Tab where PRICE >= ? and PRICE <= ? +BB_Select5=select KEY_ID from BB_Tab where KEY_ID >= ? and KEY_ID <= ? +BB_Select6=select PRICE from BB_Tab where KEY_ID = ? +BB_Update1=update BB_Tab set PRICE = ? where KEY_ID = ? +BB_Delete1=delete from BB_Tab where KEY_ID = ? + +#***************************************************************************** +#The SQL Statements which are used in DAO by ejb/ee/bb tests +#***************************************************************************** +COFFEE_BB_Tab_Delete=delete from BB_Tab +COFFEE_BB_Insert1=insert into BB_Tab values(?, ?, ?) +COFFEE_BB_Select1=select KEY_ID from BB_Tab where KEY_ID = ? +COFFEE_BB_Select2=select KEY_ID from BB_Tab where BRAND_NAME = ? +COFFEE_BB_Select3=select KEY_ID from BB_Tab where PRICE = ? +COFFEE_BB_Select4=select KEY_ID from BB_Tab where PRICE >= ? and PRICE <= ? +COFFEE_BB_Select5=select KEY_ID from BB_Tab where KEY_ID >= ? and KEY_ID <= ? +COFFEE_BB_Select6=select PRICE from BB_Tab where KEY_ID = ? +COFFEE_BB_Update1=update BB_Tab set PRICE = ? where KEY_ID = ? +COFFEE_BB_Delete1=delete from BB_Tab where KEY_ID = ? + +#***************************************************************************** +#The SQL Statements which are used in DBSupport in jta/ee/txpropagationtest +#***************************************************************************** +JTA_Tab1_Delete=delete from JTA_Tab1 +JTA_Tab2_Delete=delete from JTA_Tab2 + +JTA_Tab1_Insert=insert into JTA_Tab1 values(?, ?, ?) +JTA_Tab2_Insert=insert into JTA_Tab2 values(?, ?, ?) + +JTA_Delete1=delete from JTA_Tab1 where KEY_ID = ? +JTA_Delete2=delete from JTA_Tab2 where KEY_ID = ? + +JTA_Tab1_Update1=update JTA_Tab1 set COF_NAME = ? where KEY_ID = ? +JTA_Tab2_Update1=update JTA_Tab2 set CHOC_NAME = ? where KEY_ID = ? + +JTA_Tab1_Update2=update JTA_Tab1 set PRICE = ? where KEY_ID = ? +JTA_Tab2_Update2=update JTA_Tab2 set PRICE = ? where KEY_ID = ? + +JTA_Tab1_Select=select * from JTA_Tab1 +JTA_Tab2_Select=select * from JTA_Tab2 + +JTA_Tab1_Select1=select KEY_ID, COF_NAME, PRICE FROM JTA_Tab1 where KEY_ID = ? +JTA_Tab2_Select1=select KEY_ID, CHOC_NAME, PRICE FROM JTA_Tab2 where KEY_ID = ? + + +#***************************************************************************** +# SQL Statements used by deployment tests +# +# See /tests/assembly/util/dbsupport for more details +# +#***************************************************************************** + +# +# BMP table with Integer Primary Key +# +DEPLOY_intPKTable_Insert=insert into Deploy_Tab1 values(?, ?, ?) +DEPLOY_intPKTable_Select_PK=select KEY_ID from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Select_Price=select PRICE from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Update=update Deploy_Tab1 set PRICE = ? where KEY_ID = ? +DEPLOY_intPKTable_Delete=delete from Deploy_Tab1 where KEY_ID = ? +DEPLOY_intPKTable_Cleanup=delete from Deploy_Tab1 + +# +# BMP table with String Primary Key +# +DEPLOY_strPKTable_Insert=insert into Deploy_Tab2 values(?, ?, ?) +DEPLOY_strPKTable_Select_PK=select KEY_ID from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Select_Price=select PRICE from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Update=update Deploy_Tab2 set PRICE = ? where KEY_ID = ? +DEPLOY_strPKTable_Delete=delete from Deploy_Tab2 where KEY_ID = ? +DEPLOY_strPKTable_Cleanup=delete from Deploy_Tab2 + +# +# BMP table with Long Primary Key +# +DEPLOY_longPKTable_Insert=insert into Deploy_Tab3 values(?, ?, ?) +DEPLOY_longPKTable_Select_PK=select KEY_ID from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Select_Price=select PRICE from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Update=update Deploy_Tab3 set PRICE = ? where KEY_ID = ? +DEPLOY_longPKTable_Delete=delete from Deploy_Tab3 where KEY_ID = ? +DEPLOY_longPKTable_Cleanup=delete from Deploy_Tab3 + +# +# BMP table with Float Primary Key +# +DEPLOY_floatPKTable_Insert=insert into Deploy_Tab4 values(?, ?, ?) +DEPLOY_floatPKTable_Select_PK=select KEY_ID from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Select_Price=select PRICE from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Update=update Deploy_Tab4 set PRICE = ? where KEY_ID = ? +DEPLOY_floatPKTable_Delete=delete from Deploy_Tab4 where KEY_ID = ? +DEPLOY_floatPKTable_Cleanup=delete from Deploy_Tab4 + +# +# BMP table with Compound Primary Key +# +DEPLOY_compoundPKTable_Insert=insert into Deploy_Tab5 values(?, ?, ?, ?, ?) +DEPLOY_compoundPKTable_Select_PK=select KEY_ID1, KEY_ID2, KEY_ID3 from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Select_Price=select PRICE from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Update=update Deploy_Tab5 set PRICE = ? where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Delete=delete from Deploy_Tab5 where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +DEPLOY_compoundPKTable_Cleanup=delete from Deploy_Tab5 + +#***************************************************************************** +#The SQL Statements which are used in DBSupport2 used by secpropagation tests +#***************************************************************************** +SEC_Insert1=insert into SEC_Tab1 values(?, ?, ?) +SEC_Select1=select KEY_ID from SEC_Tab1 where KEY_ID = ? +SEC_Select2=select KEY_ID from SEC_Tab1 where BRAND = ? +SEC_Select3=select KEY_ID from SEC_Tab1 where PRICE = ? +SEC_Select4=select KEY_ID from SEC_Tab1 where PRICE >= ? and PRICE <= ? +SEC_Select5=select KEY_ID from SEC_Tab1 where KEY_ID >= ? and KEY_ID <= ? +SEC_Select6=select PRICE from SEC_Tab1 where KEY_ID = ? +SEC_Update1=update SEC_Tab1 set PRICE = ? where KEY_ID = ? +SEC_Delete1=delete from SEC_Tab1 where KEY_ID = ? +SEC_Tab1_Delete=delete from SEC_Tab1 + +#***************************************************************************** +# Connector tests in src/tests/connector +#***************************************************************************** +ConnectorTable_Insert=insert into Connector_Tab values(?, ?, ?) +ConnectorTable_Delete=delete from Connector_Tab + +#***************************************************************************** +# insert values EIS +#***************************************************************************** +TSEIS_insert_init=1 +TSEIS_insert1=2 +TSEIS_insert2=3 + +#***************************************************************************** +#The SQL Statements which are used in xa multires tests +#***************************************************************************** + +Xa_Tab1_Select=select * from Xa_Tab1 + +# insert values +Xa_Tab1_Insert=insert into Xa_Tab1 values(?, ?, ?) + +# delete using id +Xa_Tab1_Delete1=delete from Xa_Tab1 where col1 = ? + +Xa_Tab1_Delete=delete from Xa_Tab1 +Xa_Tab2_Delete=delete from Xa_Tab2 + +#initial insert +Xa_Tab1_insert_init=insert into Xa_Tab1 values (1, 'Table1 Line one ', '1.0' ) +Xa_Tab2_insert_init=insert into Xa_Tab2 values (1, 'Table2 Line one ', '2.0' ) + +#subsequent insert +Xa_Tab1_insert1=insert into Xa_Tab1 values (2, 'Table1 Line two ', '11.0' ) +Xa_Tab1_insert2=insert into Xa_Tab1 values (3, 'Table1 Line three ','111.0' ) + +Xa_Tab2_insert1=insert into Xa_Tab2 values (2, 'Table2 Line two ', '22.0' ) +Xa_Tab2_insert2=insert into Xa_Tab2 values (3, 'Table2 Line three ', '222.0' ) + +#get results + +Xa_Tab1_query=select col1 from Xa_Tab1 order by col1 +Xa_Tab2_query=select col1 from Xa_Tab2 order by col1 + + + +#***************************************************************************** +# Coffee DAO SQL statements +#***************************************************************************** + +# +# Standard Coffee DAO +# +COFFEE_insert=insert into Coffee_Table values(?, ?, ?) +COFFEE_select=select BRAND_NAME, PRICE from Coffee_Table where KEY_ID = ? +COFFEE_select_pk_by_name=select KEY_ID from Coffee_Table where BRAND_NAME = ? +COFFEE_select_pk_by_price=select KEY_ID from Coffee_Table where PRICE = ? +COFFEE_select_pk_by_price_range=select KEY_ID from Coffee_Table where PRICE >= ? and PRICE <= ? +COFFEE_select_pk_by_pk_range=select KEY_ID from Coffee_Table where KEY_ID >= ? and KEY_ID <= ? +COFFEE_select_price=select PRICE from Coffee_Table where KEY_ID = ? +COFFEE_update=update Coffee_Table set BRAND_NAME = ?, PRICE = ? where KEY_ID = ? +COFFEE_update_price=update Coffee_Table set PRICE = ? where KEY_ID = ? +COFFEE_delete=delete from Coffee_Table where KEY_ID = ? +COFFEE_delete_all=delete from Coffee_Table + + +# +# Coffee DAO variant with String Primary Key +# +COFFEE_STRING_PK_insert=insert into Coffee_StringPK_Table values(?, ?, ?) +COFFEE_STRING_PK_select=select KEY_ID from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_select_price=select PRICE from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_update_price=update Coffee_StringPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_STRING_PK_delete=delete from Coffee_StringPK_Table where KEY_ID = ? +COFFEE_STRING_PK_delete_all=delete from Coffee_StringPK_Table + +# +# Coffee DAO variant with Long Primary Key +# +COFFEE_LONG_PK_insert=insert into Coffee_LongPK_Table values(?, ?, ?) +COFFEE_LONG_PK_select=select KEY_ID from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_select_price=select PRICE from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_update_price=update Coffee_LongPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_LONG_PK_delete=delete from Coffee_LongPK_Table where KEY_ID = ? +COFFEE_LONG_PK_delete_all=delete from Coffee_LongPK_Table + +# +# Coffee DAO variant with Float Primary Key +# +COFFEE_FLOAT_PK_insert=insert into Coffee_FloatPK_Table values(?, ?, ?) +COFFEE_FLOAT_PK_select=select KEY_ID from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_select_price=select PRICE from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_update_price=update Coffee_FloatPK_Table set PRICE = ? where KEY_ID = ? +COFFEE_FLOAT_PK_delete=delete from Coffee_FloatPK_Table where KEY_ID = ? +COFFEE_FLOAT_PK_delete_all=delete from Coffee_FloatPK_Table + +# +# Coffee DAO variant with Compound Primary Key +# +COFFEE_COMPOUND_PK_insert=insert into Coffee_CompoundPK_Table values(?, ?, ?, ?, ?) +COFFEE_COMPOUND_PK_select=select KEY_ID1, KEY_ID2, KEY_ID3 from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_select_price=select PRICE from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_update_price=update Coffee_CompoundPK_Table set PRICE = ? where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_delete=delete from Coffee_CompoundPK_Table where KEY_ID1 = ? and KEY_ID2 = ? and KEY_ID3 = ? +COFFEE_COMPOUND_PK_delete_all=delete from Coffee_CompoundPK_Table + + diff --git a/glassfish-runner/xa-platform-tck/src/test/java/arquillian/AppclientConfigTest.txt b/glassfish-runner/xa-platform-tck/src/test/java/arquillian/AppclientConfigTest.txt new file mode 100644 index 0000000000..56fcdb2ec1 --- /dev/null +++ b/glassfish-runner/xa-platform-tck/src/test/java/arquillian/AppclientConfigTest.txt @@ -0,0 +1,34 @@ +package arquillian; + +import org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor; +import org.jboss.arquillian.config.descriptor.api.ProtocolDef; +import org.jboss.arquillian.container.test.impl.MapObject; +import org.jboss.shrinkwrap.descriptor.api.Descriptors; +import org.junit.jupiter.api.Test; +import tck.arquillian.protocol.appclient.AppClientProtocolConfiguration; + +import java.io.InputStream; +import java.util.Arrays; +import java.util.Map; + +public class AppclientConfigTest { + @Test + public void testLoadAppclientConfig() throws Exception{ + System.out.println("AppclientConfigTest.testLoadAppclientConfig"); + InputStream input = AppclientConfigTest.class.getResource("/arquillian.xml").openStream(); + ArquillianDescriptor descriptor = Descriptors.importAs(ArquillianDescriptor.class) + .fromStream(input); + System.out.println("########################" +descriptor.getGroups().get(0)); + AppClientProtocolConfiguration config = new AppClientProtocolConfiguration(); + ProtocolDef appclientDef = descriptor.getGroups().get(0).getGroupContainers().get(0).getProtocols().get(0); + System.out.println(appclientDef); + Map props = appclientDef.getProtocolProperties(); + System.out.println(props); + MapObject.populate(config, props); + System.out.println(config.getClientCmdLineString()); + System.out.println("--- ENV array:"); + System.out.println(Arrays.asList(config.clientEnvAsArray())); + System.out.println("--- CMD array:"); + System.out.println(Arrays.asList(config.clientCmdLineAsArray())); + } +} diff --git a/glassfish-runner/xa-platform-tck/src/test/java/arquillian/GlassfishTckExtension.java b/glassfish-runner/xa-platform-tck/src/test/java/arquillian/GlassfishTckExtension.java new file mode 100644 index 0000000000..413555b96a --- /dev/null +++ b/glassfish-runner/xa-platform-tck/src/test/java/arquillian/GlassfishTckExtension.java @@ -0,0 +1,13 @@ +package arquillian; + +import org.jboss.arquillian.container.test.spi.client.deployment.ApplicationArchiveProcessor; +import org.jboss.arquillian.core.spi.LoadableExtension; +import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; + +public class GlassfishTckExtension implements LoadableExtension { + @Override + public void register(ExtensionBuilder builder) { + builder.service(ResourceProvider.class, GlassfishXmlProcessor.class); + builder.observer(GlassfishXmlProcessor.class); + } +} \ No newline at end of file diff --git a/glassfish-runner/xa-platform-tck/src/test/java/arquillian/GlassfishXmlProcessor.java b/glassfish-runner/xa-platform-tck/src/test/java/arquillian/GlassfishXmlProcessor.java new file mode 100644 index 0000000000..0db6d11f0b --- /dev/null +++ b/glassfish-runner/xa-platform-tck/src/test/java/arquillian/GlassfishXmlProcessor.java @@ -0,0 +1,139 @@ +package arquillian; + +import org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor; +import org.jboss.arquillian.config.descriptor.api.ExtensionDef; +import org.jboss.arquillian.core.api.annotation.Observes; +import org.jboss.shrinkwrap.api.Archive; +import org.jboss.shrinkwrap.api.container.ManifestContainer; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import tck.arquillian.porting.lib.spi.AbstractTestArchiveProcessor; +import org.jboss.shrinkwrap.api.asset.StringAsset; + + +import java.io.File; +import java.io.IOException; +import java.net.URL; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.logging.Logger; + +public class GlassfishXmlProcessor extends AbstractTestArchiveProcessor { + static Logger log = Logger.getLogger(GlassfishXmlProcessor.class.getName()); + static HashSet sunXmlFiles = new HashSet(); + static { + sunXmlFiles.add("META-INF/sun-application-client.xml"); + sunXmlFiles.add("META-INF/sun-application.xml"); + sunXmlFiles.add("META-INF/sun-ra.xml"); + sunXmlFiles.add("WEB-INF/sun-web.xml"); + sunXmlFiles.add("META-INF/sun-ejb-jar.xml"); + } + + private Path descriptorDirRoot; + + /** + * Called on completion of the Arquillian configuration. + */ + public void initalize(@Observes ArquillianDescriptor descriptor) { + // Must call to setup the ResourceProvider + super.initalize(descriptor); + + // Get the descriptor path + ExtensionDef descriptorsDef = descriptor.extension("jboss-descriptors"); + String descriptorDir = descriptorsDef.getExtensionProperties().get("descriptorDir"); + if(descriptorDir == null) { + String msg = "Specify the descriptorDir property in arquillian.xml as extension:\n"+ + "\n" + + " path-to-descriptors-dir\n" + + ""; + //throw new IllegalStateException(msg); + } else { + this.descriptorDirRoot = Paths.get(descriptorDir); + if(!Files.exists(this.descriptorDirRoot)) { + //throw new RuntimeException("Descriptor directory does not exist: " + this.descriptorDirRoot); + } + } + } + + @Override + public void processClientArchive(JavaArchive clientArchive, Class testClass, URL sunXmlURL) { + String name = clientArchive.getName(); + addDescriptors(name, clientArchive, testClass); + } + + @Override + public void processWebArchive(WebArchive webArchive, Class testClass, URL sunXmlURL) { + String name = webArchive.getName(); + addDescriptors(name, webArchive, testClass); + } + + @Override + public void processRarArchive(JavaArchive warArchive, Class testClass, URL sunXmlURL) { + + } + + @Override + public void processParArchive(JavaArchive javaArchive, Class aClass, URL url) { + + } + + @Override + public void processEarArchive(EnterpriseArchive earArchive, Class testClass, URL sunXmlURL) { + String name = earArchive.getName(); + addDescriptors(name, earArchive, testClass); + } + + @Override + public void processEjbArchive(JavaArchive ejbArchive, Class testClass, URL sunXmlURL) { + String name = ejbArchive.getName(); + addDescriptors(name, ejbArchive, testClass); + } + + /** + * + * @param archiveName + * @param archive + * @param testClass + */ + protected void addDescriptors(String archiveName, ManifestContainer archive, Class testClass) { + /*String pkgName = testClass.getPackageName(); + Path pkgPath = Paths.get(pkgName.replace(".", "/")); + Path descriptorDir = descriptorDirRoot.resolve(pkgPath); + List files = findJBossDescriptors(descriptorDir); + for (File f : files) { + String name = f.getName(); + if(!name.startsWith(archiveName)) { + continue; + } + try { + URL url = f.toURL(); + // stateful_migration_threetwo_annotated.ear.jboss-deployment-structure.xml -> jboss-deployment-structure.xml + String descriptorName = name.replace(archiveName+".", ""); + if(archive instanceof WebArchive webArchive) { + webArchive.addAsWebInfResource(url, descriptorName); + } else { + + archive.addAsManifestResource(url, descriptorName); + } + } catch (IOException e) { + throw new RuntimeException(e); + } + }*/ + } + protected List findJBossDescriptors(Path pkgPath) { + try { + List files = Files.walk(pkgPath, 1) + .map(Path::toFile) + .filter(File::isFile) + .toList(); + return files; + } catch (Exception e) { + } + return Collections.emptyList(); + } +} diff --git a/glassfish-runner/xa-platform-tck/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension b/glassfish-runner/xa-platform-tck/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension new file mode 100644 index 0000000000..213f7f5aa9 --- /dev/null +++ b/glassfish-runner/xa-platform-tck/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension @@ -0,0 +1 @@ +arquillian.GlassfishTckExtension \ No newline at end of file diff --git a/glassfish-runner/xa-platform-tck/src/test/resources/appclient-arquillian.xml b/glassfish-runner/xa-platform-tck/src/test/resources/appclient-arquillian.xml new file mode 100644 index 0000000000..0c311e2a65 --- /dev/null +++ b/glassfish-runner/xa-platform-tck/src/test/resources/appclient-arquillian.xml @@ -0,0 +1,64 @@ + + + + + + true + true + target/appclient + true + + ${glassfish.home}/glassfish/bin/appclient \ + -Djdk.tls.client.enableSessionTicketExtension=false \ + -Djdk.tls.server.enableSessionTicketExtension=false \ + -Djava.security.policy=${glassfish.home}/glassfish/lib/appclient/client.policy \ + -Dcts.tmp=${ts.home}/tmp \ + -Djava.security.auth.login.config=${glassfish.home}/glassfish/lib/appclient/appclientlogin.conf \ + -Djava.protocol.handler.pkgs=javax.net.ssl \ + -Djavax.net.ssl.keyStore=${ts.home}/bin/certificates/clientcert.jks \ + -Djavax.net.ssl.keyStorePassword=changeit \ + -Djavax.net.ssl.trustStore=${glassfish.home}/glassfish/domains/domain1/config/cacerts.jks \ + -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl \ + -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl \ + -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl \ + -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser \ + -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter \ + -Doracle.jdbc.J2EE13Compliant=true \ + -Doracle.jdbc.mapDateToTimestamp \ + -Dstartup.login=false \ + -Dauth.gui=false \ + -Dlog.file.location=${glassfish.home}/glassfish/domains/domain1/logs \ + -Dri.log.file.location=${glassfish.home}/glassfish/domains/domain1/logs \ + -DwebServerHost.2=localhost \ + -DwebServerPort.2=8080 \ + -Ddeliverable.class=com.sun.ts.lib.deliverable.cts.CTSDeliverable \ + -jar \ + ${clientEarDir}/${clientAppArchive} + + \\ + + PATH=${env.PATH};LD_LIBRARY_PATH=${glassfish.home}/lib;AS_DEBUG=true; + APPCPATH=${glassfish.home}/glassfish/lib/arquillian-protocol-lib.jar:target/appclient/lib/arquillian-core.jar:target/appclient/lib/arquillian-junit5.jar:${glassfish.home}/glassfish/modules/security.jar + ${project.basedir} + ${ts.home}/tmp + ${ts.home}/bin/ts.jte + ${ts.home}/bin/tssql.stmt + true + 20000 + + + \ No newline at end of file diff --git a/glassfish-runner/xa-platform-tck/src/test/resources/arquillian.xml b/glassfish-runner/xa-platform-tck/src/test/resources/arquillian.xml new file mode 100644 index 0000000000..02ab1a7c68 --- /dev/null +++ b/glassfish-runner/xa-platform-tck/src/test/resources/arquillian.xml @@ -0,0 +1,32 @@ + + + + + + true + true + target/appclient + true + ${project.basedir} + ${ts.home}/tmp + ${ts.home}/bin/ts.jte + ${ts.home}/bin/tssql.stmt + true + 20000 + + + \ No newline at end of file diff --git a/glassfish-runner/xa-platform-tck/src/test/resources/logging.properties b/glassfish-runner/xa-platform-tck/src/test/resources/logging.properties new file mode 100644 index 0000000000..5139b6bf9d --- /dev/null +++ b/glassfish-runner/xa-platform-tck/src/test/resources/logging.properties @@ -0,0 +1,15 @@ +handlers=java.util.logging.FileHandler,java.util.logging.ConsoleHandler + +tck.jakarta.platform.ant.level = FINER +org.glassfish.appclient.client.level = FINER + +java.util.logging.FileHandler.pattern = tck-run.log +java.util.logging.FileHandler.level = FINEST +#java.util.logging.FileHandler.formatter = tck.conversion.log.TestLogFormatter +java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter +# date(1), source(2), logger(3), level(4), message(5), thrown(6) +java.util.logging.SimpleFormatter.format = [%1$tH:%tM:%1$tS.%1$tL] %2$.12s/%4$s %5$s %n + +# Limit the message that are printed on the console to INFO and above. +java.util.logging.ConsoleHandler.level = FINEST +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter \ No newline at end of file diff --git a/glassfish-runner/xa-platform-tck/whitebox.jar b/glassfish-runner/xa-platform-tck/whitebox.jar new file mode 100644 index 0000000000000000000000000000000000000000..94540364b7fe90cbdc7a30d0979cbeeea649e053 GIT binary patch literal 127202 zcmbTd1yr2PvMxNh1a~Ju@WBZLcXxMpx50vkKyZQ$?k>UI-3E7pLk0~_un@R>cki>$ zclQ0)S?B!ks##s@ou{j-s;jDd)^w{Xz`>&e0LTEqI}nx@;BOBK03M(ur76ZDr!39( zJPrV;{u7D}pm~KZs|q94zQP$`006w#_FqsXF=aVvDGg0lCFy{;I#gH=EXm)Z&t?iz zxG`bdo=gNfWnt!&9)5<~^(bHkZ*vli70heMwOvmfhogHu zywGeN9VR;%m3i)hF1Gs+Y?|H(@fSUXEZj33m%#32E9yL|m2dmduIS+gd@PD#Rm!Kk zE*9z>Ud8kN@fn_*V-pT%6ec6EX8|h*uB(UxbIJ^M8YS^EVX8<8MIffAc=} ze+7c9JpNla(f=3xRbeNWziadFgHZo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{(v2i{2J`f`*0MbA%Nq4;C>$9&r3oOkcbK3_ygqs0WLMt82|tP literal 0 HcmV?d00001 diff --git a/glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox-notx-param.rar b/glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox-notx-param.rar new file mode 100644 index 0000000000000000000000000000000000000000..3b74e0980c7e9a61e730e9d64163ee5ebdc1d375 GIT binary patch literal 1547 zcmZ{kXH?T?6o>zWL?IwVh;S-IR@e#1kRb*EO_*VX5DOxN7(}R24;v9$NkQ5IB6|gy zVXG)gAu?2Cg^@^<;E4el3L3Nnj_R{3Dx_rrbPbDrP5=iCpEtD`6w3IJjNfDD6q z06UI200!__qBYvy8K=L|2LP`BqGEvB7Fs^o(ZSimZ9xD4->P3xytT7E4(m?T!{f5j zFcJ?B!m&$M8^>^1LR}KM$x9J@bk_q6k>oS~0&}NA` z;s+1`BMuFQ{RV$Z&4XlpL{eWrY3R?-OK40w6X&dDlWQ#6s<9uXE~aa}w-meL(9;G~ zlWjhS(2LO&hl3$b2%}*cs#a#d;_b>yrRC%$LNQ|q5)dn3l3C60P+V^ldE7Cxd1+Kx zGKZz!4W%hqNbDQ5O31DLbs}=~s#7o|-Pqpx=Ygaezl=%ZC|Aor8+%?2j?*NMsC(f# zdri3&0e)FUue#jQ{Pi^Z4ygvtjr5o3ql$Dm3O_iLd}?Mo98I%wC3*9c5=?B09M`7< zD^AjvdKTbl9|$F3ds0BJ4U4b6bRd&19I33X#nNZ*!?}6YzA^=_#y^(S7%nusc%X$d zvkOhdXW)GGs#fGgL`R~_(qpGvH;3Nd+gKfYv3wnU2T(YZ&@e0>|JU&Ec7&9N8TpNi zcbRWYxN#kuWXy%mG*n5%fEcBTN;vAzBTrNJdCA{hW7buV&7DddJMhkylBx|RSV()l z6)`ivP_Zr$`!GGY3Xx&L+Q$zBL)QhHf=S(+`>GA23rM`F9@P(C*)8b1KBZ6Sl ziSb~==WOc%W5z3ZLU(d~$Tz0#bDD60^??q} z<-16JTpRBxt;_M`&}9l8PTl)VUm>s$KBCT)8f8U3^oUuKHPbFiT6w}l zLR~D{cge}IB*0aO-U6e>(MrC5I$YrF3&@w>KS>jf%m4rY literal 0 HcmV?d00001 diff --git a/glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox-notx.rar b/glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox-notx.rar new file mode 100644 index 0000000000000000000000000000000000000000..80d149e9fd5514837a1c26cd3dd52c8fca43132a GIT binary patch literal 1544 zcmWIWW@h1HVBlb2P$>}zWk3R)3@i-3t|5-Po_=on|4uP51VEK?Fen3+E;)DLz(t^P zcP0h~5g-j$>g(v|>E;?7qUY;2b%HJTAp;TD?+*W*-CTp#bR=w#l3}rDJ7~LXy~zbN z)yhTxsuw3ouMmrQZ);nR3#NT|0$U$9S7z*n;?e&B*%#Up}ku3*{4TTPG6MTPj+ z&esJz*1jPABW6|l#km_?>wf7lz1V(5;i~!KCya<7m{lwgD)PhX*Ii}?hR@s#4E)GJ zP?V@wk(;wL%s2nGg}~n5;RUs~Sd~tFjN@_+oVd)-tXqXwN&I%S;WRh1-6EP3rr7_h zb&ubce7bD%D~0GeGtKkmPAWF{ulCu*Dy6+;*Q@wXj`J6Gl`36%v+93o(d*h5^*q%F z<>y_0ZCI68vd=8Zto+USANpo8F?Bl@d@ne#PohKBD4=saukbk|k6=Ysi!F0vy-%(( zIL#Af!tGPRYcZ4ibkX8;woOK}c3LhxvhiF|K=z`8Mok7xDvDA|*0;Rj77$uCWqknW zETd&i%E!+b%?(p{9MN@0sakJY(2+NeM^?NjK6rBizut`^y+@XdpF|rJh@QH$v*yX~ z(@!TQ_a59j^QTa{LhYHQ?jLu*QI4G<;W=x`lI>|Op_^Y8uF|<0^eQznx@BV+=ZwR#-1#jS1f)Nrk+fKjqUztDv)K}r-#N9^J9bEJ{P@|~Quxhj?%mn{{*~MROh0|*@U+OxH(zb^ z-+X176q5MH!#C>JskpDvS@sX=4fre;`HRKhEM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&ITUJvS|dpj)q- z%U~1qb1WKUTn(O2gRwrWS~Q7EsMFJmZFd+BW4w*o<}3tNYm3HA#v*&8$oz{P+Ussi zic+kyp;5#Zr=%9OO!-}Cp9a%$2%kpHd%Ul!rOW$0J#Fxs&#ftUT%vXQ=$y`MxiB}_ zUFE&&dsef!W_$Tv%Dvu~6XMSJn#}cUVKlD~cS6KV!a4_&I&He0P aD6wMrvh=WfKr-I}siph(Qaum){`&{l<-lD4 literal 0 HcmV?d00001 diff --git a/glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox-tx.rar b/glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox-tx.rar new file mode 100644 index 0000000000000000000000000000000000000000..e7b29ee35c870c3ffcb257bdccdefc2ed2b4275e GIT binary patch literal 1635 zcmZ{kc{J2(7{`BO9fd|SS)y*r3>q3`8!^^K$S}q(vdx(6YuPSB))q_Fb5k$X>}DuF*;UC`xM8fpbNt&2KM$#i zS*{0#_s6lu)1+Vr)nEaw3;m(^8RUS#mUSulRdy9N^s5xh0_D$BLyCE`pr0#v=nFA* z(}r@Q*#KaY2LO&7T!D}Mxd3;!0&|?_7#h;NZSEDa#KN~2fWqb!>kNuzMGbN!-Ptgc zc|GEkewsabwX@|@Y>HcF+DF8CTeY05=Q|bN7=5O_rOpLT$0)P(9p8%!P<$pm>fyDG zmiwN0n>$BzQM<_aAWXz#SDT8v8FZ1r^c`Gu4$* z!wY8h^rkzc&fB&1i57vpRG?`o+J-!+rR&p9vB{)Hi3TfC9>S^HeAcIPLBIFBQk~aa zCHI+^i0Ge~X&b1nx@4%*g+pMS!&S`s2}GjU1^gDeh^WI!CZ30m-nCoh5%fPvnzIgU z8*!-4fyfjq7$fX^;E@Dv!4{h8P--_&(Cr$8j4+W8RMk(_uT2RuVx(ynn$l@KdGau6 zAJ+F6*D^1v0)HfT^)Z46#ONyJG{3dGw?&*)uUD;4W$t@}k+@sTi1CnJy%qKFDIf94 zzDRkRMl?}W21hI9ZAcq`lR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KVI@RpH-hhxUGr5SL!#-7nheo@S|We&g3UD&PNyN&WTTTC;#_{;NC7)I`=Y z?R}8#GDk)B)!vrBO3bfh*2f?Bbn5*iZ1Ewy=iJNf2Vy_}uY0w7vYh9)@=Z1-iQ!cb zH_m;+qrrXe;51i9ah0s%$!{}6%68^3E?82{ch}_4N0}!x&N*_0RW@Q Bi$DMX literal 0 HcmV?d00001 diff --git a/glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox.jar b/glassfish-runner/xa-platform-tck/xa-connectors/whitebox/whitebox.jar new file mode 100644 index 0000000000000000000000000000000000000000..94540364b7fe90cbdc7a30d0979cbeeea649e053 GIT binary patch literal 127202 zcmbTd1yr2PvMxNh1a~Ju@WBZLcXxMpx50vkKyZQ$?k>UI-3E7pLk0~_un@R>cki>$ zclQ0)S?B!ks##s@ou{j-s;jDd)^w{Xz`>&e0LTEqI}nx@;BOBK03M(ur76ZDr!39( zJPrV;{u7D}pm~KZs|q94zQP$`006w#_FqsXF=aVvDGg0lCFy{;I#gH=EXm)Z&t?iz zxG`bdo=gNfWnt!&9)5<~^(bHkZ*vli70heMwOvmfhogHu zywGeN9VR;%m3i)hF1Gs+Y?|H(@fSUXEZj33m%#32E9yL|m2dmduIS+gd@PD#Rm!Kk zE*9z>Ud8kN@fn_*V-pT%6ec6EX8|h*uB(UxbIJ^M8YS^EVX8<8MIffAc=} ze+7c9JpNla(f=3xRbeNWziadFgHZoBy)0auovkcDF7AI*@~?S+?eedO{+0X7D}UMi zs@^}8{O73u+20dn=lCxn{|KIA4gfsWYvAm?e)#_9Ld0BMrF<-`TtRj&&a4)WW*#2d zs$vQQ>_h>p?aB_G&K?wacrG5F_|Pudi6ainebRq!E~?TvsejjeGRQ%sc!GImxKz;5 zys^eOr)4|$WBc)E?-zP6A0h=Ah~?({VN2b>wy`YjWO6>AU=G&@okwGK5N!FNQ#z|; zAR#M``p1yCeoKn|xg3XC4$OMf4{xZmuL?BR@zx_gef_M-OkFH#37S%%!3|8e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s>C|+hO3}>3P04G5?>? z|87oCGlpYk{~Ktayko#&5Z~`q;AfuiL;f#;WdTkGPtpB9N2JA?;@}iuXqN_}z8_TT zm;4e+?w{Ap|6C%@DKk+hU@H;=rQ-iiBE^bd#{3r8|CKo9&&~Fvy|aV1w{L)>l{n%b zEvByO*I2eHZvTC>dqSTNmKxsy2Z9nnF@b%^zn(nb%=TYK|Cg5f#1&bJ3VH<;nIHeR z4W++>^L)YH|Nr3ryitdIht|IU8}$YlhrVyr-jQFTD%qMk1O9Vo{Ujm5n+HUAAPWJg z+3#Hf?c*=8l#R>)#?Ds%!2Mh-G@R$I1VEP<1_nEU-!%#R%=7h}{56z0aBnU^!NJ_d z$lT7r>fdQk(=9PYYa0O2WZHnjeJ|Mc%rDVYl>a&D`svK>X;`|zS&di?94t}+W7_xD z**N#NQKBxuVdL-9mY<7wlZgK62B^SQpqL`xDfHu~zs>zFx5AGhpzS=9V;3lCGH}sE z@H-;S`rju0JcvFSCv3kEDkQM|K!J|%y?}Ome;fB(P(R;Ebj$ImPO#W{CnEk^{>2KB3KItKknEB$|@_Xq!flzX;Xs zf8+hNtWR#(ogv*%2Q<^S!07h9sU|V~B3nc7ullDa#o{p+ryl?XX)1seQm0pREDxL`;p^a|MZCQ$#lisC2qi!^}wPnJ}l zR5;)dmdX#5XbmWl=ywt^1J~hyVHM?R%}&VH)(N{ly2lcV>f2aODto*oF^$(_e w-``~Z-2I*+|BpLw{(v2i{2J`f`*0MbA%Nq4;C>$9&r3oOkcbK3_ygqs0WLMt82|tP literal 0 HcmV?d00001 diff --git a/javamail/pom.xml b/javamail/pom.xml index 0ec57a4bb8..3549f975e8 100644 --- a/javamail/pom.xml +++ b/javamail/pom.xml @@ -2,19 +2,27 @@ @@ -32,6 +40,14 @@ JAVAMAIL JAVAMAIL + + 1.9.1.Final + 11.0.0-M1 + 5.9.1 + 17 + 1.0.0-M16 + + ${project.groupId} @@ -40,6 +56,7 @@ ${project.groupId} common + 11.0.0-SNAPSHOT jakarta.mail @@ -49,6 +66,52 @@ jakarta.activation jakarta.activation-api + + org.jboss.shrinkwrap + shrinkwrap-api + 1.2.6 + + + org.jboss.shrinkwrap.resolver + shrinkwrap-resolver-depchain + 3.1.4 + pom + + + org.jboss.arquillian.junit5 + arquillian-junit5-container + ${arquillian.junit} + + + org.jboss.arquillian.junit5 + arquillian-junit5-core + ${arquillian.junit} + + + jakarta.tck.arquillian + arquillian-protocol-appclient + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + arquillian-protocol-javatest + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + tck-porting-lib + ${version.jakarta.tck.arquillian} + + + + + org.junit.jupiter + junit-jupiter + + + org.junit.jupiter + junit-jupiter-engine + diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/build.xml b/javamail/src/main/java/com/sun/ts/tests/javamail/build.xml deleted file mode 100644 index c47e0279a9..0000000000 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/build.xml b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/build.xml deleted file mode 100644 index 3991d84906..0000000000 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/build.xml b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/build.xml deleted file mode 100644 index ef7f5ef261..0000000000 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/build.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileAppClient_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileAppClient_Test.java new file mode 100644 index 0000000000..398627d7b3 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileAppClient_Test.java @@ -0,0 +1,127 @@ +/* + * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package com.sun.ts.tests.javamail.ee.fetchprofile; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") + +public class fetchprofileAppClient_Test extends fetchprofile_Test implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) + throws IOException { + JavaArchive appclientArchive = ShrinkWrap.create(JavaArchive.class, + "fetchprofile_appclient_vehicle_client.jar"); + + appclientArchive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + appclientArchive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + appclientArchive.addPackages(true, "com.sun.ts.lib.harness"); + appclientArchive.addClasses(fetchprofile_Test.class); + // The appclient-client descriptor + URL appClientUrl = fetchprofileAppClient_Test.class + .getResource("/com/sun/ts/tests/javamail/ee/fetchprofile/appclient_vehicle_client.xml"); + if (appClientUrl != null) { + appclientArchive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + appclientArchive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // The sun appclient-client descriptor + URL sunAppClientUrl = fetchprofileAppClient_Test.class.getResource( + "/com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if (sunAppClientUrl != null) { + appclientArchive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + // Call the archive processor + archiveProcessor.processClientArchive(appclientArchive, fetchprofileAppClient_Test.class, sunAppClientUrl); + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "fetchprofile_appclient_vehicle.ear"); + ear.addAsModule(appclientArchive); + + return ear; + }; + + public static void main(String[] args) { + fetchprofileAppClient_Test theTests = new fetchprofileAppClient_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify FetchProfile() + */ + // derived from javamail suite fetchProfile_Test class + @Test + @TargetVehicle("appclient") + public void test1() throws Exception { + super.test1(); + } // end of test1() + + /* + * @testName: test2 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify FetchProfile() + */ + // derived from javamail suite fetchProfile_Test class + @Test + @TargetVehicle("appclient") + public void test2() throws Exception { + super.test2(); + }// end of test2() + + /* + * @testName: getItems + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getItems + */ + // derived from javamail suite fetchProfile getItems + @Test + @TargetVehicle("appclient") + public void getItems() throws Exception { + super.getItems(); + } +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileEJB_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileEJB_Test.java new file mode 100644 index 0000000000..e796a5c076 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileEJB_Test.java @@ -0,0 +1,146 @@ +/* + * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package com.sun.ts.tests.javamail.ee.fetchprofile; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") + +public class fetchprofileEJB_Test extends fetchprofile_Test implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", order = 2) + public static EnterpriseArchive createDeploymentEjb(@ArquillianResource TestArchiveProcessor archiveProcessor) + throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "fetchprofile_ejb_vehicle_client.jar"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejbClient.addClasses(fetchprofileEJB_Test.class, fetchprofile_Test.class); + + URL resURL = fetchprofileEJB_Test.class + .getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = fetchprofileEJB_Test.class + .getResource("/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofile_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "fetchprofile_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(fetchprofile_Test.class); + + resURL = fetchprofileEJB_Test.class.getResource( + "/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofile_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = fetchprofileEJB_Test.class.getResource("/com/sun/ts/tests/javamail/ee/fetchprofile/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "fetchprofile_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + + }; + + public static void main(String[] args) { + fetchprofileEJB_Test theTests = new fetchprofileEJB_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify FetchProfile() + */ + // derived from javamail suite fetchProfile_Test class + @Test + @TargetVehicle("ejb") + public void test1() throws Exception { + super.test1(); + } // end of test1() + + /* + * @testName: test2 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify FetchProfile() + */ + // derived from javamail suite fetchProfile_Test class + @Test + @TargetVehicle("ejb") + public void test2() throws Exception { + super.test2(); + } + + /* + * @testName: getItems + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getItems + */ + // derived from javamail suite fetchProfile getItems + @Test + @TargetVehicle("ejb") + public void getItems() throws Exception { + super.getItems(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileJSP_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileJSP_Test.java new file mode 100644 index 0000000000..3b12c80f20 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileJSP_Test.java @@ -0,0 +1,126 @@ +/* + * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package com.sun.ts.tests.javamail.ee.fetchprofile; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class fetchprofileJSP_Test extends fetchprofile_Test implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "fetchprofile_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + archive.addClasses(fetchprofileJSP_Test.class, fetchprofile_Test.class); + + // The jsp descriptor + URL jspUrl = fetchprofileJSP_Test.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = fetchprofileJSP_Test.class.getResource("fetchprofile_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, fetchprofileJSP_Test.class, sunJSPUrl); + + return archive; + }; + + public static void main(String[] args) { + fetchprofileJSP_Test theTests = new fetchprofileJSP_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify FetchProfile() + */ + // derived from javamail suite fetchProfile_Test class + @Test + @TargetVehicle("jsp") + public void test1() throws Exception { + super.test1(); + } // end of test1() + + /* + * @testName: test2 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify FetchProfile() + */ + // derived from javamail suite fetchProfile_Test class + @Test + @TargetVehicle("jsp") + public void test2() throws Exception { + super.test2(); + }// end of test2() + + /* + * @testName: getItems + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getItems + */ + // derived from javamail suite fetchProfile getItems + @Test + @TargetVehicle("jsp") + public void getItems() throws Exception { + super.getItems(); + } + + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileServlet_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileServlet_Test.java new file mode 100644 index 0000000000..76d20a915d --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofileServlet_Test.java @@ -0,0 +1,116 @@ +/* + * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package com.sun.ts.tests.javamail.ee.fetchprofile; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class fetchprofileServlet_Test extends fetchprofile_Test implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "fetchprofile_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(fetchprofileServlet_Test.class, fetchprofile_Test.class); + + // The servlet descriptor + URL servletUrl = fetchprofileServlet_Test.class.getResource("servlet_vehicle_web.xml"); + if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); + } + // The sun servlet descriptor + URL sunServletUrl = fetchprofileServlet_Test.class.getResource("fetchprofile_servlet_vehicle_web.war.sun-web.xml"); + if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, fetchprofileServlet_Test.class, sunServletUrl); + + return archive; + }; + + public static void main(String[] args) { + fetchprofileServlet_Test theTests = new fetchprofileServlet_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify FetchProfile() + */ + // derived from javamail suite fetchProfile_Test class + @Test + @TargetVehicle("servlet") + public void test1() throws Exception { + super.test1(); + } // end of test1() + + /* + * @testName: test2 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify FetchProfile() + */ + // derived from javamail suite fetchProfile_Test class + @Test + @TargetVehicle("servlet") + public void test2() throws Exception { + super.test2(); + }// end of test2() + + /* + * @testName: getItems + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getItems + */ + // derived from javamail suite fetchProfile getItems + @Test + @TargetVehicle("servlet") + public void getItems() throws Exception { + super.getItems(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofile_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofile_Test.java index ac11cf4f8d..cc11a3b20f 100644 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofile_Test.java +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/fetchprofile/fetchprofile_Test.java @@ -19,8 +19,12 @@ import java.io.Serializable; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.javamail.ee.common.MailTestUtil; @@ -30,313 +34,311 @@ import jakarta.mail.Session; import jakarta.mail.Store; -public class fetchprofile_Test extends ServiceEETest implements Serializable { - - private transient FetchProfile fp = null; - - private int errors = 0; // number of unit test errors +@ExtendWith(ArquillianExtension.class) +@Tag("mail") +@Tag("platform") - private Folder folder; - - private Message[] msgs; +public class fetchprofile_Test extends ServiceEETest implements Serializable { - private Store store; + private transient FetchProfile fp = null; - private transient Status status; - - private String rootPath; - - private transient Session session; - - public static void main(String[] args) { - fetchprofile_Test theTests = new fetchprofile_Test(); - Status s = theTests.run(args, System.out, System.err); - s.exit(); - } + private int errors = 0; // number of unit test errors + + private Folder folder; + + private Message[] msgs; + + private Store store; + + private transient Status status; + + private String rootPath; - /* Test setup: */ - /* - * @class.setup_props: javamail.protocol; javamail.server; javamail.username; - * javamail.password ; javamail.mailbox; javamail.root.path; smtp.port; - * imap.port; - */ - public void setup(String[] args, Properties props) throws Exception { - try { + private transient Session session; - String protocol = TestUtil.getProperty("javamail.protocol"); - String host = TestUtil.getProperty("javamail.server"); - String user = TestUtil.getProperty("javamail.username"); - String password = TestUtil.getProperty("javamail.password"); - String mailbox = TestUtil.getProperty("javamail.mailbox"); - rootPath = TestUtil.getProperty("javamail.root.path"); + /* Test setup: */ + /* + * @class.setup_props: javamail.protocol; javamail.server; javamail.username; + * javamail.password ; javamail.mailbox; javamail.root.path; smtp.port; + * imap.port; + */ + public void setup(String[] args, Properties props) throws Exception { + try { - String smtpPortStr = TestUtil.getProperty("smtp.port"); - int smtpPort = Integer.parseInt(smtpPortStr); - TestUtil.logTrace("SMTP Port = " + smtpPort); + String protocol = TestUtil.getProperty("javamail.protocol"); + String host = TestUtil.getProperty("javamail.server"); + String user = TestUtil.getProperty("javamail.username"); + String password = TestUtil.getProperty("javamail.password"); + String mailbox = TestUtil.getProperty("javamail.mailbox"); + rootPath = TestUtil.getProperty("javamail.root.path"); - String imapPortStr = TestUtil.getProperty("imap.port"); - int imapPort = Integer.parseInt(imapPortStr); - TestUtil.logTrace("IMAP Port = " + imapPort); + String smtpPortStr = TestUtil.getProperty("smtp.port"); + int smtpPort = Integer.parseInt(smtpPortStr); + TestUtil.logTrace("SMTP Port = " + smtpPort); - MailTestUtil mailTestUtil = new MailTestUtil(); - store = mailTestUtil.connect2host(protocol, host, imapPort, user, - password); + String imapPortStr = TestUtil.getProperty("imap.port"); + int imapPort = Integer.parseInt(imapPortStr); + TestUtil.logTrace("IMAP Port = " + imapPort); + + MailTestUtil mailTestUtil = new MailTestUtil(); + store = mailTestUtil.connect2host(protocol, host, imapPort, user, password); - // Get a Folder object - Folder root = getRootFolder(store); - folder = root.getFolder(mailbox); + // Get a Folder object + Folder root = getRootFolder(store); + folder = root.getFolder(mailbox); - if (folder == null) { - throw new Exception("Invalid folder object!"); - } - folder.open(Folder.READ_ONLY); - - // Create an empty FetchProfile - fp = new FetchProfile(); + if (folder == null) { + throw new Exception("Invalid folder object!"); + } + folder.open(Folder.READ_ONLY); + + // Create an empty FetchProfile + fp = new FetchProfile(); + + if (fp == null) { + throw new Exception("Failed to create an empty FetchProfile object!"); + } + // Get all the messages + msgs = folder.getMessages(); - if (fp == null) { - throw new Exception("Failed to create an empty FetchProfile object!"); - } - // Get all the messages - msgs = folder.getMessages(); + } catch (Exception e) { + e.printStackTrace(); + logErr("Exception : " + e.getMessage()); + logErr("Setup Failed!"); + TestUtil.printStackTrace(e); + } + } - } catch (Exception e) { - logErr("Exception : " + e.getMessage()); - logErr("Setup Failed!"); - TestUtil.printStackTrace(e); - } - } - - /* - * @testName: test1 - * - * @assertion_ids: JavaEE:SPEC:235; - * - * @test_Strategy: verify FetchProfile() - */ - // derived from javamail suite fetchProfile_Test class - - public void test1() throws Exception { - - try { - // BEGIN UNIT TEST 1: - TestUtil.logTrace("UNIT TEST 1: FetchProfile()"); + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify FetchProfile() + */ + // derived from javamail suite fetchProfile_Test class + public void test1() throws Exception { + + try { + // BEGIN UNIT TEST 1: + TestUtil.logTrace("UNIT TEST 1: FetchProfile()"); + + FetchProfile fp = new FetchProfile(); // API TEST - FetchProfile fp = new FetchProfile(); // API TEST + if (fp != null) { + TestUtil.logTrace("UNIT TEST 1: passed\n"); + } + // END UNIT TEST 1: + + } catch (Exception e) { + e.printStackTrace(); + logErr("Unexpected Exception " + e.getMessage()); + TestUtil.printStackTrace(e); + throw new Exception("test1 Failed"); - if (fp != null) { - TestUtil.logTrace("UNIT TEST 1: passed\n"); - } - // END UNIT TEST 1: - - } catch (Exception e) { - logErr("Unexpected Exception " + e.getMessage()); - TestUtil.printStackTrace(e); - throw new Exception("test1 Failed"); - - } - } // end of test1() - - /* - * @testName: test2 - * - * @assertion_ids: JavaEE:SPEC:235; - * - * @test_Strategy: verify FetchProfile() - */ - // derived from javamail suite fetchProfile_Test class - public void test2() throws Exception { - - TestUtil.logTrace( - "\nTesting class FetchProfile: add(FetchProfile.Item | String)\n"); - - try { - - // BEGIN UNIT TEST 1: - - TestUtil.logTrace("UNIT TEST 1: add(FetchProfile.Item.ENVELOPE)"); - - fp.add(FetchProfile.Item.ENVELOPE); // API TEST - - if (fp.contains(FetchProfile.Item.ENVELOPE)) - TestUtil.logTrace("UNIT TEST 1: passed.\n"); - else { - TestUtil.logTrace("UNIT TEST 1: FAILED.\n"); - errors++; - } - // END UNIT TEST 1: - // BEGIN UNIT TEST 2: - - TestUtil.logTrace("UNIT TEST 2: add(FetchProfile.Item.FLAGS)"); - - fp.add(FetchProfile.Item.FLAGS); // API TEST - - if (fp.contains(FetchProfile.Item.FLAGS)) - TestUtil.logTrace("UNIT TEST 2: passed.\n"); - else { - TestUtil.logTrace("UNIT TEST 2: FAILED.\n"); - errors++; - } - // END UNIT TEST 2: - // BEGIN UNIT TEST 3: - - TestUtil.logTrace("UNIT TEST 3: add(FetchProfile.Item.CONTENT_INFO)"); - - fp.add(FetchProfile.Item.CONTENT_INFO); // API TEST - - if (fp.contains(FetchProfile.Item.CONTENT_INFO)) - TestUtil.logTrace("UNIT TEST 3: passed.\n"); - else { - TestUtil.logTrace("UNIT TEST 3: FAILED.\n"); - errors++; - } - // END UNIT TEST 3: - // BEGIN UNIT TEST 4: - - TestUtil.logTrace("UNIT TEST 4: add(Subject)"); - - fp.add("Subject"); // API TEST - - if (fp.contains("Subject")) - TestUtil.logTrace("UNIT TEST 4: passed.\n"); - else { - TestUtil.logTrace("UNIT TEST 4: FAILED.\n"); - errors++; - } - // END UNIT TEST 4: - // BEGIN UNIT TEST 5: - - TestUtil.logTrace("UNIT TEST 5: add(From)"); - - fp.add("From"); // API TEST - - if (fp.contains("From")) - TestUtil.logTrace("UNIT TEST 5: passed.\n"); - else { - TestUtil.logTrace("UNIT TEST 5: FAILED.\n"); - errors++; - } - // END UNIT TEST 5: - // BEGIN UNIT TEST 6: - - TestUtil.logTrace("UNIT TEST 6: add(X-mailer)"); - - fp.add("X-mailer"); // API TEST - - if (fp.contains("X-mailer")) - TestUtil.logTrace("UNIT TEST 6: passed.\n"); - else { - TestUtil.logTrace("UNIT TEST 6: FAILED.\n"); - errors++; - } - // END UNIT TEST 6: - - folder.fetch(msgs, fp); - - checkStatus(); - - if (errors > 0) { - throw new Exception("test2 Failed: No of unit test failed = " + errors); - } - - } catch (Exception e) { - logErr("Unexpected Exception " + e.getMessage()); - TestUtil.printStackTrace(e); - throw new Exception("test2 Failed"); - } - - }// end of test2() - - /* - * @testName: getItems_test - * - * @assertion_ids: JavaEE:SPEC:235; - * - * @test_Strategy: getItems_test - */ - // derived from javamail suite fetchProfile getItems_test - public void getItems_test() throws Exception { - - try { - // Create an empty FetchProfile - FetchProfile fp = new FetchProfile(); - - // Add header names to Profile object - - fp.add(FetchProfile.Item.ENVELOPE); - fp.add(FetchProfile.Item.FLAGS); - fp.add(FetchProfile.Item.CONTENT_INFO); - fp.add(FetchProfile.Item.SIZE); - - // BEGIN UNIT TEST 1: - - TestUtil.logMsg("UNIT TEST 1: getItems()"); - - FetchProfile.Item[] items = fp.getItems(); // API TEST - - boolean foundEnv = false, foundFlags = false, foundCont = false, - foundSize = false; - for (int j = 0; j < items.length; j++) { - if (items[j] == FetchProfile.Item.ENVELOPE) - foundEnv = true; - else if (items[j] == FetchProfile.Item.FLAGS) - foundFlags = true; - else if (items[j] == FetchProfile.Item.CONTENT_INFO) - foundCont = true; - else if (items[j] == FetchProfile.Item.SIZE) - foundSize = true; - } - - if (foundEnv && foundFlags && foundCont && foundSize) - TestUtil.logMsg("UNIT TEST 1: passed.\n"); - else { - TestUtil.logMsg("UNIT TEST 1: FAILED.\n"); - errors++; - } - // END UNIT TEST 1: - - checkStatus(); - - } catch (Exception e) { - logErr("Unexpected Exception " + e.getMessage()); - TestUtil.printStackTrace(e); - throw new Exception("getItems_test Failed"); - } - - } - - public void checkStatus() { - if (errors == 0) - status = Status.passed("OKAY"); - else - status = Status.failed(""); - } - - /* cleanup */ - public void cleanup() throws Exception { - try { - logMsg("Cleanup ;"); - folder.close(false); - store.close(); - } catch (Exception e) { - logErr("An error occurred in cleanup!", e); - } - } - - /** - * Get the root folder. - */ - public Folder getRootFolder(Store store) { - Folder folder = null; - try { - if (rootPath.equals("")) - folder = store.getDefaultFolder(); - else - folder = store.getFolder(rootPath); - } catch (Exception e) { - e.printStackTrace(); - } - return folder; - } + } + } // end of test1() + + /* + * @testName: test2 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify FetchProfile() + */ + // derived from javamail suite fetchProfile_Test class + public void test2() throws Exception { + + TestUtil.logTrace("\nTesting class FetchProfile: add(FetchProfile.Item | String)\n"); + + try { + + // BEGIN UNIT TEST 1: + + TestUtil.logTrace("UNIT TEST 1: add(FetchProfile.Item.ENVELOPE)"); + + fp.add(FetchProfile.Item.ENVELOPE); // API TEST + + if (fp.contains(FetchProfile.Item.ENVELOPE)) + TestUtil.logTrace("UNIT TEST 1: passed.\n"); + else { + TestUtil.logTrace("UNIT TEST 1: FAILED.\n"); + errors++; + } + // END UNIT TEST 1: + // BEGIN UNIT TEST 2: + + TestUtil.logTrace("UNIT TEST 2: add(FetchProfile.Item.FLAGS)"); + + fp.add(FetchProfile.Item.FLAGS); // API TEST + + if (fp.contains(FetchProfile.Item.FLAGS)) + TestUtil.logTrace("UNIT TEST 2: passed.\n"); + else { + TestUtil.logTrace("UNIT TEST 2: FAILED.\n"); + errors++; + } + // END UNIT TEST 2: + // BEGIN UNIT TEST 3: + + TestUtil.logTrace("UNIT TEST 3: add(FetchProfile.Item.CONTENT_INFO)"); + + fp.add(FetchProfile.Item.CONTENT_INFO); // API TEST + + if (fp.contains(FetchProfile.Item.CONTENT_INFO)) + TestUtil.logTrace("UNIT TEST 3: passed.\n"); + else { + TestUtil.logTrace("UNIT TEST 3: FAILED.\n"); + errors++; + } + // END UNIT TEST 3: + // BEGIN UNIT TEST 4: + + TestUtil.logTrace("UNIT TEST 4: add(Subject)"); + + fp.add("Subject"); // API TEST + + if (fp.contains("Subject")) + TestUtil.logTrace("UNIT TEST 4: passed.\n"); + else { + TestUtil.logTrace("UNIT TEST 4: FAILED.\n"); + errors++; + } + // END UNIT TEST 4: + // BEGIN UNIT TEST 5: + + TestUtil.logTrace("UNIT TEST 5: add(From)"); + + fp.add("From"); // API TEST + + if (fp.contains("From")) + TestUtil.logTrace("UNIT TEST 5: passed.\n"); + else { + TestUtil.logTrace("UNIT TEST 5: FAILED.\n"); + errors++; + } + // END UNIT TEST 5: + // BEGIN UNIT TEST 6: + + TestUtil.logTrace("UNIT TEST 6: add(X-mailer)"); + + fp.add("X-mailer"); // API TEST + + if (fp.contains("X-mailer")) + TestUtil.logTrace("UNIT TEST 6: passed.\n"); + else { + TestUtil.logTrace("UNIT TEST 6: FAILED.\n"); + errors++; + } + // END UNIT TEST 6: + + folder.fetch(msgs, fp); + + checkStatus(); + + if (errors > 0) { + throw new Exception("test2 Failed: No of unit test failed = " + errors); + } + + } catch (Exception e) { + e.printStackTrace(); + logErr("Unexpected Exception " + e.getMessage()); + TestUtil.printStackTrace(e); + throw new Exception("test2 Failed"); + } + + }// end of test2() + + /* + * @testName: getItems + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getItems_test + */ + // derived from javamail suite fetchProfile getItems_test + public void getItems() throws Exception { + + try { + // Create an empty FetchProfile + FetchProfile fp = new FetchProfile(); + + // Add header names to Profile object + + fp.add(FetchProfile.Item.ENVELOPE); + fp.add(FetchProfile.Item.FLAGS); + fp.add(FetchProfile.Item.CONTENT_INFO); + fp.add(FetchProfile.Item.SIZE); + + // BEGIN UNIT TEST 1: + + TestUtil.logMsg("UNIT TEST 1: getItems()"); + + FetchProfile.Item[] items = fp.getItems(); // API TEST + + boolean foundEnv = false, foundFlags = false, foundCont = false, foundSize = false; + for (int j = 0; j < items.length; j++) { + if (items[j] == FetchProfile.Item.ENVELOPE) + foundEnv = true; + else if (items[j] == FetchProfile.Item.FLAGS) + foundFlags = true; + else if (items[j] == FetchProfile.Item.CONTENT_INFO) + foundCont = true; + else if (items[j] == FetchProfile.Item.SIZE) + foundSize = true; + } + + if (foundEnv && foundFlags && foundCont && foundSize) + TestUtil.logMsg("UNIT TEST 1: passed.\n"); + else { + TestUtil.logMsg("UNIT TEST 1: FAILED.\n"); + errors++; + } + // END UNIT TEST 1: + + checkStatus(); + + } catch (Exception e) { + e.printStackTrace(); + logErr("Unexpected Exception " + e.getMessage()); + TestUtil.printStackTrace(e); + throw new Exception("getItems_test Failed"); + } + + } + + public void checkStatus() { + if (errors == 0) + status = Status.passed("OKAY"); + else + status = Status.failed(""); + } + + /* cleanup */ + public void cleanup() throws Exception { + try { + logMsg("Cleanup ;"); + folder.close(false); + store.close(); + } catch (Exception e) { + logErr("An error occurred in cleanup!", e); + } + } + + /** + * Get the root folder. + */ + public Folder getRootFolder(Store store) { + Folder folder = null; + try { + if (rootPath.equals("")) + folder = store.getDefaultFolder(); + else + folder = store.getFolder(rootPath); + } catch (Exception e) { + e.printStackTrace(); + } + return folder; + } } diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/build.xml b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/build.xml deleted file mode 100644 index d6a99e008b..0000000000 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/build.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentAppClient_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentAppClient_Test.java new file mode 100644 index 0000000000..ba6f4abd82 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentAppClient_Test.java @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2013, 2018, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package com.sun.ts.tests.javamail.ee.getMessageContent; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") + +public class getMessageContentAppClient_Test extends getMessageContent_Test { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "getMessageContent_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(getMessageContentAppClient_Test.class, getMessageContent_Test.class); + + // The appclient-client descriptor + URL appClientUrl = getMessageContentAppClient_Test.class.getResource("/com/sun/ts/tests/javamail/ee/getMessageContent/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = getMessageContentAppClient_Test.class.getResource( + "/com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, getMessageContentAppClient_Test.class, sunAppClientUrl); + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "getMessageContent_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + public static void main(String[] args) { + getMessageContentAppClient_Test theTests = new getMessageContentAppClient_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite getMessageContent_Test + @Test + @TargetVehicle("appclient") + public void test1() throws Exception { + super.test1(); + } // end of test1() + + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentEJB_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentEJB_Test.java new file mode 100644 index 0000000000..624104dcd6 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentEJB_Test.java @@ -0,0 +1,116 @@ +/* + * Copyright (c) 2013, 2018, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package com.sun.ts.tests.javamail.ee.getMessageContent; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") + +public class getMessageContentEJB_Test extends getMessageContent_Test { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentEjb(@ArquillianResource TestArchiveProcessor archiveProcessor) + throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "getMessageContent_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(getMessageContentEJB_Test.class, getMessageContent_Test.class); + + URL resURL = getMessageContentEJB_Test.class + .getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = getMessageContentEJB_Test.class + .getResource("/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContent_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "getMessageContent_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(getMessageContentEJB_Test.class, getMessageContent_Test.class); + + + resURL = getMessageContent_Test.class.getResource( + "/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContent_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = getMessageContent_Test.class.getResource("/com/sun/ts/tests/javamail/ee/getMessageContent/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "getMessageContent_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + public static void main(String[] args) { + getMessageContentEJB_Test theTests = new getMessageContentEJB_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite getMessageContent_Test + @Test + @TargetVehicle("ejb") + public void test1() throws Exception { + super.test1(); + } // end of test1() + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentJSP_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentJSP_Test.java new file mode 100644 index 0000000000..887104fccd --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentJSP_Test.java @@ -0,0 +1,97 @@ +/* + * Copyright (c) 2013, 2018, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package com.sun.ts.tests.javamail.ee.getMessageContent; + +import java.io.IOException; +import java.io.InputStream; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class getMessageContentJSP_Test extends getMessageContent_Test { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "getMessageContent_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + archive.addClasses(getMessageContentJSP_Test.class, getMessageContent_Test.class); + + // The jsp descriptor + URL jspUrl = getMessageContentJSP_Test.class.getResource("jsp_vehicle_client.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = getMessageContentJSP_Test.class.getResource("getMessageContent_jsp_vehicle_client.jar.sun-application-client.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, getMessageContentJSP_Test.class, sunJSPUrl); + + return archive; + }; + + + public static void main(String[] args) { + getMessageContentJSP_Test theTests = new getMessageContentJSP_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite getMessageContent_Test + @Test + @TargetVehicle("jsp") + public void test1() throws Exception { + super.test1(); + } // end of test1() + + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentServlet_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentServlet_Test.java new file mode 100644 index 0000000000..42a39d12c3 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContentServlet_Test.java @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2013, 2018, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package com.sun.ts.tests.javamail.ee.getMessageContent; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class getMessageContentServlet_Test extends getMessageContent_Test { + + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "getMessageContent_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(getMessageContentServlet_Test.class, getMessageContent_Test.class); + + // The servlet descriptor + URL jspUrl = getMessageContentJSP_Test.class.getResource("servlet_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun servlet descriptor + URL sunJSPUrl = getMessageContentJSP_Test.class.getResource("getMessageContent_servlet_vehicle_web.jar.sun-application-client.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, getMessageContentJSP_Test.class, sunJSPUrl); + + return archive; + }; + + public static void main(String[] args) { + getMessageContentServlet_Test theTests = new getMessageContentServlet_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite getMessageContent_Test + @Test + @TargetVehicle("servlet") + public void test1() throws Exception { + super.test1(); + } // end of test1() + + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContent_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContent_Test.java index d5f22f554d..374aff5c41 100644 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContent_Test.java +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/getMessageContent/getMessageContent_Test.java @@ -18,8 +18,12 @@ import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContext; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; @@ -30,6 +34,10 @@ import jakarta.mail.Session; import jakarta.mail.Store; +@ExtendWith(ArquillianExtension.class) +@Tag("mail") +@Tag("platform") + public class getMessageContent_Test extends ServiceEETest { private int errors = 0; // number of unit test errors @@ -45,13 +53,8 @@ public class getMessageContent_Test extends ServiceEETest { private Status status; private String rootPath; - - public static void main(String[] args) { - getMessageContent_Test theTests = new getMessageContent_Test(); - Status s = theTests.run(args, System.out, System.err); - s.exit(); - } - + + /* Test setup: */ /* * @class.setup_props: javamail.protocol; javamail.server; javamail.username; @@ -111,7 +114,6 @@ public void setup(String[] args, Properties props) throws Exception { * @test_Strategy: getMessageContent test */ // derived from javamail suite getMessageContent_Test - public void test1() throws Exception { try { diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/build.xml b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/build.xml deleted file mode 100644 index a54a6fb9b0..0000000000 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/build.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartAppClient_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartAppClient_Test.java new file mode 100644 index 0000000000..9dfad87f77 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartAppClient_Test.java @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package com.sun.ts.tests.javamail.ee.internetMimeMultipart; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +@Tag("tck-appclient") + +public class internetMimeMultipartAppClient_Test extends internetMimeMultipart_Test { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) + throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, + "internetMimeMultipart_appclient_vehicle_client.jar"); + archive.addPackages(false, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(internetMimeMultipartAppClient_Test.class, internetMimeMultipart_Test.class); + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // The appclient-client descriptor + URL appClientUrl = internetMimeMultipartAppClient_Test.class.getResource("/com/sun/ts/tests/javamail/ee/internetMimeMultipart/appclient_vehicle_client.xml"); + if (appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = internetMimeMultipartAppClient_Test.class + .getResource("/com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if (sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + // Call the archive processor + archiveProcessor.processClientArchive(archive, internetMimeMultipartAppClient_Test.class, sunAppClientUrl); + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, + "internetMimeMultipart_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + + }; + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite getMessageContent_Test + @Test + @TargetVehicle("appclient") + public void test1() throws Exception { + super.test1(); + }// end of test1 + + /* + * @testName: properties_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite properties_Test + @Test + @TargetVehicle("appclient") + public void propertiesTest() throws Exception { + super.propertiesTest(); + } + + /* + * @testName: mimeMultipartTest + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite MimeMultipart test + @Test + @TargetVehicle("appclient") + public void mimeMultipartTest() throws Exception { + super.mimeMultipartTest(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartEJB_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartEJB_Test.java new file mode 100644 index 0000000000..fa78defad8 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartEJB_Test.java @@ -0,0 +1,136 @@ +/* + * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package com.sun.ts.tests.javamail.ee.internetMimeMultipart; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +@Tag("tck-appclient") + +public class internetMimeMultipartEJB_Test extends internetMimeMultipart_Test { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentEjb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "internetMimeMultipart_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(internetMimeMultipartEJB_Test.class, internetMimeMultipart_Test.class); + + URL resURL = internetMimeMultipartEJB_Test.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = internetMimeMultipartEJB_Test.class + .getResource("/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipart_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "internetMimeMultipart_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(internetMimeMultipartEJB_Test.class, internetMimeMultipart_Test.class); + + + resURL = internetMimeMultipartEJB_Test.class.getResource( + "/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipart_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = internetMimeMultipartEJB_Test.class.getResource("/com/sun/ts/tests/javamail/ee/internetMimeMultipart/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "internetMimeMultipart_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite getMessageContent_Test + @Test + @TargetVehicle("ejb") + public void test1() throws Exception { + super.test1(); + }// end of test1 + + /* + * @testName: propertiesTest + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite propertiesTest + @Test + @TargetVehicle("ejb") + public void propertiesTest() throws Exception { + super.propertiesTest(); + } + + /* + * @testName: mimeMultipartTest + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite MimeMultipart test + @Test + @TargetVehicle("ejb") + public void mimeMultipartTest() throws Exception { + super.mimeMultipartTest(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartJSP_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartJSP_Test.java new file mode 100644 index 0000000000..6601d2ff0c --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartJSP_Test.java @@ -0,0 +1,115 @@ +/* + * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package com.sun.ts.tests.javamail.ee.internetMimeMultipart; + +import java.io.IOException; +import java.io.InputStream; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class internetMimeMultipartJSP_Test extends internetMimeMultipart_Test { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "internetMimeMultipart_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + archive.addClasses(internetMimeMultipartJSP_Test.class, internetMimeMultipart_Test.class); + + // The jsp descriptor + URL jspUrl = internetMimeMultipartJSP_Test.class.getResource("jsp_vehicle_client.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = internetMimeMultipartJSP_Test.class.getResource("internetMimeMultipart_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, internetMimeMultipartJSP_Test.class, sunJSPUrl); + + return archive; + }; + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite getMessageContent_Test + @Test + @TargetVehicle("jsp") + public void test1() throws Exception { + super.test1(); + }// end of test1 + + /* + * @testName: properties_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite properties_Test + @Test + @TargetVehicle("jsp") + public void propertiesTest() throws Exception { + super.propertiesTest(); + } + + /* + * @testName: mimeMultipartTest + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite MimeMultipart test + @Test + @TargetVehicle("jsp") + public void mimeMultipartTest() throws Exception { + super.mimeMultipartTest(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartServlet_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartServlet_Test.java new file mode 100644 index 0000000000..2494b007a0 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipartServlet_Test.java @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package com.sun.ts.tests.javamail.ee.internetMimeMultipart; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class internetMimeMultipartServlet_Test extends internetMimeMultipart_Test { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "internetMimeMultipart_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(internetMimeMultipartServlet_Test.class, internetMimeMultipart_Test.class); + + + // The servlet descriptor + URL jspUrl = internetMimeMultipartServlet_Test.class.getResource("servlet_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun servlet descriptor + URL sunJSPUrl = internetMimeMultipartServlet_Test.class.getResource("internetMimeMultipart_servlet_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, internetMimeMultipartServlet_Test.class, sunJSPUrl); + + return archive; + }; + + + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite getMessageContent_Test + @Test + @TargetVehicle("servlet") + public void test1() throws Exception { + super.test1(); + }// end of test1 + + /* + * @testName: properties_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite properties_Test + @Test + @TargetVehicle("servlet") + public void propertiesTest() throws Exception { + super.propertiesTest(); + } + + /* + * @testName: mimeMultipartTest + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: getMessageContent test + */ + // derived from javamail suite MimeMultipart test + @Test + @TargetVehicle("servlet") + public void mimeMultipartTest() throws Exception { + super.mimeMultipartTest(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipart_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipart_Test.java index 5af2c4317e..e5867fd8b9 100644 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipart_Test.java +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetMimeMultipart/internetMimeMultipart_Test.java @@ -21,8 +21,12 @@ import java.io.StringBufferInputStream; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.javamail.ee.common.MailTestUtil; @@ -37,6 +41,10 @@ import jakarta.mail.internet.MimeMessage; import jakarta.mail.internet.MimeMultipart; +@ExtendWith(ArquillianExtension.class) +@Tag("mail") +@Tag("platform") + public class internetMimeMultipart_Test extends ServiceEETest { private int errors = 0; // number of unit test errors @@ -59,12 +67,6 @@ public class internetMimeMultipart_Test extends ServiceEETest { private String ioFile; - public static void main(String[] args) { - internetMimeMultipart_Test theTests = new internetMimeMultipart_Test(); - Status s = theTests.run(args, System.out, System.err); - s.exit(); - } - /* Test setup: */ /* * @class.setup_props: javamail.protocol; javamail.server; javamail.username; @@ -74,21 +76,20 @@ public static void main(String[] args) { public void setup(String[] args, Properties props) throws Exception { try { - String protocol = TestUtil.getProperty("javamail.protocol"); - String host = TestUtil.getProperty("javamail.server"); - String user = TestUtil.getProperty("javamail.username"); - String password = TestUtil.getProperty("javamail.password"); - String mailbox = TestUtil.getProperty("javamail.mailbox"); - workDir = TestUtil.getProperty("work.dir"); - ioFile = TestUtil.getProperty("iofile"); + String protocol = TestUtil.getProperty("javamail.protocol"); + String host = TestUtil.getProperty("javamail.server"); + String user = TestUtil.getProperty("javamail.username"); + String password = TestUtil.getProperty("javamail.password"); + String mailbox = TestUtil.getProperty("javamail.mailbox"); + String rootPath = TestUtil.getProperty("javamail.root.path"); - String smtpPortStr = TestUtil.getProperty("smtp.port"); - int smtpPort = Integer.parseInt(smtpPortStr); - TestUtil.logTrace("SMTP Port = " + smtpPort); + String smtpPortStr = TestUtil.getProperty("smtp.port"); + int smtpPort = Integer.parseInt(smtpPortStr); + TestUtil.logTrace("SMTP Port = " + smtpPort); - String imapPortStr = TestUtil.getProperty("imap.port"); - int imapPort = Integer.parseInt(imapPortStr); - TestUtil.logTrace("IMAP Port = " + imapPort); + String imapPortStr = TestUtil.getProperty("imap.port"); + int imapPort = Integer.parseInt(imapPortStr); + TestUtil.logTrace("IMAP Port = " + imapPort); mailTestUtil = new MailTestUtil(); store = mailTestUtil.connect2host(protocol, host, imapPort, user, @@ -105,6 +106,7 @@ public void setup(String[] args, Properties props) throws Exception { folder.open(Folder.READ_ONLY); } catch (Exception e) { + e.printStackTrace(); logErr("Exception : " + e.getMessage()); logErr("Setup Failed!"); TestUtil.printStackTrace(e); @@ -179,7 +181,7 @@ public void test1() throws Exception { */ // derived from javamail suite properties_Test - public void properties_Test() throws Exception { + public void propertiesTest() throws Exception { TestUtil.logMsg("\nTesting class MimeMultipart: effect of " + "system property settings\n"); diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/build.xml b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/build.xml deleted file mode 100644 index 53fc35b3c3..0000000000 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/build.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressAppClient_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressAppClient_Test.java new file mode 100644 index 0000000000..fdf2789699 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressAppClient_Test.java @@ -0,0 +1,204 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)internetaddress_Test.java 1.16 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.internetaddress; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") + +public class internetaddressAppClient_Test extends internetaddress_Test + implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "internetaddress_appclient_vehicle_client.jar"); + archive.addPackages(false, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(internetaddressAppClient_Test.class, internetaddress_Test.class); + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // The appclient-client descriptor + URL appClientUrl = internetaddressAppClient_Test.class.getResource("/com/sun/ts/tests/javamail/ee/internetaddress/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = internetaddressAppClient_Test.class.getResource("/com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + // Call the archive processor + archiveProcessor.processClientArchive(archive, internetaddressAppClient_Test.class, sunAppClientUrl); + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "internetaddress_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + // Harness requirements + + /* Run test in standalone mode */ + public static void main(String[] args) { + internetaddressAppClient_Test theTests = new internetaddressAppClient_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testUtilMethods1 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:234; JavaEE:SPEC:233; + * + * @test_Strategy: verify InternetAddress util method toString + */ + // derived from javamail suite utilmethods_Test class + @Test + @TargetVehicle("appclient") + public void testUtilMethods1() throws Exception { + super.testUtilMethods1(); + } // end of testUtilMethods1() + // + + /* + * @testName: testUtilMethods2 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:234; JavaEE:SPEC:233; + * + * @test_Strategy: verify InternetAddress util method equals + */ + // derived from javamail suite utilmethods_Test class + @Test + @TargetVehicle("appclient") + public void testUtilMethods2() throws Exception { + super.testUtilMethods2(); + } // end of testUtilMethods2() + // + + /* + * @testName: testgetAddress + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify InternetAddress method getAddress + */ + // derived from javamail suite getAddress_Test class + @Test + @TargetVehicle("appclient") + public void testgetAddress() throws Exception { + super.testgetAddress(); + } // end of testgetAddress() + + /* + * @testName: testgetPersonal + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify InternetAddress method getPersonal + */ + // derived from javamail suite getPersonal_Test.java class + @Test + @TargetVehicle("appclient") + public void testgetPersonal() throws Exception { + super.testgetPersonal(); + } // end of testgetPersonal() + + /* + * @testName: contentType_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * derived from javamail suite setContent_Test + */ + @Test + @TargetVehicle("appclient") + public void contentTypeTest() throws Exception { + super.contentTypeTest(); + } + + /* + * @testName: next_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: This tests tests the next() APIs. It does + * by passing various valid input values and then checking the type of the + * returned object.

+ * + * Return the next token from the parse stream.

api2test: public + * HeaderTokenizer.Token next()

+ * + * + * derived from javamail suite next_Test + */ + @Test + @TargetVehicle("appclient") + public void nextTest() throws Exception { + super.nextTest(); + } + + /* + * @testName: combineSegments_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: * This class tests the + * ParameterList.combineSegments()strong> API.

+ * + * + * how2test: Create a ParameterList with a parameter split into several + * segments and then call combineSegments() and verify that the parameter is + * returned as a single correct value. If is so then this testcase passes, + * otherwise it fails.

+ * + * derived from javamail suite combineSegments_Test + */ + @Test + @TargetVehicle("appclient") + public void combineSegmentsTest() throws Exception { + super.combineSegmentsTest(); + } +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressEJB_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressEJB_Test.java new file mode 100644 index 0000000000..9ff3644989 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressEJB_Test.java @@ -0,0 +1,227 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)internetaddress_Test.java 1.16 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.internetaddress; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") + +public class internetaddressEJB_Test extends internetaddress_Test + implements Serializable { + + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", order = 2) + public static EnterpriseArchive createDeploymentEjb(@ArquillianResource TestArchiveProcessor archiveProcessor) + throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "internetaddress_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(internetaddressEJB_Test.class, internetaddress_Test.class); + + URL resURL = internetaddressEJB_Test.class + .getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = internetaddressEJB_Test.class + .getResource("/com/sun/ts/tests/javamail/ee/internetaddress/internetaddress_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "internetaddress_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(internetaddressEJB_Test.class, internetaddress_Test.class); + + + resURL = internetaddressEJB_Test.class.getResource( + "/com/sun/ts/tests/javamail/ee/internetaddress/internetaddress_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = internetaddressEJB_Test.class.getResource("/com/sun/ts/tests/javamail/ee/internetaddress/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "internetaddress_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + // Harness requirements + + /* Run test in standalone mode */ + public static void main(String[] args) { + internetaddressEJB_Test theTests = new internetaddressEJB_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testUtilMethods1 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:234; JavaEE:SPEC:233; + * + * @test_Strategy: verify InternetAddress util method toString + */ + // derived from javamail suite utilmethods_Test class + @Test + @TargetVehicle("ejb") + public void testUtilMethods1() throws Exception { + super.testUtilMethods1(); + } // end of testUtilMethods1() + // + + /* + * @testName: testUtilMethods2 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:234; JavaEE:SPEC:233; + * + * @test_Strategy: verify InternetAddress util method equals + */ + // derived from javamail suite utilmethods_Test class + @Test + @TargetVehicle("ejb") + public void testUtilMethods2() throws Exception { + super.testUtilMethods2(); + } // end of testUtilMethods2() + // + + /* + * @testName: testgetAddress + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify InternetAddress method getAddress + */ + // derived from javamail suite getAddress_Test class + @Test + @TargetVehicle("ejb") + public void testgetAddress() throws Exception { + super.testgetAddress(); + } // end of testgetAddress() + + /* + * @testName: testgetPersonal + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify InternetAddress method getPersonal + */ + // derived from javamail suite getPersonal_Test.java class + @Test + @TargetVehicle("ejb") + public void testgetPersonal() throws Exception { + super.testgetPersonal(); + } // end of testgetPersonal() + + /* + * @testName: contentType_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * derived from javamail suite setContent_Test + */ + @Test + @TargetVehicle("ejb") + public void contentTypeTest() throws Exception { + super.contentTypeTest(); + } + + /* + * @testName: next_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: This tests tests the next() APIs. It does + * by passing various valid input values and then checking the type of the + * returned object.

+ * + * Return the next token from the parse stream.

api2test: public + * HeaderTokenizer.Token next()

+ * + * + * derived from javamail suite next_Test + */ + @Test + @TargetVehicle("ejb") + public void nextTest() throws Exception { + super.nextTest(); + } + + /* + * @testName: combineSegments_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: * This class tests the + * ParameterList.combineSegments()strong> API.

+ * + * + * how2test: Create a ParameterList with a parameter split into several + * segments and then call combineSegments() and verify that the parameter is + * returned as a single correct value. If is so then this testcase passes, + * otherwise it fails.

+ * + * derived from javamail suite combineSegments_Test + */ + @Test + @TargetVehicle("ejb") + public void combineSegmentsTest() throws Exception { + super.combineSegmentsTest(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressJSP_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressJSP_Test.java new file mode 100644 index 0000000000..772e3f71ec --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressJSP_Test.java @@ -0,0 +1,207 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)internetaddress_Test.java 1.16 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.internetaddress; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.javamail.ee.getMessageContent.getMessageContentJSP_Test; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class internetaddressJSP_Test extends internetaddress_Test + implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "internetaddress_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(internetaddressJSP_Test.class, internetaddress_Test.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = getMessageContentJSP_Test.class.getResource("jsp_vehicle_client.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = getMessageContentJSP_Test.class.getResource("internetaddress_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, internetaddressJSP_Test.class, sunJSPUrl); + + return archive; + }; + + + // Harness requirements + + /* Run test in standalone mode */ + public static void main(String[] args) { + internetaddressJSP_Test theTests = new internetaddressJSP_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testUtilMethods1 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:234; JavaEE:SPEC:233; + * + * @test_Strategy: verify InternetAddress util method toString + */ + // derived from javamail suite utilmethods_Test class + @Test + @TargetVehicle("jsp") + public void testUtilMethods1() throws Exception { + super.testUtilMethods1(); + } // end of testUtilMethods1() + // + + /* + * @testName: testUtilMethods2 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:234; JavaEE:SPEC:233; + * + * @test_Strategy: verify InternetAddress util method equals + */ + // derived from javamail suite utilmethods_Test class + @Test + @TargetVehicle("jsp") + public void testUtilMethods2() throws Exception { + super.testUtilMethods2(); + } // end of testUtilMethods2() + // + + /* + * @testName: testgetAddress + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify InternetAddress method getAddress + */ + // derived from javamail suite getAddress_Test class + @Test + @TargetVehicle("jsp") + public void testgetAddress() throws Exception { + super.testgetAddress(); + } // end of testgetAddress() + + /* + * @testName: testgetPersonal + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify InternetAddress method getPersonal + */ + // derived from javamail suite getPersonal_Test.java class + @Test + @TargetVehicle("jsp") + public void testgetPersonal() throws Exception { + super.testgetPersonal(); + } // end of testgetPersonal() + + /* + * @testName: contentType_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * derived from javamail suite setContent_Test + */ + @Test + @TargetVehicle("jsp") + public void contentTypeTest() throws Exception { + super.contentTypeTest(); + } + + /* + * @testName: next_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: This tests tests the next() APIs. It does + * by passing various valid input values and then checking the type of the + * returned object.

+ * + * Return the next token from the parse stream.

api2test: public + * HeaderTokenizer.Token next()

+ * + * + * derived from javamail suite next_Test + */ + @Test + @TargetVehicle("jsp") + public void nextTest() throws Exception { + super.nextTest(); + } + + /* + * @testName: combineSegments_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: * This class tests the + * ParameterList.combineSegments()strong> API.

+ * + * + * how2test: Create a ParameterList with a parameter split into several + * segments and then call combineSegments() and verify that the parameter is + * returned as a single correct value. If is so then this testcase passes, + * otherwise it fails.

+ * + * derived from javamail suite combineSegments_Test + */ + @Test + @TargetVehicle("jsp") + public void combineSegmentsTest() throws Exception { + super.combineSegmentsTest(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressServlet_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressServlet_Test.java new file mode 100644 index 0000000000..e0c69d9297 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddressServlet_Test.java @@ -0,0 +1,199 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)internetaddress_Test.java 1.16 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.internetaddress; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.javamail.ee.getMessageContent.getMessageContentJSP_Test; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class internetaddressServlet_Test extends internetaddress_Test + implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "internetaddress_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(internetaddressServlet_Test.class, internetaddress_Test.class); + + // The Servlet descriptor + URL jspUrl = getMessageContentJSP_Test.class.getResource("servlet_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun Servlet descriptor + URL sunJSPUrl = getMessageContentJSP_Test.class.getResource("internetaddress_servlet_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, internetaddressJSP_Test.class, sunJSPUrl); + + return archive; + }; + + + // Harness requirements + + /* Run test in standalone mode */ + public static void main(String[] args) { + internetaddressServlet_Test theTests = new internetaddressServlet_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testUtilMethods1 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:234; JavaEE:SPEC:233; + * + * @test_Strategy: verify InternetAddress util method toString + */ + // derived from javamail suite utilmethods_Test class + @Test + @TargetVehicle("servlet") + public void testUtilMethods1() throws Exception { + super.testUtilMethods1(); + } // end of testUtilMethods1() + // + + /* + * @testName: testUtilMethods2 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:234; JavaEE:SPEC:233; + * + * @test_Strategy: verify InternetAddress util method equals + */ + // derived from javamail suite utilmethods_Test class + @Test + @TargetVehicle("servlet") + public void testUtilMethods2() throws Exception { + super.testUtilMethods2(); + } // end of testUtilMethods2() + // + + /* + * @testName: testgetAddress + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify InternetAddress method getAddress + */ + // derived from javamail suite getAddress_Test class + @Test + @TargetVehicle("servlet") + public void testgetAddress() throws Exception { + super.testgetAddress(); + } // end of testgetAddress() + + /* + * @testName: testgetPersonal + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: verify InternetAddress method getPersonal + */ + // derived from javamail suite getPersonal_Test.java class + @Test + @TargetVehicle("servlet") + public void testgetPersonal() throws Exception { + super.testgetPersonal(); + } // end of testgetPersonal() + + /* + * @testName: contentType_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * derived from javamail suite setContent_Test + */ + @Test + @TargetVehicle("servlet") + public void contentTypeTest() throws Exception { + super.contentTypeTest(); + } + + /* + * @testName: next_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: This tests tests the next() APIs. It does + * by passing various valid input values and then checking the type of the + * returned object.

+ * + * Return the next token from the parse stream.

api2test: public + * HeaderTokenizer.Token next()

+ * + * + * derived from javamail suite next_Test + */ + @Test + @TargetVehicle("servlet") + public void nextTest() throws Exception { + super.nextTest(); + } + + /* + * @testName: combineSegments_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: * This class tests the + * ParameterList.combineSegments()strong> API.

+ * + * + * how2test: Create a ParameterList with a parameter split into several + * segments and then call combineSegments() and verify that the parameter is + * returned as a single correct value. If is so then this testcase passes, + * otherwise it fails.

+ * + * derived from javamail suite combineSegments_Test + */ + @Test + @TargetVehicle("servlet") + public void combineSegmentsTest() throws Exception { + super.combineSegmentsTest(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddress_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddress_Test.java index 776c1c3b28..87aac6288d 100644 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddress_Test.java +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/internetaddress/internetaddress_Test.java @@ -22,8 +22,12 @@ import java.io.Serializable; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.javamail.ee.common.MailTestUtil; @@ -33,6 +37,10 @@ import jakarta.mail.internet.InternetAddress; import jakarta.mail.internet.ParameterList; +@ExtendWith(ArquillianExtension.class) +@Tag("mail") +@Tag("platform") + public class internetaddress_Test extends ServiceEETest implements Serializable { @@ -66,16 +74,7 @@ public class internetaddress_Test extends ServiceEETest public String value = "ggere, /tmp/mail.out, +mailbox, ~user/mailbox, ~/mailbox, /PN=x400.address/PRMD=ibmmail/ADMD=ibmx400/C=us/@mhs-mci.ebay, C'est bien moche , Mad Genius , two@weeks (It Will Take), /tmp/mail.out, laborious (But Bug Free), cannot@waste (My, Intellectual, Cycles), users:get,what,they,deserve;, it (takes, no (time, at) all), if@you (could, see (almost, as, (badly, you) would) agree), famous , it@is (brilliant (genius, and) superb), confused (about, being, french)"; - // Harness requirements - - /* Run test in standalone mode */ - public static void main(String[] args) { - internetaddress_Test theTests = new internetaddress_Test(); - Status s = theTests.run(args, System.out, System.err); - s.exit(); - } - - /* Test setup: */ + /* Test setup: */ /* * @class.setup_props: javamail.protocol; javamail.server; javamail.username; * javamail.password ;mailuser1; smtp.port; imap.port; @@ -91,6 +90,8 @@ public void setup(String[] args, Properties props) throws Exception { String host = TestUtil.getProperty("javamail.server"); String user = TestUtil.getProperty("javamail.username"); String password = TestUtil.getProperty("javamail.password"); + String mailbox = TestUtil.getProperty("javamail.mailbox"); + String rootPath = TestUtil.getProperty("javamail.root.path"); String smtpPortStr = TestUtil.getProperty("smtp.port"); int smtpPort = Integer.parseInt(smtpPortStr); @@ -259,15 +260,15 @@ public void testgetPersonal() throws Exception { } // end of testgetPersonal() /* - * @testName: contentType_Test + * @testName: contentTypeTest * * @assertion_ids: JavaEE:SPEC:235; * * @test_Strategy: * - * derived from javamail suite setContent_Test + * derived from javamail suite setContentTest */ - public void contentType_Test() throws Exception { + public void contentTypeTest() throws Exception { TestUtil.logMsg( "\nTesting class ContentType: ContentType(void|String|ParameterList)\n"); @@ -344,7 +345,7 @@ public void contentType_Test() throws Exception { } /* - * @testName: next_Test + * @testName: nextTest * * @assertion_ids: JavaEE:SPEC:235; * @@ -356,9 +357,9 @@ public void contentType_Test() throws Exception { * HeaderTokenizer.Token next()

* * - * derived from javamail suite next_Test + * derived from javamail suite nextTest */ - public void next_Test() throws Exception { + public void nextTest() throws Exception { TestUtil.logMsg("\nTesting class HeaderTokenizer: next()\n"); @@ -492,7 +493,7 @@ public void next_Test() throws Exception { * * derived from javamail suite combineSegments_Test */ - public void combineSegments_Test() throws Exception { + public void combineSegmentsTest() throws Exception { String pattern = ";i18set=ISO-8859-1;charset=us-acii;abc=xyz"; diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/build.xml b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/build.xml deleted file mode 100644 index 1fd62e430a..0000000000 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/build.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageAppClient_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageAppClient_Test.java new file mode 100644 index 0000000000..1a667dc703 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageAppClient_Test.java @@ -0,0 +1,225 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)mimemessage_Test.java 1.17 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.mimemessage; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") + +public class mimemessageAppClient_Test extends mimemessage_Test implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "mimemessage_appclient_vehicle_client.jar"); + archive.addPackages(false, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(mimemessageAppClient_Test.class, mimemessage_Test.class); + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + // The appclient-client descriptor + URL appClientUrl = mimemessageAppClient_Test.class.getResource("/com/sun/ts/tests/javamail/ee/mimemessage/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = mimemessageAppClient_Test.class.getResource("/com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + // Call the archive processor + archiveProcessor.processClientArchive(archive, mimemessageAppClient_Test.class, sunAppClientUrl); + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, + "mimemessage_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + // Harness requirements + + /* Run test in standalone mode */ + public static void main(String[] args) { + mimemessageAppClient_Test theTests = new mimemessageAppClient_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetContent1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: Call setContent with required arguments for multipart then + * call getContent() to verify. + */ + // derived from javamail suite setContent_Test class + @Test + @TargetVehicle("appclient") + public void testSetContent1() throws Exception { + super.testSetContent1(); + } // end of testSetContent1() + + /* + * @testName: testSetContent2 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Call setContent with required arguments for text/plain then + * call getContentType() to verify. + */ + // derived from javamail suite sendMessage_Test class + @Test + @TargetVehicle("appclient") + public void testSetContent2() throws Exception { + super.testSetContent2(); + } // end of testSetContent2() + + /* + * @testName: getSession_Test + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: + * + * This class tests the getSession() API. It does this by + * invoking the test api and then checking that the returned object is the + * same object used to create the message.

+ * + * Get the session of this message.

api2test: public String getSession() + *

+ * + * how2test: Call this API on given message object, verify that it returns the + * Session object used to create this message. If this operation is + * successfull then this testcase passes, otherwise it fails.

+ * + * Returns the Session object used when the message was created. Returns null + * if no Session is available.

+ */ + // derived from javamail suite getSession_Test class + @Test + @TargetVehicle("appclient") + public void getSession() throws Exception { + super.getSession(); + } + + /** + + */ + /* + * @testName: createMimeMessage_Test + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: This test tests the createMessage() API. + * It does by passing various valid input values and then checking the type of + * the returned object.

+ * + * Create a subclassed MimeMessage object and in reply(boolean) return + * instance of this new subclassed object.

api2test: protected void + * createMimeMessage()

+ * + * how2test: Call API with various arguments, then call getRecipients() api, + * verify that user specified recipient address types have been added. If so + * then this testcase passes, otherwise it fails.

+ */ + // derived from javamail suite createMimeMessage_Test + @Test + @TargetVehicle("appclient") + public void createMimeMessage() throws Exception { + super.createMimeMessage(); + } + + /* + * @testName: reply_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * This test tests the reply() APIs.

+ * + * Create a reply MimeMessage object and check that it has the appropriate + * headers.

api2test: public Message reply()

+ * + * how2test: Call API with various arguments, then verify that the reply + * message has the required recipients and subject. If so then this testcase + * passes, otherwise it fails.

+ * + * derived from javamail suite reply_Test + */ + @Test + @TargetVehicle("appclient") + public void reply() throws Exception { + super.reply(); + } + + /* + * @testName: setFrom_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * This test tests the setFrom(String) API. It does this by + * passing various valid input values and then checking the type of the + * returned object.

+ * + * Set the "From" attribute in this Message.

api2test: public void + * setFrom(String)

+ * + * how2test: Call this API with various addresses, then call call getFrom() + * api, if the setFrom values and getFrom values are the same, then this + * testcase passes, otherwise it fails.

+ * + * derived from javamail suite setContent_Test + */ + @Test + @TargetVehicle("appclient") + public void setFrom() throws Exception { + super.setFrom(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageEJB_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageEJB_Test.java new file mode 100644 index 0000000000..3c140d66bc --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageEJB_Test.java @@ -0,0 +1,242 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)mimemessage_Test.java 1.17 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.mimemessage; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") + +public class mimemessageEJB_Test extends mimemessage_Test implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentEJB(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "mimemessage_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(mimemessageEJB_Test.class, mimemessage_Test.class); + + URL resURL = mimemessageEJB_Test.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = mimemessageEJB_Test.class + .getResource("/com/sun/ts/tests/javamail/ee/mimemessage/mimemessage_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "mimemessage_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(mimemessageEJB_Test.class, mimemessage_Test.class); + + resURL = mimemessageEJB_Test.class.getResource( + "/com/sun/ts/tests/javamail/ee/mimemessage/mimemessage_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = mimemessageEJB_Test.class.getResource("/com/sun/ts/tests/javamail/ee/mimemessage/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "mimemessage_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + // Harness requirements + + /* Run test in standalone mode */ + public static void main(String[] args) { + mimemessageEJB_Test theTests = new mimemessageEJB_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetContent1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: Call setContent with required arguments for multipart then + * call getContent() to verify. + */ + // derived from javamail suite setContent_Test class + @Test + @TargetVehicle("ejb") + public void testSetContent1() throws Exception { + super.testSetContent1(); + } // end of testSetContent1() + + /* + * @testName: testSetContent2 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Call setContent with required arguments for text/plain then + * call getContentType() to verify. + */ + // derived from javamail suite sendMessage_Test class + @Test + @TargetVehicle("ejb") + public void testSetContent2() throws Exception { + super.testSetContent2(); + } // end of testSetContent2() + + /* + * @testName: getSession_Test + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: + * + * This class tests the getSession() API. It does this by + * invoking the test api and then checking that the returned object is the + * same object used to create the message.

+ * + * Get the session of this message.

api2test: public String getSession() + *

+ * + * how2test: Call this API on given message object, verify that it returns the + * Session object used to create this message. If this operation is + * successfull then this testcase passes, otherwise it fails.

+ * + * Returns the Session object used when the message was created. Returns null + * if no Session is available.

+ */ + // derived from javamail suite getSession_Test class + @Test + @TargetVehicle("ejb") + public void getSession() throws Exception { + super.getSession(); + } + + /** + + */ + /* + * @testName: createMimeMessage_Test + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: This test tests the createMessage() API. + * It does by passing various valid input values and then checking the type of + * the returned object.

+ * + * Create a subclassed MimeMessage object and in reply(boolean) return + * instance of this new subclassed object.

api2test: protected void + * createMimeMessage()

+ * + * how2test: Call API with various arguments, then call getRecipients() api, + * verify that user specified recipient address types have been added. If so + * then this testcase passes, otherwise it fails.

+ */ + // derived from javamail suite createMimeMessage_Test + @Test + @TargetVehicle("ejb") + public void createMimeMessage() throws Exception { + super.createMimeMessage(); + } + + /* + * @testName: reply_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * This test tests the reply() APIs.

+ * + * Create a reply MimeMessage object and check that it has the appropriate + * headers.

api2test: public Message reply()

+ * + * how2test: Call API with various arguments, then verify that the reply + * message has the required recipients and subject. If so then this testcase + * passes, otherwise it fails.

+ * + * derived from javamail suite reply_Test + */ + @Test + @TargetVehicle("ejb") + public void reply() throws Exception { + super.reply(); + } + + /* + * @testName: setFrom_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * This test tests the setFrom(String) API. It does this by + * passing various valid input values and then checking the type of the + * returned object.

+ * + * Set the "From" attribute in this Message.

api2test: public void + * setFrom(String)

+ * + * how2test: Call this API with various addresses, then call call getFrom() + * api, if the setFrom values and getFrom values are the same, then this + * testcase passes, otherwise it fails.

+ * + * derived from javamail suite setContent_Test + */ + @Test + @TargetVehicle("ejb") + public void setFrom() throws Exception { + super.setFrom(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageJSP_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageJSP_Test.java new file mode 100644 index 0000000000..e9c17f7d31 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageJSP_Test.java @@ -0,0 +1,224 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)mimemessage_Test.java 1.17 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.mimemessage; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class mimemessageJSP_Test extends mimemessage_Test implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "mimemessage_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(mimemessageJSP_Test.class, mimemessage_Test.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = mimemessageJSP_Test.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = mimemessageJSP_Test.class.getResource("mimemessage_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, mimemessageJSP_Test.class, sunJSPUrl); + + return archive; + }; + + + // Harness requirements + + /* Run test in standalone mode */ + public static void main(String[] args) { + mimemessageJSP_Test theTests = new mimemessageJSP_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetContent1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: Call setContent with required arguments for multipart then + * call getContent() to verify. + */ + // derived from javamail suite setContent_Test class + @Test + @TargetVehicle("jsp") + public void testSetContent1() throws Exception { + super.testSetContent1(); + } // end of testSetContent1() + + /* + * @testName: testSetContent2 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Call setContent with required arguments for text/plain then + * call getContentType() to verify. + */ + // derived from javamail suite sendMessage_Test class + @Test + @TargetVehicle("jsp") + public void testSetContent2() throws Exception { + super.testSetContent2(); + } // end of testSetContent2() + + /* + * @testName: getSession + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: + * + * This class tests the getSession() API. It does this by + * invoking the test api and then checking that the returned object is the + * same object used to create the message.

+ * + * Get the session of this message.

api2test: public String getSession() + *

+ * + * how2test: Call this API on given message object, verify that it returns the + * Session object used to create this message. If this operation is + * successfull then this testcase passes, otherwise it fails.

+ * + * Returns the Session object used when the message was created. Returns null + * if no Session is available.

+ */ + // derived from javamail suite getSession class + @Test + @TargetVehicle("jsp") + public void getSession() throws Exception { + super.getSession(); + } + + /** + + */ + /* + * @testName: createMimeMessage_Test + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: This test tests the createMessage() API. + * It does by passing various valid input values and then checking the type of + * the returned object.

+ * + * Create a subclassed MimeMessage object and in reply(boolean) return + * instance of this new subclassed object.

api2test: protected void + * createMimeMessage()

+ * + * how2test: Call API with various arguments, then call getRecipients() api, + * verify that user specified recipient address types have been added. If so + * then this testcase passes, otherwise it fails.

+ */ + // derived from javamail suite createMimeMessage_Test + @Test + @TargetVehicle("jsp") + public void createMimeMessage() throws Exception { + super.createMimeMessage(); + } + + /* + * @testName: reply_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * This test tests the reply() APIs.

+ * + * Create a reply MimeMessage object and check that it has the appropriate + * headers.

api2test: public Message reply()

+ * + * how2test: Call API with various arguments, then verify that the reply + * message has the required recipients and subject. If so then this testcase + * passes, otherwise it fails.

+ * + * derived from javamail suite reply_Test + */ + @Test + @TargetVehicle("jsp") + public void reply() throws Exception { + super.reply(); + } + + /* + * @testName: setFrom_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * This test tests the setFrom(String) API. It does this by + * passing various valid input values and then checking the type of the + * returned object.

+ * + * Set the "From" attribute in this Message.

api2test: public void + * setFrom(String)

+ * + * how2test: Call this API with various addresses, then call call getFrom() + * api, if the setFrom values and getFrom values are the same, then this + * testcase passes, otherwise it fails.

+ * + * derived from javamail suite setContent_Test + */ + @Test + @TargetVehicle("jsp") + public void setFrom() throws Exception { + super.setFrom(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageServlet_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageServlet_Test.java new file mode 100644 index 0000000000..61b489b8c6 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessageServlet_Test.java @@ -0,0 +1,216 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)mimemessage_Test.java 1.17 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.mimemessage; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class mimemessageServlet_Test extends mimemessage_Test implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "mimemessage_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(mimemessageServlet_Test.class, mimemessage_Test.class); + + // The servlet descriptor + URL jspUrl = mimemessageServlet_Test.class.getResource("servlet_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun servlet descriptor + URL sunJSPUrl = mimemessageServlet_Test.class.getResource("mimemessage_servlet_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, mimemessageServlet_Test.class, sunJSPUrl); + + return archive; + }; + + + // Harness requirements + + /* Run test in standalone mode */ + public static void main(String[] args) { + mimemessageServlet_Test theTests = new mimemessageServlet_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetContent1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: Call setContent with required arguments for multipart then + * call getContent() to verify. + */ + // derived from javamail suite setContent_Test class + @Test + @TargetVehicle("servlet") + public void testSetContent1() throws Exception { + super.testSetContent1(); + } // end of testSetContent1() + + /* + * @testName: testSetContent2 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Call setContent with required arguments for text/plain then + * call getContentType() to verify. + */ + // derived from javamail suite sendMessage_Test class + @Test + @TargetVehicle("servlet") + public void testSetContent2() throws Exception { + super.testSetContent2(); + } // end of testSetContent2() + + /* + * @testName: getSession + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: + * + * This class tests the getSession() API. It does this by + * invoking the test api and then checking that the returned object is the + * same object used to create the message.

+ * + * Get the session of this message.

api2test: public String getSession() + *

+ * + * how2test: Call this API on given message object, verify that it returns the + * Session object used to create this message. If this operation is + * successfull then this testcase passes, otherwise it fails.

+ * + * Returns the Session object used when the message was created. Returns null + * if no Session is available.

+ */ + // derived from javamail suite getSession class + @Test + @TargetVehicle("servlet") + public void getSession() throws Exception { + super.getSession(); + } + + /** + + */ + /* + * @testName: createMimeMessage + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: This test tests the createMessage() API. + * It does by passing various valid input values and then checking the type of + * the returned object.

+ * + * Create a subclassed MimeMessage object and in reply(boolean) return + * instance of this new subclassed object.

api2test: protected void + * createMimeMessage()

+ * + * how2test: Call API with various arguments, then call getRecipients() api, + * verify that user specified recipient address types have been added. If so + * then this testcase passes, otherwise it fails.

+ */ + // derived from javamail suite createMimeMessage + @Test + @TargetVehicle("servlet") + public void createMimeMessage() throws Exception { + super.createMimeMessage(); + } + + /* + * @testName: reply_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * This test tests the reply() APIs.

+ * + * Create a reply MimeMessage object and check that it has the appropriate + * headers.

api2test: public Message reply()

+ * + * how2test: Call API with various arguments, then verify that the reply + * message has the required recipients and subject. If so then this testcase + * passes, otherwise it fails.

+ * + * derived from javamail suite reply_Test + */ + @Test + @TargetVehicle("servlet") + public void reply() throws Exception { + super.reply(); + } + + /* + * @testName: setFrom_Test + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * This test tests the setFrom(String) API. It does this by + * passing various valid input values and then checking the type of the + * returned object.

+ * + * Set the "From" attribute in this Message.

api2test: public void + * setFrom(String)

+ * + * how2test: Call this API with various addresses, then call call getFrom() + * api, if the setFrom values and getFrom values are the same, then this + * testcase passes, otherwise it fails.

+ * + * derived from javamail suite setContent_Test + */ + @Test + @TargetVehicle("servlet") + public void setFrom() throws Exception { + super.setFrom(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessage_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessage_Test.java index 459ffb90d6..ac43c3b216 100644 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessage_Test.java +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/mimemessage/mimemessage_Test.java @@ -23,8 +23,12 @@ import java.util.Date; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.javamail.ee.common.MailTestUtil; @@ -40,6 +44,10 @@ import jakarta.mail.internet.MimeMessage; import jakarta.mail.internet.MimeMultipart; +@ExtendWith(ArquillianExtension.class) +@Tag("mail") +@Tag("platform") + public class mimemessage_Test extends ServiceEETest implements Serializable { private String mailTo = null; @@ -84,19 +92,21 @@ public static void main(String[] args) { public void setup(String[] args, Properties props) throws Exception { try { - String protocol = TestUtil.getProperty("javamail.protocol"); - String host = TestUtil.getProperty("javamail.server"); - user = TestUtil.getProperty("javamail.username"); - String password = TestUtil.getProperty("javamail.password"); - String mailbox = TestUtil.getProperty("javamail.mailbox"); + mailTo = props.getProperty("mailuser1"); + String protocol = TestUtil.getProperty("javamail.protocol"); + String host = TestUtil.getProperty("javamail.server"); + user = TestUtil.getProperty("javamail.username"); + String password = TestUtil.getProperty("javamail.password"); + String mailbox = TestUtil.getProperty("javamail.mailbox"); + String rootPath = TestUtil.getProperty("javamail.root.path"); - String smtpPortStr = TestUtil.getProperty("smtp.port"); - int smtpPort = Integer.parseInt(smtpPortStr); - TestUtil.logTrace("SMTP Port = " + smtpPort); + String smtpPortStr = TestUtil.getProperty("smtp.port"); + int smtpPort = Integer.parseInt(smtpPortStr); + TestUtil.logTrace("SMTP Port = " + smtpPort); - String imapPortStr = TestUtil.getProperty("imap.port"); - int imapPort = Integer.parseInt(imapPortStr); - TestUtil.logTrace("IMAP Port = " + imapPort); + String imapPortStr = TestUtil.getProperty("imap.port"); + int imapPort = Integer.parseInt(imapPortStr); + TestUtil.logTrace("IMAP Port = " + imapPort); MailTestUtil mailTestUtil = new MailTestUtil(); @@ -248,9 +258,9 @@ public void testSetContent2() throws Exception { * Returns the Session object used when the message was created. Returns null * if no Session is available.

*/ - // derived from javamail suite getSession_Test class + // derived from javamail suite getSession class - public void getSession_Test() throws Exception { + public void getSession() throws Exception { TestUtil.logMsg("\nTesting class Message: getSession()\n"); @@ -299,7 +309,7 @@ public void getSession_Test() throws Exception { */ /* - * @testName: createMimeMessage_Test + * @testName: createMimeMessage * * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; * @@ -315,8 +325,8 @@ public void getSession_Test() throws Exception { * verify that user specified recipient address types have been added. If so * then this testcase passes, otherwise it fails.

*/ - // derived from javamail suite createMimeMessage_Test - public void createMimeMessage_Test() throws Exception { + // derived from javamail suite createMimeMessage + public void createMimeMessage() throws Exception { try { // Create a custom MimeMessage objectcreateMimeMessage_Test @@ -367,7 +377,7 @@ public void createMimeMessage_Test() throws Exception { * * derived from javamail suite reply_Test */ - public void reply_Test() throws Exception { + public void reply() throws Exception { try { @@ -466,7 +476,7 @@ public void reply_Test() throws Exception { * * derived from javamail suite setContent_Test */ - public void setFrom_Test() throws Exception { + public void setFrom() throws Exception { TestUtil.logMsg("\nTesting class MimeMessage: setFrom(String)\n"); diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/build.xml b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/build.xml deleted file mode 100644 index 6f2575892b..0000000000 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/build.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartAppClient_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartAppClient_Test.java new file mode 100644 index 0000000000..34bd5b1b9c --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartAppClient_Test.java @@ -0,0 +1,120 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)multipart_Test.java 1.16 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.multipart; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +@Tag("tck-appclient") + +public class multipartAppClient_Test extends multipart_Test implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "multipart_appclient_vehicle_client.jar"); + archive.addPackages(false, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(multipartAppClient_Test.class, multipart_Test.class); + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + // The appclient-client descriptor + URL appClientUrl = multipartAppClient_Test.class.getResource("/com/sun/ts/tests/javamail/ee/multipart/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = multipartAppClient_Test.class.getResource("/com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + // Call the archive processor + archiveProcessor.processClientArchive(archive, multipartAppClient_Test.class, sunAppClientUrl); + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "multipart_appclient_vehicle.ear"); + ear.addAsModule(archive); + + + return ear; + }; + + + // Harness requirements + + /* Run test in standalone mode */ + public static void main(String[] args) { + multipartAppClient_Test theTests = new multipartAppClient_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testAddBodyPart1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: Call api with part argument, then verify by calling + * getCount. + */ + // derived from javamail suite multipart_Test class + @Test + @TargetVehicle("appclient") + public void testAddBodyPart1() throws Exception { + super.testAddBodyPart1(); + } + + /* + * @testName: testAddBodyPart2 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: Call api with part argument and position, then verify by + * calling getCount. + */ + @Test + @TargetVehicle("appclient") + public void testAddBodyPart2() throws Exception { + super.testAddBodyPart2(); + }// end of testAddBodyPart2 + // + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartEJB_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartEJB_Test.java new file mode 100644 index 0000000000..b8c7581b5e --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartEJB_Test.java @@ -0,0 +1,137 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)multipart_Test.java 1.16 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.multipart; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") + +public class multipartEJB_Test extends multipart_Test implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentEJB(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "multipart_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(multipartEJB_Test.class, multipart_Test.class); + + URL resURL = multipartEJB_Test.class.getResource("com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = multipartEJB_Test.class + .getResource("/com/sun/ts/tests/javamail/ee/multipart/multipart_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "multipart_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(multipartEJB_Test.class, multipart_Test.class); + + resURL = multipartEJB_Test.class.getResource( + "/com/sun/ts/tests/javamail/ee/multipart/multipart_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = multipartEJB_Test.class.getResource("/com/sun/ts/tests/javamail/ee/multipart/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "multipart_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + // Harness requirements + + /* Run test in standalone mode */ + public static void main(String[] args) { + multipartEJB_Test theTests = new multipartEJB_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testAddBodyPart1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: Call api with part argument, then verify by calling + * getCount. + */ + // derived from javamail suite multipart_Test class + @Test + @TargetVehicle("ejb") + public void testAddBodyPart1() throws Exception { + super.testAddBodyPart1(); + } + + /* + * @testName: testAddBodyPart2 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: Call api with part argument and position, then verify by + * calling getCount. + */ + @Test + @TargetVehicle("ejb") + public void testAddBodyPart2() throws Exception { + super.testAddBodyPart2(); + }// end of testAddBodyPart2 + // + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartJSP_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartJSP_Test.java new file mode 100644 index 0000000000..8d5f66d676 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartJSP_Test.java @@ -0,0 +1,120 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)multipart_Test.java 1.16 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.multipart; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class multipartJSP_Test extends multipart_Test implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "multipart_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(multipartJSP_Test.class, multipart_Test.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = multipartJSP_Test.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = multipartJSP_Test.class.getResource("multipart_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, multipartJSP_Test.class, sunJSPUrl); + + + return archive; + }; + + + // Harness requirements + + /* Run test in standalone mode */ + public static void main(String[] args) { + multipartJSP_Test theTests = new multipartJSP_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testAddBodyPart1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: Call api with part argument, then verify by calling + * getCount. + */ + // derived from javamail suite multipart_Test class + @Test + @TargetVehicle("jsp") + public void testAddBodyPart1() throws Exception { + super.testAddBodyPart1(); + } + + /* + * @testName: testAddBodyPart2 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: Call api with part argument and position, then verify by + * calling getCount. + */ + @Test + @TargetVehicle("jsp") + public void testAddBodyPart2() throws Exception { + super.testAddBodyPart2(); + }// end of testAddBodyPart2 + // + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartServlet_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartServlet_Test.java new file mode 100644 index 0000000000..fd76b30acb --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipartServlet_Test.java @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)multipart_Test.java 1.16 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.multipart; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class multipartServlet_Test extends multipart_Test implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "multipart_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(multipartServlet_Test.class, multipart_Test.class); + + // The servlet descriptor + URL jspUrl = multipartServlet_Test.class.getResource("servlet_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun servlet descriptor + URL sunJSPUrl = multipartServlet_Test.class.getResource("multipart_servlet_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, multipartServlet_Test.class, sunJSPUrl); + + return archive; + }; + + + // Harness requirements + + /* Run test in standalone mode */ + public static void main(String[] args) { + multipartServlet_Test theTests = new multipartServlet_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testAddBodyPart1 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: Call api with part argument, then verify by calling + * getCount. + */ + // derived from javamail suite multipart_Test class + @Test + @TargetVehicle("servlet") + public void testAddBodyPart1() throws Exception { + super.testAddBodyPart1(); + } + + /* + * @testName: testAddBodyPart2 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: Call api with part argument and position, then verify by + * calling getCount. + */ + @Test + @TargetVehicle("servlet") + public void testAddBodyPart2() throws Exception { + super.testAddBodyPart2(); + }// end of testAddBodyPart2 + // + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipart_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipart_Test.java index aca1ef7609..5be410f235 100644 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipart_Test.java +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/multipart/multipart_Test.java @@ -23,8 +23,12 @@ import java.util.Date; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.javamail.ee.common.MailTestUtil; @@ -37,6 +41,10 @@ import jakarta.mail.internet.MimeMessage; import jakarta.mail.internet.MimeMultipart; +@ExtendWith(ArquillianExtension.class) +@Tag("mail") +@Tag("platform") + public class multipart_Test extends ServiceEETest implements Serializable { static String msgText1 = "This is a message body.\nHere's line two."; @@ -84,9 +92,12 @@ public void setup(String[] args, Properties props) throws Exception { if (transport_protocol.length() == 0) throw new Exception("Invalid transport_protocol"); + String protocol = TestUtil.getProperty("javamail.protocol"); + host = TestUtil.getProperty("javamail.server"); user = TestUtil.getProperty("javamail.username"); password = TestUtil.getProperty("javamail.password"); - host = TestUtil.getProperty("javamail.server"); + String mailbox = TestUtil.getProperty("javamail.mailbox"); + String rootPath = TestUtil.getProperty("javamail.root.path"); String smtpPortStr = TestUtil.getProperty("smtp.port"); int smtpPort = Integer.parseInt(smtpPortStr); diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/build.xml b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/build.xml deleted file mode 100644 index a87f5061d8..0000000000 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/build.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendAppClient_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendAppClient_Test.java new file mode 100644 index 0000000000..07322c17be --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendAppClient_Test.java @@ -0,0 +1,192 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)send_Test.java 1.17 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.transport; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +@Tag("tck-appclient") + +public class sendAppClient_Test extends send_Test implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "transport_appclient_vehicle_client.jar"); + archive.addPackages(false, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(sendAppClient_Test.class, send_Test.class); + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + // The appclient-client descriptor + URL appClientUrl = sendAppClient_Test.class.getResource("/com/sun/ts/tests/javamail/ee/multipart/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = sendAppClient_Test.class.getResource("/com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + // Call the archive processor + archiveProcessor.processClientArchive(archive, sendAppClient_Test.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "transport_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + sendAppClient_Test theTests = new sendAppClient_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSend + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Send this message. If success return void, else throw + * error. + */ + // derived from javamail suite send_Test class + @Test + @TargetVehicle("appclient") + public void testSend() throws Exception { + super.testSend(); + } + + // + /* + * @testName: testSend2 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Send this message. If success return void, else throw + * error. + */ + // derived from javamail suite send_Test class + @Test + @TargetVehicle("appclient") + public void testSend2() throws Exception { + super.testSend2(); + } + + /* + * @testName: testSend3 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: construct the message - check the type verify that addtype + * returns rfc822 + */ + // derived from javamail suite getType class + @Test + @TargetVehicle("appclient") + public void testSend3() throws Exception { + super.testSend3(); + } + + /* + * @testName: testconnect1 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Send this message. If success return void, else throw + * error. + */ + // derived from javamail suite connect_Test class + @Test + @TargetVehicle("appclient") + public void testconnect1() throws Exception { + super.testconnect1(); + }// end of testconnect1() + + /* + * @testName: testSendMessage + * + * @assertion_ids: JavaEE:SPEC:238; JavaEE:SPEC:235; + * + * @test_Strategy: Call this API for given message objects with address list. + * If this invocation is successful then this testcase passes. + */ + // derived from javamail suite sendMessage_Test class + @Test + @TargetVehicle("appclient") + public void testSendMessage() throws Exception { + super.testSendMessage(); + } // end of testSendMessage() + + /* + * @testName: test4 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * This test tests the send() API. It does this by passing + * various valid input values and then checking the type of the returned + * object.

+ * + * Send this message.

api2test: public void send(msg)

Send this + * message to the specified addresses.

api2test: public void send(Message, + * Address[])

Send this message using the specified username and password. + *

api2test: public void send(Message, String, String)

+ * + * how2test: Call these APIs for given message objects with or without address + * list. If this invocation is successfull then this testcase passes otherwise + * it fails.

+ * + * derived from javamail suite send_Test + */ + @Test + @TargetVehicle("appclient") + public void test4() throws Exception { + super.test4(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendEJB_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendEJB_Test.java new file mode 100644 index 0000000000..cadcb8864c --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendEJB_Test.java @@ -0,0 +1,211 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)send_Test.java 1.17 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.transport; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") + +public class sendEJB_Test extends send_Test implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentEJB(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "send_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(sendEJB_Test.class, send_Test.class); + + URL resURL = sendEJB_Test.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = sendEJB_Test.class + .getResource("/com/sun/ts/tests/javamail/ee/transport/transport_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "send_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(sendEJB_Test.class, send_Test.class); + + resURL = sendEJB_Test.class.getResource( + "/com/sun/ts/tests/javamail/ee/transport/transport_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = sendEJB_Test.class.getResource("/com/sun/ts/tests/javamail/ee/transport/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "send_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + sendEJB_Test theTests = new sendEJB_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSend + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Send this message. If success return void, else throw + * error. + */ + // derived from javamail suite send_Test class + @Test + @TargetVehicle("ejb") + public void testSend() throws Exception { + super.testSend(); + } + + // + /* + * @testName: testSend2 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Send this message. If success return void, else throw + * error. + */ + // derived from javamail suite send_Test class + @Test + @TargetVehicle("ejb") + public void testSend2() throws Exception { + super.testSend2(); + } + + /* + * @testName: testSend3 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: construct the message - check the type verify that addtype + * returns rfc822 + */ + // derived from javamail suite getType class + @Test + @TargetVehicle("ejb") + public void testSend3() throws Exception { + super.testSend3(); + } + + /* + * @testName: testconnect1 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Send this message. If success return void, else throw + * error. + */ + // derived from javamail suite connect_Test class + @Test + @TargetVehicle("ejb") + public void testconnect1() throws Exception { + super.testconnect1(); + }// end of testconnect1() + + /* + * @testName: testSendMessage + * + * @assertion_ids: JavaEE:SPEC:238; JavaEE:SPEC:235; + * + * @test_Strategy: Call this API for given message objects with address list. + * If this invocation is successful then this testcase passes. + */ + // derived from javamail suite sendMessage_Test class + @Test + @TargetVehicle("ejb") + public void testSendMessage() throws Exception { + super.testSendMessage(); + } // end of testSendMessage() + + /* + * @testName: test4 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * This test tests the send() API. It does this by passing + * various valid input values and then checking the type of the returned + * object.

+ * + * Send this message.

api2test: public void send(msg)

Send this + * message to the specified addresses.

api2test: public void send(Message, + * Address[])

Send this message using the specified username and password. + *

api2test: public void send(Message, String, String)

+ * + * how2test: Call these APIs for given message objects with or without address + * list. If this invocation is successfull then this testcase passes otherwise + * it fails.

+ * + * derived from javamail suite send_Test + */ + @Test + @TargetVehicle("ejb") + public void test4() throws Exception { + super.test4(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendJSP_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendJSP_Test.java new file mode 100644 index 0000000000..4dfa819717 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendJSP_Test.java @@ -0,0 +1,193 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)send_Test.java 1.17 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.transport; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class sendJSP_Test extends send_Test implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "send_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(sendJSP_Test.class, send_Test.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = sendJSP_Test.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = sendJSP_Test.class.getResource("transport_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, sendJSP_Test.class, sunJSPUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + sendJSP_Test theTests = new sendJSP_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSend + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Send this message. If success return void, else throw + * error. + */ + // derived from javamail suite send_Test class + @Test + @TargetVehicle("jsp") + public void testSend() throws Exception { + super.testSend(); + } + + // + /* + * @testName: testSend2 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Send this message. If success return void, else throw + * error. + */ + // derived from javamail suite send_Test class + @Test + @TargetVehicle("jsp") + public void testSend2() throws Exception { + super.testSend2(); + } + + /* + * @testName: testSend3 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: construct the message - check the type verify that addtype + * returns rfc822 + */ + // derived from javamail suite getType class + @Test + @TargetVehicle("jsp") + public void testSend3() throws Exception { + super.testSend3(); + } + + /* + * @testName: testconnect1 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Send this message. If success return void, else throw + * error. + */ + // derived from javamail suite connect_Test class + @Test + @TargetVehicle("jsp") + public void testconnect1() throws Exception { + super.testconnect1(); + }// end of testconnect1() + + /* + * @testName: testSendMessage + * + * @assertion_ids: JavaEE:SPEC:238; JavaEE:SPEC:235; + * + * @test_Strategy: Call this API for given message objects with address list. + * If this invocation is successful then this testcase passes. + */ + // derived from javamail suite sendMessage_Test class + @Test + @TargetVehicle("jsp") + public void testSendMessage() throws Exception { + super.testSendMessage(); + } // end of testSendMessage() + + /* + * @testName: test4 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * This test tests the send() API. It does this by passing + * various valid input values and then checking the type of the returned + * object.

+ * + * Send this message.

api2test: public void send(msg)

Send this + * message to the specified addresses.

api2test: public void send(Message, + * Address[])

Send this message using the specified username and password. + *

api2test: public void send(Message, String, String)

+ * + * how2test: Call these APIs for given message objects with or without address + * list. If this invocation is successfull then this testcase passes otherwise + * it fails.

+ * + * derived from javamail suite send_Test + */ + @Test + @TargetVehicle("jsp") + public void test4() throws Exception { + super.test4(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendServlet_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendServlet_Test.java new file mode 100644 index 0000000000..f8265511c9 --- /dev/null +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/sendServlet_Test.java @@ -0,0 +1,185 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)send_Test.java 1.17 03/05/16 + */ +package com.sun.ts.tests.javamail.ee.transport; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class sendServlet_Test extends send_Test implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "send_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.javamail.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(sendServlet_Test.class, send_Test.class); + + // The jsp descriptor + URL servletUrl = sendJSP_Test.class.getResource("servlet_vehicle_web.xml"); + if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunServletUrl = sendJSP_Test.class.getResource("transport_servlet_vehicle_web.war.sun-web.xml"); + if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, sendJSP_Test.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + sendServlet_Test theTests = new sendServlet_Test(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSend + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Send this message. If success return void, else throw + * error. + */ + // derived from javamail suite send_Test class + @Test + @TargetVehicle("servlet") + public void testSend() throws Exception { + super.testSend(); + } + + // + /* + * @testName: testSend2 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Send this message. If success return void, else throw + * error. + */ + // derived from javamail suite send_Test class + @Test + @TargetVehicle("servlet") + public void testSend2() throws Exception { + super.testSend2(); + } + + /* + * @testName: testSend3 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: construct the message - check the type verify that addtype + * returns rfc822 + */ + // derived from javamail suite getType class + @Test + @TargetVehicle("servlet") + public void testSend3() throws Exception { + super.testSend3(); + } + + /* + * @testName: testconnect1 + * + * @assertion_ids: JavaEE:SPEC:235; JavaEE:SPEC:238; + * + * @test_Strategy: Send this message. If success return void, else throw + * error. + */ + // derived from javamail suite connect_Test class + @Test + @TargetVehicle("servlet") + public void testconnect1() throws Exception { + super.testconnect1(); + }// end of testconnect1() + + /* + * @testName: testSendMessage + * + * @assertion_ids: JavaEE:SPEC:238; JavaEE:SPEC:235; + * + * @test_Strategy: Call this API for given message objects with address list. + * If this invocation is successful then this testcase passes. + */ + // derived from javamail suite sendMessage_Test class + @Test + @TargetVehicle("servlet") + public void testSendMessage() throws Exception { + super.testSendMessage(); + } // end of testSendMessage() + + /* + * @testName: test4 + * + * @assertion_ids: JavaEE:SPEC:235; + * + * @test_Strategy: + * + * This test tests the send() API. It does this by passing + * various valid input values and then checking the type of the returned + * object.

+ * + * Send this message.

api2test: public void send(msg)

Send this + * message to the specified addresses.

api2test: public void send(Message, + * Address[])

Send this message using the specified username and password. + *

api2test: public void send(Message, String, String)

+ * + * how2test: Call these APIs for given message objects with or without address + * list. If this invocation is successfull then this testcase passes otherwise + * it fails.

+ * + * derived from javamail suite send_Test + */ + @Test + @TargetVehicle("servlet") + public void test4() throws Exception { + super.test4(); + } + +} diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/send_Test.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/send_Test.java index dbc486a5fb..dc20053a52 100644 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/send_Test.java +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/transport/send_Test.java @@ -23,8 +23,12 @@ import java.util.Date; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.javamail.ee.common.MailTestUtil; @@ -35,6 +39,10 @@ import jakarta.mail.internet.InternetAddress; import jakarta.mail.internet.MimeMessage; +@ExtendWith(ArquillianExtension.class) +@Tag("mail") +@Tag("platform") + public class send_Test extends ServiceEETest implements Serializable { // get this from ts.jte @@ -82,19 +90,20 @@ public static void main(String[] args) { public void setup(String[] args, Properties props) throws Exception { try { - String protocol = TestUtil.getProperty("javamail.protocol"); - String host = TestUtil.getProperty("javamail.server"); - user = TestUtil.getProperty("javamail.username"); - password = TestUtil.getProperty("javamail.password"); - String mailbox = TestUtil.getProperty("javamail.mailbox"); + String protocol = TestUtil.getProperty("javamail.protocol"); + String host = TestUtil.getProperty("javamail.server"); + user = TestUtil.getProperty("javamail.username"); + password = TestUtil.getProperty("javamail.password"); + String mailbox = TestUtil.getProperty("javamail.mailbox"); + String rootPath = TestUtil.getProperty("javamail.root.path"); - String smtpPortStr = TestUtil.getProperty("smtp.port"); - int smtpPort = Integer.parseInt(smtpPortStr); - TestUtil.logTrace("SMTP Port = " + smtpPort); + String smtpPortStr = TestUtil.getProperty("smtp.port"); + int smtpPort = Integer.parseInt(smtpPortStr); + TestUtil.logTrace("SMTP Port = " + smtpPort); - String imapPortStr = TestUtil.getProperty("imap.port"); - int imapPort = Integer.parseInt(imapPortStr); - TestUtil.logTrace("IMAP Port = " + imapPort); + String imapPortStr = TestUtil.getProperty("imap.port"); + int imapPort = 1143; //Integer.parseInt(imapPortStr); + TestUtil.logTrace("IMAP Port = " + imapPort); mailTestUtil = new MailTestUtil(); session = mailTestUtil.createSession(host, smtpPortStr, user, password); diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/util/build.xml b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/util/build.xml deleted file mode 100644 index 1436eb784f..0000000000 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/util/build.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/util/fpopulate.java b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/util/fpopulate.java index 87f8dd8bc1..50f45ee3a8 100644 --- a/javamail/src/main/java/com/sun/ts/tests/javamail/ee/util/fpopulate.java +++ b/javamail/src/main/java/com/sun/ts/tests/javamail/ee/util/fpopulate.java @@ -68,10 +68,8 @@ public static void main(String argv[]) { for (optind = 0; optind < argv.length; optind++) { if (argv[optind].equals("-s")) { srcdir = argv[++optind]; - System.out.println("srcdir = " + srcdir); } else if (argv[optind].equals("-d")) { dstURL = argv[++optind]; - System.out.println("destinationURL = " + dstURL); } else if (argv[optind].equals("-D")) { debug = true; } else if (argv[optind].equals("-f")) { diff --git a/jdbc/pom.xml b/jdbc/pom.xml index 064e72f471..7febe6c76f 100644 --- a/jdbc/pom.xml +++ b/jdbc/pom.xml @@ -32,6 +32,14 @@ JDBC JDBC + + 1.9.1.Final + 11.0.0-SNAPSHOT + 5.9.1 + 17 + 1.0.0-SNAPSHOT + + ${project.groupId} @@ -41,6 +49,74 @@ ${project.groupId} common + + ${project.groupId} + libutil + + + ${project.groupId} + common + + + jakarta.mail + jakarta.mail-api + + + jakarta.activation + jakarta.activation-api + + + org.jboss.shrinkwrap + shrinkwrap-api + 1.2.6 + + + org.jboss.shrinkwrap.resolver + shrinkwrap-resolver-depchain + 3.1.4 + pom + + + org.jboss.arquillian.junit5 + arquillian-junit5-container + ${arquillian.junit} + + + org.jboss.arquillian.junit5 + arquillian-junit5-core + ${arquillian.junit} + + + jakarta.tck.arquillian + arquillian-protocol-appclient + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + arquillian-protocol-javatest + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + tck-porting-lib + ${version.jakarta.tck.arquillian} + + + ${project.groupId}.arquillian + arquillian-protocol-common + ${version.jakarta.tck.arquillian} + + + + + org.junit.jupiter + junit-jupiter + + + org.junit.jupiter + junit-jupiter-engine + + diff --git a/jdbc/src/main/java/com/sun/ts/lib/tests/jdbc/CS_Procs.java b/jdbc/src/main/java/com/sun/ts/lib/tests/jdbc/CS_Procs.java new file mode 100644 index 0000000000..7a73b6fdcf --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/lib/tests/jdbc/CS_Procs.java @@ -0,0 +1,2678 @@ +/* + * Copyright (c) 2007, 2018 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package com.sun.ts.lib.tests.jdbc; + +import java.math.BigDecimal; +import java.sql.Connection; +import java.sql.Date; +import java.sql.DriverManager; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; +import java.sql.Time; +import java.sql.Timestamp; + +/** + * Stored procedures for output parameters. + * + * Note that if a null might occur, the Java class form is used rather than the + * Java built-in form. i.e., Integer instead of int. This is so that the null + * can be transmitted back to the caller. If we know it won't be null, we just + * use the built-in type directly. + * + **/ + +public class CS_Procs { + + /***************** + * Defining methods for CallableStatement OUT parameter + *******************/ + + public static void Numeric_Proc(BigDecimal[] max_param, + BigDecimal[] min_param, BigDecimal[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select max_val, min_val, null_val from numeric_tab"); + + if (rs.next()) { + + max_param[0] = rs.getBigDecimal(1); + min_param[0] = rs.getBigDecimal(2); + null_param[0] = rs.getBigDecimal(3); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Decimal_Proc(BigDecimal[] max_param, + BigDecimal[] min_param, BigDecimal[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select max_val,min_val,null_val from Decimal_Tab"); + + if (rs.next()) { + + max_param[0] = rs.getBigDecimal(1); + min_param[0] = rs.getBigDecimal(2); + null_param[0] = rs.getBigDecimal(3); + } else { + + throw new SQLException("Data not found"); + } + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + + } + + public static void Double_Proc(double[] max_param, double[] min_param, + BigDecimal[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select max_val, min_val, null_val from double_tab"); + + if (rs.next()) { + + max_param[0] = rs.getDouble(1); + min_param[0] = rs.getDouble(2); + null_param[0] = rs.getBigDecimal(3); + if (rs.wasNull()) + null_param[0] = null; + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Float_Proc(double[] max_param, double[] min_param, + BigDecimal[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select max_val, min_val, null_val from float_tab"); + + if (rs.next()) { + + max_param[0] = rs.getDouble(1); + min_param[0] = rs.getDouble(2); + null_param[0] = rs.getBigDecimal(3); + if (rs.wasNull()) + null_param[0] = null; + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + + } + + public static void Real_Proc(float[] max_param, float[] min_param, + BigDecimal[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select max_val,min_val,null_val from Real_Tab"); + + if (rs.next()) { + + max_param[0] = rs.getFloat(1); + min_param[0] = rs.getFloat(2); + null_param[0] = rs.getBigDecimal(3); + if (rs.wasNull()) + null_param[0] = null; + } else { + + throw new SQLException("Data not found"); + } + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Bit_Proc(boolean[] max_param, boolean[] min_param, + BigDecimal[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select max_val, min_val, null_val from bit_tab"); + + if (rs.next()) { + + max_param[0] = rs.getBoolean(1); + min_param[0] = rs.getBoolean(2); + null_param[0] = rs.getBigDecimal(3); + if (rs.wasNull()) + null_param[0] = null; + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Smallint_Proc(short[] max_param, short[] min_param, + BigDecimal[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select max_val, min_val, null_val from smallint_tab"); + + if (rs.next()) { + + max_param[0] = rs.getShort(1); + min_param[0] = rs.getShort(2); + null_param[0] = rs.getBigDecimal(3); + if (rs.wasNull()) + null_param[0] = null; + } else { + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Tinyint_Proc(int[] max_param, int[] min_param, + BigDecimal[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select max_val, min_val, null_val from tinyint_tab"); + + if (rs.next()) { + + max_param[0] = rs.getInt(1); + min_param[0] = rs.getInt(2); + null_param[0] = rs.getBigDecimal(3); + if (rs.wasNull()) + null_param[0] = null; + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Integer_Proc(int[] max_param, int[] min_param, + BigDecimal[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select max_val, min_val, null_val from integer_tab"); + + if (rs.next()) { + + max_param[0] = rs.getInt(1); + min_param[0] = rs.getInt(2); + null_param[0] = rs.getBigDecimal(3); + if (rs.wasNull()) + null_param[0] = null; + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Bigint_Proc(long[] max_param, long[] min_param, + BigDecimal[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select max_val, min_val, null_val from bigint_tab"); + + if (rs.next()) { + + max_param[0] = rs.getLong(1); + min_param[0] = rs.getLong(2); + null_param[0] = rs.getBigDecimal(3); + if (rs.wasNull()) + null_param[0] = null; + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Char_Proc(String[] coffee_param, String[] null_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select coffee_name, null_val from char_tab"); + + if (rs.next()) { + + coffee_param[0] = rs.getString(1); + null_param[0] = rs.getString(2); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Varchar_Proc(String[] coffee_param, String[] null_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select coffee_name, null_val from varchar_tab"); + + if (rs.next()) { + + coffee_param[0] = rs.getString(1); + null_param[0] = rs.getString(2); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Longvarchar_Proc(String[] coffee_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select coffee_name from longvarchar_tab"); + + if (rs.next()) { + + coffee_param[0] = rs.getString(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Longvarcharnull_Proc(String[] null_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select null_val from longvarcharnull_tab"); + + if (rs.next()) { + + null_param[0] = rs.getString(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Date_Proc(Date[] mfg_param, Date[] null_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select mfg_date, null_val from date_tab"); + + if (rs.next()) { + + mfg_param[0] = rs.getDate(1); + null_param[0] = rs.getDate(2); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Time_Proc(Time[] brk_param, Time[] null_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select brk_time, null_val from time_tab"); + + if (rs.next()) { + + brk_param[0] = rs.getTime(1); + null_param[0] = rs.getTime(2); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Timestamp_Proc(Timestamp[] in_param, + Timestamp[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select in_time, null_val from timestamp_tab"); + + if (rs.next()) { + + in_param[0] = rs.getTimestamp(1); + null_param[0] = rs.getTimestamp(2); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Binary_Proc(byte[][] binary_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select binary_val from binary_tab"); + + if (rs.next()) { + + binary_param[0] = rs.getBytes(1); + + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Varbinary_Proc(byte[][] varbinary_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select varbinary_val from varbinary_tab"); + + if (rs.next()) { + + varbinary_param[0] = rs.getBytes(1); + + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Longvarbinary_Proc(byte[][] longvarbinary_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select longvarbinary_val from longvarbinary_tab"); + + if (rs.next()) { + + longvarbinary_param[0] = rs.getBytes(1); + + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Integer_In_Proc(int in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Integer_Tab set MAX_VAL=?"); + + ps.setInt(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Integer_InOut_Proc(int[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("select max_val from integer_Tab where min_val=?"); + + ps.setInt(1, inout_param[0]); + ResultSet rs = ps.executeQuery(); + + if (rs.next()) { + + inout_param[0] = rs.getInt(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void UpdCoffee_Proc(BigDecimal type_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con.prepareStatement( + "update ctstable2 set PRICE=PRICE*20 where TYPE_ID=?"); + + ps.setBigDecimal(1, type_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void SelCoffee_Proc(String[] keyid_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select KEY_ID from CTSTABLE2 where TYPE_ID=1"); + + if (rs.next()) { + + keyid_param[0] = rs.getString(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void IOCoffee_Proc(float[] price_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("select price*2 from CTSTABLE2 where price=?"); + + // if (price_param[0]==null) + // ps.setNull(1,Types.FLOAT); + // else + ps.setFloat(1, price_param[0]); + + ResultSet rs = ps.executeQuery(); + if (rs.next()) { + + price_param[0] = rs.getFloat(1); + // if (rs.wasNull()) price_param[0]=null; + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Coffee_Proc(BigDecimal type_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps1, ps2; + + ps1 = con + .prepareStatement("update CTSTABLE2 set PRICE=Price*2 where TYPE_ID=?"); + ps1.setBigDecimal(1, type_param); + ps1.executeUpdate(); + ps1.close(); + ps1 = null; + + ps2 = con.prepareStatement("delete from CTSTABLE2 where TYPE_ID=?-1"); + ps2.setBigDecimal(1, type_param); + ps2.executeUpdate(); + ps2.close(); + ps2 = null; + + con.close(); + con = null; + } + + /**************** + * Defining methods for CallableStatement INOUT parameter + ******************/ + + public static void Numeric_Io_Max(BigDecimal[] inout_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Numeric_Tab set max_val =?"); + ps.setBigDecimal(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select max_val from Numeric_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getBigDecimal(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Numeric_Io_Min(BigDecimal[] inout_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Numeric_Tab set min_val =?"); + ps.setBigDecimal(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select min_val from Numeric_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getBigDecimal(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Numeric_Io_Null(BigDecimal[] inout_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Numeric_Tab set null_val =?"); + ps.setBigDecimal(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select null_val from Numeric_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getBigDecimal(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Decimal_Io_Max(BigDecimal[] inout_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Decimal_Tab set max_val =?"); + ps.setBigDecimal(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select max_val from Decimal_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getBigDecimal(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Decimal_Io_Min(BigDecimal[] inout_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Decimal_Tab set min_val =?"); + ps.setBigDecimal(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select min_val from Decimal_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getBigDecimal(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Decimal_Io_Null(BigDecimal[] inout_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Decimal_Tab set null_val =?"); + ps.setBigDecimal(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select null_val from Decimal_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getBigDecimal(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Double_Io_Max(double[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Double_Tab set max_val =?"); + ps.setDouble(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select max_val from Double_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getDouble(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Double_Io_Min(double[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Double_Tab set min_val =?"); + ps.setDouble(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select min_val from Double_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getDouble(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Double_Io_Null(double[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Double_Tab set null_val =?"); + ps.setDouble(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select null_val from Double_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getDouble(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Float_Io_Max(double[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Float_Tab set max_val =?"); + ps.setDouble(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select max_val from Float_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getDouble(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Float_Io_Min(double[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Float_Tab set min_val =?"); + ps.setDouble(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select min_val from Float_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getDouble(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Float_Io_Null(double[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Float_Tab set null_val =?"); + ps.setDouble(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select null_val from Float_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getDouble(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Real_Io_Max(float[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Real_Tab set max_val =?"); + ps.setFloat(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select max_val from Real_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getFloat(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Real_Io_Min(float[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Real_Tab set min_val =?"); + ps.setFloat(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select min_val from Real_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getFloat(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Real_Io_Null(float[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Real_Tab set null_val =?"); + ps.setFloat(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select null_val from Real_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getFloat(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Bit_Io_Max(boolean[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Bit_Tab set max_val =?"); + ps.setBoolean(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select max_val from Bit_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getBoolean(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Bit_Io_Min(boolean[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Bit_Tab set min_val =?"); + ps.setBoolean(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select min_val from Bit_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getBoolean(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Bit_Io_Null(boolean[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Bit_Tab set null_val =?"); + ps.setBoolean(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select null_val from Bit_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getBoolean(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Smallint_Io_Max(short[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Smallint_Tab set max_val =?"); + ps.setShort(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select max_val from Smallint_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getShort(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Smallint_Io_Min(short[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Smallint_Tab set min_val =?"); + ps.setShort(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select min_val from Smallint_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getShort(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Smallint_Io_Null(short[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Smallint_Tab set null_val =?"); + ps.setShort(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select null_val from Smallint_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getShort(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Tinyint_Io_Max(short[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Tinyint_Tab set max_val =?"); + ps.setShort(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select max_val from Tinyint_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getShort(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Tinyint_Io_Min(int[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Tinyint_Tab set min_val =?"); + ps.setInt(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select min_val from Tinyint_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getInt(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Tinyint_Io_Null(short[] inout_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Tinyint_Tab set null_val =?"); + ps.setShort(1, inout_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("Select null_val from Tinyint_Tab"); + + if (rs.next()) { + + inout_param[0] = rs.getShort(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Integer_Io_Max(int[] max_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Integer_Tab set MAX_VAL=?"); + ps.setInt(1, max_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select max_val from Integer_Tab"); + if (rs.next()) { + + max_param[0] = rs.getInt(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Integer_Io_Min(int[] min_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Integer_Tab set MIN_VAL=?"); + ps.setInt(1, min_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select min_val from Integer_Tab"); + if (rs.next()) { + + min_param[0] = rs.getInt(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Integer_Io_Null(int[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Integer_Tab set NULL_VAL=?"); + ps.setInt(1, null_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select null_val from Integer_Tab"); + if (rs.next()) { + + null_param[0] = rs.getInt(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Bigint_Io_Max(long[] max_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Bigint_Tab set MAX_VAL=?"); + ps.setLong(1, max_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select max_val from Bigint_Tab"); + if (rs.next()) { + + max_param[0] = rs.getLong(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Bigint_Io_Min(long[] min_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Bigint_Tab set MIN_VAL=?"); + ps.setLong(1, min_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select min_val from Bigint_Tab"); + if (rs.next()) { + + min_param[0] = rs.getLong(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Bigint_Io_Null(long[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Bigint_Tab set NULL_VAL=?"); + ps.setLong(1, null_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select null_val from Bigint_Tab"); + if (rs.next()) { + + null_param[0] = rs.getLong(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Char_Io_Name(String[] name_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update char_Tab set coffee_name=?"); + ps.setString(1, name_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select coffee_name from char_Tab"); + if (rs.next()) { + + name_param[0] = rs.getString(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Char_Io_Null(String[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update char_Tab set null_val=?"); + ps.setString(1, null_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select null_val from char_Tab"); + if (rs.next()) { + + null_param[0] = rs.getString(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Varchar_Io_Name(String[] name_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update varchar_Tab set coffee_name=?"); + ps.setString(1, name_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select coffee_name from varchar_Tab"); + if (rs.next()) { + + name_param[0] = rs.getString(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Varchar_Io_Null(String[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update varchar_Tab set null_val=?"); + ps.setString(1, null_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select null_val from varchar_Tab"); + if (rs.next()) { + + null_param[0] = rs.getString(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Longvarchar_Io_Name(String[] name_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Longvarchar_Tab set coffee_name=?"); + ps.setString(1, name_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select coffee_name from Longvarchar_Tab"); + if (rs.next()) { + + name_param[0] = rs.getString(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Longvarchar_Io_Null(String[] name_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Longvarcharnull_Tab set null_val=?"); + ps.setString(1, name_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select null_val from Longvarcharnull_Tab"); + if (rs.next()) { + + name_param[0] = rs.getString(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Date_Io_Mfg(Date[] mfg_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Date_Tab set mfg_date=?"); + ps.setDate(1, mfg_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select mfg_date from Date_Tab"); + if (rs.next()) { + + mfg_param[0] = rs.getDate(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Date_Io_Null(Date[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Date_Tab set null_val=?"); + ps.setDate(1, null_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select null_val from Date_Tab"); + if (rs.next()) { + + null_param[0] = rs.getDate(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Time_Io_Brk(Time[] brk_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Time_Tab set brk_time=?"); + ps.setTime(1, brk_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select brk_time from Time_Tab"); + if (rs.next()) { + + brk_param[0] = rs.getTime(1); + + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Time_Io_Null(Time[] null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Time_Tab set null_val=?"); + ps.setTime(1, null_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + + ResultSet rs = stmt.executeQuery("select null_val from Time_Tab"); + if (rs.next()) { + + null_param[0] = rs.getTime(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Timestamp_Io_Intime(Timestamp[] intime_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Timestamp_Tab set in_time=?"); + ps.setTimestamp(1, intime_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select in_time from Timestamp_Tab"); + if (rs.next()) { + + intime_param[0] = rs.getTimestamp(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Timestamp_Io_Null(Timestamp[] null_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Timestamp_Tab set null_val=?"); + ps.setTimestamp(1, null_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select null_val from Timestamp_Tab"); + + if (rs.next()) { + + null_param[0] = rs.getTimestamp(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Binary_Proc_Io(byte[][] binary_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Binary_Tab set binary_val=?"); + ps.setBytes(1, binary_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select binary_val from Binary_Tab"); + if (rs.next()) { + + binary_param[0] = rs.getBytes(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Varbinary_Proc_Io(byte[][] varbinary_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Varbinary_Tab set varbinary_val=?"); + ps.setBytes(1, varbinary_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt.executeQuery("select varbinary_val from Varbinary_Tab"); + if (rs.next()) { + + varbinary_param[0] = rs.getBytes(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + public static void Longvarbinary_Io(byte[][] longvarbinary_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Longvarbinary_Tab set Longvarbinary_val=?"); + ps.setBytes(1, longvarbinary_param[0]); + ps.executeUpdate(); + + Statement stmt = con.createStatement(); + ResultSet rs = stmt + .executeQuery("select longvarbinary_val from Longvarbinary_Tab"); + if (rs.next()) { + + longvarbinary_param[0] = rs.getBytes(1); + } else { + + throw new SQLException("Data not found"); + } + + rs.close(); + rs = null; + ps.close(); + ps = null; + stmt.close(); + stmt = null; + con.close(); + con = null; + } + + /***************** + * Defining methods for CallableStatement IN parameter + *******************/ + + public static void Numeric_In_Max(BigDecimal max_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Numeric_Tab set MAX_VAL=?"); + + ps.setBigDecimal(1, max_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Numeric_In_Min(BigDecimal min_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Numeric_Tab set MIN_VAL=?"); + + ps.setBigDecimal(1, min_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Numeric_In_Null(BigDecimal null_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Numeric_Tab set NULL_VAL=?"); + + ps.setBigDecimal(1, null_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Decimal_In_Max(BigDecimal max_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Decimal_Tab set MAX_VAL=?"); + + ps.setBigDecimal(1, max_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Decimal_In_Min(BigDecimal min_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Decimal_Tab set MIN_VAL=?"); + + ps.setBigDecimal(1, min_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Decimal_In_Null(BigDecimal null_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Decimal_Tab set NULL_VAL=?"); + + ps.setBigDecimal(1, null_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Double_In_Max(double max_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Double_Tab set MAX_VAL=?"); + + ps.setDouble(1, max_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Double_In_Min(double min_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Double_Tab set MIN_VAL=?"); + + ps.setDouble(1, min_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Double_In_Null(double null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Double_Tab set NULL_VAL=?"); + + ps.setDouble(1, null_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Float_In_Max(double max_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Float_Tab set MAX_VAL=?"); + + ps.setDouble(1, max_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Float_In_Min(double min_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Float_Tab set MIN_VAL=?"); + + ps.setDouble(1, min_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Float_In_Null(double null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Float_Tab set NULL_VAL=?"); + + ps.setDouble(1, null_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Real_In_Max(float max_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Real_Tab set MAX_VAL=?"); + + ps.setFloat(1, max_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Real_In_Min(float min_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Real_Tab set MIN_VAL=?"); + + ps.setFloat(1, min_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Real_In_Null(float null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Real_Tab set NULL_VAL=?"); + + ps.setFloat(1, null_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Bit_In_Max(boolean max_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con.prepareStatement("update Bit_Tab set MAX_VAL=?"); + + ps.setBoolean(1, max_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Bit_In_Min(boolean min_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con.prepareStatement("update Bit_Tab set MIN_VAL=?"); + + ps.setBoolean(1, min_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Bit_In_Null(boolean null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Bit_Tab set NULL_VAL=?"); + + ps.setBoolean(1, null_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Smallint_In_Max(short max_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Smallint_Tab set MAX_VAL=?"); + + ps.setShort(1, max_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Smallint_In_Min(short min_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Smallint_Tab set MIN_VAL=?"); + + ps.setShort(1, min_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Smallint_In_Null(short null_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Smallint_Tab set NULL_VAL=?"); + + ps.setShort(1, null_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Tinyint_In_Max(int in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Tinyint_Tab set MAX_VAL=?"); + + ps.setInt(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Tinyint_In_Min(int in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Tinyint_Tab set MIN_VAL=?"); + + ps.setInt(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Tinyint_In_Null(int in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Tinyint_Tab set NULL_VAL=?"); + + ps.setInt(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Integer_In_Max(int in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Integer_Tab set MAX_VAL=?"); + + ps.setInt(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Integer_In_Min(int in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Integer_Tab set MIN_VAL=?"); + + ps.setInt(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Integer_In_Null(int in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Integer_Tab set NULL_VAL=?"); + + ps.setInt(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Bigint_In_Max(long in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Bigint_Tab set MAX_VAL=?"); + + ps.setLong(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Bigint_In_Min(long in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Bigint_Tab set MIN_VAL=?"); + + ps.setLong(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Bigint_In_Null(long in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Bigint_Tab set NULL_VAL=?"); + + ps.setLong(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Char_In_Name(String in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Char_Tab set coffee_name=?"); + + ps.setString(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Char_In_Null(String in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Char_Tab set NULL_VAL=?"); + + ps.setString(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Varchar_In_Name(String in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Varchar_Tab set coffee_name=?"); + + ps.setString(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Varchar_In_Null(String in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Varchar_Tab set NULL_VAL=?"); + + ps.setString(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Longvarchar_In_Name(String in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Longvarchar_Tab set coffee_name=?"); + + ps.setString(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Longvarchar_In_Null(String in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Longvarcharnull_Tab set NULL_VAL=?"); + + ps.setString(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Date_In_Mfg(java.sql.Date in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Date_Tab set mfg_date=?"); + + ps.setDate(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Date_In_Null(java.sql.Date in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Date_Tab set NULL_VAL=?"); + + ps.setDate(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Time_In_Brk(Time in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Time_Tab set BRK_TIME=?"); + + ps.setTime(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Time_In_Null(Time in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Time_Tab set NULL_VAL=?"); + + ps.setTime(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Timestamp_In_Intime(Timestamp in_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Timestamp_Tab set IN_TIME=?"); + + ps.setTimestamp(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Timestamp_In_Null(Timestamp in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Timestamp_Tab set NULL_VAL=?"); + + ps.setTimestamp(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Binary_Proc_In(byte[] in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Binary_Tab set BINARY_VAL=?"); + + ps.setBytes(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Varbinary_Proc_In(byte[] in_param) throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Varbinary_Tab set VARBINARY_VAL=?"); + + ps.setBytes(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + + public static void Longvarbinary_Proc_In(byte[] in_param) + throws SQLException { + + Connection con = DriverManager.getConnection("jdbc:default:connection"); + PreparedStatement ps = con + .prepareStatement("update Longvarbinary_Tab set LONGVARBINARY_VAL=?"); + + ps.setBytes(1, in_param); + ps.executeUpdate(); + + ps.close(); + ps = null; + con.close(); + con = null; + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/build.xml deleted file mode 100644 index ff0031cf6e..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClient.java index b5030a940b..65fd30f69f 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClient.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClient.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -48,9 +52,10 @@ * The batchUpdateClient class tests methods of Statement, PreparedStatement and * CallableStatement interfaces using Sun's J2EE Reference Implementation. * - * @author - * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class batchUpdateClient extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.batchUpdate"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientAppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientAppClient.java new file mode 100644 index 0000000000..dba7f8615a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientAppClient.java @@ -0,0 +1,364 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)batchUpdateClient.java 1.34 03/05/16 + */ +package com.sun.ts.tests.jdbc.ee.batchUpdate; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The batchUpdateClient class tests methods of Statement, PreparedStatement and + * CallableStatement interfaces using Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-appclient") + +public class batchUpdateClientAppClient extends batchUpdateClient implements Serializable { + private static final String testName = "jdbc.ee.batchUpdate"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "batchUpdate_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(batchUpdateClient.class); + + // The appclient-client descriptor + URL appClientUrl = batchUpdateClientAppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/batchUpdate/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = batchUpdateClientAppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, batchUpdateClientAppClient.class, sunAppClientUrl); + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "batchUpdate_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + batchUpdateClientAppClient theTests = new batchUpdateClientAppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testAddBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:700; JDBC:JAVADOC:701; + * JDBC:SPEC:23; + * + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method with 3 SQL statements and call the executeBatch() method and it + * should return array of Integer values of length 3 + * + */ + @Test + @TargetVehicle("appclient") + public void testAddBatch01() throws Exception { + } + + /* + * @testName: testAddBatch02 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:183; JDBC:JAVADOC:184; + * JDBC:JAVADOC:187; JDBC:JAVADOC:188; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method with + * 3 SQL statements and call the executeBatch() method and it should return an + * array of Integer of length 3. + * + */ + public void testAddBatch02() throws Exception { + } + + /* + * @testName: testAddBatch03 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:700; JDBC:JAVADOC:701; + * JDBC:JAVADOC:187; JDBC:JAVADOC:188; JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object and call the addBatch() + * method with 3 SQL statements and call the executeBatch() method and it + * should return an array of Integer of length 3. + */ + @Test + @TargetVehicle("appclient") + public void testAddBatch03() throws Exception { + } + + /* + * @testName: testClearBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:185; JDBC:JAVADOC:186; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method and call the clearBatch() method and then call executeBatch() to + * check the call of clearBatch()method The executeBatch() method should + * return a zero value. + */ + @Test + @TargetVehicle("appclient") + public void testClearBatch01() throws Exception { + } + + /* + * @testName: testClearBatch02 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:185; JDBC:JAVADOC:186; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method and + * call the clearBatch() method and then call executeBatch() to check the call + * of clearBatch()method.The executeBatch() method should return a zero value. + * + */ + @Test + @TargetVehicle("appclient") + public void testClearBatch02() throws Exception { + } + + /* + * @testName: testClearBatch03 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:185; JDBC:JAVADOC:186; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object and call the addBatch() + * method and call the clearBatch() method and then call executeBatch() to + * check the call of clearBatch()method. The executeBatch() method should + * return a zero value. + * + */ + @Test + @TargetVehicle("appclient") + public void testClearBatch03() throws Exception { + } + + /* + * @testName: testExecuteBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method with a 3 valid SQL statements and call the executeBatch() method It + * should return an array of Integer values of length 3. + * + */ + @Test + @TargetVehicle("appclient") + public void testExecuteBatch01() throws Exception { + } + + /* + * @testName: testExecuteBatch02 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * + * @test_Strategy: Get a PreparedStatement object and call the executeBatch() + * method without calling addBatch() method.It should return an array of zero + * length. + */ + @Test + @TargetVehicle("appclient") + public void testExecuteBatch02() throws Exception { + } + + /* + * @testName: testExecuteBatch03 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method and call the executeBatch() method with a select Statement It should + * throw BatchUpdateException + * + */ + @Test + @TargetVehicle("appclient") + public void testExecuteBatch03() throws Exception { + } + + /* + * @testName: testExecuteBatch04 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method with + * 3 valid SQL statements and call the executeBatch() method It should return + * an array of Integer values of length 3 + */ + @Test + @TargetVehicle("appclient") + public void testExecuteBatch04() throws Exception { + } + + /* + * @testName: testExecuteBatch05 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; + * + * @test_Strategy: Get a Statement object and call the executeBatch() method + * without adding statements into a batch. It should return an array of + * Integer value of zero length + */ + @Test + @TargetVehicle("appclient") + public void testExecuteBatch05() throws Exception { + } + + /* + * @testName: testExecuteBatch06 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method and + * call the executeBatch() method with a violation in SQL constraints.It + * should throw an BatchUpdateException + */ + @Test + @TargetVehicle("appclient") + public void testExecuteBatch06() throws Exception { + } + + /* + * @testName: testExecuteBatch07 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method and + * call the executeBatch() method with a select Statement It should throw an + * BatchUpdateException + */ + @Test + @TargetVehicle("appclient") + public void testExecuteBatch07() throws Exception { + } + + /* + * @testName: testExecuteBatch08 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object and call the addBatch() + * method with 3 valid SQL statements and call the executeBatch() method It + * should return an array of Integer Values of length 3. + */ + @Test + @TargetVehicle("appclient") + public void testExecuteBatch08() throws Exception { + } + + /* + * @testName: testExecuteBatch09 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * + * @test_Strategy: Get a CallableStatement object and call the executeBatch() + * method without adding the statements into Batch. It should return an array + * of Integer Value of zero length + */ + @Test + @TargetVehicle("appclient") + public void testExecuteBatch09() throws Exception { + } + + /* + * @testName: testExecuteBatch12 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object with different SQL + * statements in the stored Procedure and call the addBatch() method with 3 + * statements and call the executeBatch() method It should return an array of + * Integer Values of length 3. + */ + @Test + @TargetVehicle("appclient") + public void testExecuteBatch12() throws Exception { + } + + /* + * @testName: testContinueBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method with 3 SQL statements.Among these 3 SQL statements first is + * valid,second is invalid and third is again valid. Then call the + * executeBatch() method and it should return array of Integer values of + * length 3, if it supports continued updates. Then check whether the third + * command in the batch after the invalid command executed properly. + */ + @Test + @TargetVehicle("appclient") + public void testContinueBatch01() throws Exception { + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientEJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientEJB.java new file mode 100644 index 0000000000..6c76d5b23f --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientEJB.java @@ -0,0 +1,399 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)batchUpdateClient.java 1.34 03/05/16 + */ +package com.sun.ts.tests.jdbc.ee.batchUpdate; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The batchUpdateClient class tests methods of Statement, PreparedStatement and + * CallableStatement interfaces using Sun's J2EE Reference Implementation. + * + */ +@Tag("tck-appclient") + +public class batchUpdateClientEJB extends batchUpdateClient implements Serializable { + private static final String testName = "jdbc.ee.batchUpdate"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) + throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "batchUpdate_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(batchUpdateClientEJB.class, batchUpdateClient.class); + + URL resURL = batchUpdateClientEJB.class + .getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = batchUpdateClientEJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdate_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + archiveProcessor.processClientArchive(ejbClient, batchUpdateClientEJB.class, resURL); + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "batchUpdate_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(batchUpdateClient.class); + + resURL = batchUpdateClientEJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdate_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = batchUpdateClientEJB.class.getResource("/com/sun/ts/tests/jdbc/ee/batchUpdate/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "batchUpdate_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + batchUpdateClientEJB theTests = new batchUpdateClientEJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testAddBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:700; JDBC:JAVADOC:701; + * JDBC:SPEC:23; + * + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method with 3 SQL statements and call the executeBatch() method and it + * should return array of Integer values of length 3 + * + */ + @Test + @TargetVehicle("ejb") + public void testAddBatch01() throws Exception { + super.testAddBatch01(); + } + + /* + * @testName: testAddBatch02 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:183; JDBC:JAVADOC:184; + * JDBC:JAVADOC:187; JDBC:JAVADOC:188; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method with + * 3 SQL statements and call the executeBatch() method and it should return an + * array of Integer of length 3. + * + */ + public void testAddBatch02() throws Exception { + super.testAddBatch02(); + } + + /* + * @testName: testAddBatch03 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:700; JDBC:JAVADOC:701; + * JDBC:JAVADOC:187; JDBC:JAVADOC:188; JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object and call the addBatch() + * method with 3 SQL statements and call the executeBatch() method and it + * should return an array of Integer of length 3. + */ + @Test + @TargetVehicle("ejb") + public void testAddBatch03() throws Exception { + super.testAddBatch03(); + } + + /* + * @testName: testClearBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:185; JDBC:JAVADOC:186; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method and call the clearBatch() method and then call executeBatch() to + * check the call of clearBatch()method The executeBatch() method should + * return a zero value. + */ + @Test + @TargetVehicle("ejb") + public void testClearBatch01() throws Exception { + super.testClearBatch01(); + } + + /* + * @testName: testClearBatch02 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:185; JDBC:JAVADOC:186; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method and + * call the clearBatch() method and then call executeBatch() to check the call + * of clearBatch()method.The executeBatch() method should return a zero value. + * + */ + @Test + @TargetVehicle("ejb") + public void testClearBatch02() throws Exception { + super.testClearBatch02(); + } + + /* + * @testName: testClearBatch03 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:185; JDBC:JAVADOC:186; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object and call the addBatch() + * method and call the clearBatch() method and then call executeBatch() to + * check the call of clearBatch()method. The executeBatch() method should + * return a zero value. + * + */ + @Test + @TargetVehicle("ejb") + public void testClearBatch03() throws Exception { + super.testClearBatch03(); + } + + /* + * @testName: testExecuteBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method with a 3 valid SQL statements and call the executeBatch() method It + * should return an array of Integer values of length 3. + * + */ + @Test + @TargetVehicle("ejb") + public void testExecuteBatch01() throws Exception { + super.testExecuteBatch01(); + } + + /* + * @testName: testExecuteBatch02 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * + * @test_Strategy: Get a PreparedStatement object and call the executeBatch() + * method without calling addBatch() method.It should return an array of zero + * length. + */ + @Test + @TargetVehicle("ejb") + public void testExecuteBatch02() throws Exception { + super.testExecuteBatch02(); + } + + /* + * @testName: testExecuteBatch03 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method and call the executeBatch() method with a select Statement It should + * throw BatchUpdateException + * + */ + @Test + @TargetVehicle("ejb") + public void testExecuteBatch03() throws Exception { + super.testExecuteBatch03(); + } + + /* + * @testName: testExecuteBatch04 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method with + * 3 valid SQL statements and call the executeBatch() method It should return + * an array of Integer values of length 3 + */ + @Test + @TargetVehicle("ejb") + public void testExecuteBatch04() throws Exception { + super.testExecuteBatch04(); + } + + /* + * @testName: testExecuteBatch05 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; + * + * @test_Strategy: Get a Statement object and call the executeBatch() method + * without adding statements into a batch. It should return an array of + * Integer value of zero length + */ + @Test + @TargetVehicle("ejb") + public void testExecuteBatch05() throws Exception { + super.testExecuteBatch05(); + } + + /* + * @testName: testExecuteBatch06 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method and + * call the executeBatch() method with a violation in SQL constraints.It + * should throw an BatchUpdateException + */ + @Test + @TargetVehicle("ejb") + public void testExecuteBatch06() throws Exception { + super.testExecuteBatch06(); + } + + /* + * @testName: testExecuteBatch07 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method and + * call the executeBatch() method with a select Statement It should throw an + * BatchUpdateException + */ + @Test + @TargetVehicle("ejb") + public void testExecuteBatch07() throws Exception { + super.testExecuteBatch07(); + } + + /* + * @testName: testExecuteBatch08 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object and call the addBatch() + * method with 3 valid SQL statements and call the executeBatch() method It + * should return an array of Integer Values of length 3. + */ + @Test + @TargetVehicle("ejb") + public void testExecuteBatch08() throws Exception { + super.testExecuteBatch08(); + } + + /* + * @testName: testExecuteBatch09 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * + * @test_Strategy: Get a CallableStatement object and call the executeBatch() + * method without adding the statements into Batch. It should return an array + * of Integer Value of zero length + */ + @Test + @TargetVehicle("ejb") + public void testExecuteBatch09() throws Exception { + super.testExecuteBatch09(); + } + + /* + * @testName: testExecuteBatch12 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object with different SQL + * statements in the stored Procedure and call the addBatch() method with 3 + * statements and call the executeBatch() method It should return an array of + * Integer Values of length 3. + */ + @Test + @TargetVehicle("ejb") + public void testExecuteBatch12() throws Exception { + super.testExecuteBatch12(); + } + + /* + * @testName: testContinueBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method with 3 SQL statements.Among these 3 SQL statements first is + * valid,second is invalid and third is again valid. Then call the + * executeBatch() method and it should return array of Integer values of + * length 3, if it supports continued updates. Then check whether the third + * command in the batch after the invalid command executed properly. + */ + @Test + @TargetVehicle("ejb") + public void testContinueBatch01() throws Exception { + super.testContinueBatch01(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientJSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientJSP.java new file mode 100644 index 0000000000..2f3c1ab354 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientJSP.java @@ -0,0 +1,380 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)batchUpdateClient.java 1.34 03/05/16 + */ +package com.sun.ts.tests.jdbc.ee.batchUpdate; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The batchUpdateClient class tests methods of Statement, PreparedStatement and + * CallableStatement interfaces using Sun's J2EE Reference Implementation. + * + */ +@Tag("tck-javatest") + +public class batchUpdateClientJSP extends batchUpdateClient implements Serializable { + private static final String testName = "jdbc.ee.batchUpdate"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "batchUpdate_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + archive.addClasses(batchUpdateClientJSP.class, batchUpdateClient.class); + + // The jsp descriptor + URL jspUrl = batchUpdateClientJSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = batchUpdateClientJSP.class.getResource("batchUpdate_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, batchUpdateClientJSP.class, sunJSPUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + batchUpdateClientJSP theTests = new batchUpdateClientJSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testAddBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:700; JDBC:JAVADOC:701; + * JDBC:SPEC:23; + * + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method with 3 SQL statements and call the executeBatch() method and it + * should return array of Integer values of length 3 + * + */ + @Test + @TargetVehicle("jsp") + public void testAddBatch01() throws Exception { + super.testAddBatch01(); + } + + /* + * @testName: testAddBatch02 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:183; JDBC:JAVADOC:184; + * JDBC:JAVADOC:187; JDBC:JAVADOC:188; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method with + * 3 SQL statements and call the executeBatch() method and it should return an + * array of Integer of length 3. + * + */ + @Test + @TargetVehicle("jsp") + public void testAddBatch02() throws Exception { + super.testAddBatch02(); + } + + /* + * @testName: testAddBatch03 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:700; JDBC:JAVADOC:701; + * JDBC:JAVADOC:187; JDBC:JAVADOC:188; JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object and call the addBatch() + * method with 3 SQL statements and call the executeBatch() method and it + * should return an array of Integer of length 3. + */ + @Test + @TargetVehicle("jsp") + public void testAddBatch03() throws Exception { + super.testAddBatch03(); + } + + /* + * @testName: testClearBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:185; JDBC:JAVADOC:186; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method and call the clearBatch() method and then call executeBatch() to + * check the call of clearBatch()method The executeBatch() method should + * return a zero value. + */ + @Test + @TargetVehicle("jsp") + public void testClearBatch01() throws Exception { + super.testClearBatch01(); + } + + /* + * @testName: testClearBatch02 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:185; JDBC:JAVADOC:186; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method and + * call the clearBatch() method and then call executeBatch() to check the call + * of clearBatch()method.The executeBatch() method should return a zero value. + * + */ + @Test + @TargetVehicle("jsp") + public void testClearBatch02() throws Exception { + super.testClearBatch02(); + } + + /* + * @testName: testClearBatch03 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:185; JDBC:JAVADOC:186; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object and call the addBatch() + * method and call the clearBatch() method and then call executeBatch() to + * check the call of clearBatch()method. The executeBatch() method should + * return a zero value. + * + */ + @Test + @TargetVehicle("jsp") + public void testClearBatch03() throws Exception { + super.testClearBatch03(); + } + + /* + * @testName: testExecuteBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method with a 3 valid SQL statements and call the executeBatch() method It + * should return an array of Integer values of length 3. + * + */ + @Test + @TargetVehicle("jsp") + public void testExecuteBatch01() throws Exception { + super.testExecuteBatch01(); + } + + /* + * @testName: testExecuteBatch02 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * + * @test_Strategy: Get a PreparedStatement object and call the executeBatch() + * method without calling addBatch() method.It should return an array of zero + * length. + */ + @Test + @TargetVehicle("jsp") + public void testExecuteBatch02() throws Exception { + super.testExecuteBatch02(); + } + + /* + * @testName: testExecuteBatch03 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method and call the executeBatch() method with a select Statement It should + * throw BatchUpdateException + * + */ + @Test + @TargetVehicle("jsp") + public void testExecuteBatch03() throws Exception { + super.testExecuteBatch03(); + } + + /* + * @testName: testExecuteBatch04 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method with + * 3 valid SQL statements and call the executeBatch() method It should return + * an array of Integer values of length 3 + */ + @Test + @TargetVehicle("jsp") + public void testExecuteBatch04() throws Exception { + super.testExecuteBatch04(); + } + + /* + * @testName: testExecuteBatch05 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; + * + * @test_Strategy: Get a Statement object and call the executeBatch() method + * without adding statements into a batch. It should return an array of + * Integer value of zero length + */ + @Test + @TargetVehicle("jsp") + public void testExecuteBatch05() throws Exception { + super.testExecuteBatch05(); + } + + /* + * @testName: testExecuteBatch06 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method and + * call the executeBatch() method with a violation in SQL constraints.It + * should throw an BatchUpdateException + */ + @Test + @TargetVehicle("jsp") + public void testExecuteBatch06() throws Exception { + super.testExecuteBatch06(); + } + + /* + * @testName: testExecuteBatch07 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method and + * call the executeBatch() method with a select Statement It should throw an + * BatchUpdateException + */ + @Test + @TargetVehicle("jsp") + public void testExecuteBatch07() throws Exception { + super.testExecuteBatch07(); + } + + /* + * @testName: testExecuteBatch08 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object and call the addBatch() + * method with 3 valid SQL statements and call the executeBatch() method It + * should return an array of Integer Values of length 3. + */ + @Test + @TargetVehicle("jsp") + public void testExecuteBatch08() throws Exception { + super.testExecuteBatch08(); + } + + /* + * @testName: testExecuteBatch09 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * + * @test_Strategy: Get a CallableStatement object and call the executeBatch() + * method without adding the statements into Batch. It should return an array + * of Integer Value of zero length + */ + @Test + @TargetVehicle("jsp") + public void testExecuteBatch09() throws Exception { + super.testExecuteBatch09(); + } + + /* + * @testName: testExecuteBatch12 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object with different SQL + * statements in the stored Procedure and call the addBatch() method with 3 + * statements and call the executeBatch() method It should return an array of + * Integer Values of length 3. + */ + @Test + @TargetVehicle("jsp") + public void testExecuteBatch12() throws Exception { + super.testExecuteBatch12(); + } + + /* + * @testName: testContinueBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method with 3 SQL statements.Among these 3 SQL statements first is + * valid,second is invalid and third is again valid. Then call the + * executeBatch() method and it should return array of Integer values of + * length 3, if it supports continued updates. Then check whether the third + * command in the batch after the invalid command executed properly. + */ + @Test + @TargetVehicle("jsp") + public void testContinueBatch01() throws Exception { + super.testContinueBatch01(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientServlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientServlet.java new file mode 100644 index 0000000000..7e8d416277 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/batchUpdateClientServlet.java @@ -0,0 +1,373 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)batchUpdateClient.java 1.34 03/05/16 + */ +package com.sun.ts.tests.jdbc.ee.batchUpdate; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The batchUpdateClient class tests methods of Statement, PreparedStatement and + * CallableStatement interfaces using Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-javatest") + +public class batchUpdateClientServlet extends batchUpdateClient implements Serializable { + private static final String testName = "jdbc.ee.batchUpdate"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "batchUpdate_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(batchUpdateClientServlet.class, batchUpdateClient.class); + + // The servlet descriptor + URL servletUrl = batchUpdateClientServlet.class.getResource("servlet_vehicle_web.xml"); + if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); + } + // The sun servlet descriptor + URL sunServletUrl = batchUpdateClientServlet.class.getResource("batchUpdate_servlet_vehicle_web.war.sun-web.xml"); + if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, batchUpdateClientServlet.class, sunServletUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + batchUpdateClientServlet theTests = new batchUpdateClientServlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testAddBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:700; JDBC:JAVADOC:701; + * JDBC:SPEC:23; + * + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method with 3 SQL statements and call the executeBatch() method and it + * should return array of Integer values of length 3 + * + */ + @Test + @TargetVehicle("servlet") + public void testAddBatch01() throws Exception { + super.testAddBatch01(); + } + + /* + * @testName: testAddBatch02 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:183; JDBC:JAVADOC:184; + * JDBC:JAVADOC:187; JDBC:JAVADOC:188; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method with + * 3 SQL statements and call the executeBatch() method and it should return an + * array of Integer of length 3. + * + */ + @Test + @TargetVehicle("servlet") + public void testAddBatch02() throws Exception { + super.testAddBatch02(); + } + + /* + * @testName: testAddBatch03 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:700; JDBC:JAVADOC:701; + * JDBC:JAVADOC:187; JDBC:JAVADOC:188; JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object and call the addBatch() + * method with 3 SQL statements and call the executeBatch() method and it + * should return an array of Integer of length 3. + */ + @Test + @TargetVehicle("servlet") + public void testAddBatch03() throws Exception { + super.testAddBatch03(); + } + + /* + * @testName: testClearBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:185; JDBC:JAVADOC:186; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method and call the clearBatch() method and then call executeBatch() to + * check the call of clearBatch()method The executeBatch() method should + * return a zero value. + */ + @Test + @TargetVehicle("servlet") + public void testClearBatch01() throws Exception { + super.testClearBatch01(); + } + + /* + * @testName: testClearBatch02 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:185; JDBC:JAVADOC:186; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method and + * call the clearBatch() method and then call executeBatch() to check the call + * of clearBatch()method.The executeBatch() method should return a zero value. + * + */ + @Test + @TargetVehicle("servlet") + public void testClearBatch02() throws Exception { + super.testClearBatch02(); + } + + /* + * @testName: testClearBatch03 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:185; JDBC:JAVADOC:186; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object and call the addBatch() + * method and call the clearBatch() method and then call executeBatch() to + * check the call of clearBatch()method. The executeBatch() method should + * return a zero value. + * + */ + @Test + @TargetVehicle("servlet") + public void testClearBatch03() throws Exception { + super.testClearBatch03(); + } + + /* + * @testName: testExecuteBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method with a 3 valid SQL statements and call the executeBatch() method It + * should return an array of Integer values of length 3. + * + */ + @Test + @TargetVehicle("servlet") + public void testExecuteBatch01() throws Exception { + super.testExecuteBatch01(); + } + + /* + * @testName: testExecuteBatch02 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * + * @test_Strategy: Get a PreparedStatement object and call the executeBatch() + * method without calling addBatch() method.It should return an array of zero + * length. + */ + @Test + @TargetVehicle("servlet") + public void testExecuteBatch02() throws Exception { + super.testExecuteBatch02(); + } + + /* + * @testName: testExecuteBatch03 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method and call the executeBatch() method with a select Statement It should + * throw BatchUpdateException + * + */ + @Test + @TargetVehicle("servlet") + public void testExecuteBatch03() throws Exception { + super.testExecuteBatch03(); + } + + /* + * @testName: testExecuteBatch04 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method with + * 3 valid SQL statements and call the executeBatch() method It should return + * an array of Integer values of length 3 + */ + @Test + @TargetVehicle("servlet") + public void testExecuteBatch04() throws Exception { + super.testExecuteBatch04(); + } + + /* + * @testName: testExecuteBatch05 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; + * + * @test_Strategy: Get a Statement object and call the executeBatch() method + * without adding statements into a batch. It should return an array of + * Integer value of zero length + */ + @Test + @TargetVehicle("servlet") + public void testExecuteBatch05() throws Exception { + super.testExecuteBatch05(); + } + + /* + * @testName: testExecuteBatch06 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method and + * call the executeBatch() method with a violation in SQL constraints.It + * should throw an BatchUpdateException + */ + @Test + @TargetVehicle("servlet") + public void testExecuteBatch06() throws Exception { + super.testExecuteBatch06(); + } + + /* + * @testName: testExecuteBatch07 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:183; JDBC:JAVADOC:184; JDBC:SPEC:23; + * + * @test_Strategy: Get a Statement object and call the addBatch() method and + * call the executeBatch() method with a select Statement It should throw an + * BatchUpdateException + */ + @Test + @TargetVehicle("servlet") + public void testExecuteBatch07() throws Exception { + super.testExecuteBatch07(); + } + + /* + * @testName: testExecuteBatch08 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object and call the addBatch() + * method with 3 valid SQL statements and call the executeBatch() method It + * should return an array of Integer Values of length 3. + */ + @Test + @TargetVehicle("servlet") + public void testExecuteBatch08() throws Exception { + super.testExecuteBatch08(); + } + + /* + * @testName: testExecuteBatch09 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * + * @test_Strategy: Get a CallableStatement object and call the executeBatch() + * method without adding the statements into Batch. It should return an array + * of Integer Value of zero length + */ + @Test + @TargetVehicle("servlet") + public void testExecuteBatch09() throws Exception { + super.testExecuteBatch09(); + } + + /* + * @testName: testExecuteBatch12 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a CallableStatement object with different SQL + * statements in the stored Procedure and call the addBatch() method with 3 + * statements and call the executeBatch() method It should return an array of + * Integer Values of length 3. + */ + @Test + @TargetVehicle("servlet") + public void testExecuteBatch12() throws Exception { + super.testExecuteBatch12(); + } + + /* + * @testName: testContinueBatch01 + * + * @assertion_ids: JavaEE:SPEC:190; JDBC:JAVADOC:187; JDBC:JAVADOC:188; + * JDBC:JAVADOC:700; JDBC:JAVADOC:701; JDBC:SPEC:23; + * + * @test_Strategy: Get a PreparedStatement object and call the addBatch() + * method with 3 SQL statements.Among these 3 SQL statements first is + * valid,second is invalid and third is again valid. Then call the + * executeBatch() method and it should return array of Integer values of + * length 3, if it supports continued updates. Then check whether the third + * command in the batch after the invalid command executed properly. + */ + @Test + @TargetVehicle("servlet") + public void testContinueBatch01() throws Exception { + super.testContinueBatch01(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/build.xml deleted file mode 100644 index 927637c96c..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/batchUpdate/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/build.xml deleted file mode 100644 index b9cbbb9ab4..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/build.xml deleted file mode 100644 index 5bc0f1fa3c..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/build.xml deleted file mode 100644 index 83a1135b45..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1.java index 545081d6b3..0747cb2e35 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1.java @@ -29,8 +29,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; // Merant DataSource class @@ -44,9 +48,11 @@ * The callStmtClient1 class tests methods of DatabaseMetaData interface using * Sun's J2EE Reference Implementation. * - * @author - * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + public class callStmtClient1 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt1"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1AppClient.java new file mode 100644 index 0000000000..fbcaf7e397 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1AppClient.java @@ -0,0 +1,459 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient1.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The callStmtClient1 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + */ +@Tag("tck-appclient") + +public class callStmtClient1AppClient extends callStmtClient1 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt1_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient1AppClient.class, callStmtClient1.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient1AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt1/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient1AppClient.class.getResource("/com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt1_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient1AppClient theTests = new callStmtClient1AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetBigDecimal01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBigDecimal(int + * parameterIndex) method to retrieve the maximum value of the Numeric_Tab. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getBigDecimal(int parameterIndex) method.Both the + * values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetBigDecimal01() throws Exception { + super.testGetBigDecimal01(); + } + + /* + * @testName: testGetBigDecimal02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBigDecimal(int + * parameterIndex) method to retrieve the minimum value of the Numeric_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getBigDecimal(int parameterIndex).Both the values + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetBigDecimal02() throws Exception { + super.testGetBigDecimal02(); + } + + /* + * @testName: testGetBigDecimal03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBigDecimal(int + * parameterIndex) method to retrieve the null value from Numeric_Tab. Check + * if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetBigDecimal03() throws Exception { + super.testGetBigDecimal03(); + } + + + /* + * @testName: testGetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the maximum value of the Float_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getDouble(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetDouble01() throws Exception { + super.testGetDouble01(); + } + + /* + * @testName: testGetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the minimum value of the Float_Tab. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getDouble(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetDouble02() throws Exception { + super.testGetDouble02(); + } + + /* + * @testName: testGetDouble03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the null value from Float_Tab. Check if + * it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetDouble03() throws Exception { + super.testGetDouble03(); + } + + /* + * @testName: testGetShort01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1247; + * JDBC:JAVADOC:1248; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:3; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getShort(int + * parameterIndex) method to retrieve the maximum value of the Smallint_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getShort(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetShort01() throws Exception { + super.testGetShort01(); + } + + /* + * @testName: testGetShort02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1247; + * JDBC:JAVADOC:1248; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getShort(int + * parameterIndex) method to retrieve the minimum value of the Smallint_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getShort(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetShort02() throws Exception { + super.testGetShort02(); + } + + /* + * @testName: testGetShort03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1247; + * JDBC:JAVADOC:1248; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getShort(int + * parameterIndex) method to retrieve the null value from the Smallint_Tab. + * Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetShort03() throws Exception { + super.testGetShort03(); + } + + /* + * @testName: testGetString01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getString(int + * parameterIndex) method to retrieve a non null String value from Char_Tab. + * Extract the same String value from the tssql.stmt file.Compare this value + * with the value returned by the getString(int parameterIndex). Both the + * values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetString01() throws Exception { + super.testGetString01(); + } + + /* + * @testName: testGetString02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getString(int + * parameterIndex) method to retrieve the null value from Char_Tab. Check if + * it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetString02() throws Exception { + super.testGetString02(); + } + + /* + * @testName: testGetInt01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1249; + * JDBC:JAVADOC:1250; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:4; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the maximum value from Integer_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getInt(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetInt01() throws Exception { + super.testGetInt01(); + } + + /* + * @testName: testGetInt02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1249; + * JDBC:JAVADOC:1250; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the minimum value from Integer_Tab. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getInt(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetInt02() throws Exception { + super.testGetInt02(); + } + + /* + * @testName: testGetInt03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1249; + * JDBC:JAVADOC:1250; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the null value. Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetInt03() throws Exception { + super.testGetInt03(); + } + + /* + * @testName: testGetBoolean01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1243; + * JDBC:JAVADOC:1244; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:1; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBoolean(int + * parameterIndex) method to retrieve the maximum value of Bit_Tab. Extract + * the maximum value from the tssql.stmt file.Compare this value with the + * value returned by the getBoolean(int parameterIndex).Both the values should + * be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetBoolean01() throws Exception { + super.testGetBoolean01(); + } + + /* + * @testName: testGetBoolean02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1243; + * JDBC:JAVADOC:1244; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:1; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBoolean(int + * parameterIndex) method.to retrieve the minimum value of Bit_Tab. Extract + * the minimum value from the tssql.stmt file. Compare this value with the + * value returned by the getBoolean(int parameterIndex) Both the values should + * be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetBoolean02() throws Exception { + super.testGetBoolean02(); + } + + /* + * @testName: testGetLong01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1251; + * JDBC:JAVADOC:1252; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:5; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getLong(int + * parameterIndex) method to retrieve the maximum value of Bigint_Tab. Extract + * the maximum value from the tssql.stmt file.Compare this value with the + * value returned by the getLong(int parameterIndex). Both the values should + * be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetLong01() throws Exception { + super.testGetLong01(); + } + + /* + * @testName: testGetLong02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1251; + * JDBC:JAVADOC:1252; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getLong(int + * parameterIndex) method to retrieve the minimum value from Bigint_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getLong(int parameterIndex) Both the values + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetLong02() throws Exception { + super.testGetLong02(); + } + + /* + * @testName: testGetLong03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1251; + * JDBC:JAVADOC:1252; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getLong(int + * parameterIndex) method to retrieve the null value from Bigint_Tab. Check if + * it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetLong03() throws Exception { + super.testGetLong03(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1EJB.java new file mode 100644 index 0000000000..14f46e71af --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1EJB.java @@ -0,0 +1,478 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient1.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The callStmtClient1 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + */ +@Tag("tck-appclient") + +public class callStmtClient1EJB extends callStmtClient1 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentEJB(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt1_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient1EJB.class, callStmtClient1.class); + + URL resURL = callStmtClient1EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient1EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmt1_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt1_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient1EJB.class, callStmtClient1.class); + + resURL = callStmtClient1EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmt1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient1EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt1_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient1EJB theTests = new callStmtClient1EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetBigDecimal01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBigDecimal(int + * parameterIndex) method to retrieve the maximum value of the Numeric_Tab. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getBigDecimal(int parameterIndex) method.Both the + * values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetBigDecimal01() throws Exception { + super.testGetBigDecimal01(); + } + + /* + * @testName: testGetBigDecimal02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBigDecimal(int + * parameterIndex) method to retrieve the minimum value of the Numeric_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getBigDecimal(int parameterIndex).Both the values + * should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetBigDecimal02() throws Exception { + super.testGetBigDecimal02(); + } + + /* + * @testName: testGetBigDecimal03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBigDecimal(int + * parameterIndex) method to retrieve the null value from Numeric_Tab. Check + * if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetBigDecimal03() throws Exception { + super.testGetBigDecimal03(); + } + + + /* + * @testName: testGetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the maximum value of the Float_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getDouble(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetDouble01() throws Exception { + super.testGetDouble01(); + } + + /* + * @testName: testGetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the minimum value of the Float_Tab. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getDouble(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetDouble02() throws Exception { + super.testGetDouble02(); + } + + /* + * @testName: testGetDouble03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the null value from Float_Tab. Check if + * it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetDouble03() throws Exception { + super.testGetDouble03(); + } + + /* + * @testName: testGetShort01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1247; + * JDBC:JAVADOC:1248; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:3; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getShort(int + * parameterIndex) method to retrieve the maximum value of the Smallint_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getShort(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetShort01() throws Exception { + super.testGetShort01(); + } + + /* + * @testName: testGetShort02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1247; + * JDBC:JAVADOC:1248; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getShort(int + * parameterIndex) method to retrieve the minimum value of the Smallint_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getShort(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetShort02() throws Exception { + super.testGetShort02(); + } + + /* + * @testName: testGetShort03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1247; + * JDBC:JAVADOC:1248; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getShort(int + * parameterIndex) method to retrieve the null value from the Smallint_Tab. + * Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetShort03() throws Exception { + super.testGetShort03(); + } + + /* + * @testName: testGetString01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getString(int + * parameterIndex) method to retrieve a non null String value from Char_Tab. + * Extract the same String value from the tssql.stmt file.Compare this value + * with the value returned by the getString(int parameterIndex). Both the + * values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetString01() throws Exception { + super.testGetString01(); + } + + /* + * @testName: testGetString02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getString(int + * parameterIndex) method to retrieve the null value from Char_Tab. Check if + * it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetString02() throws Exception { + super.testGetString02(); + } + + /* + * @testName: testGetInt01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1249; + * JDBC:JAVADOC:1250; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:4; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the maximum value from Integer_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getInt(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetInt01() throws Exception { + super.testGetInt01(); + } + + /* + * @testName: testGetInt02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1249; + * JDBC:JAVADOC:1250; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the minimum value from Integer_Tab. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getInt(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetInt02() throws Exception { + super.testGetInt02(); + } + + /* + * @testName: testGetInt03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1249; + * JDBC:JAVADOC:1250; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the null value. Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetInt03() throws Exception { + super.testGetInt03(); + } + + /* + * @testName: testGetBoolean01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1243; + * JDBC:JAVADOC:1244; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:1; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBoolean(int + * parameterIndex) method to retrieve the maximum value of Bit_Tab. Extract + * the maximum value from the tssql.stmt file.Compare this value with the + * value returned by the getBoolean(int parameterIndex).Both the values should + * be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetBoolean01() throws Exception { + super.testGetBoolean01(); + } + + /* + * @testName: testGetBoolean02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1243; + * JDBC:JAVADOC:1244; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:1; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBoolean(int + * parameterIndex) method.to retrieve the minimum value of Bit_Tab. Extract + * the minimum value from the tssql.stmt file. Compare this value with the + * value returned by the getBoolean(int parameterIndex) Both the values should + * be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetBoolean02() throws Exception { + super.testGetBoolean02(); + } + + /* + * @testName: testGetLong01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1251; + * JDBC:JAVADOC:1252; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:5; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getLong(int + * parameterIndex) method to retrieve the maximum value of Bigint_Tab. Extract + * the maximum value from the tssql.stmt file.Compare this value with the + * value returned by the getLong(int parameterIndex). Both the values should + * be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetLong01() throws Exception { + super.testGetLong01(); + } + + /* + * @testName: testGetLong02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1251; + * JDBC:JAVADOC:1252; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getLong(int + * parameterIndex) method to retrieve the minimum value from Bigint_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getLong(int parameterIndex) Both the values + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetLong02() throws Exception { + super.testGetLong02(); + } + + /* + * @testName: testGetLong03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1251; + * JDBC:JAVADOC:1252; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getLong(int + * parameterIndex) method to retrieve the null value from Bigint_Tab. Check if + * it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetLong03() throws Exception { + super.testGetLong03(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1JSP.java new file mode 100644 index 0000000000..c40f77a939 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1JSP.java @@ -0,0 +1,463 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient1.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt1; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The callStmtClient1 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-javatest") + +public class callStmtClient1JSP extends callStmtClient1 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt1_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient1JSP.class, callStmtClient1.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = callStmtClient1JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient1JSP.class.getResource("callStmt1_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient1JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient1JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient1JSP theTests = new callStmtClient1JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetBigDecimal01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBigDecimal(int + * parameterIndex) method to retrieve the maximum value of the Numeric_Tab. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getBigDecimal(int parameterIndex) method.Both the + * values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetBigDecimal01() throws Exception { + super.testGetBigDecimal01(); + } + + /* + * @testName: testGetBigDecimal02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBigDecimal(int + * parameterIndex) method to retrieve the minimum value of the Numeric_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getBigDecimal(int parameterIndex).Both the values + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetBigDecimal02() throws Exception { + super.testGetBigDecimal02(); + } + + /* + * @testName: testGetBigDecimal03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBigDecimal(int + * parameterIndex) method to retrieve the null value from Numeric_Tab. Check + * if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetBigDecimal03() throws Exception { + super.testGetBigDecimal03(); + } + + + /* + * @testName: testGetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the maximum value of the Float_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getDouble(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetDouble01() throws Exception { + super.testGetDouble01(); + } + + /* + * @testName: testGetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the minimum value of the Float_Tab. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getDouble(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetDouble02() throws Exception { + super.testGetDouble02(); + } + + /* + * @testName: testGetDouble03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the null value from Float_Tab. Check if + * it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetDouble03() throws Exception { + super.testGetDouble03(); + } + + /* + * @testName: testGetShort01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1247; + * JDBC:JAVADOC:1248; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:3; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getShort(int + * parameterIndex) method to retrieve the maximum value of the Smallint_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getShort(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetShort01() throws Exception { + super.testGetShort01(); + } + + /* + * @testName: testGetShort02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1247; + * JDBC:JAVADOC:1248; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getShort(int + * parameterIndex) method to retrieve the minimum value of the Smallint_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getShort(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetShort02() throws Exception { + super.testGetShort02(); + } + + /* + * @testName: testGetShort03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1247; + * JDBC:JAVADOC:1248; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getShort(int + * parameterIndex) method to retrieve the null value from the Smallint_Tab. + * Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetShort03() throws Exception { + super.testGetShort03(); + } + + /* + * @testName: testGetString01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getString(int + * parameterIndex) method to retrieve a non null String value from Char_Tab. + * Extract the same String value from the tssql.stmt file.Compare this value + * with the value returned by the getString(int parameterIndex). Both the + * values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetString01() throws Exception { + super.testGetString01(); + } + + /* + * @testName: testGetString02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getString(int + * parameterIndex) method to retrieve the null value from Char_Tab. Check if + * it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetString02() throws Exception { + super.testGetString02(); + } + + /* + * @testName: testGetInt01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1249; + * JDBC:JAVADOC:1250; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:4; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the maximum value from Integer_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getInt(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetInt01() throws Exception { + super.testGetInt01(); + } + + /* + * @testName: testGetInt02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1249; + * JDBC:JAVADOC:1250; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the minimum value from Integer_Tab. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getInt(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetInt02() throws Exception { + super.testGetInt02(); + } + + /* + * @testName: testGetInt03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1249; + * JDBC:JAVADOC:1250; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the null value. Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetInt03() throws Exception { + super.testGetInt03(); + } + + /* + * @testName: testGetBoolean01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1243; + * JDBC:JAVADOC:1244; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:1; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBoolean(int + * parameterIndex) method to retrieve the maximum value of Bit_Tab. Extract + * the maximum value from the tssql.stmt file.Compare this value with the + * value returned by the getBoolean(int parameterIndex).Both the values should + * be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetBoolean01() throws Exception { + super.testGetBoolean01(); + } + + /* + * @testName: testGetBoolean02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1243; + * JDBC:JAVADOC:1244; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:1; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBoolean(int + * parameterIndex) method.to retrieve the minimum value of Bit_Tab. Extract + * the minimum value from the tssql.stmt file. Compare this value with the + * value returned by the getBoolean(int parameterIndex) Both the values should + * be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetBoolean02() throws Exception { + super.testGetBoolean02(); + } + + /* + * @testName: testGetLong01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1251; + * JDBC:JAVADOC:1252; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:5; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getLong(int + * parameterIndex) method to retrieve the maximum value of Bigint_Tab. Extract + * the maximum value from the tssql.stmt file.Compare this value with the + * value returned by the getLong(int parameterIndex). Both the values should + * be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetLong01() throws Exception { + super.testGetLong01(); + } + + /* + * @testName: testGetLong02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1251; + * JDBC:JAVADOC:1252; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getLong(int + * parameterIndex) method to retrieve the minimum value from Bigint_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getLong(int parameterIndex) Both the values + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetLong02() throws Exception { + super.testGetLong02(); + } + + /* + * @testName: testGetLong03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1251; + * JDBC:JAVADOC:1252; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getLong(int + * parameterIndex) method to retrieve the null value from Bigint_Tab. Check if + * it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetLong03() throws Exception { + super.testGetLong03(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1Servlet.java new file mode 100644 index 0000000000..438e26fb45 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt1/callStmtClient1Servlet.java @@ -0,0 +1,453 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient1.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.batchUpdate.batchUpdateClientServlet; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The callStmtClient1 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-javatest") + +public class callStmtClient1Servlet extends callStmtClient1 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) + throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt1_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient1Servlet.class, callStmtClient1.class); + // The servlet descriptor + URL servletUrl = callStmtClient1Servlet.class.getResource("servlet_vehicle_web.xml"); + if (servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); + } + // The sun servlet descriptor + URL sunServletUrl = callStmtClient1Servlet.class.getResource("callStmt1_servlet_vehicle_web.war.sun-web.xml"); + if (sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, batchUpdateClientServlet.class, sunServletUrl); + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient1Servlet theTests = new callStmtClient1Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetBigDecimal01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBigDecimal(int + * parameterIndex) method to retrieve the maximum value of the Numeric_Tab. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getBigDecimal(int parameterIndex) method.Both the + * values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetBigDecimal01() throws Exception { + super.testGetBigDecimal01(); + } + + /* + * @testName: testGetBigDecimal02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBigDecimal(int + * parameterIndex) method to retrieve the minimum value of the Numeric_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getBigDecimal(int parameterIndex).Both the values + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetBigDecimal02() throws Exception { + super.testGetBigDecimal02(); + } + + /* + * @testName: testGetBigDecimal03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBigDecimal(int + * parameterIndex) method to retrieve the null value from Numeric_Tab. Check + * if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetBigDecimal03() throws Exception { + super.testGetBigDecimal03(); + } + + + /* + * @testName: testGetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the maximum value of the Float_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getDouble(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetDouble01() throws Exception { + super.testGetDouble01(); + } + + /* + * @testName: testGetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the minimum value of the Float_Tab. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getDouble(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetDouble02() throws Exception { + super.testGetDouble02(); + } + + /* + * @testName: testGetDouble03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the null value from Float_Tab. Check if + * it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetDouble03() throws Exception { + super.testGetDouble03(); + } + + /* + * @testName: testGetShort01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1247; + * JDBC:JAVADOC:1248; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:3; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getShort(int + * parameterIndex) method to retrieve the maximum value of the Smallint_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getShort(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetShort01() throws Exception { + super.testGetShort01(); + } + + /* + * @testName: testGetShort02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1247; + * JDBC:JAVADOC:1248; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getShort(int + * parameterIndex) method to retrieve the minimum value of the Smallint_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getShort(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetShort02() throws Exception { + super.testGetShort02(); + } + + /* + * @testName: testGetShort03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1247; + * JDBC:JAVADOC:1248; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getShort(int + * parameterIndex) method to retrieve the null value from the Smallint_Tab. + * Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetShort03() throws Exception { + super.testGetShort03(); + } + + /* + * @testName: testGetString01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getString(int + * parameterIndex) method to retrieve a non null String value from Char_Tab. + * Extract the same String value from the tssql.stmt file.Compare this value + * with the value returned by the getString(int parameterIndex). Both the + * values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetString01() throws Exception { + super.testGetString01(); + } + + /* + * @testName: testGetString02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getString(int + * parameterIndex) method to retrieve the null value from Char_Tab. Check if + * it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetString02() throws Exception { + super.testGetString02(); + } + + /* + * @testName: testGetInt01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1249; + * JDBC:JAVADOC:1250; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:4; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the maximum value from Integer_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getInt(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetInt01() throws Exception { + super.testGetInt01(); + } + + /* + * @testName: testGetInt02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1249; + * JDBC:JAVADOC:1250; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the minimum value from Integer_Tab. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getInt(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetInt02() throws Exception { + super.testGetInt02(); + } + + /* + * @testName: testGetInt03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1249; + * JDBC:JAVADOC:1250; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the null value. Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetInt03() throws Exception { + super.testGetInt03(); + } + + /* + * @testName: testGetBoolean01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1243; + * JDBC:JAVADOC:1244; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:1; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBoolean(int + * parameterIndex) method to retrieve the maximum value of Bit_Tab. Extract + * the maximum value from the tssql.stmt file.Compare this value with the + * value returned by the getBoolean(int parameterIndex).Both the values should + * be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetBoolean01() throws Exception { + super.testGetBoolean01(); + } + + /* + * @testName: testGetBoolean02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1243; + * JDBC:JAVADOC:1244; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:1; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getBoolean(int + * parameterIndex) method.to retrieve the minimum value of Bit_Tab. Extract + * the minimum value from the tssql.stmt file. Compare this value with the + * value returned by the getBoolean(int parameterIndex) Both the values should + * be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetBoolean02() throws Exception { + super.testGetBoolean02(); + } + + /* + * @testName: testGetLong01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1251; + * JDBC:JAVADOC:1252; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JDBC:JAVADOC:5; + * JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getLong(int + * parameterIndex) method to retrieve the maximum value of Bigint_Tab. Extract + * the maximum value from the tssql.stmt file.Compare this value with the + * value returned by the getLong(int parameterIndex). Both the values should + * be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetLong01() throws Exception { + super.testGetLong01(); + } + + /* + * @testName: testGetLong02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1251; + * JDBC:JAVADOC:1252; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getLong(int + * parameterIndex) method to retrieve the minimum value from Bigint_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getLong(int parameterIndex) Both the values + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetLong02() throws Exception { + super.testGetLong02(); + } + + /* + * @testName: testGetLong03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1251; + * JDBC:JAVADOC:1252; JDBC:JAVADOC:1145; JDBC:JAVADOC:1146; JavaEE:SPEC:183; + * JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getLong(int + * parameterIndex) method to retrieve the null value from Bigint_Tab. Check if + * it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetLong03() throws Exception { + super.testGetLong03(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/build.xml deleted file mode 100644 index 61b58866d3..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10.java index 424faec4ee..8d434629d2 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10.java @@ -32,8 +32,12 @@ import java.sql.Timestamp; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -53,6 +57,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class callStmtClient10 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt10"; @@ -125,10 +132,12 @@ public void setup(String[] args, Properties p) throws Exception { csSch = new csSchema(); msg = new JDBCTestMsg(); } catch (SQLException ex) { + ex.printStackTrace(); logErr("SQL Exception : " + ex.getMessage(), ex); } } catch (Exception e) { logErr("Setup Failed!"); + e.printStackTrace(); TestUtil.printStackTrace(e); } } diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10AppClient.java new file mode 100644 index 0000000000..7015df268a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10AppClient.java @@ -0,0 +1,471 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt10; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient10 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ +@Tag("tck-appclient") + +public class callStmtClient10AppClient extends callStmtClient10 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt10_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient10AppClient.class, callStmtClient10.class); + + // The appclient-client descriptor + URL appClientUrl = callStmtClient10AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt10/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient10AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient10AppClient.class, sunAppClientUrl); + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt10_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + + public static void main(String[] args) { + callStmtClient10AppClient theTests = new callStmtClient10AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:6; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type FLOAT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject41() throws Exception { + super.testSetObject41(); + } + + /* + * @testName: testSetObject42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:8; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DOUBLE and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject42() throws Exception { + super.testSetObject42(); + } + + /* + * @testName: testSetObject43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DOUBLE and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject43() throws Exception { + super.testSetObject43(); + } + + /* + * @testName: testSetObject44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JDBC:JAVADOC:10; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DECIMAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject44() throws Exception { + super.testSetObject44(); + } + + /* + * @testName: testSetObject45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DECIMAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject45() throws Exception { + super.testSetObject45(); + } + + /* + * @testName: testSetObject46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JDBC:JAVADOC:9; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type NUMERIC and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject46() throws Exception { + super.testSetObject46(); + } + + /* + * @testName: testSetObject47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type NUMERIC and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject47() throws Exception { + super.testSetObject47(); + } + + /* + * @testName: testSetObject48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:1; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIT and call statement.executeQuery(String sql) method and call + * ResultSet.getBoolean(int column). It should return a boolean value that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + * -Description details- This test is actually testing the ability to + * successfully call the setObject() method. In order to do that, this test + * will get the MAXVAL value from the bit tab, and then it will use the + * setObject method to set/change the MINVAL value to be the same as the + * MAXVAL. After setting the MINVAL, a query is done to get the newly set + * MINVAL value and a comparison is done to make sure it was indeed set to the + * same value as MAXVAL. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject48() throws Exception { + super.testSetObject48(); + } + + /* + * @testName: testSetObject49 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:1; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIT and call statement.executeQuery(String sql) method and call + * ResultSet.getBoolean(int column). It should return a boolean value that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + * -Description details- This test is actually testing the ability to + * successfully call the setObject() method. In order to do that, this test + * will get the MINVAL value from the bit tab, and then it will use the + * setObject method to set/change the MAXVAL value to be the same as the + * MINVAL. After setting the MAXVAL, a query is done to get the newly set + * MAXVAL value and a comparison is done to make sure it was indeed set to the + * same value as MINVAL. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject49() throws Exception { + super.testSetObject49(); + } + + /* + * @testName: testSetObject50 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:11; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type CHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject50() throws Exception { + super.testSetObject50(); + } + + /* + * @testName: testSetObject51 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:12; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type VARCHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject51() throws Exception { + super.testSetObject51(); + } + + /* + * @testName: testSetObject52 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:13; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type LONGVARCHAR and call statement.executeQuery(String sql) method and + * call ResultSet.getObject(int column). It should return a String object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject52() throws Exception { + super.testSetObject52(); + } + + /* + * @testName: testSetObject56 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:14;JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DATE and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Date object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject56() throws Exception { + super.testSetObject56(); + } + + /* + * @testName: testSetObject57 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:15; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TIME and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Time object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject57() throws Exception { + super.testSetObject57(); + } + + /* + * @testName: testSetObject58 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:16; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TIMESTAMP and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Timestamp object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject58() throws Exception { + super.testSetObject58(); + } + + /* + * @testName: testSetObject59 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:2; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Tinyint_Tab with the maximum value + * of the Tinyint_Tab. Execute a query to retrieve the Min_Val from + * Tinyint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("appclient") + public void testSetObject59() throws Exception { + super.testSetObject59(); + } + + /* + * @testName: testSetObject60 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:2; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Null_Val of the Tinyint_Tab with the minimum value + * of the Tinyint_Tab. Execute a query to retrieve the Null_Val from + * Tinyint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file,Both of them should be equal + */ + @Test + @TargetVehicle("appclient") + public void testSetObject60() throws Exception { + super.testSetObject60(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10EJB.java new file mode 100644 index 0000000000..659f21aa0b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10EJB.java @@ -0,0 +1,488 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt10; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient10 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ +@Tag("tck-appclient") + +public class callStmtClient10EJB extends callStmtClient10 implements Serializable { + + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentEJB(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt10_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient10EJB.class, callStmtClient10.class); + + URL resURL = callStmtClient10EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = callStmtClient10EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmt10_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt10_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient10EJB.class, callStmtClient10.class); + + + resURL = callStmtClient10EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmt10_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient10EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt10_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + + public static void main(String[] args) { + callStmtClient10EJB theTests = new callStmtClient10EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:6; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type FLOAT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject41() throws Exception { + super.testSetObject41(); + } + + /* + * @testName: testSetObject42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:8; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DOUBLE and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject42() throws Exception { + super.testSetObject42(); + } + + /* + * @testName: testSetObject43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DOUBLE and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject43() throws Exception { + super.testSetObject43(); + } + + /* + * @testName: testSetObject44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JDBC:JAVADOC:10; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DECIMAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject44() throws Exception { + super.testSetObject44(); + } + + /* + * @testName: testSetObject45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DECIMAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject45() throws Exception { + super.testSetObject45(); + } + + /* + * @testName: testSetObject46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JDBC:JAVADOC:9; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type NUMERIC and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject46() throws Exception { + super.testSetObject46(); + } + + /* + * @testName: testSetObject47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type NUMERIC and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject47() throws Exception { + super.testSetObject47(); + } + + /* + * @testName: testSetObject48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:1; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIT and call statement.executeQuery(String sql) method and call + * ResultSet.getBoolean(int column). It should return a boolean value that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + * -Description details- This test is actually testing the ability to + * successfully call the setObject() method. In order to do that, this test + * will get the MAXVAL value from the bit tab, and then it will use the + * setObject method to set/change the MINVAL value to be the same as the + * MAXVAL. After setting the MINVAL, a query is done to get the newly set + * MINVAL value and a comparison is done to make sure it was indeed set to the + * same value as MAXVAL. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject48() throws Exception { + super.testSetObject48(); + } + + /* + * @testName: testSetObject49 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:1; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIT and call statement.executeQuery(String sql) method and call + * ResultSet.getBoolean(int column). It should return a boolean value that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + * -Description details- This test is actually testing the ability to + * successfully call the setObject() method. In order to do that, this test + * will get the MINVAL value from the bit tab, and then it will use the + * setObject method to set/change the MAXVAL value to be the same as the + * MINVAL. After setting the MAXVAL, a query is done to get the newly set + * MAXVAL value and a comparison is done to make sure it was indeed set to the + * same value as MINVAL. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject49() throws Exception { + super.testSetObject49(); + } + + /* + * @testName: testSetObject50 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:11; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type CHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject50() throws Exception { + super.testSetObject50(); + } + + /* + * @testName: testSetObject51 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:12; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type VARCHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject51() throws Exception { + super.testSetObject51(); + } + + /* + * @testName: testSetObject52 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:13; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type LONGVARCHAR and call statement.executeQuery(String sql) method and + * call ResultSet.getObject(int column). It should return a String object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject52() throws Exception { + super.testSetObject52(); + } + + /* + * @testName: testSetObject56 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:14;JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DATE and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Date object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject56() throws Exception { + super.testSetObject56(); + } + + /* + * @testName: testSetObject57 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:15; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TIME and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Time object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject57() throws Exception { + super.testSetObject57(); + } + + /* + * @testName: testSetObject58 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:16; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TIMESTAMP and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Timestamp object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject58() throws Exception { + super.testSetObject58(); + } + + /* + * @testName: testSetObject59 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:2; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Tinyint_Tab with the maximum value + * of the Tinyint_Tab. Execute a query to retrieve the Min_Val from + * Tinyint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("ejb") + public void testSetObject59() throws Exception { + super.testSetObject59(); + } + + /* + * @testName: testSetObject60 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:2; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Null_Val of the Tinyint_Tab with the minimum value + * of the Tinyint_Tab. Execute a query to retrieve the Null_Val from + * Tinyint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file,Both of them should be equal + */ + @Test + @TargetVehicle("ejb") + public void testSetObject60() throws Exception { + super.testSetObject60(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10JSP.java new file mode 100644 index 0000000000..e5d0e04818 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10JSP.java @@ -0,0 +1,473 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt10; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient10 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-javatest") + +public class callStmtClient10JSP extends callStmtClient10 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt10_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(callStmtClient10JSP.class, callStmtClient10.class); + + // The jsp descriptor + URL jspUrl = callStmtClient10JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient10JSP.class.getResource("callStmt10_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient10JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient10JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + + public static void main(String[] args) { + callStmtClient10JSP theTests = new callStmtClient10JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:6; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type FLOAT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject41() throws Exception { + super.testSetObject41(); + } + + /* + * @testName: testSetObject42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:8; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DOUBLE and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject42() throws Exception { + super.testSetObject42(); + } + + /* + * @testName: testSetObject43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DOUBLE and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject43() throws Exception { + super.testSetObject43(); + } + + /* + * @testName: testSetObject44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JDBC:JAVADOC:10; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DECIMAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject44() throws Exception { + super.testSetObject44(); + } + + /* + * @testName: testSetObject45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DECIMAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject45() throws Exception { + super.testSetObject45(); + } + + /* + * @testName: testSetObject46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JDBC:JAVADOC:9; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type NUMERIC and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject46() throws Exception { + super.testSetObject46(); + } + + /* + * @testName: testSetObject47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type NUMERIC and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject47() throws Exception { + super.testSetObject47(); + } + + /* + * @testName: testSetObject48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:1; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIT and call statement.executeQuery(String sql) method and call + * ResultSet.getBoolean(int column). It should return a boolean value that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + * -Description details- This test is actually testing the ability to + * successfully call the setObject() method. In order to do that, this test + * will get the MAXVAL value from the bit tab, and then it will use the + * setObject method to set/change the MINVAL value to be the same as the + * MAXVAL. After setting the MINVAL, a query is done to get the newly set + * MINVAL value and a comparison is done to make sure it was indeed set to the + * same value as MAXVAL. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject48() throws Exception { + super.testSetObject48(); + } + + /* + * @testName: testSetObject49 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:1; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIT and call statement.executeQuery(String sql) method and call + * ResultSet.getBoolean(int column). It should return a boolean value that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + * -Description details- This test is actually testing the ability to + * successfully call the setObject() method. In order to do that, this test + * will get the MINVAL value from the bit tab, and then it will use the + * setObject method to set/change the MAXVAL value to be the same as the + * MINVAL. After setting the MAXVAL, a query is done to get the newly set + * MAXVAL value and a comparison is done to make sure it was indeed set to the + * same value as MINVAL. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject49() throws Exception { + super.testSetObject49(); + } + + /* + * @testName: testSetObject50 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:11; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type CHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject50() throws Exception { + super.testSetObject50(); + } + + /* + * @testName: testSetObject51 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:12; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type VARCHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject51() throws Exception { + super.testSetObject51(); + } + + /* + * @testName: testSetObject52 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:13; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type LONGVARCHAR and call statement.executeQuery(String sql) method and + * call ResultSet.getObject(int column). It should return a String object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject52() throws Exception { + super.testSetObject52(); + } + + /* + * @testName: testSetObject56 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:14;JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DATE and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Date object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject56() throws Exception { + super.testSetObject56(); + } + + /* + * @testName: testSetObject57 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:15; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TIME and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Time object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject57() throws Exception { + super.testSetObject57(); + } + + /* + * @testName: testSetObject58 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:16; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TIMESTAMP and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Timestamp object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject58() throws Exception { + super.testSetObject58(); + } + + /* + * @testName: testSetObject59 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:2; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Tinyint_Tab with the maximum value + * of the Tinyint_Tab. Execute a query to retrieve the Min_Val from + * Tinyint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("jsp") + public void testSetObject59() throws Exception { + super.testSetObject59(); + } + + /* + * @testName: testSetObject60 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:2; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Null_Val of the Tinyint_Tab with the minimum value + * of the Tinyint_Tab. Execute a query to retrieve the Null_Val from + * Tinyint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file,Both of them should be equal + */ + @Test + @TargetVehicle("jsp") + public void testSetObject60() throws Exception { + super.testSetObject60(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10Servlet.java new file mode 100644 index 0000000000..54e4a1f45b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt10/callStmtClient10Servlet.java @@ -0,0 +1,466 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt10; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient10 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + + +public class callStmtClient10Servlet extends callStmtClient10 implements Serializable { + + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt10_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient10Servlet.class, callStmtClient10.class); + archive.addAsWebInfResource(callStmtClient10Servlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + + // The servlet descriptor + URL servletUrl = callStmtClient10Servlet.class.getResource("servlet_vehicle_web.xml"); + if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); + } + // The sun servlet descriptor + URL sunServletUrl = callStmtClient10Servlet.class.getResource("callStmt10_servlet_vehicle_web.war.sun-web.xml"); + if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient10Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + + public static void main(String[] args) { + callStmtClient10Servlet theTests = new callStmtClient10Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:6; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type FLOAT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject41() throws Exception { + super.testSetObject41(); + } + + /* + * @testName: testSetObject42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:8; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DOUBLE and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject42() throws Exception { + super.testSetObject42(); + } + + /* + * @testName: testSetObject43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DOUBLE and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject43() throws Exception { + super.testSetObject43(); + } + + /* + * @testName: testSetObject44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JDBC:JAVADOC:10; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DECIMAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject44() throws Exception { + super.testSetObject44(); + } + + /* + * @testName: testSetObject45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DECIMAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject45() throws Exception { + super.testSetObject45(); + } + + /* + * @testName: testSetObject46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JDBC:JAVADOC:9; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type NUMERIC and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject46() throws Exception { + super.testSetObject46(); + } + + /* + * @testName: testSetObject47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type NUMERIC and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject47() throws Exception { + super.testSetObject47(); + } + + /* + * @testName: testSetObject48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:1; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIT and call statement.executeQuery(String sql) method and call + * ResultSet.getBoolean(int column). It should return a boolean value that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + * -Description details- This test is actually testing the ability to + * successfully call the setObject() method. In order to do that, this test + * will get the MAXVAL value from the bit tab, and then it will use the + * setObject method to set/change the MINVAL value to be the same as the + * MAXVAL. After setting the MINVAL, a query is done to get the newly set + * MINVAL value and a comparison is done to make sure it was indeed set to the + * same value as MAXVAL. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject48() throws Exception { + super.testSetObject48(); + } + + /* + * @testName: testSetObject49 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:1; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIT and call statement.executeQuery(String sql) method and call + * ResultSet.getBoolean(int column). It should return a boolean value that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + * -Description details- This test is actually testing the ability to + * successfully call the setObject() method. In order to do that, this test + * will get the MINVAL value from the bit tab, and then it will use the + * setObject method to set/change the MAXVAL value to be the same as the + * MINVAL. After setting the MAXVAL, a query is done to get the newly set + * MAXVAL value and a comparison is done to make sure it was indeed set to the + * same value as MINVAL. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject49() throws Exception { + super.testSetObject49(); + } + + /* + * @testName: testSetObject50 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:11; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type CHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject50() throws Exception { + super.testSetObject50(); + } + + /* + * @testName: testSetObject51 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:12; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type VARCHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject51() throws Exception { + super.testSetObject51(); + } + + /* + * @testName: testSetObject52 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:13; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type LONGVARCHAR and call statement.executeQuery(String sql) method and + * call ResultSet.getObject(int column). It should return a String object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject52() throws Exception { + super.testSetObject52(); + } + + /* + * @testName: testSetObject56 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:14;JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type DATE and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Date object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject56() throws Exception { + super.testSetObject56(); + } + + /* + * @testName: testSetObject57 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:15; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TIME and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Time object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject57() throws Exception { + super.testSetObject57(); + } + + /* + * @testName: testSetObject58 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:16; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TIMESTAMP and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Timestamp object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject58() throws Exception { + super.testSetObject58(); + } + + /* + * @testName: testSetObject59 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:2; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Tinyint_Tab with the maximum value + * of the Tinyint_Tab. Execute a query to retrieve the Min_Val from + * Tinyint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("servlet") + public void testSetObject59() throws Exception { + super.testSetObject59(); + } + + /* + * @testName: testSetObject60 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:2; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Null_Val of the Tinyint_Tab with the minimum value + * of the Tinyint_Tab. Execute a query to retrieve the Null_Val from + * Tinyint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file,Both of them should be equal + */ + @Test + @TargetVehicle("servlet") + public void testSetObject60() throws Exception { + super.testSetObject60(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/build.xml deleted file mode 100644 index 47df8e3763..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11.java index 3f0ef7f241..28fa1671c5 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11.java @@ -34,8 +34,12 @@ import java.sql.Statement; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -54,6 +58,11 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") +@Tag("web_profile") +@Tag("tck-javatest") public class callStmtClient11 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt11"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11AppClient.java new file mode 100644 index 0000000000..964c67f695 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11AppClient.java @@ -0,0 +1,465 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)callStmtClient11.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt11; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient11 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-appclient") + +public class callStmtClient11AppClient extends callStmtClient11 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt11"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt11_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient11AppClient.class, callStmtClient11.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient11AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient11AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient11AppClient.class, sunAppClientUrl); + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt11_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient11AppClient theTests = new callStmtClient11AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Smallint_Tab with the maximum value + * of the Smallint_Tab. Execute a query to retrieve the Min_Val from + * Smallint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("appclient") + public void testSetObject61() throws Exception { + super.testSetObject61(); + } + + /* + * @testName: testSetObject62 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Smallint_Tab with the minimum + * value of the Smallint_Tab. Execute a query to retrieve the Null_Val from + * Smallint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("appclient") + public void testSetObject62() throws Exception { + super.testSetObject62(); + } + + /* + * @testName: testSetObject63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Integer_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("appclient") + public void testSetObject63() throws Exception { + super.testSetObject63(); + } + + /* + * @testName: testSetObject64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Integer_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Integer_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("appclient") + public void testSetObject64() throws Exception { + super.testSetObject64(); + } + + /* + * @testName: testSetObject65 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Bigint_Tab with the maximum value + * of the Bigint_Tab. Execute a query to retrieve the Min_Val from Bigint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("appclient") + public void testSetObject65() throws Exception { + super.testSetObject65(); + } + + /* + * @testName: testSetObject66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Bigint_Tab with the minimum value + * of the Bigint_Tab. Execute a query to retrieve the Null_Val from + * Bigint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("appclient") + public void testSetObject66() throws Exception { + super.testSetObject66(); + } + + /* + * @testName: testSetObject67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:7; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Real_Tab. Execute a query to retrieve the Min_Val from Real_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("appclient") + public void testSetObject67() throws Exception { + super.testSetObject67(); + } + + /* + * @testName: testSetObject68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Real_Tab with the minimum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Real_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("appclient") + public void testSetObject68() throws Exception { + super.testSetObject68(); + } + + /* + * @testName: testSetObject69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Float_Tab with the maximum value of + * the Decimal_Tab. Execute a query to retrieve the Min_Val from Float_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("appclient") + public void testSetObject69() throws Exception { + super.testSetObject69(); + } + + /* + * @testName: testSetObject70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Float_Tab with the minimum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject70() throws Exception { + super.testSetObject70(); + } + + /* + * @testName: testSetObject71 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Double_Tab with the maximum value + * of the Double_Tab. Execute a query to retrieve the Min_Val from Double_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject71() throws Exception { + super.testSetObject71(); + } + + /* + * @testName: testSetObject72 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Double_Tab with the minimum value + * of the Double_Tab. Execute a query to retrieve the Null_Val from + * Double_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject72() throws Exception { + super.testSetObject72(); + } + + /* + * @testName: testSetObject73 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the maximum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject73() throws Exception { + super.testSetObject73(); + } + + /* + * @testName: testSetObject74 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the minimum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject74() throws Exception { + super.testSetObject74(); + } + + /* + * @testName: testSetObject75 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Numeric_Tab with the maximum value + * of the Numeric_Tab. Execute a query to retrieve the Min_Val from + * Numeric_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject75() throws Exception { + super.testSetObject75(); + } + + /* + * @testName: testSetObject76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the minimum value + * of the Numeric_Tab. Execute a query to retrieve the Null_Val from + * Numeric_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject76() throws Exception { + super.testSetObject76(); + } + + /* + * @testName: testSetObject79 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the maximum value of + * the Decimal_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject79() throws Exception { + super.testSetObject79(); + } + + /* + * @testName: testSetObject80 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the minimum value of + * the Decimal_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject80() throws Exception { + super.testSetObject80(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11EJB.java new file mode 100644 index 0000000000..9fe61d7c32 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11EJB.java @@ -0,0 +1,483 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)callStmtClient11.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt11; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient11 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-appclient") + +public class callStmtClient11EJB extends callStmtClient11 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt11"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt11_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient11EJB.class, callStmtClient11.class); + + + URL resURL = callStmtClient11EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = callStmtClient11EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmt11_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt11_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient11EJB.class, callStmtClient11.class); + + resURL = callStmtClient11EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmt11_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient11EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt11_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient11EJB theTests = new callStmtClient11EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Smallint_Tab with the maximum value + * of the Smallint_Tab. Execute a query to retrieve the Min_Val from + * Smallint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("ejb") + public void testSetObject61() throws Exception { + super.testSetObject61(); + } + + /* + * @testName: testSetObject62 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Smallint_Tab with the minimum + * value of the Smallint_Tab. Execute a query to retrieve the Null_Val from + * Smallint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("ejb") + public void testSetObject62() throws Exception { + super.testSetObject62(); + } + + /* + * @testName: testSetObject63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Integer_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("ejb") + public void testSetObject63() throws Exception { + super.testSetObject63(); + } + + /* + * @testName: testSetObject64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Integer_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Integer_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("ejb") + public void testSetObject64() throws Exception { + super.testSetObject64(); + } + + /* + * @testName: testSetObject65 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Bigint_Tab with the maximum value + * of the Bigint_Tab. Execute a query to retrieve the Min_Val from Bigint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("ejb") + public void testSetObject65() throws Exception { + super.testSetObject65(); + } + + /* + * @testName: testSetObject66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Bigint_Tab with the minimum value + * of the Bigint_Tab. Execute a query to retrieve the Null_Val from + * Bigint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("ejb") + public void testSetObject66() throws Exception { + super.testSetObject66(); + } + + /* + * @testName: testSetObject67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:7; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Real_Tab. Execute a query to retrieve the Min_Val from Real_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("ejb") + public void testSetObject67() throws Exception { + super.testSetObject67(); + } + + /* + * @testName: testSetObject68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Real_Tab with the minimum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Real_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("ejb") + public void testSetObject68() throws Exception { + super.testSetObject68(); + } + + /* + * @testName: testSetObject69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Float_Tab with the maximum value of + * the Decimal_Tab. Execute a query to retrieve the Min_Val from Float_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("ejb") + public void testSetObject69() throws Exception { + super.testSetObject69(); + } + + /* + * @testName: testSetObject70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Float_Tab with the minimum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject70() throws Exception { + super.testSetObject70(); + } + + /* + * @testName: testSetObject71 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Double_Tab with the maximum value + * of the Double_Tab. Execute a query to retrieve the Min_Val from Double_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject71() throws Exception { + super.testSetObject71(); + } + + /* + * @testName: testSetObject72 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Double_Tab with the minimum value + * of the Double_Tab. Execute a query to retrieve the Null_Val from + * Double_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject72() throws Exception { + super.testSetObject72(); + } + + /* + * @testName: testSetObject73 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the maximum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject73() throws Exception { + super.testSetObject73(); + } + + /* + * @testName: testSetObject74 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the minimum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject74() throws Exception { + super.testSetObject74(); + } + + /* + * @testName: testSetObject75 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Numeric_Tab with the maximum value + * of the Numeric_Tab. Execute a query to retrieve the Min_Val from + * Numeric_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject75() throws Exception { + super.testSetObject75(); + } + + /* + * @testName: testSetObject76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the minimum value + * of the Numeric_Tab. Execute a query to retrieve the Null_Val from + * Numeric_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject76() throws Exception { + super.testSetObject76(); + } + + /* + * @testName: testSetObject79 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the maximum value of + * the Decimal_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject79() throws Exception { + super.testSetObject79(); + } + + /* + * @testName: testSetObject80 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the minimum value of + * the Decimal_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject80() throws Exception { + super.testSetObject80(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11JSP.java new file mode 100644 index 0000000000..031feb667e --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11JSP.java @@ -0,0 +1,467 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)callStmtClient11.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt11; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient11 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-javatest") + +public class callStmtClient11JSP extends callStmtClient11 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt11"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt11_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(callStmtClient11JSP.class, callStmtClient11.class); + + // The jsp descriptor + URL jspUrl = callStmtClient11JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient11JSP.class.getResource("callStmt11_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient11JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient11JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient11JSP theTests = new callStmtClient11JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Smallint_Tab with the maximum value + * of the Smallint_Tab. Execute a query to retrieve the Min_Val from + * Smallint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("jsp") + public void testSetObject61() throws Exception { + super.testSetObject61(); + } + + /* + * @testName: testSetObject62 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Smallint_Tab with the minimum + * value of the Smallint_Tab. Execute a query to retrieve the Null_Val from + * Smallint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("jsp") + public void testSetObject62() throws Exception { + super.testSetObject62(); + } + + /* + * @testName: testSetObject63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Integer_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("jsp") + public void testSetObject63() throws Exception { + super.testSetObject63(); + } + + /* + * @testName: testSetObject64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Integer_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Integer_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("jsp") + public void testSetObject64() throws Exception { + super.testSetObject64(); + } + + /* + * @testName: testSetObject65 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Bigint_Tab with the maximum value + * of the Bigint_Tab. Execute a query to retrieve the Min_Val from Bigint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("jsp") + public void testSetObject65() throws Exception { + super.testSetObject65(); + } + + /* + * @testName: testSetObject66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Bigint_Tab with the minimum value + * of the Bigint_Tab. Execute a query to retrieve the Null_Val from + * Bigint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("jsp") + public void testSetObject66() throws Exception { + super.testSetObject66(); + } + + /* + * @testName: testSetObject67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:7; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Real_Tab. Execute a query to retrieve the Min_Val from Real_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("jsp") + public void testSetObject67() throws Exception { + super.testSetObject67(); + } + + /* + * @testName: testSetObject68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Real_Tab with the minimum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Real_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("jsp") + public void testSetObject68() throws Exception { + super.testSetObject68(); + } + + /* + * @testName: testSetObject69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Float_Tab with the maximum value of + * the Decimal_Tab. Execute a query to retrieve the Min_Val from Float_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("jsp") + public void testSetObject69() throws Exception { + super.testSetObject69(); + } + + /* + * @testName: testSetObject70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Float_Tab with the minimum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject70() throws Exception { + super.testSetObject70(); + } + + /* + * @testName: testSetObject71 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Double_Tab with the maximum value + * of the Double_Tab. Execute a query to retrieve the Min_Val from Double_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject71() throws Exception { + super.testSetObject71(); + } + + /* + * @testName: testSetObject72 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Double_Tab with the minimum value + * of the Double_Tab. Execute a query to retrieve the Null_Val from + * Double_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject72() throws Exception { + super.testSetObject72(); + } + + /* + * @testName: testSetObject73 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the maximum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject73() throws Exception { + super.testSetObject73(); + } + + /* + * @testName: testSetObject74 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the minimum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject74() throws Exception { + super.testSetObject74(); + } + + /* + * @testName: testSetObject75 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Numeric_Tab with the maximum value + * of the Numeric_Tab. Execute a query to retrieve the Min_Val from + * Numeric_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject75() throws Exception { + super.testSetObject75(); + } + + /* + * @testName: testSetObject76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the minimum value + * of the Numeric_Tab. Execute a query to retrieve the Null_Val from + * Numeric_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject76() throws Exception { + super.testSetObject76(); + } + + /* + * @testName: testSetObject79 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the maximum value of + * the Decimal_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject79() throws Exception { + super.testSetObject79(); + } + + /* + * @testName: testSetObject80 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the minimum value of + * the Decimal_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject80() throws Exception { + super.testSetObject80(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11Servlet.java new file mode 100644 index 0000000000..af7d99316d --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt11/callStmtClient11Servlet.java @@ -0,0 +1,458 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)callStmtClient11.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt11; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient11 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-javatest") + +public class callStmtClient11Servlet extends callStmtClient11 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt11"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt11_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient11Servlet.class, callStmtClient11.class); + archive.addAsWebInfResource(callStmtClient11Servlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + + // The servlet descriptor + URL servletUrl = callStmtClient11Servlet.class.getResource("servlet_vehicle_web.xml"); + if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); + } + // The sun servlet descriptor + URL sunServletUrl = callStmtClient11Servlet.class.getResource("callStmt11_servlet_vehicle_web.war.sun-web.xml"); + if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient11Servlet.class, sunServletUrl); + + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient11Servlet theTests = new callStmtClient11Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Smallint_Tab with the maximum value + * of the Smallint_Tab. Execute a query to retrieve the Min_Val from + * Smallint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("servlet") + public void testSetObject61() throws Exception { + super.testSetObject61(); + } + + /* + * @testName: testSetObject62 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Smallint_Tab with the minimum + * value of the Smallint_Tab. Execute a query to retrieve the Null_Val from + * Smallint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("servlet") + public void testSetObject62() throws Exception { + super.testSetObject62(); + } + + /* + * @testName: testSetObject63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Integer_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("servlet") + public void testSetObject63() throws Exception { + super.testSetObject63(); + } + + /* + * @testName: testSetObject64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Integer_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Integer_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("servlet") + public void testSetObject64() throws Exception { + super.testSetObject64(); + } + + /* + * @testName: testSetObject65 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Bigint_Tab with the maximum value + * of the Bigint_Tab. Execute a query to retrieve the Min_Val from Bigint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("servlet") + public void testSetObject65() throws Exception { + super.testSetObject65(); + } + + /* + * @testName: testSetObject66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Bigint_Tab with the minimum value + * of the Bigint_Tab. Execute a query to retrieve the Null_Val from + * Bigint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal + */ + @Test + @TargetVehicle("servlet") + public void testSetObject66() throws Exception { + super.testSetObject66(); + } + + /* + * @testName: testSetObject67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JDBC:JAVADOC:7; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Real_Tab. Execute a query to retrieve the Min_Val from Real_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("servlet") + public void testSetObject67() throws Exception { + super.testSetObject67(); + } + + /* + * @testName: testSetObject68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Real_Tab with the minimum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Real_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("servlet") + public void testSetObject68() throws Exception { + super.testSetObject68(); + } + + /* + * @testName: testSetObject69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Float_Tab with the maximum value of + * the Decimal_Tab. Execute a query to retrieve the Min_Val from Float_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal + */ + @Test + @TargetVehicle("servlet") + public void testSetObject69() throws Exception { + super.testSetObject69(); + } + + /* + * @testName: testSetObject70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Float_Tab with the minimum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject70() throws Exception { + super.testSetObject70(); + } + + /* + * @testName: testSetObject71 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Double_Tab with the maximum value + * of the Double_Tab. Execute a query to retrieve the Min_Val from Double_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject71() throws Exception { + super.testSetObject71(); + } + + /* + * @testName: testSetObject72 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Double_Tab with the minimum value + * of the Double_Tab. Execute a query to retrieve the Null_Val from + * Double_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject72() throws Exception { + super.testSetObject72(); + } + + /* + * @testName: testSetObject73 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the maximum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject73() throws Exception { + super.testSetObject73(); + } + + /* + * @testName: testSetObject74 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the minimum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject74() throws Exception { + super.testSetObject74(); + } + + /* + * @testName: testSetObject75 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Numeric_Tab with the maximum value + * of the Numeric_Tab. Execute a query to retrieve the Min_Val from + * Numeric_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject75() throws Exception { + super.testSetObject75(); + } + + /* + * @testName: testSetObject76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the minimum value + * of the Numeric_Tab. Execute a query to retrieve the Null_Val from + * Numeric_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject76() throws Exception { + super.testSetObject76(); + } + + /* + * @testName: testSetObject79 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the maximum value of + * the Decimal_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject79() throws Exception { + super.testSetObject79(); + } + + /* + * @testName: testSetObject80 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the minimum value of + * the Decimal_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject80() throws Exception { + super.testSetObject80(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/build.xml deleted file mode 100644 index 0dedd26c5b..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12.java index bd0c1547ef..e56d106aa1 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12.java @@ -30,7 +30,10 @@ import java.sql.Statement; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; @@ -51,6 +54,11 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") +@Tag("web_profile") +@Tag("tck-javatest") public class callStmtClient12 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt12"; @@ -82,13 +90,6 @@ public class callStmtClient12 extends ServiceEETest implements Serializable { private JDBCTestMsg msg = null; - /* Run test in standalone mode */ - public static void main(String[] args) { - callStmtClient12 theTests = new callStmtClient12(); - Status s = theTests.run(args, System.out, System.err); - s.exit(); - } - /* Test setup: */ /* * @class.setup_props: Driver, the Driver name; db1, the database name with diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12AppClient.java new file mode 100644 index 0000000000..a83da41467 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12AppClient.java @@ -0,0 +1,496 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient12.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt12; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient12 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ +@Tag("tck-appclient") + +public class callStmtClient12AppClient extends callStmtClient12 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt12_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient12AppClient.class, callStmtClient12.class); + + // The appclient-client descriptor + URL appClientUrl = callStmtClient12AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient12AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient12AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt12_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient12AppClient theTests = new callStmtClient12AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject81 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the maximum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject81() throws Exception { + super.testSetObject81(); + } + + /* + * @testName: testSetObject82 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the minimum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject82() throws Exception { + super.testSetObject82(); + } + + /* + * @testName: testSetObject83 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the maximum + * value of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the maximum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject83() throws Exception { + super.testSetObject83(); + } + + /* + * @testName: testSetObject84 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the minimum + * value of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the minimum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject84() throws Exception { + super.testSetObject84(); + } + + /* + * @testName: testSetObject85 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Tinyint_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Tinyint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject85() throws Exception { + super.testSetObject85(); + } + + /* + * @testName: testSetObject86 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Tinyint_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Tinyint_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject86() throws Exception { + super.testSetObject86(); + } + + /* + * @testName: testSetObject87 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Smallint_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Smallint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject87() throws Exception { + super.testSetObject87(); + } + + /* + * @testName: testSetObject88 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Smallint_Tab with the minimum + * value of the Bit_Tab. Execute a query to retrieve the Null_Val from + * Smallint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject88() throws Exception { + super.testSetObject88(); + } + + /* + * @testName: testSetObject89 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Integer_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject89() throws Exception { + super.testSetObject89(); + } + + /* + * @testName: testSetObject90 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Integer_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Integer_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject90() throws Exception { + super.testSetObject90(); + } + + /* + * @testName: testSetObject91 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Bigint_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Bigint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject91() throws Exception { + super.testSetObject91(); + } + + /* + * @testName: testSetObject92 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Bigint_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Bigint_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject92() throws Exception { + super.testSetObject92(); + } + + /* + * @testName: testSetObject93 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Real_Tab with the maximum value of + * the Bit_Tab. Execute a query to retrieve the Min_Val from Real_Tab. Compare + * the returned value with the maximum value extracted from tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject93() throws Exception { + super.testSetObject93(); + } + + /* + * @testName: testSetObject94 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Real_Tab with the minimum value of + * the Bit_Tab. Execute a query to retrieve the Null_Val from Real_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject94() throws Exception { + super.testSetObject94(); + } + + /* + * @testName: testSetObject95 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Float_Tab with the maximum value of + * the Bit_Tab. Execute a query to retrieve the Min_Val from Float_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject95() throws Exception { + super.testSetObject95(); + } + + /* + * @testName: testSetObject96 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Float_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Float_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject96() throws Exception { + super.testSetObject96(); + } + + /* + * @testName: testSetObject97 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Double_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Double_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject97() throws Exception { + super.testSetObject97(); + } + + /* + * @testName: testSetObject98 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Double_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Double_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject98() throws Exception { + super.testSetObject98(); + } + + /* + * @testName: testSetObject99 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Decimal_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject99() throws Exception { + super.testSetObject99(); + } + + /* + * @testName: testSetObject100 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Decimal_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject100() throws Exception { + super.testSetObject100(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12EJB.java new file mode 100644 index 0000000000..947265afb5 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12EJB.java @@ -0,0 +1,521 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient12.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt12; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.callStmt.callStmt11.callStmtClient11EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient12 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient12EJB extends callStmtClient12 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt12_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient12EJB.class, callStmtClient12.class); + + + URL resURL = callStmtClient12EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient11EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmt12_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt12_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient12EJB.class, callStmtClient12.class); + + + resURL = callStmtClient12EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmt12_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient12EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt12_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient12EJB theTests = new callStmtClient12EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject81 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the maximum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject81() throws Exception { + super.testSetObject81(); + } + + /* + * @testName: testSetObject82 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the minimum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject82() throws Exception { + super.testSetObject82(); + } + + /* + * @testName: testSetObject83 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the maximum + * value of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the maximum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject83() throws Exception { + super.testSetObject83(); + } + + /* + * @testName: testSetObject84 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the minimum + * value of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the minimum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject84() throws Exception { + super.testSetObject84(); + } + + /* + * @testName: testSetObject85 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Tinyint_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Tinyint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject85() throws Exception { + super.testSetObject85(); + } + + /* + * @testName: testSetObject86 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Tinyint_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Tinyint_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject86() throws Exception { + super.testSetObject86(); + } + + /* + * @testName: testSetObject87 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Smallint_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Smallint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject87() throws Exception { + super.testSetObject87(); + } + + /* + * @testName: testSetObject88 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Smallint_Tab with the minimum + * value of the Bit_Tab. Execute a query to retrieve the Null_Val from + * Smallint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject88() throws Exception { + super.testSetObject88(); + } + + /* + * @testName: testSetObject89 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Integer_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject89() throws Exception { + super.testSetObject89(); + } + + /* + * @testName: testSetObject90 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Integer_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Integer_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject90() throws Exception { + super.testSetObject90(); + } + + /* + * @testName: testSetObject91 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Bigint_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Bigint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject91() throws Exception { + super.testSetObject91(); + } + + /* + * @testName: testSetObject92 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Bigint_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Bigint_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject92() throws Exception { + super.testSetObject92(); + } + + /* + * @testName: testSetObject93 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Real_Tab with the maximum value of + * the Bit_Tab. Execute a query to retrieve the Min_Val from Real_Tab. Compare + * the returned value with the maximum value extracted from tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject93() throws Exception { + super.testSetObject93(); + } + + /* + * @testName: testSetObject94 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Real_Tab with the minimum value of + * the Bit_Tab. Execute a query to retrieve the Null_Val from Real_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject94() throws Exception { + super.testSetObject94(); + } + + /* + * @testName: testSetObject95 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Float_Tab with the maximum value of + * the Bit_Tab. Execute a query to retrieve the Min_Val from Float_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject95() throws Exception { + super.testSetObject95(); + } + + /* + * @testName: testSetObject96 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Float_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Float_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject96() throws Exception { + super.testSetObject96(); + } + + /* + * @testName: testSetObject97 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Double_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Double_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject97() throws Exception { + super.testSetObject97(); + } + + /* + * @testName: testSetObject98 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Double_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Double_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject98() throws Exception { + super.testSetObject98(); + } + + /* + * @testName: testSetObject99 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Decimal_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject99() throws Exception { + super.testSetObject99(); + } + + /* + * @testName: testSetObject100 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Decimal_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject100() throws Exception { + super.testSetObject100(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12JSP.java new file mode 100644 index 0000000000..cd901ba464 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12JSP.java @@ -0,0 +1,501 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient12.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt12; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient12 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-javatest") + +public class callStmtClient12JSP extends callStmtClient12 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt12_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(callStmtClient12JSP.class, callStmtClient12.class); + + // The jsp descriptor + URL jspUrl = callStmtClient12JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient12JSP.class.getResource("callStmt12_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient12JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient12JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient12JSP theTests = new callStmtClient12JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject81 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the maximum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject81() throws Exception { + super.testSetObject81(); + } + + /* + * @testName: testSetObject82 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the minimum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject82() throws Exception { + super.testSetObject82(); + } + + /* + * @testName: testSetObject83 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the maximum + * value of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the maximum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject83() throws Exception { + super.testSetObject83(); + } + + /* + * @testName: testSetObject84 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the minimum + * value of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the minimum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject84() throws Exception { + super.testSetObject84(); + } + + /* + * @testName: testSetObject85 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Tinyint_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Tinyint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject85() throws Exception { + super.testSetObject85(); + } + + /* + * @testName: testSetObject86 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Tinyint_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Tinyint_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject86() throws Exception { + super.testSetObject86(); + } + + /* + * @testName: testSetObject87 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Smallint_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Smallint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject87() throws Exception { + super.testSetObject87(); + } + + /* + * @testName: testSetObject88 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Smallint_Tab with the minimum + * value of the Bit_Tab. Execute a query to retrieve the Null_Val from + * Smallint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject88() throws Exception { + super.testSetObject88(); + } + + /* + * @testName: testSetObject89 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Integer_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject89() throws Exception { + super.testSetObject89(); + } + + /* + * @testName: testSetObject90 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Integer_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Integer_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject90() throws Exception { + super.testSetObject90(); + } + + /* + * @testName: testSetObject91 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Bigint_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Bigint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject91() throws Exception { + super.testSetObject91(); + } + + /* + * @testName: testSetObject92 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Bigint_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Bigint_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject92() throws Exception { + super.testSetObject92(); + } + + /* + * @testName: testSetObject93 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Real_Tab with the maximum value of + * the Bit_Tab. Execute a query to retrieve the Min_Val from Real_Tab. Compare + * the returned value with the maximum value extracted from tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject93() throws Exception { + super.testSetObject93(); + } + + /* + * @testName: testSetObject94 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Real_Tab with the minimum value of + * the Bit_Tab. Execute a query to retrieve the Null_Val from Real_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject94() throws Exception { + super.testSetObject94(); + } + + /* + * @testName: testSetObject95 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Float_Tab with the maximum value of + * the Bit_Tab. Execute a query to retrieve the Min_Val from Float_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject95() throws Exception { + super.testSetObject95(); + } + + /* + * @testName: testSetObject96 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Float_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Float_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject96() throws Exception { + super.testSetObject96(); + } + + /* + * @testName: testSetObject97 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Double_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Double_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject97() throws Exception { + super.testSetObject97(); + } + + /* + * @testName: testSetObject98 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Double_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Double_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject98() throws Exception { + super.testSetObject98(); + } + + /* + * @testName: testSetObject99 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Decimal_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject99() throws Exception { + super.testSetObject99(); + } + + /* + * @testName: testSetObject100 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Decimal_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject100() throws Exception { + super.testSetObject100(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12Servlet.java new file mode 100644 index 0000000000..b35109ffd8 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt12/callStmtClient12Servlet.java @@ -0,0 +1,491 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient12.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt12; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient12 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ +@Tag("tck-javatest") + +public class callStmtClient12Servlet extends callStmtClient12 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt12_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient12Servlet.class, callStmtClient12.class); + archive.addAsWebInfResource(callStmtClient12Servlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + // The servlet descriptor + URL servletUrl = callStmtClient12Servlet.class.getResource("servlet_vehicle_web.xml"); + if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); + } + // The sun servlet descriptor + URL sunServletUrl = callStmtClient12Servlet.class.getResource("callStmt12_servlet_vehicle_web.war.sun-web.xml"); + if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient12Servlet.class, sunServletUrl); + + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient12Servlet theTests = new callStmtClient12Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject81 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the maximum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject81() throws Exception { + super.testSetObject81(); + } + + /* + * @testName: testSetObject82 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the minimum value + * of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject82() throws Exception { + super.testSetObject82(); + } + + /* + * @testName: testSetObject83 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the maximum + * value of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the maximum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject83() throws Exception { + super.testSetObject83(); + } + + /* + * @testName: testSetObject84 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the minimum + * value of the Decimal_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the minimum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject84() throws Exception { + super.testSetObject84(); + } + + /* + * @testName: testSetObject85 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Tinyint_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Tinyint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject85() throws Exception { + super.testSetObject85(); + } + + /* + * @testName: testSetObject86 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Tinyint_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Tinyint_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject86() throws Exception { + super.testSetObject86(); + } + + /* + * @testName: testSetObject87 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Smallint_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Smallint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject87() throws Exception { + super.testSetObject87(); + } + + /* + * @testName: testSetObject88 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Smallint_Tab with the minimum + * value of the Bit_Tab. Execute a query to retrieve the Null_Val from + * Smallint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject88() throws Exception { + super.testSetObject88(); + } + + /* + * @testName: testSetObject89 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Integer_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject89() throws Exception { + super.testSetObject89(); + } + + /* + * @testName: testSetObject90 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Integer_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Integer_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject90() throws Exception { + super.testSetObject90(); + } + + /* + * @testName: testSetObject91 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Bigint_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Bigint_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject91() throws Exception { + super.testSetObject91(); + } + + /* + * @testName: testSetObject92 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Bigint_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Bigint_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject92() throws Exception { + super.testSetObject92(); + } + + /* + * @testName: testSetObject93 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Real_Tab with the maximum value of + * the Bit_Tab. Execute a query to retrieve the Min_Val from Real_Tab. Compare + * the returned value with the maximum value extracted from tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject93() throws Exception { + super.testSetObject93(); + } + + /* + * @testName: testSetObject94 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Real_Tab with the minimum value of + * the Bit_Tab. Execute a query to retrieve the Null_Val from Real_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject94() throws Exception { + super.testSetObject94(); + } + + /* + * @testName: testSetObject95 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Float_Tab with the maximum value of + * the Bit_Tab. Execute a query to retrieve the Min_Val from Float_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject95() throws Exception { + super.testSetObject95(); + } + + /* + * @testName: testSetObject96 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Float_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Float_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject96() throws Exception { + super.testSetObject96(); + } + + /* + * @testName: testSetObject97 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Double_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Min_Val from Double_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject97() throws Exception { + super.testSetObject97(); + } + + /* + * @testName: testSetObject98 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Double_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Double_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject98() throws Exception { + super.testSetObject98(); + } + + /* + * @testName: testSetObject99 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Decimal_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject99() throws Exception { + super.testSetObject99(); + } + + /* + * @testName: testSetObject100 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Decimal_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject100() throws Exception { + super.testSetObject100(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/build.xml deleted file mode 100644 index 7452bcf9ee..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13.java index 7a87b7d334..357d5aafc6 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13.java @@ -30,8 +30,12 @@ import java.sql.Statement; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -51,6 +55,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class callStmtClient13 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt13"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13AppClient.java new file mode 100644 index 0000000000..74f3da031d --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13AppClient.java @@ -0,0 +1,461 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt13; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient13 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-appclient") + +public class callStmtClient13AppClient extends callStmtClient13 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt13"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt13_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient13AppClient.class, callStmtClient13.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient13AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient13AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient13AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt13_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient13AppClient theTests = new callStmtClient13AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject101 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Numeric_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject101() throws Exception { + super.testSetObject101(); + } + + /* + * @testName: testSetObject102 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Numeric_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject102() throws Exception { + super.testSetObject102(); + } + + /* + * @testName: testSetObject105 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the maximum value of + * the Bit_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject105() throws Exception { + super.testSetObject105(); + } + + /* + * @testName: testSetObject106 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the minimum value of + * the Bit_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject106() throws Exception { + super.testSetObject106(); + } + + /* + * @testName: testSetObject107 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Varchar_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject107() throws Exception { + super.testSetObject107(); + } + + /* + * @testName: testSetObject108 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Varchar_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject108() throws Exception { + super.testSetObject108(); + } + + /* + * @testName: testSetObject109 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the maximum + * value of the Bit_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the maximum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject109() throws Exception { + super.testSetObject109(); + } + + /* + * @testName: testSetObject110 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the minimum + * value of the Bit_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the minimum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject110() throws Exception { + super.testSetObject110(); + } + + /* + * @testName: testSetObject111 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Tinyint_Tab with the maximum value + * of the Tinyint_Tab. Execute a query to retrieve the Min_Val from + * Tinyint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject111() throws Exception { + super.testSetObject111(); + } + + /* + * @testName: testSetObject112 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Tinyint_Tab with the minimum value + * of the Tinyint_Tab. Execute a query to retrieve the Null_Val from + * Tinyint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject112() throws Exception { + super.testSetObject112(); + } + + /* + * @testName: testSetObject113 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Smallint_Tab with the maximum value + * of the Smallint_Tab. Execute a query to retrieve the Min_Val from + * Smallint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject113() throws Exception { + super.testSetObject113(); + } + + /* + * @testName: testSetObject114 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Smallint_Tab with the minimum + * value of the Smallint_Tab. Execute a query to retrieve the Null_Val from + * Smallint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject114() throws Exception { + super.testSetObject114(); + } + + /* + * @testName: testSetObject115 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Integer_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject115() throws Exception { + super.testSetObject115(); + } + + /* + * @testName: testSetObject116 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Integer_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Integer_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject116() throws Exception { + super.testSetObject116(); + } + + /* + * @testName: testSetObject117 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Bigint_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Bigint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject117() throws Exception { + super.testSetObject117(); + } + + /* + * @testName: testSetObject118 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Bigint_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Bigint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject118() throws Exception { + super.testSetObject118(); + } + + /* + * @testName: testSetObject119 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Real_Tab with the maximum value of + * the Integer_Tab. Execute a query to retrieve the Min_Val from Real_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject119() throws Exception { + super.testSetObject119(); + } + + /* + * @testName: testSetObject120 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Real_Tab with the minimum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Real_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject120() throws Exception { + super.testSetObject120(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13EJB.java new file mode 100644 index 0000000000..b727c4ab7f --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13EJB.java @@ -0,0 +1,482 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt13; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient13 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-appclient") + +public class callStmtClient13EJB extends callStmtClient13 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt13"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt13_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient13EJB.class, callStmtClient13.class); + + URL resURL = callStmtClient13EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = callStmtClient13EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmt13_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt13_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient13EJB.class, callStmtClient13.class); + + + resURL = callStmtClient13EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmt13_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient13EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt13_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + + return ear; + + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient13EJB theTests = new callStmtClient13EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject101 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Numeric_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject101() throws Exception { + super.testSetObject101(); + } + + /* + * @testName: testSetObject102 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Numeric_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject102() throws Exception { + super.testSetObject102(); + } + + /* + * @testName: testSetObject105 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the maximum value of + * the Bit_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject105() throws Exception { + super.testSetObject105(); + } + + /* + * @testName: testSetObject106 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the minimum value of + * the Bit_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject106() throws Exception { + super.testSetObject106(); + } + + /* + * @testName: testSetObject107 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Varchar_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject107() throws Exception { + super.testSetObject107(); + } + + /* + * @testName: testSetObject108 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Varchar_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject108() throws Exception { + super.testSetObject108(); + } + + /* + * @testName: testSetObject109 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the maximum + * value of the Bit_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the maximum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject109() throws Exception { + super.testSetObject109(); + } + + /* + * @testName: testSetObject110 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the minimum + * value of the Bit_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the minimum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject110() throws Exception { + super.testSetObject110(); + } + + /* + * @testName: testSetObject111 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Tinyint_Tab with the maximum value + * of the Tinyint_Tab. Execute a query to retrieve the Min_Val from + * Tinyint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject111() throws Exception { + super.testSetObject111(); + } + + /* + * @testName: testSetObject112 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Tinyint_Tab with the minimum value + * of the Tinyint_Tab. Execute a query to retrieve the Null_Val from + * Tinyint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject112() throws Exception { + super.testSetObject112(); + } + + /* + * @testName: testSetObject113 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Smallint_Tab with the maximum value + * of the Smallint_Tab. Execute a query to retrieve the Min_Val from + * Smallint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject113() throws Exception { + super.testSetObject113(); + } + + /* + * @testName: testSetObject114 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Smallint_Tab with the minimum + * value of the Smallint_Tab. Execute a query to retrieve the Null_Val from + * Smallint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject114() throws Exception { + super.testSetObject114(); + } + + /* + * @testName: testSetObject115 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Integer_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject115() throws Exception { + super.testSetObject115(); + } + + /* + * @testName: testSetObject116 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Integer_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Integer_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject116() throws Exception { + super.testSetObject116(); + } + + /* + * @testName: testSetObject117 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Bigint_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Bigint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject117() throws Exception { + super.testSetObject117(); + } + + /* + * @testName: testSetObject118 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Bigint_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Bigint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject118() throws Exception { + super.testSetObject118(); + } + + /* + * @testName: testSetObject119 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Real_Tab with the maximum value of + * the Integer_Tab. Execute a query to retrieve the Min_Val from Real_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject119() throws Exception { + super.testSetObject119(); + } + + /* + * @testName: testSetObject120 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Real_Tab with the minimum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Real_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject120() throws Exception { + super.testSetObject120(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13JSP.java new file mode 100644 index 0000000000..ec2e116dd5 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13JSP.java @@ -0,0 +1,463 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt13; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient13 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ +@Tag("tck-javatest") + +public class callStmtClient13JSP extends callStmtClient13 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt13"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt13_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(callStmtClient13JSP.class, callStmtClient13.class); + + // The jsp descriptor + URL jspUrl = callStmtClient13JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient13JSP.class.getResource("callStmt13_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient13JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient13JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient13JSP theTests = new callStmtClient13JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject101 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Numeric_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject101() throws Exception { + super.testSetObject101(); + } + + /* + * @testName: testSetObject102 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Numeric_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject102() throws Exception { + super.testSetObject102(); + } + + /* + * @testName: testSetObject105 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the maximum value of + * the Bit_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject105() throws Exception { + super.testSetObject105(); + } + + /* + * @testName: testSetObject106 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the minimum value of + * the Bit_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject106() throws Exception { + super.testSetObject106(); + } + + /* + * @testName: testSetObject107 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Varchar_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject107() throws Exception { + super.testSetObject107(); + } + + /* + * @testName: testSetObject108 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Varchar_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject108() throws Exception { + super.testSetObject108(); + } + + /* + * @testName: testSetObject109 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the maximum + * value of the Bit_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the maximum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject109() throws Exception { + super.testSetObject109(); + } + + /* + * @testName: testSetObject110 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the minimum + * value of the Bit_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the minimum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject110() throws Exception { + super.testSetObject110(); + } + + /* + * @testName: testSetObject111 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Tinyint_Tab with the maximum value + * of the Tinyint_Tab. Execute a query to retrieve the Min_Val from + * Tinyint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject111() throws Exception { + super.testSetObject111(); + } + + /* + * @testName: testSetObject112 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Tinyint_Tab with the minimum value + * of the Tinyint_Tab. Execute a query to retrieve the Null_Val from + * Tinyint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject112() throws Exception { + super.testSetObject112(); + } + + /* + * @testName: testSetObject113 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Smallint_Tab with the maximum value + * of the Smallint_Tab. Execute a query to retrieve the Min_Val from + * Smallint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject113() throws Exception { + super.testSetObject113(); + } + + /* + * @testName: testSetObject114 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Smallint_Tab with the minimum + * value of the Smallint_Tab. Execute a query to retrieve the Null_Val from + * Smallint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject114() throws Exception { + super.testSetObject114(); + } + + /* + * @testName: testSetObject115 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Integer_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject115() throws Exception { + super.testSetObject115(); + } + + /* + * @testName: testSetObject116 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Integer_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Integer_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject116() throws Exception { + super.testSetObject116(); + } + + /* + * @testName: testSetObject117 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Bigint_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Bigint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject117() throws Exception { + super.testSetObject117(); + } + + /* + * @testName: testSetObject118 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Bigint_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Bigint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject118() throws Exception { + super.testSetObject118(); + } + + /* + * @testName: testSetObject119 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Real_Tab with the maximum value of + * the Integer_Tab. Execute a query to retrieve the Min_Val from Real_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject119() throws Exception { + super.testSetObject119(); + } + + /* + * @testName: testSetObject120 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Real_Tab with the minimum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Real_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject120() throws Exception { + super.testSetObject120(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13Servlet.java new file mode 100644 index 0000000000..b69ebbbd92 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt13/callStmtClient13Servlet.java @@ -0,0 +1,455 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt13; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient13 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-javatest") + +public class callStmtClient13Servlet extends callStmtClient13 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt13"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt13_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient13Servlet.class, callStmtClient13.class); + archive.addAsWebInfResource(callStmtClient13Servlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + + // The servlet descriptor +URL servletUrl = callStmtClient13Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient13Servlet.class.getResource("callStmt13_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient13Servlet.class, sunServletUrl); + + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient13Servlet theTests = new callStmtClient13Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject101 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Numeric_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject101() throws Exception { + super.testSetObject101(); + } + + /* + * @testName: testSetObject102 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Numeric_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject102() throws Exception { + super.testSetObject102(); + } + + /* + * @testName: testSetObject105 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the maximum value of + * the Bit_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject105() throws Exception { + super.testSetObject105(); + } + + /* + * @testName: testSetObject106 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the minimum value of + * the Bit_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject106() throws Exception { + super.testSetObject106(); + } + + /* + * @testName: testSetObject107 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the maximum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Varchar_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject107() throws Exception { + super.testSetObject107(); + } + + /* + * @testName: testSetObject108 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the minimum value + * of the Bit_Tab. Execute a query to retrieve the Null_Val from Varchar_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject108() throws Exception { + super.testSetObject108(); + } + + /* + * @testName: testSetObject109 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the maximum + * value of the Bit_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the maximum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject109() throws Exception { + super.testSetObject109(); + } + + /* + * @testName: testSetObject110 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the minimum + * value of the Bit_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the minimum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject110() throws Exception { + super.testSetObject110(); + } + + /* + * @testName: testSetObject111 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Tinyint_Tab with the maximum value + * of the Tinyint_Tab. Execute a query to retrieve the Min_Val from + * Tinyint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject111() throws Exception { + super.testSetObject111(); + } + + /* + * @testName: testSetObject112 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Tinyint_Tab with the minimum value + * of the Tinyint_Tab. Execute a query to retrieve the Null_Val from + * Tinyint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject112() throws Exception { + super.testSetObject112(); + } + + /* + * @testName: testSetObject113 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Smallint_Tab with the maximum value + * of the Smallint_Tab. Execute a query to retrieve the Min_Val from + * Smallint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject113() throws Exception { + super.testSetObject113(); + } + + /* + * @testName: testSetObject114 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Smallint_Tab with the minimum + * value of the Smallint_Tab. Execute a query to retrieve the Null_Val from + * Smallint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject114() throws Exception { + super.testSetObject114(); + } + + /* + * @testName: testSetObject115 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Integer_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Integer_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject115() throws Exception { + super.testSetObject115(); + } + + /* + * @testName: testSetObject116 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Integer_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Integer_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject116() throws Exception { + super.testSetObject116(); + } + + /* + * @testName: testSetObject117 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Bigint_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Bigint_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject117() throws Exception { + super.testSetObject117(); + } + + /* + * @testName: testSetObject118 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Bigint_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Bigint_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject118() throws Exception { + super.testSetObject118(); + } + + /* + * @testName: testSetObject119 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Real_Tab with the maximum value of + * the Integer_Tab. Execute a query to retrieve the Min_Val from Real_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject119() throws Exception { + super.testSetObject119(); + } + + /* + * @testName: testSetObject120 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Real_Tab with the minimum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Real_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject120() throws Exception { + super.testSetObject120(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/build.xml deleted file mode 100644 index 24f24869c7..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14.java index 2f7a9c8350..197d23483d 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14.java @@ -30,8 +30,12 @@ import java.sql.Statement; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -50,6 +54,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class callStmtClient14 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt14"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14AppClient.java new file mode 100644 index 0000000000..6728c057dc --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14AppClient.java @@ -0,0 +1,461 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient14.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt14; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient14 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-appclient") + +public class callStmtClient14AppClient extends callStmtClient14 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt14"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt14_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient14AppClient.class, callStmtClient14.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient14AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient14AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient14AppClient.class, sunAppClientUrl); + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt14_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient14AppClient theTests = new callStmtClient14AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject121 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Float_Tab with the maximum value of + * the Integer_Tab. Execute a query to retrieve the Min_Val from Float_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject121() throws Exception { + super.testSetObject121(); + } + + /* + * @testName: testSetObject122 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Float_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Float_Tab. Compare the returned value with the minimum value extracted from + * tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject122() throws Exception { + super.testSetObject122(); + } + + /* + * @testName: testSetObject123 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Double_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Double_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject123() throws Exception { + super.testSetObject123(); + } + + /* + * @testName: testSetObject124 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Double_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Double_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject124() throws Exception { + super.testSetObject124(); + } + + /* + * @testName: testSetObject125 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject125() throws Exception { + super.testSetObject125(); + } + + /* + * @testName: testSetObject126 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject126() throws Exception { + super.testSetObject126(); + } + + /* + * @testName: testSetObject127 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Numeric_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Numeric_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject127() throws Exception { + super.testSetObject127(); + } + + /* + * @testName: testSetObject128 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Numeric_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject128() throws Exception { + super.testSetObject128(); + + } + + /* + * @testName: testSetObject131 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the maximum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject131() throws Exception { + super.testSetObject131(); + } + + /* + * @testName: testSetObject132 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the minimum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject132() throws Exception { + super.testSetObject132(); + } + + /* + * @testName: testSetObject133 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject133() throws Exception { + super.testSetObject133(); + } + + /* + * @testName: testSetObject134 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject134() throws Exception { + super.testSetObject134(); + } + + /* + * @testName: testSetObject135 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the maximum + * value of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the maximum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject135() throws Exception { + super.testSetObject135(); + } + + /* + * @testName: testSetObject136 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the minimum + * value of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the minimum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject136() throws Exception { + super.testSetObject136(); + } + + /* + * @testName: testSetObject137 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Tinyint_Tab with the + * maximum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject137() throws Exception { + super.testSetObject137(); + } + + /* + * @testName: testSetObject138 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Tinyint_Tab with the + * minimum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject138() throws Exception { + super.testSetObject138(); + } + + /* + * @testName: testSetObject139 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Smallint_Tab with the + * maximum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject139() throws Exception { + super.testSetObject139(); + } + + /* + * @testName: testSetObject140 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Smallint_Tab with the + * minimum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject140() throws Exception { + super.testSetObject140(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14EJB.java new file mode 100644 index 0000000000..7e46d2e0b8 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14EJB.java @@ -0,0 +1,481 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient14.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt14; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient14 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-appclient") + +public class callStmtClient14EJB extends callStmtClient14 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt14"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt14_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient14EJB.class, callStmtClient14.class); + + + URL resURL = callStmtClient14EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient14EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmt14_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt14_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient14EJB.class, callStmtClient14.class); + + + resURL = callStmtClient14EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmt14_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient14EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt14_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient14EJB theTests = new callStmtClient14EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject121 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Float_Tab with the maximum value of + * the Integer_Tab. Execute a query to retrieve the Min_Val from Float_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject121() throws Exception { + super.testSetObject121(); + } + + /* + * @testName: testSetObject122 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Float_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Float_Tab. Compare the returned value with the minimum value extracted from + * tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject122() throws Exception { + super.testSetObject122(); + } + + /* + * @testName: testSetObject123 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Double_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Double_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject123() throws Exception { + super.testSetObject123(); + } + + /* + * @testName: testSetObject124 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Double_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Double_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject124() throws Exception { + super.testSetObject124(); + } + + /* + * @testName: testSetObject125 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject125() throws Exception { + super.testSetObject125(); + } + + /* + * @testName: testSetObject126 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject126() throws Exception { + super.testSetObject126(); + } + + /* + * @testName: testSetObject127 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Numeric_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Numeric_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject127() throws Exception { + super.testSetObject127(); + } + + /* + * @testName: testSetObject128 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Numeric_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject128() throws Exception { + super.testSetObject128(); + + } + + /* + * @testName: testSetObject131 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the maximum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject131() throws Exception { + super.testSetObject131(); + } + + /* + * @testName: testSetObject132 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the minimum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject132() throws Exception { + super.testSetObject132(); + } + + /* + * @testName: testSetObject133 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject133() throws Exception { + super.testSetObject133(); + } + + /* + * @testName: testSetObject134 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject134() throws Exception { + super.testSetObject134(); + } + + /* + * @testName: testSetObject135 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the maximum + * value of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the maximum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject135() throws Exception { + super.testSetObject135(); + } + + /* + * @testName: testSetObject136 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the minimum + * value of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the minimum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject136() throws Exception { + super.testSetObject136(); + } + + /* + * @testName: testSetObject137 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Tinyint_Tab with the + * maximum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject137() throws Exception { + super.testSetObject137(); + } + + /* + * @testName: testSetObject138 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Tinyint_Tab with the + * minimum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject138() throws Exception { + super.testSetObject138(); + } + + /* + * @testName: testSetObject139 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Smallint_Tab with the + * maximum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject139() throws Exception { + super.testSetObject139(); + } + + /* + * @testName: testSetObject140 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Smallint_Tab with the + * minimum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject140() throws Exception { + super.testSetObject140(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14JSP.java new file mode 100644 index 0000000000..30e1fa8ead --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14JSP.java @@ -0,0 +1,463 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient14.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt14; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient14 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-javatest") + +public class callStmtClient14JSP extends callStmtClient14 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt14"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt14_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient14JSP.class, callStmtClient14.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = callStmtClient14JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient14JSP.class.getResource("callStmt14_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient14JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient14JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient14JSP theTests = new callStmtClient14JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject121 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Float_Tab with the maximum value of + * the Integer_Tab. Execute a query to retrieve the Min_Val from Float_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject121() throws Exception { + super.testSetObject121(); + } + + /* + * @testName: testSetObject122 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Float_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Float_Tab. Compare the returned value with the minimum value extracted from + * tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject122() throws Exception { + super.testSetObject122(); + } + + /* + * @testName: testSetObject123 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Double_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Double_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject123() throws Exception { + super.testSetObject123(); + } + + /* + * @testName: testSetObject124 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Double_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Double_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject124() throws Exception { + super.testSetObject124(); + } + + /* + * @testName: testSetObject125 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject125() throws Exception { + super.testSetObject125(); + } + + /* + * @testName: testSetObject126 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject126() throws Exception { + super.testSetObject126(); + } + + /* + * @testName: testSetObject127 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Numeric_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Numeric_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject127() throws Exception { + super.testSetObject127(); + } + + /* + * @testName: testSetObject128 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Numeric_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject128() throws Exception { + super.testSetObject128(); + + } + + /* + * @testName: testSetObject131 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the maximum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject131() throws Exception { + super.testSetObject131(); + } + + /* + * @testName: testSetObject132 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the minimum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject132() throws Exception { + super.testSetObject132(); + } + + /* + * @testName: testSetObject133 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject133() throws Exception { + super.testSetObject133(); + } + + /* + * @testName: testSetObject134 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject134() throws Exception { + super.testSetObject134(); + } + + /* + * @testName: testSetObject135 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the maximum + * value of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the maximum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject135() throws Exception { + super.testSetObject135(); + } + + /* + * @testName: testSetObject136 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the minimum + * value of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the minimum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject136() throws Exception { + super.testSetObject136(); + } + + /* + * @testName: testSetObject137 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Tinyint_Tab with the + * maximum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject137() throws Exception { + super.testSetObject137(); + } + + /* + * @testName: testSetObject138 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Tinyint_Tab with the + * minimum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject138() throws Exception { + super.testSetObject138(); + } + + /* + * @testName: testSetObject139 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Smallint_Tab with the + * maximum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject139() throws Exception { + super.testSetObject139(); + } + + /* + * @testName: testSetObject140 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Smallint_Tab with the + * minimum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject140() throws Exception { + super.testSetObject140(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14Servlet.java new file mode 100644 index 0000000000..24539847b4 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt14/callStmtClient14Servlet.java @@ -0,0 +1,457 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient14.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt14; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient14 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient14Servlet extends callStmtClient14 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt14"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt14_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient14Servlet.class, callStmtClient14.class); + archive.addAsWebInfResource(callStmtClient14Servlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + + // The servlet descriptor +URL servletUrl = callStmtClient14Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient14Servlet.class.getResource("callStmt14_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient14Servlet.class, sunServletUrl); + + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient14Servlet theTests = new callStmtClient14Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject121 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Float_Tab with the maximum value of + * the Integer_Tab. Execute a query to retrieve the Min_Val from Float_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject121() throws Exception { + super.testSetObject121(); + } + + /* + * @testName: testSetObject122 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Float_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Float_Tab. Compare the returned value with the minimum value extracted from + * tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject122() throws Exception { + super.testSetObject122(); + } + + /* + * @testName: testSetObject123 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Double_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Double_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject123() throws Exception { + super.testSetObject123(); + } + + /* + * @testName: testSetObject124 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Double_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Double_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject124() throws Exception { + super.testSetObject124(); + } + + /* + * @testName: testSetObject125 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject125() throws Exception { + super.testSetObject125(); + } + + /* + * @testName: testSetObject126 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Decimal_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Decimal_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject126() throws Exception { + super.testSetObject126(); + } + + /* + * @testName: testSetObject127 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Min_Val of the Numeric_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Min_Val from + * Numeric_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject127() throws Exception { + super.testSetObject127(); + } + + /* + * @testName: testSetObject128 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Numeric_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Numeric_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject128() throws Exception { + super.testSetObject128(); + + } + + /* + * @testName: testSetObject131 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the maximum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the maximum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject131() throws Exception { + super.testSetObject131(); + } + + /* + * @testName: testSetObject132 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Char_Tab with the minimum value of + * the Integer_Tab. Execute a query to retrieve the Null_Val from Char_Tab. + * Compare the returned value with the minimum value extracted from tssql.stmt + * file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject132() throws Exception { + super.testSetObject132(); + } + + /* + * @testName: testSetObject133 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the maximum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the maximum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject133() throws Exception { + super.testSetObject133(); + } + + /* + * @testName: testSetObject134 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Varchar_Tab with the minimum value + * of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Varchar_Tab. Compare the returned value with the minimum value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject134() throws Exception { + super.testSetObject134(); + } + + /* + * @testName: testSetObject135 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the maximum + * value of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the maximum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject135() throws Exception { + super.testSetObject135(); + } + + /* + * @testName: testSetObject136 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of the Longvarchar_Tab with the minimum + * value of the Integer_Tab. Execute a query to retrieve the Null_Val from + * Longvarchar_Tab. Compare the returned value with the minimum value + * extracted from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject136() throws Exception { + super.testSetObject136(); + } + + /* + * @testName: testSetObject137 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Tinyint_Tab with the + * maximum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject137() throws Exception { + super.testSetObject137(); + } + + /* + * @testName: testSetObject138 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Tinyint_Tab with the + * minimum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject138() throws Exception { + super.testSetObject138(); + } + + /* + * @testName: testSetObject139 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Smallint_Tab with the + * maximum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject139() throws Exception { + super.testSetObject139(); + } + + /* + * @testName: testSetObject140 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Smallint_Tab with the + * minimum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject140() throws Exception { + super.testSetObject140(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/build.xml deleted file mode 100644 index 0ef7019724..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15.java index 168ea15151..0eccfb38cd 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15.java @@ -30,8 +30,12 @@ import java.sql.Statement; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -50,6 +54,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class callStmtClient15 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt15"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15AppClient.java new file mode 100644 index 0000000000..309cf4d326 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15AppClient.java @@ -0,0 +1,465 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient15.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt15; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient15 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient15AppClient extends callStmtClient15 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt15"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt15_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient15AppClient.class, callStmtClient15.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient15AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient15AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient15AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt15_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient15AppClient theTests = new callStmtClient15AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject141 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Integer_Tab with the + * maximum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject141() throws Exception { + super.testSetObject141(); + } + + /* + * @testName: testSetObject142 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Integer_Tab with the + * minimum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject142() throws Exception { + super.testSetObject142(); + } + + /* + * @testName: testSetObject143 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Bigint_Tab with the + * maximum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject143() throws Exception { + super.testSetObject143(); + + } + + /* + * @testName: testSetObject144 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Bigint_Tab with the + * minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject144() throws Exception { + super.testSetObject144(); + } + + /* + * @testName: testSetObject145 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Real_Tab with the + * maximum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject145() throws Exception { + super.testSetObject145(); + } + + /* + * @testName: testSetObject146 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Real_Tab with the + * minimum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject146() throws Exception { + super.testSetObject146(); + } + + /* + * @testName: testSetObject147 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Float_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject147() throws Exception { + super.testSetObject147(); + } + + /* + * @testName: testSetObject148 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Float_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject148() throws Exception { + super.testSetObject148(); + } + + /* + * @testName: testSetObject149 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Double_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject149() throws Exception { + super.testSetObject149(); + } + + /* + * @testName: testSetObject150 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Double_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject150() throws Exception { + super.testSetObject150(); + } + + /* + * @testName: testSetObject151 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject151() throws Exception { + super.testSetObject151(); + } + + /* + * @testName: testSetObject152 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Decimal_Tab with the + * minimum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject152() throws Exception { + super.testSetObject152(); + + } + + /* + * @testName: testSetObject153 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject153() throws Exception { + super.testSetObject153(); + } + + /* + * @testName: testSetObject154 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject154() throws Exception { + super.testSetObject154(); + + } + + /* + * @testName: testSetObject157 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Char_Tab with the maximum + * value of Bigint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject157() throws Exception { + super.testSetObject157(); + } + + /* + * @testName: testSetObject158 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Char_Tab with the + * minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject158() throws Exception { + super.testSetObject158(); + } + + /* + * @testName: testSetObject159 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Varchar_Tab with the + * maximum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject159() throws Exception { + super.testSetObject159(); + } + + /* + * @testName: testSetObject160 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Varchar_Tab with the + * minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject160() throws Exception { + super.testSetObject160(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15EJB.java new file mode 100644 index 0000000000..fd07d55864 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15EJB.java @@ -0,0 +1,485 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient15.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt15; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient15 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient15EJB extends callStmtClient15 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt15"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt15_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient15EJB.class, callStmtClient15.class); + + URL resURL = callStmtClient15EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = callStmtClient15EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmt15_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt15_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient15EJB.class, callStmtClient15.class); + + + resURL = callStmtClient15EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmt15_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient15EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt15_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient15EJB theTests = new callStmtClient15EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject141 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Integer_Tab with the + * maximum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject141() throws Exception { + super.testSetObject141(); + } + + /* + * @testName: testSetObject142 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Integer_Tab with the + * minimum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject142() throws Exception { + super.testSetObject142(); + } + + /* + * @testName: testSetObject143 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Bigint_Tab with the + * maximum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject143() throws Exception { + super.testSetObject143(); + + } + + /* + * @testName: testSetObject144 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Bigint_Tab with the + * minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject144() throws Exception { + super.testSetObject144(); + } + + /* + * @testName: testSetObject145 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Real_Tab with the + * maximum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject145() throws Exception { + super.testSetObject145(); + } + + /* + * @testName: testSetObject146 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Real_Tab with the + * minimum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject146() throws Exception { + super.testSetObject146(); + } + + /* + * @testName: testSetObject147 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Float_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject147() throws Exception { + super.testSetObject147(); + } + + /* + * @testName: testSetObject148 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Float_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject148() throws Exception { + super.testSetObject148(); + } + + /* + * @testName: testSetObject149 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Double_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject149() throws Exception { + super.testSetObject149(); + } + + /* + * @testName: testSetObject150 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Double_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject150() throws Exception { + super.testSetObject150(); + } + + /* + * @testName: testSetObject151 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject151() throws Exception { + super.testSetObject151(); + } + + /* + * @testName: testSetObject152 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Decimal_Tab with the + * minimum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject152() throws Exception { + super.testSetObject152(); + + } + + /* + * @testName: testSetObject153 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject153() throws Exception { + super.testSetObject153(); + } + + /* + * @testName: testSetObject154 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject154() throws Exception { + super.testSetObject154(); + + } + + /* + * @testName: testSetObject157 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Char_Tab with the maximum + * value of Bigint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject157() throws Exception { + super.testSetObject157(); + } + + /* + * @testName: testSetObject158 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Char_Tab with the + * minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject158() throws Exception { + super.testSetObject158(); + } + + /* + * @testName: testSetObject159 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Varchar_Tab with the + * maximum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject159() throws Exception { + super.testSetObject159(); + } + + /* + * @testName: testSetObject160 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Varchar_Tab with the + * minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject160() throws Exception { + super.testSetObject160(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15JSP.java new file mode 100644 index 0000000000..048d7b64bc --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15JSP.java @@ -0,0 +1,468 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient15.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt15; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient15 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient15JSP extends callStmtClient15 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt15"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt15_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient15JSP.class, callStmtClient15.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = callStmtClient15JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient15JSP.class.getResource("callStmt15_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient15JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient15JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient15JSP theTests = new callStmtClient15JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject141 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Integer_Tab with the + * maximum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject141() throws Exception { + super.testSetObject141(); + } + + /* + * @testName: testSetObject142 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Integer_Tab with the + * minimum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject142() throws Exception { + super.testSetObject142(); + } + + /* + * @testName: testSetObject143 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Bigint_Tab with the + * maximum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject143() throws Exception { + super.testSetObject143(); + + } + + /* + * @testName: testSetObject144 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Bigint_Tab with the + * minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject144() throws Exception { + super.testSetObject144(); + } + + /* + * @testName: testSetObject145 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Real_Tab with the + * maximum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject145() throws Exception { + super.testSetObject145(); + } + + /* + * @testName: testSetObject146 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Real_Tab with the + * minimum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject146() throws Exception { + super.testSetObject146(); + } + + /* + * @testName: testSetObject147 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Float_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject147() throws Exception { + super.testSetObject147(); + } + + /* + * @testName: testSetObject148 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Float_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject148() throws Exception { + super.testSetObject148(); + } + + /* + * @testName: testSetObject149 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Double_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject149() throws Exception { + super.testSetObject149(); + } + + /* + * @testName: testSetObject150 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Double_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject150() throws Exception { + super.testSetObject150(); + } + + /* + * @testName: testSetObject151 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject151() throws Exception { + super.testSetObject151(); + } + + /* + * @testName: testSetObject152 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Decimal_Tab with the + * minimum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject152() throws Exception { + super.testSetObject152(); + + } + + /* + * @testName: testSetObject153 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject153() throws Exception { + super.testSetObject153(); + } + + /* + * @testName: testSetObject154 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject154() throws Exception { + super.testSetObject154(); + + } + + /* + * @testName: testSetObject157 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Char_Tab with the maximum + * value of Bigint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject157() throws Exception { + super.testSetObject157(); + } + + /* + * @testName: testSetObject158 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Char_Tab with the + * minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject158() throws Exception { + super.testSetObject158(); + } + + /* + * @testName: testSetObject159 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Varchar_Tab with the + * maximum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject159() throws Exception { + super.testSetObject159(); + } + + /* + * @testName: testSetObject160 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Varchar_Tab with the + * minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject160() throws Exception { + super.testSetObject160(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15Servlet.java new file mode 100644 index 0000000000..8110656fc3 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt15/callStmtClient15Servlet.java @@ -0,0 +1,460 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient15.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt15; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient15 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient15Servlet extends callStmtClient15 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt15"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt15_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient15Servlet.class, callStmtClient15.class); + archive.addAsWebInfResource(callStmtClient15Servlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + + // The servlet descriptor +URL servletUrl = callStmtClient15Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient15Servlet.class.getResource("callStmt15_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient15Servlet.class, sunServletUrl); + + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient15Servlet theTests = new callStmtClient15Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject141 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Integer_Tab with the + * maximum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject141() throws Exception { + super.testSetObject141(); + } + + /* + * @testName: testSetObject142 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Integer_Tab with the + * minimum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject142() throws Exception { + super.testSetObject142(); + } + + /* + * @testName: testSetObject143 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Bigint_Tab with the + * maximum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject143() throws Exception { + super.testSetObject143(); + + } + + /* + * @testName: testSetObject144 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Bigint_Tab with the + * minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject144() throws Exception { + super.testSetObject144(); + } + + /* + * @testName: testSetObject145 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Real_Tab with the + * maximum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject145() throws Exception { + super.testSetObject145(); + } + + /* + * @testName: testSetObject146 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Real_Tab with the + * minimum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject146() throws Exception { + super.testSetObject146(); + } + + /* + * @testName: testSetObject147 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Float_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject147() throws Exception { + super.testSetObject147(); + } + + /* + * @testName: testSetObject148 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Float_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject148() throws Exception { + super.testSetObject148(); + } + + /* + * @testName: testSetObject149 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Double_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject149() throws Exception { + super.testSetObject149(); + } + + /* + * @testName: testSetObject150 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Double_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject150() throws Exception { + super.testSetObject150(); + } + + /* + * @testName: testSetObject151 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject151() throws Exception { + super.testSetObject151(); + } + + /* + * @testName: testSetObject152 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Decimal_Tab with the + * minimum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject152() throws Exception { + super.testSetObject152(); + + } + + /* + * @testName: testSetObject153 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject153() throws Exception { + super.testSetObject153(); + } + + /* + * @testName: testSetObject154 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject154() throws Exception { + super.testSetObject154(); + + } + + /* + * @testName: testSetObject157 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Char_Tab with the maximum + * value of Bigint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject157() throws Exception { + super.testSetObject157(); + } + + /* + * @testName: testSetObject158 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Char_Tab with the + * minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject158() throws Exception { + super.testSetObject158(); + } + + /* + * @testName: testSetObject159 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Varchar_Tab with the + * maximum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject159() throws Exception { + super.testSetObject159(); + } + + /* + * @testName: testSetObject160 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Varchar_Tab with the + * minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject160() throws Exception { + super.testSetObject160(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/build.xml deleted file mode 100644 index 09a79a3d24..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16.java index 0ed222d4b3..6e4b3bf0e5 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16.java @@ -30,8 +30,12 @@ import java.sql.Statement; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -50,6 +54,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class callStmtClient16 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt16"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16AppClient.java new file mode 100644 index 0000000000..347c1d96d3 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16AppClient.java @@ -0,0 +1,396 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient16.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt16; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient16 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ +@Tag("tck-appclient") + +public class callStmtClient16AppClient extends callStmtClient16 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt16"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt16_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient16AppClient.class, callStmtClient16.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient16AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient16AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient16AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt16_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient16AppClient theTests = new callStmtClient16AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject161 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Longvarchar_Tab with the + * maximum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject161() throws Exception { + super.testSetObject161(); + } + + /* + * @testName: testSetObject162 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Longvarchar_Tab with + * the minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject162() throws Exception { + super.testSetObject162(); + } + + /* + * @testName: testSetObject163 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Tinyint_Tab with the + * maximum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject163() throws Exception { + super.testSetObject163(); + } + + /* + * @testName: testSetObject164 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Tinyint_Tab with the + * minimum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject164() throws Exception { + super.testSetObject164(); + } + + /* + * @testName: testSetObject165 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Smallint_Tab with the + * maximum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method.Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject165() throws Exception { + super.testSetObject165(); + } + + /* + * @testName: testSetObject166 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Smallint_Tab with the + * minimum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject166() throws Exception { + super.testSetObject166(); + } + + /* + * @testName: testSetObject167 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Integer_Tab with some + * integer value after converting it to Float. Call the getObject(int + * columnno) method to retrieve this value. Compare this value with the value + * that is sent to database. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject167() throws Exception { + super.testSetObject167(); + } + + /* + * @testName: testSetObject171 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Real_Tab with the + * maximum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject171() throws Exception { + super.testSetObject171(); + } + + /* + * @testName: testSetObject172 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Real_Tab with the + * minimum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject172() throws Exception { + super.testSetObject172(); + } + + /* + * @testName: testSetObject173 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Float_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject173() throws Exception { + super.testSetObject173(); + } + + /* + * @testName: testSetObject174 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Float_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject174() throws Exception { + super.testSetObject174(); + } + + /* + * @testName: testSetObject177 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject177() throws Exception { + super.testSetObject177(); + } + + /* + * @testName: testSetObject178 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType, int scale) method,update the column Null_Val of Decimal_Tab + * with the minimum value of Decimal_Tab. Call the getObject(int columnno) + * method to retrieve this value. Extract the minimum value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject178() throws Exception { + super.testSetObject178(); + } + + /* + * @testName: testSetObject179 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method.Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject179() throws Exception { + super.testSetObject179(); + } + + /* + * @testName: testSetObject180 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject180() throws Exception { + super.testSetObject180(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16EJB.java new file mode 100644 index 0000000000..2bcb9bdd4a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16EJB.java @@ -0,0 +1,416 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient16.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt16; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient16 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-appclient") + +public class callStmtClient16EJB extends callStmtClient16 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt16"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt16_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient16EJB.class, callStmtClient16.class); + + URL resURL = callStmtClient16EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = callStmtClient16EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmt16_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt16_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient16EJB.class, callStmtClient16.class); + + resURL = callStmtClient16EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmt16_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient16EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt16_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient16EJB theTests = new callStmtClient16EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject161 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Longvarchar_Tab with the + * maximum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject161() throws Exception { + super.testSetObject161(); + } + + /* + * @testName: testSetObject162 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Longvarchar_Tab with + * the minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject162() throws Exception { + super.testSetObject162(); + } + + /* + * @testName: testSetObject163 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Tinyint_Tab with the + * maximum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject163() throws Exception { + super.testSetObject163(); + } + + /* + * @testName: testSetObject164 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Tinyint_Tab with the + * minimum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject164() throws Exception { + super.testSetObject164(); + } + + /* + * @testName: testSetObject165 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Smallint_Tab with the + * maximum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method.Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject165() throws Exception { + super.testSetObject165(); + } + + /* + * @testName: testSetObject166 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Smallint_Tab with the + * minimum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject166() throws Exception { + super.testSetObject166(); + } + + /* + * @testName: testSetObject167 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Integer_Tab with some + * integer value after converting it to Float. Call the getObject(int + * columnno) method to retrieve this value. Compare this value with the value + * that is sent to database. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject167() throws Exception { + super.testSetObject167(); + } + + /* + * @testName: testSetObject171 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Real_Tab with the + * maximum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject171() throws Exception { + super.testSetObject171(); + } + + /* + * @testName: testSetObject172 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Real_Tab with the + * minimum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject172() throws Exception { + super.testSetObject172(); + } + + /* + * @testName: testSetObject173 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Float_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject173() throws Exception { + super.testSetObject173(); + } + + /* + * @testName: testSetObject174 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Float_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject174() throws Exception { + super.testSetObject174(); + } + + /* + * @testName: testSetObject177 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject177() throws Exception { + super.testSetObject177(); + } + + /* + * @testName: testSetObject178 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType, int scale) method,update the column Null_Val of Decimal_Tab + * with the minimum value of Decimal_Tab. Call the getObject(int columnno) + * method to retrieve this value. Extract the minimum value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject178() throws Exception { + super.testSetObject178(); + } + + /* + * @testName: testSetObject179 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method.Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject179() throws Exception { + super.testSetObject179(); + } + + /* + * @testName: testSetObject180 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject180() throws Exception { + super.testSetObject180(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16JSP.java new file mode 100644 index 0000000000..64ccd05a79 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16JSP.java @@ -0,0 +1,402 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient16.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt16; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient16 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient16JSP extends callStmtClient16 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt16"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) + throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt16_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient16JSP.class, callStmtClient16.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = callStmtClient16JSP.class.getResource("jsp_vehicle_web.xml"); + if (jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient16JSP.class.getResource("callStmt16_jsp_vehicle_web.war.sun-web.xml"); + if (sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient16JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient16JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient16JSP theTests = new callStmtClient16JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject161 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Longvarchar_Tab with the + * maximum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject161() throws Exception { + super.testSetObject161(); + } + + /* + * @testName: testSetObject162 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Longvarchar_Tab with + * the minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject162() throws Exception { + super.testSetObject162(); + } + + /* + * @testName: testSetObject163 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Tinyint_Tab with the + * maximum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject163() throws Exception { + super.testSetObject163(); + } + + /* + * @testName: testSetObject164 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Tinyint_Tab with the + * minimum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject164() throws Exception { + super.testSetObject164(); + } + + /* + * @testName: testSetObject165 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Smallint_Tab with the + * maximum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method.Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject165() throws Exception { + super.testSetObject165(); + } + + /* + * @testName: testSetObject166 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Smallint_Tab with the + * minimum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject166() throws Exception { + super.testSetObject166(); + } + + /* + * @testName: testSetObject167 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Integer_Tab with some + * integer value after converting it to Float. Call the getObject(int + * columnno) method to retrieve this value. Compare this value with the value + * that is sent to database. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject167() throws Exception { + super.testSetObject167(); + } + + /* + * @testName: testSetObject171 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Real_Tab with the + * maximum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject171() throws Exception { + super.testSetObject171(); + } + + /* + * @testName: testSetObject172 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Real_Tab with the + * minimum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject172() throws Exception { + super.testSetObject172(); + } + + /* + * @testName: testSetObject173 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Float_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject173() throws Exception { + super.testSetObject173(); + } + + /* + * @testName: testSetObject174 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Float_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject174() throws Exception { + super.testSetObject174(); + } + + /* + * @testName: testSetObject177 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject177() throws Exception { + super.testSetObject177(); + } + + /* + * @testName: testSetObject178 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType, int scale) method,update the column Null_Val of Decimal_Tab + * with the minimum value of Decimal_Tab. Call the getObject(int columnno) + * method to retrieve this value. Extract the minimum value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject178() throws Exception { + super.testSetObject178(); + } + + /* + * @testName: testSetObject179 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method.Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject179() throws Exception { + super.testSetObject179(); + } + + /* + * @testName: testSetObject180 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject180() throws Exception { + super.testSetObject180(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16Servlet.java new file mode 100644 index 0000000000..e65074b7cd --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt16/callStmtClient16Servlet.java @@ -0,0 +1,392 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient16.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt16; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient16 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient16Servlet extends callStmtClient16 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt16"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) + throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt16_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient16Servlet.class, callStmtClient16.class); + // The servlet descriptor + URL servletUrl = callStmtClient16Servlet.class.getResource("servlet_vehicle_web.xml"); + if (servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); + } +// The sun servlet descriptor + URL sunServletUrl = callStmtClient16Servlet.class.getResource("callStmt16_servlet_vehicle_web.war.sun-web.xml"); + if (sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); + } +// Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient16Servlet.class, sunServletUrl); + + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient16Servlet theTests = new callStmtClient16Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject161 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Longvarchar_Tab with the + * maximum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject161() throws Exception { + super.testSetObject161(); + } + + /* + * @testName: testSetObject162 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Longvarchar_Tab with + * the minimum value of Bigint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject162() throws Exception { + super.testSetObject162(); + } + + /* + * @testName: testSetObject163 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Tinyint_Tab with the + * maximum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject163() throws Exception { + super.testSetObject163(); + } + + /* + * @testName: testSetObject164 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Tinyint_Tab with the + * minimum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject164() throws Exception { + super.testSetObject164(); + } + + /* + * @testName: testSetObject165 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Smallint_Tab with the + * maximum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method.Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject165() throws Exception { + super.testSetObject165(); + } + + /* + * @testName: testSetObject166 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Smallint_Tab with the + * minimum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject166() throws Exception { + super.testSetObject166(); + } + + /* + * @testName: testSetObject167 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Integer_Tab with some + * integer value after converting it to Float. Call the getObject(int + * columnno) method to retrieve this value. Compare this value with the value + * that is sent to database. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject167() throws Exception { + super.testSetObject167(); + } + + /* + * @testName: testSetObject171 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Real_Tab with the + * maximum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject171() throws Exception { + super.testSetObject171(); + } + + /* + * @testName: testSetObject172 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Real_Tab with the + * minimum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject172() throws Exception { + super.testSetObject172(); + } + + /* + * @testName: testSetObject173 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Float_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject173() throws Exception { + super.testSetObject173(); + } + + /* + * @testName: testSetObject174 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Float_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject174() throws Exception { + super.testSetObject174(); + } + + /* + * @testName: testSetObject177 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject177() throws Exception { + super.testSetObject177(); + } + + /* + * @testName: testSetObject178 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType, int scale) method,update the column Null_Val of Decimal_Tab + * with the minimum value of Decimal_Tab. Call the getObject(int columnno) + * method to retrieve this value. Extract the minimum value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject178() throws Exception { + super.testSetObject178(); + } + + /* + * @testName: testSetObject179 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method.Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject179() throws Exception { + super.testSetObject179(); + } + + /* + * @testName: testSetObject180 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject180() throws Exception { + super.testSetObject180(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/build.xml deleted file mode 100644 index 8557816d4a..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/build.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17.java index 31373e07c5..0f7b6dcd51 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17.java @@ -29,8 +29,12 @@ import java.sql.Statement; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -50,6 +54,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class callStmtClient17 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt17"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17AppClient.java new file mode 100644 index 0000000000..742bd6bdb6 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17AppClient.java @@ -0,0 +1,437 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient17.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt17; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient17 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-appclient") + +public class callStmtClient17AppClient extends callStmtClient17 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt17"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt17_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient17AppClient.class, callStmtClient17.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient17AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient17AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient17AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt17_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient17AppClient theTests = new callStmtClient17AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject183 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Char_Tab with the maximum + * value of Float_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject183() throws Exception { + super.testSetObject183(); + } + + /* + * @testName: testSetObject184 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Char_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject184() throws Exception { + super.testSetObject184(); + } + + /* + * @testName: testSetObject185 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Varchar_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject185() throws Exception { + super.testSetObject185(); + } + + /* + * @testName: testSetObject186 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Varchar_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject186() throws Exception { + super.testSetObject186(); + } + + /* + * @testName: testSetObject187 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Longvarchar_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject187() throws Exception { + super.testSetObject187(); + } + + /* + * @testName: testSetObject188 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Longvarchar_Tab with + * the minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject188() throws Exception { + super.testSetObject188(); + } + + /* + * @testName: testSetObject189 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Tinyint_Tab with the + * maximum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject189() throws Exception { + super.testSetObject189(); + } + + /* + * @testName: testSetObject190 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Tinyint_Tab with the + * minimum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject190() throws Exception { + super.testSetObject190(); + } + + /* + * @testName: testSetObject191 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Smallint_Tab with the + * maximum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject191() throws Exception { + super.testSetObject191(); + } + + /* + * @testName: testSetObject192 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Smallint_Tab with the + * minimum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject192() throws Exception { + super.testSetObject192(); + } + + /* + * @testName: testSetObject193 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Integer_Tab with the + * maximum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject193() throws Exception { + super.testSetObject193(); + } + + /* + * @testName: testSetObject194 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Integer_Tab with the + * minimum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject194() throws Exception { + super.testSetObject194(); + } + + /* + * @testName: testSetObject195 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Bigint_Tab with some + * Long value after converting it to Double. Call the getObject(int columnno) + * method to retrieve this value. Compare this value with the value being sent + * to the database. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject195() throws Exception { + super.testSetObject195(); + } + + /* + * @testName: testSetObject197 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Real_Tab with the + * maximum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject197() throws Exception { + super.testSetObject197(); + } + + /* + * @testName: testSetObject198 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Real_Tab with the + * minimum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject198() throws Exception { + super.testSetObject198(); + } + + /* + * @testName: testSetObject199 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Float_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject199() throws Exception { + super.testSetObject199(); + } + + /* + * @testName: testSetObject200 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Double_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject200() throws Exception { + super.testSetObject200(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17EJB.java new file mode 100644 index 0000000000..f3f970ed62 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17EJB.java @@ -0,0 +1,456 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient17.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt17; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient17 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-appclient") + +public class callStmtClient17EJB extends callStmtClient17 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt17"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt17_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient17EJB.class, callStmtClient17.class); + + URL resURL = callStmtClient17EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = callStmtClient17EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmt17_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt17_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient17EJB.class, callStmtClient17.class); + + resURL = callStmtClient17EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmt17_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient17EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt17_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient17EJB theTests = new callStmtClient17EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject183 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Char_Tab with the maximum + * value of Float_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject183() throws Exception { + super.testSetObject183(); + } + + /* + * @testName: testSetObject184 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Char_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject184() throws Exception { + super.testSetObject184(); + } + + /* + * @testName: testSetObject185 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Varchar_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject185() throws Exception { + super.testSetObject185(); + } + + /* + * @testName: testSetObject186 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Varchar_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject186() throws Exception { + super.testSetObject186(); + } + + /* + * @testName: testSetObject187 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Longvarchar_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject187() throws Exception { + super.testSetObject187(); + } + + /* + * @testName: testSetObject188 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Longvarchar_Tab with + * the minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject188() throws Exception { + super.testSetObject188(); + } + + /* + * @testName: testSetObject189 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Tinyint_Tab with the + * maximum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject189() throws Exception { + super.testSetObject189(); + } + + /* + * @testName: testSetObject190 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Tinyint_Tab with the + * minimum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject190() throws Exception { + super.testSetObject190(); + } + + /* + * @testName: testSetObject191 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Smallint_Tab with the + * maximum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject191() throws Exception { + super.testSetObject191(); + } + + /* + * @testName: testSetObject192 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Smallint_Tab with the + * minimum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject192() throws Exception { + super.testSetObject192(); + } + + /* + * @testName: testSetObject193 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Integer_Tab with the + * maximum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject193() throws Exception { + super.testSetObject193(); + } + + /* + * @testName: testSetObject194 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Integer_Tab with the + * minimum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject194() throws Exception { + super.testSetObject194(); + } + + /* + * @testName: testSetObject195 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Bigint_Tab with some + * Long value after converting it to Double. Call the getObject(int columnno) + * method to retrieve this value. Compare this value with the value being sent + * to the database. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject195() throws Exception { + super.testSetObject195(); + } + + /* + * @testName: testSetObject197 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Real_Tab with the + * maximum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject197() throws Exception { + super.testSetObject197(); + } + + /* + * @testName: testSetObject198 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Real_Tab with the + * minimum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject198() throws Exception { + super.testSetObject198(); + } + + /* + * @testName: testSetObject199 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Float_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject199() throws Exception { + super.testSetObject199(); + } + + /* + * @testName: testSetObject200 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Double_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject200() throws Exception { + super.testSetObject200(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17JSP.java new file mode 100644 index 0000000000..1e81d09f5b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17JSP.java @@ -0,0 +1,441 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient17.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt17; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient17 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-javatest") + +public class callStmtClient17JSP extends callStmtClient17 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt17"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt17_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(callStmtClient17JSP.class, callStmtClient17.class); + + // The jsp descriptor + URL jspUrl = callStmtClient17JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient17JSP.class.getResource("callStmt17_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient17JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient17JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient17JSP theTests = new callStmtClient17JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject183 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Char_Tab with the maximum + * value of Float_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject183() throws Exception { + super.testSetObject183(); + } + + /* + * @testName: testSetObject184 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Char_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject184() throws Exception { + super.testSetObject184(); + } + + /* + * @testName: testSetObject185 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Varchar_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject185() throws Exception { + super.testSetObject185(); + } + + /* + * @testName: testSetObject186 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Varchar_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject186() throws Exception { + super.testSetObject186(); + } + + /* + * @testName: testSetObject187 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Longvarchar_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject187() throws Exception { + super.testSetObject187(); + } + + /* + * @testName: testSetObject188 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Longvarchar_Tab with + * the minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject188() throws Exception { + super.testSetObject188(); + } + + /* + * @testName: testSetObject189 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Tinyint_Tab with the + * maximum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject189() throws Exception { + super.testSetObject189(); + } + + /* + * @testName: testSetObject190 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Tinyint_Tab with the + * minimum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject190() throws Exception { + super.testSetObject190(); + } + + /* + * @testName: testSetObject191 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Smallint_Tab with the + * maximum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject191() throws Exception { + super.testSetObject191(); + } + + /* + * @testName: testSetObject192 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Smallint_Tab with the + * minimum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject192() throws Exception { + super.testSetObject192(); + } + + /* + * @testName: testSetObject193 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Integer_Tab with the + * maximum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject193() throws Exception { + super.testSetObject193(); + } + + /* + * @testName: testSetObject194 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Integer_Tab with the + * minimum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject194() throws Exception { + super.testSetObject194(); + } + + /* + * @testName: testSetObject195 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Bigint_Tab with some + * Long value after converting it to Double. Call the getObject(int columnno) + * method to retrieve this value. Compare this value with the value being sent + * to the database. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject195() throws Exception { + super.testSetObject195(); + } + + /* + * @testName: testSetObject197 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Real_Tab with the + * maximum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject197() throws Exception { + super.testSetObject197(); + } + + /* + * @testName: testSetObject198 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Real_Tab with the + * minimum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject198() throws Exception { + super.testSetObject198(); + } + + /* + * @testName: testSetObject199 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Float_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject199() throws Exception { + super.testSetObject199(); + } + + /* + * @testName: testSetObject200 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Double_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject200() throws Exception { + super.testSetObject200(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17Servlet.java new file mode 100644 index 0000000000..1a697e07f7 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt17/callStmtClient17Servlet.java @@ -0,0 +1,434 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient17.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt17; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient17 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient17Servlet extends callStmtClient17 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt17"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt17_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient17Servlet.class, callStmtClient17.class); + archive.addAsWebInfResource(callStmtClient17Servlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + + // The servlet descriptor +URL servletUrl = callStmtClient17Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient17Servlet.class.getResource("callStmt17_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient17Servlet.class, sunServletUrl); + + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient17Servlet theTests = new callStmtClient17Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject183 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Char_Tab with the maximum + * value of Float_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject183() throws Exception { + super.testSetObject183(); + } + + /* + * @testName: testSetObject184 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Char_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject184() throws Exception { + super.testSetObject184(); + } + + /* + * @testName: testSetObject185 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Varchar_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject185() throws Exception { + super.testSetObject185(); + } + + /* + * @testName: testSetObject186 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Varchar_Tab with the + * minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject186() throws Exception { + super.testSetObject186(); + } + + /* + * @testName: testSetObject187 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Longvarchar_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject187() throws Exception { + super.testSetObject187(); + } + + /* + * @testName: testSetObject188 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Longvarchar_Tab with + * the minimum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject188() throws Exception { + super.testSetObject188(); + } + + /* + * @testName: testSetObject189 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Tinyint_Tab with the + * maximum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject189() throws Exception { + super.testSetObject189(); + } + + /* + * @testName: testSetObject190 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Tinyint_Tab with the + * minimum value of Tinyint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject190() throws Exception { + super.testSetObject190(); + } + + /* + * @testName: testSetObject191 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Smallint_Tab with the + * maximum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject191() throws Exception { + super.testSetObject191(); + } + + /* + * @testName: testSetObject192 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Smallint_Tab with the + * minimum value of Smallint_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject192() throws Exception { + super.testSetObject192(); + } + + /* + * @testName: testSetObject193 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Integer_Tab with the + * maximum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject193() throws Exception { + super.testSetObject193(); + } + + /* + * @testName: testSetObject194 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Integer_Tab with the + * minimum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject194() throws Exception { + super.testSetObject194(); + } + + /* + * @testName: testSetObject195 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Bigint_Tab with some + * Long value after converting it to Double. Call the getObject(int columnno) + * method to retrieve this value. Compare this value with the value being sent + * to the database. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject195() throws Exception { + super.testSetObject195(); + } + + /* + * @testName: testSetObject197 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Real_Tab with the + * maximum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject197() throws Exception { + super.testSetObject197(); + } + + /* + * @testName: testSetObject198 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Real_Tab with the + * minimum value of Real_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject198() throws Exception { + super.testSetObject198(); + } + + /* + * @testName: testSetObject199 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Float_Tab with the + * maximum value of Float_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject199() throws Exception { + super.testSetObject199(); + } + + /* + * @testName: testSetObject200 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Double_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject200() throws Exception { + super.testSetObject200(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/build.xml deleted file mode 100644 index 0fd5e8eb11..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/build.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18.java index 230a409d01..38758cc0e3 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18.java @@ -30,8 +30,12 @@ import java.sql.Statement; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -51,6 +55,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class callStmtClient18 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt18"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18AppClient.java new file mode 100644 index 0000000000..b59a4d32c7 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18AppClient.java @@ -0,0 +1,461 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient18.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt18; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient18 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient18AppClient extends callStmtClient18 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt18"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt18_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient18AppClient.class, callStmtClient18.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient18AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient18AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient18AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt18_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient18AppClient theTests = new callStmtClient18AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject201 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Double_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method.Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject201() throws Exception { + super.testSetObject201(); + } + + /* + * @testName: testSetObject202 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Double_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject202() throws Exception { + super.testSetObject202(); + } + + /* + * @testName: testSetObject203 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject203() throws Exception { + super.testSetObject203(); + } + + /* + * @testName: testSetObject204 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Decimal_Tab with the + * minimum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject204() throws Exception { + super.testSetObject204(); + } + + /* + * @testName: testSetObject205 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject205() throws Exception { + super.testSetObject205(); + } + + /* + * @testName: testSetObject206 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject206() throws Exception { + super.testSetObject206(); + } + + /* + * @testName: testSetObject209 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Char_Tab with the maximum + * value of Double_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject209() throws Exception { + super.testSetObject209(); + } + + /* + * @testName: testSetObject210 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Char_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject210() throws Exception { + super.testSetObject210(); + } + + /* + * @testName: testSetObject211 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Varchar_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject211() throws Exception { + super.testSetObject211(); + } + + /* + * @testName: testSetObject212 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Varchar_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject212() throws Exception { + super.testSetObject212(); + } + + /* + * @testName: testSetObject213 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Longvarchar_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject213() throws Exception { + super.testSetObject213(); + } + + /* + * @testName: testSetObject214 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Longvarchar_Tab with + * the minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject214() throws Exception { + super.testSetObject214(); + } + + /* + * @testName: testSetObject215 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Byte Array object for + * SQL Type BINARY and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Byte array object that + * is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject215() throws Exception { + super.testSetObject215(); + } + + /* + * @testName: testSetObject216 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Byte Array object for + * SQL Type VARBINARY and call statement.executeQuery(String sql) method and + * call ResultSet.getObject(int column). It should return a Byte array object + * that is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject216() throws Exception { + super.testSetObject216(); + } + + /* + * @testName: testSetObject217 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Byte Array object for + * SQL Type LONGVARBINARY and call statement.executeQuery(String sql) method + * and call ResultSet.getObject(int column). It should return a Byte array + * object that is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject217() throws Exception { + super.testSetObject217(); + } + + /* + * @testName: testSetObject218 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type CHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Date object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject218() throws Exception { + super.testSetObject218(); + } + + /* + * @testName: testSetObject219 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type VARCHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject219() throws Exception { + super.testSetObject219(); + } + + /* + * @testName: testSetObject220 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type LONGVARCHAR and call statement.executeQuery(String sql) method and + * call ResultSet.getObject(int column). It should return a String object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject220() throws Exception { + super.testSetObject220(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18EJB.java new file mode 100644 index 0000000000..701efa7bef --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18EJB.java @@ -0,0 +1,481 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient18.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt18; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.callStmt.callStmt15.callStmtClient15EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient18 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient18EJB extends callStmtClient18 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt18"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt18_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient18EJB.class, callStmtClient18.class); + + URL resURL = callStmtClient18EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient18EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmt18_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt18_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient18EJB.class, callStmtClient18.class); + + resURL = callStmtClient18EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmt18_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient15EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt18_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient18EJB theTests = new callStmtClient18EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject201 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Double_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method.Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject201() throws Exception { + super.testSetObject201(); + } + + /* + * @testName: testSetObject202 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Double_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject202() throws Exception { + super.testSetObject202(); + } + + /* + * @testName: testSetObject203 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject203() throws Exception { + super.testSetObject203(); + } + + /* + * @testName: testSetObject204 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Decimal_Tab with the + * minimum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject204() throws Exception { + super.testSetObject204(); + } + + /* + * @testName: testSetObject205 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject205() throws Exception { + super.testSetObject205(); + } + + /* + * @testName: testSetObject206 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject206() throws Exception { + super.testSetObject206(); + } + + /* + * @testName: testSetObject209 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Char_Tab with the maximum + * value of Double_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject209() throws Exception { + super.testSetObject209(); + } + + /* + * @testName: testSetObject210 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Char_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject210() throws Exception { + super.testSetObject210(); + } + + /* + * @testName: testSetObject211 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Varchar_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject211() throws Exception { + super.testSetObject211(); + } + + /* + * @testName: testSetObject212 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Varchar_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject212() throws Exception { + super.testSetObject212(); + } + + /* + * @testName: testSetObject213 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Longvarchar_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject213() throws Exception { + super.testSetObject213(); + } + + /* + * @testName: testSetObject214 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Longvarchar_Tab with + * the minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject214() throws Exception { + super.testSetObject214(); + } + + /* + * @testName: testSetObject215 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Byte Array object for + * SQL Type BINARY and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Byte array object that + * is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject215() throws Exception { + super.testSetObject215(); + } + + /* + * @testName: testSetObject216 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Byte Array object for + * SQL Type VARBINARY and call statement.executeQuery(String sql) method and + * call ResultSet.getObject(int column). It should return a Byte array object + * that is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject216() throws Exception { + super.testSetObject216(); + } + + /* + * @testName: testSetObject217 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Byte Array object for + * SQL Type LONGVARBINARY and call statement.executeQuery(String sql) method + * and call ResultSet.getObject(int column). It should return a Byte array + * object that is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject217() throws Exception { + super.testSetObject217(); + } + + /* + * @testName: testSetObject218 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type CHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Date object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject218() throws Exception { + super.testSetObject218(); + } + + /* + * @testName: testSetObject219 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type VARCHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject219() throws Exception { + super.testSetObject219(); + } + + /* + * @testName: testSetObject220 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type LONGVARCHAR and call statement.executeQuery(String sql) method and + * call ResultSet.getObject(int column). It should return a String object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject220() throws Exception { + super.testSetObject220(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18JSP.java new file mode 100644 index 0000000000..ba0eb0d65b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18JSP.java @@ -0,0 +1,464 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient18.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt18; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient18 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient18JSP extends callStmtClient18 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt18"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt18_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient18JSP.class, callStmtClient18.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = callStmtClient18JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient18JSP.class.getResource("callStmt18_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient18JSP.class, sunJSPUrl); + + + archive.addAsWebInfResource(callStmtClient18JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient18JSP theTests = new callStmtClient18JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject201 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Double_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method.Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject201() throws Exception { + super.testSetObject201(); + } + + /* + * @testName: testSetObject202 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Double_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject202() throws Exception { + super.testSetObject202(); + } + + /* + * @testName: testSetObject203 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject203() throws Exception { + super.testSetObject203(); + } + + /* + * @testName: testSetObject204 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Decimal_Tab with the + * minimum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject204() throws Exception { + super.testSetObject204(); + } + + /* + * @testName: testSetObject205 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject205() throws Exception { + super.testSetObject205(); + } + + /* + * @testName: testSetObject206 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject206() throws Exception { + super.testSetObject206(); + } + + /* + * @testName: testSetObject209 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Char_Tab with the maximum + * value of Double_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject209() throws Exception { + super.testSetObject209(); + } + + /* + * @testName: testSetObject210 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Char_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject210() throws Exception { + super.testSetObject210(); + } + + /* + * @testName: testSetObject211 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Varchar_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject211() throws Exception { + super.testSetObject211(); + } + + /* + * @testName: testSetObject212 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Varchar_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject212() throws Exception { + super.testSetObject212(); + } + + /* + * @testName: testSetObject213 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Longvarchar_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject213() throws Exception { + super.testSetObject213(); + } + + /* + * @testName: testSetObject214 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Longvarchar_Tab with + * the minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject214() throws Exception { + super.testSetObject214(); + } + + /* + * @testName: testSetObject215 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Byte Array object for + * SQL Type BINARY and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Byte array object that + * is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject215() throws Exception { + super.testSetObject215(); + } + + /* + * @testName: testSetObject216 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Byte Array object for + * SQL Type VARBINARY and call statement.executeQuery(String sql) method and + * call ResultSet.getObject(int column). It should return a Byte array object + * that is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject216() throws Exception { + super.testSetObject216(); + } + + /* + * @testName: testSetObject217 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Byte Array object for + * SQL Type LONGVARBINARY and call statement.executeQuery(String sql) method + * and call ResultSet.getObject(int column). It should return a Byte array + * object that is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject217() throws Exception { + super.testSetObject217(); + } + + /* + * @testName: testSetObject218 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type CHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Date object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject218() throws Exception { + super.testSetObject218(); + } + + /* + * @testName: testSetObject219 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type VARCHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject219() throws Exception { + super.testSetObject219(); + } + + /* + * @testName: testSetObject220 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type LONGVARCHAR and call statement.executeQuery(String sql) method and + * call ResultSet.getObject(int column). It should return a String object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject220() throws Exception { + super.testSetObject220(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18Servlet.java new file mode 100644 index 0000000000..fb1256dec9 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt18/callStmtClient18Servlet.java @@ -0,0 +1,453 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient18.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt18; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient18 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient18Servlet extends callStmtClient18 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt18"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt18_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient18Servlet.class, callStmtClient18.class); + // The servlet descriptor +URL servletUrl = callStmtClient18Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient18Servlet.class.getResource("callStmt18_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient18Servlet.class, sunServletUrl); + + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient18Servlet theTests = new callStmtClient18Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject201 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Double_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method.Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject201() throws Exception { + super.testSetObject201(); + } + + /* + * @testName: testSetObject202 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Double_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject202() throws Exception { + super.testSetObject202(); + } + + /* + * @testName: testSetObject203 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject203() throws Exception { + super.testSetObject203(); + } + + /* + * @testName: testSetObject204 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Decimal_Tab with the + * minimum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject204() throws Exception { + super.testSetObject204(); + } + + /* + * @testName: testSetObject205 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject205() throws Exception { + super.testSetObject205(); + } + + /* + * @testName: testSetObject206 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject206() throws Exception { + super.testSetObject206(); + } + + /* + * @testName: testSetObject209 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Char_Tab with the maximum + * value of Double_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject209() throws Exception { + super.testSetObject209(); + } + + /* + * @testName: testSetObject210 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Char_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject210() throws Exception { + super.testSetObject210(); + } + + /* + * @testName: testSetObject211 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Varchar_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject211() throws Exception { + super.testSetObject211(); + } + + /* + * @testName: testSetObject212 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Varchar_Tab with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject212() throws Exception { + super.testSetObject212(); + } + + /* + * @testName: testSetObject213 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the Name column of Longvarchar_Tab with the + * maximum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject213() throws Exception { + super.testSetObject213(); + } + + /* + * @testName: testSetObject214 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,int + * targetSqlType) method,update the column Null_Val of Longvarchar_Tab with + * the minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject214() throws Exception { + super.testSetObject214(); + } + + /* + * @testName: testSetObject215 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Byte Array object for + * SQL Type BINARY and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Byte array object that + * is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject215() throws Exception { + super.testSetObject215(); + } + + /* + * @testName: testSetObject216 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Byte Array object for + * SQL Type VARBINARY and call statement.executeQuery(String sql) method and + * call ResultSet.getObject(int column). It should return a Byte array object + * that is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject216() throws Exception { + super.testSetObject216(); + } + + /* + * @testName: testSetObject217 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Byte Array object for + * SQL Type LONGVARBINARY and call statement.executeQuery(String sql) method + * and call ResultSet.getObject(int column). It should return a Byte array + * object that is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject217() throws Exception { + super.testSetObject217(); + } + + /* + * @testName: testSetObject218 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type CHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Date object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject218() throws Exception { + super.testSetObject218(); + } + + /* + * @testName: testSetObject219 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type VARCHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject219() throws Exception { + super.testSetObject219(); + } + + /* + * @testName: testSetObject220 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type LONGVARCHAR and call statement.executeQuery(String sql) method and + * call ResultSet.getObject(int column). It should return a String object that + * is been set. Compare the result with the extracted value from the + * tssql.stmt file. Both the values should be equal. * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject220() throws Exception { + super.testSetObject220(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/build.xml deleted file mode 100644 index 2d55dd49c7..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19.java index 2ddb77740d..b18b3665fd 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19.java @@ -34,8 +34,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -54,6 +58,11 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") +@Tag("web_profile") +@Tag("tck-javatest") public class callStmtClient19 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt19"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19AppClient.java new file mode 100644 index 0000000000..37f649dce2 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19AppClient.java @@ -0,0 +1,455 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient19.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt19; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient19 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-appclient") + +public class callStmtClient19AppClient extends callStmtClient19 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt19"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt19_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient19AppClient.class, callStmtClient19.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient19AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient19AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient19AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt19_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + public static void main(String[] args) { + callStmtClient19AppClient theTests = new callStmtClient19AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject221 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type Date and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject221() throws Exception { + super.testSetObject221(); + } + + /* + * @testName: testSetObject223 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Char and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject223() throws Exception { + super.testSetObject223(); + } + + /* + * @testName: testSetObject224 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Varchar and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject224() throws Exception { + super.testSetObject224(); + } + + /* + * @testName: testSetObject225 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Longvarchar and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject225() throws Exception { + super.testSetObject225(); + } + + /* + * @testName: testSetObject226 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Time and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject226() throws Exception { + super.testSetObject226(); + } + + /* + * @testName: testSetObject227 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Char and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject227() throws Exception { + super.testSetObject227(); + } + + /* + * @testName: testSetObject228 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Varchar and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject228() throws Exception { + super.testSetObject228(); + } + + /* + * @testName: testSetObject229 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Longvarchar and call statement.executeQuery method and call + * getObject method of ResultSet. It should return a String object that is + * been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject229() throws Exception { + super.testSetObject229(); + } + + /* + * @testName: testSetObject231 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Time and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject231() throws Exception { + super.testSetObject231(); + } + + /* + * @testName: testSetObject232 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Timestamp and call statement.executeQuery method and call + * getObject method of ResultSet. It should return a String object that is + * been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject232() throws Exception { + super.testSetObject232(); + } + + /* + * @testName: testRegisterOutParameter01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set maximum BigDecimal value in + * null column and call registerOutParameter(int parameterIndex,int jdbcType, + * int scale) method and call getBigDecimal method. It should return a + * BigDecimal object that is been set. (Note: This test case also checks the + * support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter01() throws Exception { + super.testRegisterOutParameter01(); + } + + /* + * @testName: testRegisterOutParameter02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set minimum BigDecimal value in + * maximum value column and call registerOutParameter(int parameterIndex,int + * jdbcType,int scale) method and call getBigDecimal method. It should return + * a BigDecimal object that is been set. (Note: This test case also checks the + * support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter02() throws Exception { + super.testRegisterOutParameter02(); + } + + /* + * @testName: testRegisterOutParameter03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set maximum Decimal value in null + * column and call registerOutParameter(int parameterIndex,int jdbcType, int + * scale) method and call getBigDecimal method. It should return a BigDecimal + * object that is been set. (Note: This test case also checks the support for + * INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter03() throws Exception { + super.testRegisterOutParameter03(); + } + + /* + * @testName: testRegisterOutParameter04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set minimum Decimal value in + * maximum value column in Decimal table and call registerOutParameter(int + * parameterIndex,int jdbcType,int scale) method and call getBigDecimal + * method. It should return a BigDecimal object that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter04() throws Exception { + super.testRegisterOutParameter04(); + } + + /* + * @testName: testRegisterOutParameter05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble(int + * parameterIndex, int jdbcType) method to set maximum Double value in null + * column and call registerOutParameter(int parameterIndex,int jdbcType) + * method and call getDouble method. It should return a double value that is + * been set. (Note: This test case also checks the support for INOUT parameter + * in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter05() throws Exception { + super.testRegisterOutParameter05(); + } + + /* + * @testName: testRegisterOutParameter06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble(int + * parameterIndex, int jdbcType) method to set minimum double value in maximum + * value column in Double table and call registerOutParameter(int + * parameterIndex,int jdbcType) method and call getDouble method. It should + * return a double value that is been set. (Note: This test case also checks + * the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter06() throws Exception { + super.testRegisterOutParameter06(); + } + + /* + * @testName: testRegisterOutParameter07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble(int + * parameterIndex, int jdbcType) method to set maximum Float value in null + * column and call registerOutParameter method and call getDouble method. It + * should return a double value that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter07() throws Exception { + super.testRegisterOutParameter07(); + } + + /* + * @testName: testRegisterOutParameter08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble() method to + * set minimum float value in maximum value column in Float table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getDouble method. It should return a double value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter08() throws Exception { + super.testRegisterOutParameter08(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19EJB.java new file mode 100644 index 0000000000..c465cd1fbb --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19EJB.java @@ -0,0 +1,476 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient19.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt19; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient19 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ +@Tag("tck-appclient") + + +public class callStmtClient19EJB extends callStmtClient19 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt19"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt19_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient19EJB.class, callStmtClient19.class); + + URL resURL = callStmtClient19EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = callStmtClient19EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmt19_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt19_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient19EJB.class, callStmtClient19.class); + + resURL = callStmtClient19EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmt19_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient19EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt19_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + + }; + + + public static void main(String[] args) { + callStmtClient19EJB theTests = new callStmtClient19EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject221 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type Date and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject221() throws Exception { + super.testSetObject221(); + } + + /* + * @testName: testSetObject223 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Char and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject223() throws Exception { + super.testSetObject223(); + } + + /* + * @testName: testSetObject224 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Varchar and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject224() throws Exception { + super.testSetObject224(); + } + + /* + * @testName: testSetObject225 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Longvarchar and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject225() throws Exception { + super.testSetObject225(); + } + + /* + * @testName: testSetObject226 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Time and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject226() throws Exception { + super.testSetObject226(); + } + + /* + * @testName: testSetObject227 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Char and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject227() throws Exception { + super.testSetObject227(); + } + + /* + * @testName: testSetObject228 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Varchar and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject228() throws Exception { + super.testSetObject228(); + } + + /* + * @testName: testSetObject229 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Longvarchar and call statement.executeQuery method and call + * getObject method of ResultSet. It should return a String object that is + * been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject229() throws Exception { + super.testSetObject229(); + } + + /* + * @testName: testSetObject231 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Time and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject231() throws Exception { + super.testSetObject231(); + } + + /* + * @testName: testSetObject232 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Timestamp and call statement.executeQuery method and call + * getObject method of ResultSet. It should return a String object that is + * been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject232() throws Exception { + super.testSetObject232(); + } + + /* + * @testName: testRegisterOutParameter01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set maximum BigDecimal value in + * null column and call registerOutParameter(int parameterIndex,int jdbcType, + * int scale) method and call getBigDecimal method. It should return a + * BigDecimal object that is been set. (Note: This test case also checks the + * support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter01() throws Exception { + super.testRegisterOutParameter01(); + } + + /* + * @testName: testRegisterOutParameter02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set minimum BigDecimal value in + * maximum value column and call registerOutParameter(int parameterIndex,int + * jdbcType,int scale) method and call getBigDecimal method. It should return + * a BigDecimal object that is been set. (Note: This test case also checks the + * support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter02() throws Exception { + super.testRegisterOutParameter02(); + } + + /* + * @testName: testRegisterOutParameter03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set maximum Decimal value in null + * column and call registerOutParameter(int parameterIndex,int jdbcType, int + * scale) method and call getBigDecimal method. It should return a BigDecimal + * object that is been set. (Note: This test case also checks the support for + * INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter03() throws Exception { + super.testRegisterOutParameter03(); + } + + /* + * @testName: testRegisterOutParameter04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set minimum Decimal value in + * maximum value column in Decimal table and call registerOutParameter(int + * parameterIndex,int jdbcType,int scale) method and call getBigDecimal + * method. It should return a BigDecimal object that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter04() throws Exception { + super.testRegisterOutParameter04(); + } + + /* + * @testName: testRegisterOutParameter05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble(int + * parameterIndex, int jdbcType) method to set maximum Double value in null + * column and call registerOutParameter(int parameterIndex,int jdbcType) + * method and call getDouble method. It should return a double value that is + * been set. (Note: This test case also checks the support for INOUT parameter + * in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter05() throws Exception { + super.testRegisterOutParameter05(); + } + + /* + * @testName: testRegisterOutParameter06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble(int + * parameterIndex, int jdbcType) method to set minimum double value in maximum + * value column in Double table and call registerOutParameter(int + * parameterIndex,int jdbcType) method and call getDouble method. It should + * return a double value that is been set. (Note: This test case also checks + * the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter06() throws Exception { + super.testRegisterOutParameter06(); + } + + /* + * @testName: testRegisterOutParameter07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble(int + * parameterIndex, int jdbcType) method to set maximum Float value in null + * column and call registerOutParameter method and call getDouble method. It + * should return a double value that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter07() throws Exception { + super.testRegisterOutParameter07(); + } + + /* + * @testName: testRegisterOutParameter08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble() method to + * set minimum float value in maximum value column in Float table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getDouble method. It should return a double value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter08() throws Exception { + super.testRegisterOutParameter08(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19JSP.java new file mode 100644 index 0000000000..f1c2dac7db --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19JSP.java @@ -0,0 +1,462 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient19.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt19; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient19 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient19JSP extends callStmtClient19 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt19"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt19_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient19JSP.class, callStmtClient19.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = callStmtClient19JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient19JSP.class.getResource("callStmt19_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient19JSP.class, sunJSPUrl); + + + archive.addAsWebInfResource(callStmtClient19JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + public static void main(String[] args) { + callStmtClient19JSP theTests = new callStmtClient19JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject221 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type Date and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject221() throws Exception { + super.testSetObject221(); + } + + /* + * @testName: testSetObject223 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Char and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject223() throws Exception { + super.testSetObject223(); + } + + /* + * @testName: testSetObject224 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Varchar and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject224() throws Exception { + super.testSetObject224(); + } + + /* + * @testName: testSetObject225 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Longvarchar and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject225() throws Exception { + super.testSetObject225(); + } + + /* + * @testName: testSetObject226 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Time and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject226() throws Exception { + super.testSetObject226(); + } + + /* + * @testName: testSetObject227 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Char and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject227() throws Exception { + super.testSetObject227(); + } + + /* + * @testName: testSetObject228 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Varchar and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject228() throws Exception { + super.testSetObject228(); + } + + /* + * @testName: testSetObject229 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Longvarchar and call statement.executeQuery method and call + * getObject method of ResultSet. It should return a String object that is + * been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject229() throws Exception { + super.testSetObject229(); + } + + /* + * @testName: testSetObject231 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Time and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject231() throws Exception { + super.testSetObject231(); + } + + /* + * @testName: testSetObject232 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Timestamp and call statement.executeQuery method and call + * getObject method of ResultSet. It should return a String object that is + * been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject232() throws Exception { + super.testSetObject232(); + } + + /* + * @testName: testRegisterOutParameter01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set maximum BigDecimal value in + * null column and call registerOutParameter(int parameterIndex,int jdbcType, + * int scale) method and call getBigDecimal method. It should return a + * BigDecimal object that is been set. (Note: This test case also checks the + * support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter01() throws Exception { + super.testRegisterOutParameter01(); + } + + /* + * @testName: testRegisterOutParameter02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set minimum BigDecimal value in + * maximum value column and call registerOutParameter(int parameterIndex,int + * jdbcType,int scale) method and call getBigDecimal method. It should return + * a BigDecimal object that is been set. (Note: This test case also checks the + * support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter02() throws Exception { + super.testRegisterOutParameter02(); + } + + /* + * @testName: testRegisterOutParameter03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set maximum Decimal value in null + * column and call registerOutParameter(int parameterIndex,int jdbcType, int + * scale) method and call getBigDecimal method. It should return a BigDecimal + * object that is been set. (Note: This test case also checks the support for + * INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter03() throws Exception { + super.testRegisterOutParameter03(); + } + + /* + * @testName: testRegisterOutParameter04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set minimum Decimal value in + * maximum value column in Decimal table and call registerOutParameter(int + * parameterIndex,int jdbcType,int scale) method and call getBigDecimal + * method. It should return a BigDecimal object that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter04() throws Exception { + super.testRegisterOutParameter04(); + } + + /* + * @testName: testRegisterOutParameter05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble(int + * parameterIndex, int jdbcType) method to set maximum Double value in null + * column and call registerOutParameter(int parameterIndex,int jdbcType) + * method and call getDouble method. It should return a double value that is + * been set. (Note: This test case also checks the support for INOUT parameter + * in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter05() throws Exception { + super.testRegisterOutParameter05(); + } + + /* + * @testName: testRegisterOutParameter06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble(int + * parameterIndex, int jdbcType) method to set minimum double value in maximum + * value column in Double table and call registerOutParameter(int + * parameterIndex,int jdbcType) method and call getDouble method. It should + * return a double value that is been set. (Note: This test case also checks + * the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter06() throws Exception { + super.testRegisterOutParameter06(); + } + + /* + * @testName: testRegisterOutParameter07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble(int + * parameterIndex, int jdbcType) method to set maximum Float value in null + * column and call registerOutParameter method and call getDouble method. It + * should return a double value that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter07() throws Exception { + super.testRegisterOutParameter07(); + } + + /* + * @testName: testRegisterOutParameter08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble() method to + * set minimum float value in maximum value column in Float table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getDouble method. It should return a double value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter08() throws Exception { + super.testRegisterOutParameter08(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19Servlet.java new file mode 100644 index 0000000000..a4e59f3283 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt19/callStmtClient19Servlet.java @@ -0,0 +1,451 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient19.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt19; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient19 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient19Servlet extends callStmtClient19 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt19"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt19_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient19Servlet.class, callStmtClient19.class); + // The servlet descriptor +URL servletUrl = callStmtClient19Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient19Servlet.class.getResource("callStmt19_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient19Servlet.class, sunServletUrl); + + return archive; + }; + + + public static void main(String[] args) { + callStmtClient19Servlet theTests = new callStmtClient19Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject221 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Date object for SQL + * Type Date and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject221() throws Exception { + super.testSetObject221(); + } + + /* + * @testName: testSetObject223 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Char and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject223() throws Exception { + super.testSetObject223(); + } + + /* + * @testName: testSetObject224 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Varchar and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject224() throws Exception { + super.testSetObject224(); + } + + /* + * @testName: testSetObject225 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Longvarchar and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject225() throws Exception { + super.testSetObject225(); + } + + /* + * @testName: testSetObject226 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Time object for SQL + * Type Time and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject226() throws Exception { + super.testSetObject226(); + } + + /* + * @testName: testSetObject227 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Char and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject227() throws Exception { + super.testSetObject227(); + } + + /* + * @testName: testSetObject228 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Varchar and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject228() throws Exception { + super.testSetObject228(); + } + + /* + * @testName: testSetObject229 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Longvarchar and call statement.executeQuery method and call + * getObject method of ResultSet. It should return a String object that is + * been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject229() throws Exception { + super.testSetObject229(); + } + + /* + * @testName: testSetObject231 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Time and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a String object that is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject231() throws Exception { + super.testSetObject231(); + } + + /* + * @testName: testSetObject232 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set Timestamp object for + * SQL Type Timestamp and call statement.executeQuery method and call + * getObject method of ResultSet. It should return a String object that is + * been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject232() throws Exception { + super.testSetObject232(); + } + + /* + * @testName: testRegisterOutParameter01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set maximum BigDecimal value in + * null column and call registerOutParameter(int parameterIndex,int jdbcType, + * int scale) method and call getBigDecimal method. It should return a + * BigDecimal object that is been set. (Note: This test case also checks the + * support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter01() throws Exception { + super.testRegisterOutParameter01(); + } + + /* + * @testName: testRegisterOutParameter02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set minimum BigDecimal value in + * maximum value column and call registerOutParameter(int parameterIndex,int + * jdbcType,int scale) method and call getBigDecimal method. It should return + * a BigDecimal object that is been set. (Note: This test case also checks the + * support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter02() throws Exception { + super.testRegisterOutParameter02(); + } + + /* + * @testName: testRegisterOutParameter03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set maximum Decimal value in null + * column and call registerOutParameter(int parameterIndex,int jdbcType, int + * scale) method and call getBigDecimal method. It should return a BigDecimal + * object that is been set. (Note: This test case also checks the support for + * INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter03() throws Exception { + super.testRegisterOutParameter03(); + } + + /* + * @testName: testRegisterOutParameter04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBigDecimal(int + * parameterIndex, int jdbcType) method to set minimum Decimal value in + * maximum value column in Decimal table and call registerOutParameter(int + * parameterIndex,int jdbcType,int scale) method and call getBigDecimal + * method. It should return a BigDecimal object that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter04() throws Exception { + super.testRegisterOutParameter04(); + } + + /* + * @testName: testRegisterOutParameter05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble(int + * parameterIndex, int jdbcType) method to set maximum Double value in null + * column and call registerOutParameter(int parameterIndex,int jdbcType) + * method and call getDouble method. It should return a double value that is + * been set. (Note: This test case also checks the support for INOUT parameter + * in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter05() throws Exception { + super.testRegisterOutParameter05(); + } + + /* + * @testName: testRegisterOutParameter06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble(int + * parameterIndex, int jdbcType) method to set minimum double value in maximum + * value column in Double table and call registerOutParameter(int + * parameterIndex,int jdbcType) method and call getDouble method. It should + * return a double value that is been set. (Note: This test case also checks + * the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter06() throws Exception { + super.testRegisterOutParameter06(); + } + + /* + * @testName: testRegisterOutParameter07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble(int + * parameterIndex, int jdbcType) method to set maximum Float value in null + * column and call registerOutParameter method and call getDouble method. It + * should return a double value that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter07() throws Exception { + super.testRegisterOutParameter07(); + } + + /* + * @testName: testRegisterOutParameter08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDouble() method to + * set minimum float value in maximum value column in Float table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getDouble method. It should return a double value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter08() throws Exception { + super.testRegisterOutParameter08(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/build.xml deleted file mode 100644 index c373977dd4..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2.java index 90787ece93..c34e0c3c33 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2.java @@ -31,8 +31,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; // Merant DataSource class @@ -49,6 +53,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class callStmtClient2 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt2"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2AppClient.java new file mode 100644 index 0000000000..74be7df9b7 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2AppClient.java @@ -0,0 +1,439 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient2.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The callStmtClient2 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + + +public class callStmtClient2AppClient extends callStmtClient2 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt2"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt2_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient2AppClient.class, callStmtClient2.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient2AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient2AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient2AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt2_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient2AppClient theTests = new callStmtClient2AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetTime01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1263; + * JDBC:JAVADOC:1264; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex) method to retrieve a Time value from Time_Tab. Extract the + * the same Time value from the tssql.stmt file.Compare this value with the + * value returned by the getTime(int parameterIndex).Both the values should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetTime01() throws Exception { + super.testGetTime01(); + } + + /* + * @testName: testGetTime02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1263; + * JDBC:JAVADOC:1264; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex) method to retrieve the null value from Time_Tab.Check if it + * returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetTime02() throws Exception { + super.testGetTime02(); + } + + /* + * @testName: testGetTime03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1283; + * JDBC:JAVADOC:1284; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex,Calander cal) method to retrieve a Time value from Time_tab. + * Extract the same Time value from the tssql.stmt file.Compare this value + * with the value returned by the getTime(int parameterIndex,Calander cal). + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetTime03() throws Exception { + super.testGetTime03(); + } + + /* + * @testName: testGetTime04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1283; + * JDBC:JAVADOC:1284; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex,Calender cal) method to retrieve the null value from + * Time_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetTime04() throws Exception { + super.testGetTime04(); + } + + /* + * @testName: testGetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1265; + * JDBC:JAVADOC:1266; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex) method to retrieve a Timestamp value from Timestamp_Tab. + * Extract the the same Timestamp value from the tssql.stmt file.Compare this + * value with the value returned by the getTimestamp(int parameterIndex) Both + * the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetTimestamp01() throws Exception { + super.testGetTimestamp01(); + } + + /* + * @testName: testGetTimestamp02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1265; + * JDBC:JAVADOC:1266; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex) method to retrieve the null value from Timestamp_Tab. Check + * if it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetTimestamp02() throws Exception { + super.testGetTimestamp02(); + } + + /* + * @testName: testGetTimestamp03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1285; + * JDBC:JAVADOC:1286; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex,Calender cal) method to retrieve a Timestamp value from + * Timestamp_Tab. Extract the the same Timestamp value from the tssql.stmt + * file.Compare this value with the value returned by the getTimestamp(int + * parameterIndex, Calender cal) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetTimestamp03() throws Exception { + super.testGetTimestamp03(); + } + + /* + * @testName: testGetTimestamp04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1285; + * JDBC:JAVADOC:1286; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex,Calender cal) method to retrieve the null value from + * Timestamp_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetTimestamp04() throws Exception { + super.testGetTimestamp04(); + } + + /* + * @testName: testGetDate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1261; + * JDBC:JAVADOC:1262; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex) method to retrieve a Date value from Date_Tab. Extract the + * the same Date value from the tssql.stmt file.Compare this value with the + * value returned by the getDate(int parameterIndex).Both the values should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetDate01() throws Exception { + super.testGetDate01(); + } + + /* + * @testName: testGetDate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1261; + * JDBC:JAVADOC:1262; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex) method to retrieve the null value from Date_Tab. Check if + * it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetDate02() throws Exception { + super.testGetDate02(); + } + + /* + * @testName: testGetDate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1281; + * JDBC:JAVADOC:1282; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex,Calender cal) method to retrieve a Date value from + * Date_Tab.Extract the the same Date value from the tssql.stmt file.Compare + * this value with the value returned by the getDate(int parameterIndex, + * Calender cal) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetDate03() throws Exception { + super.testGetDate03(); + } + + /* + * @testName: testGetDate04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1281; + * JDBC:JAVADOC:1282; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex, Calender cal) method to retrieve the null value from + * Date_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetDate04() throws Exception { + super.testGetDate04(); + } + + /* + * @testName: testGetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1245; + * JDBC:JAVADOC:1246; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getByte(int + * parameterIndex) method to retrieve the maximum value from Tinyint_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getByte(int parameterIndex).Both the values + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte01() throws Exception { + super.testGetByte01(); + } + + /* + * @testName: testGetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1245; + * JDBC:JAVADOC:1246; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getByte(int + * parameterIndex) method to retrieve the minimum value from Tinyint_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getByte(int parameterIndex).Both the values + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte02() throws Exception { + super.testGetByte02(); + } + + /* + * @testName: testGetByte03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1245; + * JDBC:JAVADOC:1246; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getByte(int + * parameterIndex) method to retrieve the null value from Tinyint_Tab.Check if + * it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetByte03() throws Exception { + super.testGetByte03(); + } + + /* + * @testName: testGetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the maximum value of Double_Tab. Extract + * the maximum value from the tssql.stmt file.Compare this value with the + * value returned by the getDouble(int parameterIndex). Both the values should + * be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetDouble01() throws Exception { + super.testGetDouble01(); + } + + /* + * @testName: testGetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the minimum value from Double_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getDouble(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetDouble02() throws Exception { + super.testGetDouble02(); + } + + /* + * @testName: testGetDouble03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the null value from Double_Tab.Check if + * it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetDouble03() throws Exception { + super.testGetDouble03(); + } + + /* + * @testName: testWasNull + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1239; + * JDBC:JAVADOC:1240; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the null value from Integer_Tab. Check + * if it returns null using the method wasNull(). + */ + @Test + @TargetVehicle("appclient") + public void testWasNull() throws Exception { + super.testWasNull(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2EJB.java new file mode 100644 index 0000000000..6db19b37d7 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2EJB.java @@ -0,0 +1,458 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient2.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The callStmtClient2 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient2EJB extends callStmtClient2 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt2"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt2_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient2EJB.class, callStmtClient2.class); + + URL resURL = callStmtClient2EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = callStmtClient2EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmt2_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt2_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient2EJB.class, callStmtClient2.class); + + resURL = callStmtClient2EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmt2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient2EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt2_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient2EJB theTests = new callStmtClient2EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetTime01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1263; + * JDBC:JAVADOC:1264; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex) method to retrieve a Time value from Time_Tab. Extract the + * the same Time value from the tssql.stmt file.Compare this value with the + * value returned by the getTime(int parameterIndex).Both the values should be + * equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetTime01() throws Exception { + super.testGetTime01(); + } + + /* + * @testName: testGetTime02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1263; + * JDBC:JAVADOC:1264; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex) method to retrieve the null value from Time_Tab.Check if it + * returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetTime02() throws Exception { + super.testGetTime02(); + } + + /* + * @testName: testGetTime03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1283; + * JDBC:JAVADOC:1284; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex,Calander cal) method to retrieve a Time value from Time_tab. + * Extract the same Time value from the tssql.stmt file.Compare this value + * with the value returned by the getTime(int parameterIndex,Calander cal). + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetTime03() throws Exception { + super.testGetTime03(); + } + + /* + * @testName: testGetTime04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1283; + * JDBC:JAVADOC:1284; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex,Calender cal) method to retrieve the null value from + * Time_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetTime04() throws Exception { + super.testGetTime04(); + } + + /* + * @testName: testGetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1265; + * JDBC:JAVADOC:1266; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex) method to retrieve a Timestamp value from Timestamp_Tab. + * Extract the the same Timestamp value from the tssql.stmt file.Compare this + * value with the value returned by the getTimestamp(int parameterIndex) Both + * the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetTimestamp01() throws Exception { + super.testGetTimestamp01(); + } + + /* + * @testName: testGetTimestamp02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1265; + * JDBC:JAVADOC:1266; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex) method to retrieve the null value from Timestamp_Tab. Check + * if it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetTimestamp02() throws Exception { + super.testGetTimestamp02(); + } + + /* + * @testName: testGetTimestamp03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1285; + * JDBC:JAVADOC:1286; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex,Calender cal) method to retrieve a Timestamp value from + * Timestamp_Tab. Extract the the same Timestamp value from the tssql.stmt + * file.Compare this value with the value returned by the getTimestamp(int + * parameterIndex, Calender cal) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetTimestamp03() throws Exception { + super.testGetTimestamp03(); + } + + /* + * @testName: testGetTimestamp04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1285; + * JDBC:JAVADOC:1286; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex,Calender cal) method to retrieve the null value from + * Timestamp_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetTimestamp04() throws Exception { + super.testGetTimestamp04(); + } + + /* + * @testName: testGetDate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1261; + * JDBC:JAVADOC:1262; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex) method to retrieve a Date value from Date_Tab. Extract the + * the same Date value from the tssql.stmt file.Compare this value with the + * value returned by the getDate(int parameterIndex).Both the values should be + * equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetDate01() throws Exception { + super.testGetDate01(); + } + + /* + * @testName: testGetDate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1261; + * JDBC:JAVADOC:1262; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex) method to retrieve the null value from Date_Tab. Check if + * it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetDate02() throws Exception { + super.testGetDate02(); + } + + /* + * @testName: testGetDate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1281; + * JDBC:JAVADOC:1282; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex,Calender cal) method to retrieve a Date value from + * Date_Tab.Extract the the same Date value from the tssql.stmt file.Compare + * this value with the value returned by the getDate(int parameterIndex, + * Calender cal) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetDate03() throws Exception { + super.testGetDate03(); + } + + /* + * @testName: testGetDate04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1281; + * JDBC:JAVADOC:1282; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex, Calender cal) method to retrieve the null value from + * Date_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetDate04() throws Exception { + super.testGetDate04(); + } + + /* + * @testName: testGetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1245; + * JDBC:JAVADOC:1246; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getByte(int + * parameterIndex) method to retrieve the maximum value from Tinyint_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getByte(int parameterIndex).Both the values + * should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte01() throws Exception { + super.testGetByte01(); + } + + /* + * @testName: testGetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1245; + * JDBC:JAVADOC:1246; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getByte(int + * parameterIndex) method to retrieve the minimum value from Tinyint_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getByte(int parameterIndex).Both the values + * should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte02() throws Exception { + super.testGetByte02(); + } + + /* + * @testName: testGetByte03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1245; + * JDBC:JAVADOC:1246; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getByte(int + * parameterIndex) method to retrieve the null value from Tinyint_Tab.Check if + * it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetByte03() throws Exception { + super.testGetByte03(); + } + + /* + * @testName: testGetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the maximum value of Double_Tab. Extract + * the maximum value from the tssql.stmt file.Compare this value with the + * value returned by the getDouble(int parameterIndex). Both the values should + * be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetDouble01() throws Exception { + super.testGetDouble01(); + } + + /* + * @testName: testGetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the minimum value from Double_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getDouble(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetDouble02() throws Exception { + super.testGetDouble02(); + } + + /* + * @testName: testGetDouble03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the null value from Double_Tab.Check if + * it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetDouble03() throws Exception { + super.testGetDouble03(); + } + + /* + * @testName: testWasNull + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1239; + * JDBC:JAVADOC:1240; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the null value from Integer_Tab. Check + * if it returns null using the method wasNull(). + */ + @Test + @TargetVehicle("ejb") + public void testWasNull() throws Exception { + super.testWasNull(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2JSP.java new file mode 100644 index 0000000000..bee1e7ee05 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2JSP.java @@ -0,0 +1,441 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient2.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt2; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The callStmtClient2 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-javatest") + +public class callStmtClient2JSP extends callStmtClient2 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt2"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt2_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient2JSP.class, callStmtClient2.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = callStmtClient2JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient2JSP.class.getResource("callStmt2_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient2JSP.class, sunJSPUrl); + + + archive.addAsWebInfResource(callStmtClient2JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient2JSP theTests = new callStmtClient2JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetTime01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1263; + * JDBC:JAVADOC:1264; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex) method to retrieve a Time value from Time_Tab. Extract the + * the same Time value from the tssql.stmt file.Compare this value with the + * value returned by the getTime(int parameterIndex).Both the values should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetTime01() throws Exception { + super.testGetTime01(); + } + + /* + * @testName: testGetTime02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1263; + * JDBC:JAVADOC:1264; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex) method to retrieve the null value from Time_Tab.Check if it + * returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetTime02() throws Exception { + super.testGetTime02(); + } + + /* + * @testName: testGetTime03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1283; + * JDBC:JAVADOC:1284; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex,Calander cal) method to retrieve a Time value from Time_tab. + * Extract the same Time value from the tssql.stmt file.Compare this value + * with the value returned by the getTime(int parameterIndex,Calander cal). + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetTime03() throws Exception { + super.testGetTime03(); + } + + /* + * @testName: testGetTime04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1283; + * JDBC:JAVADOC:1284; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex,Calender cal) method to retrieve the null value from + * Time_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetTime04() throws Exception { + super.testGetTime04(); + } + + /* + * @testName: testGetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1265; + * JDBC:JAVADOC:1266; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex) method to retrieve a Timestamp value from Timestamp_Tab. + * Extract the the same Timestamp value from the tssql.stmt file.Compare this + * value with the value returned by the getTimestamp(int parameterIndex) Both + * the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetTimestamp01() throws Exception { + super.testGetTimestamp01(); + } + + /* + * @testName: testGetTimestamp02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1265; + * JDBC:JAVADOC:1266; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex) method to retrieve the null value from Timestamp_Tab. Check + * if it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetTimestamp02() throws Exception { + super.testGetTimestamp02(); + } + + /* + * @testName: testGetTimestamp03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1285; + * JDBC:JAVADOC:1286; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex,Calender cal) method to retrieve a Timestamp value from + * Timestamp_Tab. Extract the the same Timestamp value from the tssql.stmt + * file.Compare this value with the value returned by the getTimestamp(int + * parameterIndex, Calender cal) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetTimestamp03() throws Exception { + super.testGetTimestamp03(); + } + + /* + * @testName: testGetTimestamp04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1285; + * JDBC:JAVADOC:1286; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex,Calender cal) method to retrieve the null value from + * Timestamp_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetTimestamp04() throws Exception { + super.testGetTimestamp04(); + } + + /* + * @testName: testGetDate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1261; + * JDBC:JAVADOC:1262; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex) method to retrieve a Date value from Date_Tab. Extract the + * the same Date value from the tssql.stmt file.Compare this value with the + * value returned by the getDate(int parameterIndex).Both the values should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetDate01() throws Exception { + super.testGetDate01(); + } + + /* + * @testName: testGetDate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1261; + * JDBC:JAVADOC:1262; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex) method to retrieve the null value from Date_Tab. Check if + * it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetDate02() throws Exception { + super.testGetDate02(); + } + + /* + * @testName: testGetDate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1281; + * JDBC:JAVADOC:1282; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex,Calender cal) method to retrieve a Date value from + * Date_Tab.Extract the the same Date value from the tssql.stmt file.Compare + * this value with the value returned by the getDate(int parameterIndex, + * Calender cal) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetDate03() throws Exception { + super.testGetDate03(); + } + + /* + * @testName: testGetDate04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1281; + * JDBC:JAVADOC:1282; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex, Calender cal) method to retrieve the null value from + * Date_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetDate04() throws Exception { + super.testGetDate04(); + } + + /* + * @testName: testGetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1245; + * JDBC:JAVADOC:1246; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getByte(int + * parameterIndex) method to retrieve the maximum value from Tinyint_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getByte(int parameterIndex).Both the values + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte01() throws Exception { + super.testGetByte01(); + } + + /* + * @testName: testGetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1245; + * JDBC:JAVADOC:1246; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getByte(int + * parameterIndex) method to retrieve the minimum value from Tinyint_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getByte(int parameterIndex).Both the values + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte02() throws Exception { + super.testGetByte02(); + } + + /* + * @testName: testGetByte03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1245; + * JDBC:JAVADOC:1246; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getByte(int + * parameterIndex) method to retrieve the null value from Tinyint_Tab.Check if + * it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetByte03() throws Exception { + super.testGetByte03(); + } + + /* + * @testName: testGetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the maximum value of Double_Tab. Extract + * the maximum value from the tssql.stmt file.Compare this value with the + * value returned by the getDouble(int parameterIndex). Both the values should + * be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetDouble01() throws Exception { + super.testGetDouble01(); + } + + /* + * @testName: testGetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the minimum value from Double_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getDouble(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetDouble02() throws Exception { + super.testGetDouble02(); + } + + /* + * @testName: testGetDouble03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the null value from Double_Tab.Check if + * it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetDouble03() throws Exception { + super.testGetDouble03(); + } + + /* + * @testName: testWasNull + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1239; + * JDBC:JAVADOC:1240; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the null value from Integer_Tab. Check + * if it returns null using the method wasNull(). + */ + @Test + @TargetVehicle("jsp") + public void testWasNull() throws Exception { + super.testWasNull(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2Servlet.java new file mode 100644 index 0000000000..62be5d5363 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt2/callStmtClient2Servlet.java @@ -0,0 +1,431 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient2.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The callStmtClient2 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient2Servlet extends callStmtClient2 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt2"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt2_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient2Servlet.class, callStmtClient2.class); + // The servlet descriptor +URL servletUrl = callStmtClient2Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient2Servlet.class.getResource("callStmt2_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient2Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient2Servlet theTests = new callStmtClient2Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetTime01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1263; + * JDBC:JAVADOC:1264; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex) method to retrieve a Time value from Time_Tab. Extract the + * the same Time value from the tssql.stmt file.Compare this value with the + * value returned by the getTime(int parameterIndex).Both the values should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetTime01() throws Exception { + super.testGetTime01(); + } + + /* + * @testName: testGetTime02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1263; + * JDBC:JAVADOC:1264; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex) method to retrieve the null value from Time_Tab.Check if it + * returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetTime02() throws Exception { + super.testGetTime02(); + } + + /* + * @testName: testGetTime03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1283; + * JDBC:JAVADOC:1284; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex,Calander cal) method to retrieve a Time value from Time_tab. + * Extract the same Time value from the tssql.stmt file.Compare this value + * with the value returned by the getTime(int parameterIndex,Calander cal). + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetTime03() throws Exception { + super.testGetTime03(); + } + + /* + * @testName: testGetTime04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1283; + * JDBC:JAVADOC:1284; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTime(int + * parameterIndex,Calender cal) method to retrieve the null value from + * Time_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetTime04() throws Exception { + super.testGetTime04(); + } + + /* + * @testName: testGetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1265; + * JDBC:JAVADOC:1266; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex) method to retrieve a Timestamp value from Timestamp_Tab. + * Extract the the same Timestamp value from the tssql.stmt file.Compare this + * value with the value returned by the getTimestamp(int parameterIndex) Both + * the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetTimestamp01() throws Exception { + super.testGetTimestamp01(); + } + + /* + * @testName: testGetTimestamp02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1265; + * JDBC:JAVADOC:1266; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex) method to retrieve the null value from Timestamp_Tab. Check + * if it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetTimestamp02() throws Exception { + super.testGetTimestamp02(); + } + + /* + * @testName: testGetTimestamp03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1285; + * JDBC:JAVADOC:1286; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex,Calender cal) method to retrieve a Timestamp value from + * Timestamp_Tab. Extract the the same Timestamp value from the tssql.stmt + * file.Compare this value with the value returned by the getTimestamp(int + * parameterIndex, Calender cal) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetTimestamp03() throws Exception { + super.testGetTimestamp03(); + } + + /* + * @testName: testGetTimestamp04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1285; + * JDBC:JAVADOC:1286; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getTimestamp(int + * parameterIndex,Calender cal) method to retrieve the null value from + * Timestamp_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetTimestamp04() throws Exception { + super.testGetTimestamp04(); + } + + /* + * @testName: testGetDate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1261; + * JDBC:JAVADOC:1262; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex) method to retrieve a Date value from Date_Tab. Extract the + * the same Date value from the tssql.stmt file.Compare this value with the + * value returned by the getDate(int parameterIndex).Both the values should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetDate01() throws Exception { + super.testGetDate01(); + } + + /* + * @testName: testGetDate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1261; + * JDBC:JAVADOC:1262; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex) method to retrieve the null value from Date_Tab. Check if + * it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetDate02() throws Exception { + super.testGetDate02(); + } + + /* + * @testName: testGetDate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1281; + * JDBC:JAVADOC:1282; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex,Calender cal) method to retrieve a Date value from + * Date_Tab.Extract the the same Date value from the tssql.stmt file.Compare + * this value with the value returned by the getDate(int parameterIndex, + * Calender cal) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetDate03() throws Exception { + super.testGetDate03(); + } + + /* + * @testName: testGetDate04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1281; + * JDBC:JAVADOC:1282; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDate(int + * parameterIndex, Calender cal) method to retrieve the null value from + * Date_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetDate04() throws Exception { + super.testGetDate04(); + } + + /* + * @testName: testGetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1245; + * JDBC:JAVADOC:1246; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getByte(int + * parameterIndex) method to retrieve the maximum value from Tinyint_Tab. + * Extract the maximum value from the tssql.stmt file.Compare this value with + * the value returned by the getByte(int parameterIndex).Both the values + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte01() throws Exception { + super.testGetByte01(); + } + + /* + * @testName: testGetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1245; + * JDBC:JAVADOC:1246; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getByte(int + * parameterIndex) method to retrieve the minimum value from Tinyint_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getByte(int parameterIndex).Both the values + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte02() throws Exception { + super.testGetByte02(); + } + + /* + * @testName: testGetByte03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1245; + * JDBC:JAVADOC:1246; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getByte(int + * parameterIndex) method to retrieve the null value from Tinyint_Tab.Check if + * it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetByte03() throws Exception { + super.testGetByte03(); + } + + /* + * @testName: testGetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the maximum value of Double_Tab. Extract + * the maximum value from the tssql.stmt file.Compare this value with the + * value returned by the getDouble(int parameterIndex). Both the values should + * be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetDouble01() throws Exception { + super.testGetDouble01(); + } + + /* + * @testName: testGetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the minimum value from Double_Tab. + * Extract the minimum value from the tssql.stmt file.Compare this value with + * the value returned by the getDouble(int parameterIndex). Both the values + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetDouble02() throws Exception { + super.testGetDouble02(); + } + + /* + * @testName: testGetDouble03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1255; + * JDBC:JAVADOC:1256; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getDouble(int + * parameterIndex) method to retrieve the null value from Double_Tab.Check if + * it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetDouble03() throws Exception { + super.testGetDouble03(); + } + + /* + * @testName: testWasNull + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1239; + * JDBC:JAVADOC:1240; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Execute the stored procedure and call the getInt(int + * parameterIndex) method to retrieve the null value from Integer_Tab. Check + * if it returns null using the method wasNull(). + */ + @Test + @TargetVehicle("servlet") + public void testWasNull() throws Exception { + super.testWasNull(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/build.xml deleted file mode 100644 index dd5a84172a..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20.java index a8b52d97d3..a456622f11 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20.java @@ -29,8 +29,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -50,6 +54,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class callStmtClient20 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt20"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20AppClient.java new file mode 100644 index 0000000000..49df2a7750 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20AppClient.java @@ -0,0 +1,507 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt20; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient20 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-appclient") + +public class callStmtClient20AppClient extends callStmtClient20 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt20_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient20AppClient.class, callStmtClient20.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient20AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient20AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient20AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt20_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient20AppClient theTests = new callStmtClient20AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testRegisterOutParameter09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setFloat() method to + * set maximum Real value in null column of Real table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getFloat method. It should return a float value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter09() throws Exception { + } + + /* + * @testName: testRegisterOutParameter10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setFloat() method to + * set minimum real value in maximum value column in Real table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getFloat method. It should return a float value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter10() throws Exception { + super.testRegisterOutParameter10(); + } + + /* + * @testName: testRegisterOutParameter11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBoolean() method to + * set maximum BIT value in null column of BIT table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getBoolean method. It should return a boolean value that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter11() throws Exception { + super.testRegisterOutParameter11(); + } + + /* + * @testName: testRegisterOutParameter12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBoolean() method to + * set minimum BIT value in maximum value column in BIT table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getBoolen method. It should return a boolean value that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter12() throws Exception { + super.testRegisterOutParameter12(); + } + + /* + * @testName: testRegisterOutParameter13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setShort() method to + * set maximum Smallint value in null column of Smallint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getShort method. It should return a byte value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter13() throws Exception { + super.testRegisterOutParameter13(); + } + + /* + * @testName: testRegisterOutParameter14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setShort() method to + * set minimum Smallint value in maximum value column in Smallint table and + * call registerOutParameter(int parameterIndex,int jdbcType) method and call + * getShort method. It should return a byte value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter14() throws Exception { + super.testRegisterOutParameter14(); + } + + /* + * @testName: testRegisterOutParameter15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setByte() method to set + * maximum Tinyint value in null column of Tinyint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getByte method. It should return a short value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter15() throws Exception { + super.testRegisterOutParameter15(); + } + + /* + * @testName: testRegisterOutParameter16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setByte() method to set + * minimum Tinyint value in maximum value column in Tinyint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getByte method. It should return a short value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter16() throws Exception { + super.testRegisterOutParameter16(); + } + + /* + * @testName: testRegisterOutParameter17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setInt() method to set + * maximum Integer value in null column of Integer table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getInt method. It should return a int value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter17() throws Exception { + super.testRegisterOutParameter17(); + } + + /* + * @testName: testRegisterOutParameter18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setInt() method to set + * minimum Integer value in maximum value column in Integer table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getInt method. It should return a int value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter18() throws Exception { + super.testRegisterOutParameter18(); + } + + /* + * @testName: testRegisterOutParameter19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setLong() method to set + * maximum Bigint value in null column of Bigint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getLong method. It should return a long value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter19() throws Exception { + super.testRegisterOutParameter19(); + } + + /* + * @testName: testRegisterOutParameter20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setLong() method to set + * minimum Bigint value in maximum value column in Bigint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getLong method. It should return a long value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter20() throws Exception { + super.testRegisterOutParameter20(); + } + + /* + * @testName: testRegisterOutParameter21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Char value in null column of Char table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter21() throws Exception { + super.testRegisterOutParameter21(); + } + + /* + * @testName: testRegisterOutParameter22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Varchar value in null column of Varchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter22() throws Exception { + super.testRegisterOutParameter22(); + } + + /* + * @testName: testRegisterOutParameter23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Longvarchar value in null column of Longvarchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter23() throws Exception { + super.testRegisterOutParameter23(); + } + + /* + * @testName: testRegisterOutParameter24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDate() method to set + * Date value in null column of Date table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getDate method. It should + * return a Date object that is been set. (Note: This test case also checks + * the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter24() throws Exception { + super.testRegisterOutParameter24(); + } + + /* + * @testName: testRegisterOutParameter25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setTime() method to set + * Time value in null column of Time table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getTime method. It should + * return a Time object that is been set. (Note: This test case also checks + * the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter25() throws Exception { + super.testRegisterOutParameter25(); + } + + /* + * @testName: testRegisterOutParameter26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setTimestamp() method + * to set Timestamp value in null column of Timestamp table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getTimestamp method. It should return a Timestamp object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter26() throws Exception { + super.testRegisterOutParameter26(); + } + + /* + * @testName: testRegisterOutParameter27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBytes() method to + * set Binary value in Binary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getBytes method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter27() throws Exception { + super.testRegisterOutParameter27(); + } + + /* + * @testName: testRegisterOutParameter28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBytes() method to + * set Varbinary value in Varbinary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getBytes method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter28() throws Exception { + super.testRegisterOutParameter28(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20EJB.java new file mode 100644 index 0000000000..c5e021c3d8 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20EJB.java @@ -0,0 +1,526 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt20; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient20 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-appclient") + +public class callStmtClient20EJB extends callStmtClient20 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt20_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient20EJB.class, callStmtClient20.class); + URL resURL = callStmtClient20EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient20EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmt20_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt20_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient20EJB.class, callStmtClient20.class); + + resURL = callStmtClient20EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmt20_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient20EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt20_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient20EJB theTests = new callStmtClient20EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testRegisterOutParameter09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setFloat() method to + * set maximum Real value in null column of Real table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getFloat method. It should return a float value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter09() throws Exception { + } + + /* + * @testName: testRegisterOutParameter10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setFloat() method to + * set minimum real value in maximum value column in Real table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getFloat method. It should return a float value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter10() throws Exception { + super.testRegisterOutParameter10(); + } + + /* + * @testName: testRegisterOutParameter11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBoolean() method to + * set maximum BIT value in null column of BIT table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getBoolean method. It should return a boolean value that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter11() throws Exception { + super.testRegisterOutParameter11(); + } + + /* + * @testName: testRegisterOutParameter12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBoolean() method to + * set minimum BIT value in maximum value column in BIT table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getBoolen method. It should return a boolean value that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter12() throws Exception { + super.testRegisterOutParameter12(); + } + + /* + * @testName: testRegisterOutParameter13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setShort() method to + * set maximum Smallint value in null column of Smallint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getShort method. It should return a byte value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter13() throws Exception { + super.testRegisterOutParameter13(); + } + + /* + * @testName: testRegisterOutParameter14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setShort() method to + * set minimum Smallint value in maximum value column in Smallint table and + * call registerOutParameter(int parameterIndex,int jdbcType) method and call + * getShort method. It should return a byte value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter14() throws Exception { + super.testRegisterOutParameter14(); + } + + /* + * @testName: testRegisterOutParameter15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setByte() method to set + * maximum Tinyint value in null column of Tinyint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getByte method. It should return a short value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter15() throws Exception { + super.testRegisterOutParameter15(); + } + + /* + * @testName: testRegisterOutParameter16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setByte() method to set + * minimum Tinyint value in maximum value column in Tinyint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getByte method. It should return a short value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter16() throws Exception { + super.testRegisterOutParameter16(); + } + + /* + * @testName: testRegisterOutParameter17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setInt() method to set + * maximum Integer value in null column of Integer table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getInt method. It should return a int value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter17() throws Exception { + super.testRegisterOutParameter17(); + } + + /* + * @testName: testRegisterOutParameter18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setInt() method to set + * minimum Integer value in maximum value column in Integer table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getInt method. It should return a int value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter18() throws Exception { + super.testRegisterOutParameter18(); + } + + /* + * @testName: testRegisterOutParameter19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setLong() method to set + * maximum Bigint value in null column of Bigint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getLong method. It should return a long value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter19() throws Exception { + super.testRegisterOutParameter19(); + } + + /* + * @testName: testRegisterOutParameter20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setLong() method to set + * minimum Bigint value in maximum value column in Bigint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getLong method. It should return a long value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter20() throws Exception { + super.testRegisterOutParameter20(); + } + + /* + * @testName: testRegisterOutParameter21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Char value in null column of Char table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter21() throws Exception { + super.testRegisterOutParameter21(); + } + + /* + * @testName: testRegisterOutParameter22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Varchar value in null column of Varchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter22() throws Exception { + super.testRegisterOutParameter22(); + } + + /* + * @testName: testRegisterOutParameter23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Longvarchar value in null column of Longvarchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter23() throws Exception { + super.testRegisterOutParameter23(); + } + + /* + * @testName: testRegisterOutParameter24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDate() method to set + * Date value in null column of Date table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getDate method. It should + * return a Date object that is been set. (Note: This test case also checks + * the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter24() throws Exception { + super.testRegisterOutParameter24(); + } + + /* + * @testName: testRegisterOutParameter25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setTime() method to set + * Time value in null column of Time table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getTime method. It should + * return a Time object that is been set. (Note: This test case also checks + * the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter25() throws Exception { + super.testRegisterOutParameter25(); + } + + /* + * @testName: testRegisterOutParameter26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setTimestamp() method + * to set Timestamp value in null column of Timestamp table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getTimestamp method. It should return a Timestamp object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter26() throws Exception { + super.testRegisterOutParameter26(); + } + + /* + * @testName: testRegisterOutParameter27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBytes() method to + * set Binary value in Binary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getBytes method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter27() throws Exception { + super.testRegisterOutParameter27(); + } + + /* + * @testName: testRegisterOutParameter28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBytes() method to + * set Varbinary value in Varbinary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getBytes method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter28() throws Exception { + super.testRegisterOutParameter28(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20JSP.java new file mode 100644 index 0000000000..8b543079a4 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20JSP.java @@ -0,0 +1,513 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt20; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient20 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient20JSP extends callStmtClient20 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt20_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient20JSP.class, callStmtClient20.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = callStmtClient20JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient20JSP.class.getResource("callStmt20_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient20JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient20JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient20JSP theTests = new callStmtClient20JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testRegisterOutParameter09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setFloat() method to + * set maximum Real value in null column of Real table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getFloat method. It should return a float value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter09() throws Exception { + super.testRegisterOutParameter09(); + } + + /* + * @testName: testRegisterOutParameter10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setFloat() method to + * set minimum real value in maximum value column in Real table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getFloat method. It should return a float value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter10() throws Exception { + super.testRegisterOutParameter10(); + } + + /* + * @testName: testRegisterOutParameter11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBoolean() method to + * set maximum BIT value in null column of BIT table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getBoolean method. It should return a boolean value that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter11() throws Exception { + super.testRegisterOutParameter11(); + } + + /* + * @testName: testRegisterOutParameter12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBoolean() method to + * set minimum BIT value in maximum value column in BIT table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getBoolen method. It should return a boolean value that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter12() throws Exception { + super.testRegisterOutParameter12(); + } + + /* + * @testName: testRegisterOutParameter13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setShort() method to + * set maximum Smallint value in null column of Smallint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getShort method. It should return a byte value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter13() throws Exception { + super.testRegisterOutParameter13(); + } + + /* + * @testName: testRegisterOutParameter14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setShort() method to + * set minimum Smallint value in maximum value column in Smallint table and + * call registerOutParameter(int parameterIndex,int jdbcType) method and call + * getShort method. It should return a byte value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter14() throws Exception { + super.testRegisterOutParameter14(); + } + + /* + * @testName: testRegisterOutParameter15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setByte() method to set + * maximum Tinyint value in null column of Tinyint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getByte method. It should return a short value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter15() throws Exception { + super.testRegisterOutParameter15(); + } + + /* + * @testName: testRegisterOutParameter16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setByte() method to set + * minimum Tinyint value in maximum value column in Tinyint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getByte method. It should return a short value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter16() throws Exception { + super.testRegisterOutParameter16(); + } + + /* + * @testName: testRegisterOutParameter17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setInt() method to set + * maximum Integer value in null column of Integer table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getInt method. It should return a int value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter17() throws Exception { + super.testRegisterOutParameter17(); + } + + /* + * @testName: testRegisterOutParameter18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setInt() method to set + * minimum Integer value in maximum value column in Integer table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getInt method. It should return a int value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter18() throws Exception { + super.testRegisterOutParameter18(); + } + + /* + * @testName: testRegisterOutParameter19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setLong() method to set + * maximum Bigint value in null column of Bigint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getLong method. It should return a long value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter19() throws Exception { + super.testRegisterOutParameter19(); + } + + /* + * @testName: testRegisterOutParameter20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setLong() method to set + * minimum Bigint value in maximum value column in Bigint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getLong method. It should return a long value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter20() throws Exception { + super.testRegisterOutParameter20(); + } + + /* + * @testName: testRegisterOutParameter21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Char value in null column of Char table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter21() throws Exception { + super.testRegisterOutParameter21(); + } + + /* + * @testName: testRegisterOutParameter22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Varchar value in null column of Varchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter22() throws Exception { + super.testRegisterOutParameter22(); + } + + /* + * @testName: testRegisterOutParameter23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Longvarchar value in null column of Longvarchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter23() throws Exception { + super.testRegisterOutParameter23(); + } + + /* + * @testName: testRegisterOutParameter24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDate() method to set + * Date value in null column of Date table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getDate method. It should + * return a Date object that is been set. (Note: This test case also checks + * the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter24() throws Exception { + super.testRegisterOutParameter24(); + } + + /* + * @testName: testRegisterOutParameter25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setTime() method to set + * Time value in null column of Time table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getTime method. It should + * return a Time object that is been set. (Note: This test case also checks + * the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter25() throws Exception { + super.testRegisterOutParameter25(); + } + + /* + * @testName: testRegisterOutParameter26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setTimestamp() method + * to set Timestamp value in null column of Timestamp table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getTimestamp method. It should return a Timestamp object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter26() throws Exception { + super.testRegisterOutParameter26(); + } + + /* + * @testName: testRegisterOutParameter27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBytes() method to + * set Binary value in Binary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getBytes method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter27() throws Exception { + super.testRegisterOutParameter27(); + } + + /* + * @testName: testRegisterOutParameter28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBytes() method to + * set Varbinary value in Varbinary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getBytes method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter28() throws Exception { + super.testRegisterOutParameter28(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20Servlet.java new file mode 100644 index 0000000000..9a3bced661 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt20/callStmtClient20Servlet.java @@ -0,0 +1,502 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt20; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient20 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient20Servlet extends callStmtClient20 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt20_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient20Servlet.class, callStmtClient20.class); + // The servlet descriptor +URL servletUrl = callStmtClient20Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient20Servlet.class.getResource("callStmt20_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient20Servlet.class, sunServletUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient20Servlet theTests = new callStmtClient20Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testRegisterOutParameter09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setFloat() method to + * set maximum Real value in null column of Real table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getFloat method. It should return a float value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter09() throws Exception { + super.testRegisterOutParameter09(); + } + + /* + * @testName: testRegisterOutParameter10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setFloat() method to + * set minimum real value in maximum value column in Real table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getFloat method. It should return a float value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter10() throws Exception { + super.testRegisterOutParameter10(); + } + + /* + * @testName: testRegisterOutParameter11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBoolean() method to + * set maximum BIT value in null column of BIT table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getBoolean method. It should return a boolean value that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter11() throws Exception { + super.testRegisterOutParameter11(); + } + + /* + * @testName: testRegisterOutParameter12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBoolean() method to + * set minimum BIT value in maximum value column in BIT table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getBoolen method. It should return a boolean value that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter12() throws Exception { + super.testRegisterOutParameter12(); + } + + /* + * @testName: testRegisterOutParameter13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setShort() method to + * set maximum Smallint value in null column of Smallint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getShort method. It should return a byte value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter13() throws Exception { + super.testRegisterOutParameter13(); + } + + /* + * @testName: testRegisterOutParameter14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setShort() method to + * set minimum Smallint value in maximum value column in Smallint table and + * call registerOutParameter(int parameterIndex,int jdbcType) method and call + * getShort method. It should return a byte value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter14() throws Exception { + super.testRegisterOutParameter14(); + } + + /* + * @testName: testRegisterOutParameter15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setByte() method to set + * maximum Tinyint value in null column of Tinyint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getByte method. It should return a short value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter15() throws Exception { + super.testRegisterOutParameter15(); + } + + /* + * @testName: testRegisterOutParameter16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setByte() method to set + * minimum Tinyint value in maximum value column in Tinyint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getByte method. It should return a short value that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter16() throws Exception { + super.testRegisterOutParameter16(); + } + + /* + * @testName: testRegisterOutParameter17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setInt() method to set + * maximum Integer value in null column of Integer table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getInt method. It should return a int value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter17() throws Exception { + super.testRegisterOutParameter17(); + } + + /* + * @testName: testRegisterOutParameter18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setInt() method to set + * minimum Integer value in maximum value column in Integer table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getInt method. It should return a int value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter18() throws Exception { + super.testRegisterOutParameter18(); + } + + /* + * @testName: testRegisterOutParameter19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setLong() method to set + * maximum Bigint value in null column of Bigint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getLong method. It should return a long value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter19() throws Exception { + super.testRegisterOutParameter19(); + } + + /* + * @testName: testRegisterOutParameter20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setLong() method to set + * minimum Bigint value in maximum value column in Bigint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getLong method. It should return a long value that is been set. (Note: This + * test case also checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter20() throws Exception { + super.testRegisterOutParameter20(); + } + + /* + * @testName: testRegisterOutParameter21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Char value in null column of Char table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter21() throws Exception { + super.testRegisterOutParameter21(); + } + + /* + * @testName: testRegisterOutParameter22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Varchar value in null column of Varchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter22() throws Exception { + super.testRegisterOutParameter22(); + } + + /* + * @testName: testRegisterOutParameter23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Longvarchar value in null column of Longvarchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter23() throws Exception { + super.testRegisterOutParameter23(); + } + + /* + * @testName: testRegisterOutParameter24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setDate() method to set + * Date value in null column of Date table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getDate method. It should + * return a Date object that is been set. (Note: This test case also checks + * the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter24() throws Exception { + super.testRegisterOutParameter24(); + } + + /* + * @testName: testRegisterOutParameter25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setTime() method to set + * Time value in null column of Time table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getTime method. It should + * return a Time object that is been set. (Note: This test case also checks + * the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter25() throws Exception { + super.testRegisterOutParameter25(); + } + + /* + * @testName: testRegisterOutParameter26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setTimestamp() method + * to set Timestamp value in null column of Timestamp table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getTimestamp method. It should return a Timestamp object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter26() throws Exception { + super.testRegisterOutParameter26(); + } + + /* + * @testName: testRegisterOutParameter27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBytes() method to + * set Binary value in Binary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getBytes method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter27() throws Exception { + super.testRegisterOutParameter27(); + } + + /* + * @testName: testRegisterOutParameter28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBytes() method to + * set Varbinary value in Varbinary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getBytes method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter28() throws Exception { + super.testRegisterOutParameter28(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/build.xml deleted file mode 100644 index 18f7eacb09..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/build.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21.java index 7b08116a6f..79e9c534da 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21.java @@ -28,8 +28,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -50,6 +54,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class callStmtClient21 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt21"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21AppClient.java new file mode 100644 index 0000000000..d32c34a31f --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21AppClient.java @@ -0,0 +1,509 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient21.java 1.27 07/10/03 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt21; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient21 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-appclient") + +public class callStmtClient21AppClient extends callStmtClient21 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt21"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt21_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient21AppClient.class, callStmtClient21.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient21AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient21AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient21AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt21_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient21AppClient theTests = new callStmtClient21AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testRegisterOutParameter29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBytes() method to + * set Longvarbinary value in Longvarbinary table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getBytes method. It should return a Byte Array object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter29() throws Exception { + super.testRegisterOutParameter29(); + } + + /* + * @testName: testRegisterOutParameter30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Double value in null column and call registerOutParameter + * method and call getObject method. It should return a Double object that is + * been set. (Note: This test case also checks the support for INOUT parameter + * in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter30() throws Exception { + super.testRegisterOutParameter30(); + } + + /* + * @testName: testRegisterOutParameter31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum double value in maximum value column in Double table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getObject method. It should return a Double object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter31() throws Exception { + super.testRegisterOutParameter31(); + } + + /* + * @testName: testRegisterOutParameter32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Double value in null column and call registerOutParameter method and + * call getObject method. It should return a Double object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter32() throws Exception { + super.testRegisterOutParameter32(); + } + + /* + * @testName: testRegisterOutParameter33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum float value in maximum value column in Float table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getObject method. It should return a Double object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter33() throws Exception { + super.testRegisterOutParameter33(); + } + + /* + * @testName: testRegisterOutParameter34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Real value in null column of Real table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Float object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter34() throws Exception { + super.testRegisterOutParameter34(); + } + + /* + * @testName: testRegisterOutParameter35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum real value in maximum value column in Real table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getObject method. It should return a Float object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter35() throws Exception { + super.testRegisterOutParameter35(); + } + + /* + * @testName: testRegisterOutParameter36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum BIT value in null column of BIT table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Boolean object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter36() throws Exception { + super.testRegisterOutParameter36(); + } + + /* + * @testName: testRegisterOutParameter37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum BIT value in maximum value column in BIT table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getBoolen method. It should return a Boolean object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter37() throws Exception { + super.testRegisterOutParameter37(); + } + + /* + * @testName: testRegisterOutParameter38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Smallint value in null column of Smallint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter38() throws Exception { + super.testRegisterOutParameter38(); + } + + /* + * @testName: testRegisterOutParameter39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Smallint value in maximum value column in Smallint table and + * call registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter39() throws Exception { + super.testRegisterOutParameter39(); + } + + /* + * @testName: testRegisterOutParameter40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Tinyint value in null column of Tinyint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Byte object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter40() throws Exception { + super.testRegisterOutParameter40(); + } + + /* + * @testName: testRegisterOutParameter41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Tinyint value in maximum value column in Tinyint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Byte object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter41() throws Exception { + super.testRegisterOutParameter41(); + } + + /* + * @testName: testRegisterOutParameter42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Integer value in null column of Integer table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter42() throws Exception { + super.testRegisterOutParameter42(); + } + + /* + * @testName: testRegisterOutParameter43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Integer value in maximum value column in Integer table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter43() throws Exception { + super.testRegisterOutParameter43(); + } + + /* + * @testName: testRegisterOutParameter44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Bigint value in null column of Bigint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Long Object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter44() throws Exception { + super.testRegisterOutParameter44(); + } + + /* + * @testName: testRegisterOutParameter45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Bigint value in maximum value column in Bigint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Long object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter45() throws Exception { + super.testRegisterOutParameter45(); + } + + /* + * @testName: testRegisterOutParameter46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Char value in null column of Char table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter46() throws Exception { + super.testRegisterOutParameter46(); + } + + /* + * @testName: testRegisterOutParameter47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Varchar value in null column of Varchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter47() throws Exception { + super.testRegisterOutParameter47(); + } + + /* + * @testName: testRegisterOutParameter48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Longvarchar value in null column of Longvarchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter48() throws Exception { + super.testRegisterOutParameter48(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21EJB.java new file mode 100644 index 0000000000..f508cc1fd9 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21EJB.java @@ -0,0 +1,529 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient21.java 1.27 07/10/03 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt21; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient21 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient21EJB extends callStmtClient21 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt21"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt21_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient21EJB.class, callStmtClient21.class); + + URL resURL = callStmtClient21EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient21EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmt21_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt21_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient21EJB.class, callStmtClient21.class); + + resURL = callStmtClient21EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmt21_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient21EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt21_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient21EJB theTests = new callStmtClient21EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testRegisterOutParameter29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBytes() method to + * set Longvarbinary value in Longvarbinary table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getBytes method. It should return a Byte Array object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter29() throws Exception { + super.testRegisterOutParameter29(); + } + + /* + * @testName: testRegisterOutParameter30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Double value in null column and call registerOutParameter + * method and call getObject method. It should return a Double object that is + * been set. (Note: This test case also checks the support for INOUT parameter + * in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter30() throws Exception { + super.testRegisterOutParameter30(); + } + + /* + * @testName: testRegisterOutParameter31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum double value in maximum value column in Double table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getObject method. It should return a Double object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter31() throws Exception { + super.testRegisterOutParameter31(); + } + + /* + * @testName: testRegisterOutParameter32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Double value in null column and call registerOutParameter method and + * call getObject method. It should return a Double object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter32() throws Exception { + super.testRegisterOutParameter32(); + } + + /* + * @testName: testRegisterOutParameter33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum float value in maximum value column in Float table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getObject method. It should return a Double object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter33() throws Exception { + super.testRegisterOutParameter33(); + } + + /* + * @testName: testRegisterOutParameter34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Real value in null column of Real table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Float object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter34() throws Exception { + super.testRegisterOutParameter34(); + } + + /* + * @testName: testRegisterOutParameter35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum real value in maximum value column in Real table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getObject method. It should return a Float object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter35() throws Exception { + super.testRegisterOutParameter35(); + } + + /* + * @testName: testRegisterOutParameter36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum BIT value in null column of BIT table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Boolean object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter36() throws Exception { + super.testRegisterOutParameter36(); + } + + /* + * @testName: testRegisterOutParameter37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum BIT value in maximum value column in BIT table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getBoolen method. It should return a Boolean object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter37() throws Exception { + super.testRegisterOutParameter37(); + } + + /* + * @testName: testRegisterOutParameter38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Smallint value in null column of Smallint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter38() throws Exception { + super.testRegisterOutParameter38(); + } + + /* + * @testName: testRegisterOutParameter39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Smallint value in maximum value column in Smallint table and + * call registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter39() throws Exception { + super.testRegisterOutParameter39(); + } + + /* + * @testName: testRegisterOutParameter40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Tinyint value in null column of Tinyint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Byte object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter40() throws Exception { + super.testRegisterOutParameter40(); + } + + /* + * @testName: testRegisterOutParameter41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Tinyint value in maximum value column in Tinyint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Byte object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter41() throws Exception { + super.testRegisterOutParameter41(); + } + + /* + * @testName: testRegisterOutParameter42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Integer value in null column of Integer table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter42() throws Exception { + super.testRegisterOutParameter42(); + } + + /* + * @testName: testRegisterOutParameter43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Integer value in maximum value column in Integer table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter43() throws Exception { + super.testRegisterOutParameter43(); + } + + /* + * @testName: testRegisterOutParameter44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Bigint value in null column of Bigint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Long Object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter44() throws Exception { + super.testRegisterOutParameter44(); + } + + /* + * @testName: testRegisterOutParameter45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Bigint value in maximum value column in Bigint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Long object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter45() throws Exception { + super.testRegisterOutParameter45(); + } + + /* + * @testName: testRegisterOutParameter46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Char value in null column of Char table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter46() throws Exception { + super.testRegisterOutParameter46(); + } + + /* + * @testName: testRegisterOutParameter47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Varchar value in null column of Varchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter47() throws Exception { + super.testRegisterOutParameter47(); + } + + /* + * @testName: testRegisterOutParameter48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Longvarchar value in null column of Longvarchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter48() throws Exception { + super.testRegisterOutParameter48(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21JSP.java new file mode 100644 index 0000000000..adb8163b30 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21JSP.java @@ -0,0 +1,512 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient21.java 1.27 07/10/03 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt21; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient21 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient21JSP extends callStmtClient21 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt21"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt21_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient21JSP.class, callStmtClient21.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = callStmtClient21JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient21JSP.class.getResource("callStmt21_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient21JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient21JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient21JSP theTests = new callStmtClient21JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testRegisterOutParameter29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBytes() method to + * set Longvarbinary value in Longvarbinary table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getBytes method. It should return a Byte Array object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter29() throws Exception { + super.testRegisterOutParameter29(); + } + + /* + * @testName: testRegisterOutParameter30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Double value in null column and call registerOutParameter + * method and call getObject method. It should return a Double object that is + * been set. (Note: This test case also checks the support for INOUT parameter + * in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter30() throws Exception { + super.testRegisterOutParameter30(); + } + + /* + * @testName: testRegisterOutParameter31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum double value in maximum value column in Double table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getObject method. It should return a Double object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter31() throws Exception { + super.testRegisterOutParameter31(); + } + + /* + * @testName: testRegisterOutParameter32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Double value in null column and call registerOutParameter method and + * call getObject method. It should return a Double object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter32() throws Exception { + super.testRegisterOutParameter32(); + } + + /* + * @testName: testRegisterOutParameter33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum float value in maximum value column in Float table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getObject method. It should return a Double object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter33() throws Exception { + super.testRegisterOutParameter33(); + } + + /* + * @testName: testRegisterOutParameter34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Real value in null column of Real table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Float object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter34() throws Exception { + super.testRegisterOutParameter34(); + } + + /* + * @testName: testRegisterOutParameter35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum real value in maximum value column in Real table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getObject method. It should return a Float object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter35() throws Exception { + super.testRegisterOutParameter35(); + } + + /* + * @testName: testRegisterOutParameter36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum BIT value in null column of BIT table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Boolean object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter36() throws Exception { + super.testRegisterOutParameter36(); + } + + /* + * @testName: testRegisterOutParameter37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum BIT value in maximum value column in BIT table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getBoolen method. It should return a Boolean object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter37() throws Exception { + super.testRegisterOutParameter37(); + } + + /* + * @testName: testRegisterOutParameter38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Smallint value in null column of Smallint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter38() throws Exception { + super.testRegisterOutParameter38(); + } + + /* + * @testName: testRegisterOutParameter39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Smallint value in maximum value column in Smallint table and + * call registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter39() throws Exception { + super.testRegisterOutParameter39(); + } + + /* + * @testName: testRegisterOutParameter40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Tinyint value in null column of Tinyint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Byte object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter40() throws Exception { + super.testRegisterOutParameter40(); + } + + /* + * @testName: testRegisterOutParameter41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Tinyint value in maximum value column in Tinyint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Byte object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter41() throws Exception { + super.testRegisterOutParameter41(); + } + + /* + * @testName: testRegisterOutParameter42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Integer value in null column of Integer table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter42() throws Exception { + super.testRegisterOutParameter42(); + } + + /* + * @testName: testRegisterOutParameter43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Integer value in maximum value column in Integer table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter43() throws Exception { + super.testRegisterOutParameter43(); + } + + /* + * @testName: testRegisterOutParameter44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Bigint value in null column of Bigint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Long Object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter44() throws Exception { + super.testRegisterOutParameter44(); + } + + /* + * @testName: testRegisterOutParameter45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Bigint value in maximum value column in Bigint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Long object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter45() throws Exception { + super.testRegisterOutParameter45(); + } + + /* + * @testName: testRegisterOutParameter46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Char value in null column of Char table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter46() throws Exception { + super.testRegisterOutParameter46(); + } + + /* + * @testName: testRegisterOutParameter47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Varchar value in null column of Varchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter47() throws Exception { + super.testRegisterOutParameter47(); + } + + /* + * @testName: testRegisterOutParameter48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Longvarchar value in null column of Longvarchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter48() throws Exception { + super.testRegisterOutParameter48(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21Servlet.java new file mode 100644 index 0000000000..ab9db0b010 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/callStmtClient21Servlet.java @@ -0,0 +1,502 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient21.java 1.27 07/10/03 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt21; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient21 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient21Servlet extends callStmtClient21 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt21"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt21_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient21Servlet.class, callStmtClient21.class); + // The servlet descriptor +URL servletUrl = callStmtClient21Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +//The sun servlet descriptor +URL sunServletUrl = callStmtClient21Servlet.class.getResource("callStmt21_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +//Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient21Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient21Servlet theTests = new callStmtClient21Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testRegisterOutParameter29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setBytes() method to + * set Longvarbinary value in Longvarbinary table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getBytes method. It should return a Byte Array object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter29() throws Exception { + super.testRegisterOutParameter29(); + } + + /* + * @testName: testRegisterOutParameter30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Double value in null column and call registerOutParameter + * method and call getObject method. It should return a Double object that is + * been set. (Note: This test case also checks the support for INOUT parameter + * in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter30() throws Exception { + super.testRegisterOutParameter30(); + } + + /* + * @testName: testRegisterOutParameter31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum double value in maximum value column in Double table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getObject method. It should return a Double object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter31() throws Exception { + super.testRegisterOutParameter31(); + } + + /* + * @testName: testRegisterOutParameter32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Double value in null column and call registerOutParameter method and + * call getObject method. It should return a Double object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter32() throws Exception { + super.testRegisterOutParameter32(); + } + + /* + * @testName: testRegisterOutParameter33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum float value in maximum value column in Float table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getObject method. It should return a Double object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter33() throws Exception { + super.testRegisterOutParameter33(); + } + + /* + * @testName: testRegisterOutParameter34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Real value in null column of Real table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Float object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter34() throws Exception { + super.testRegisterOutParameter34(); + } + + /* + * @testName: testRegisterOutParameter35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum real value in maximum value column in Real table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getObject method. It should return a Float object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter35() throws Exception { + super.testRegisterOutParameter35(); + } + + /* + * @testName: testRegisterOutParameter36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum BIT value in null column of BIT table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Boolean object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter36() throws Exception { + super.testRegisterOutParameter36(); + } + + /* + * @testName: testRegisterOutParameter37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum BIT value in maximum value column in BIT table and call + * registerOutParameter(int parameterIndex,int jdbcType,int scale) method and + * call getBoolen method. It should return a Boolean object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter37() throws Exception { + super.testRegisterOutParameter37(); + } + + /* + * @testName: testRegisterOutParameter38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Smallint value in null column of Smallint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter38() throws Exception { + super.testRegisterOutParameter38(); + } + + /* + * @testName: testRegisterOutParameter39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Smallint value in maximum value column in Smallint table and + * call registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter39() throws Exception { + super.testRegisterOutParameter39(); + } + + /* + * @testName: testRegisterOutParameter40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Tinyint value in null column of Tinyint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Byte object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter40() throws Exception { + super.testRegisterOutParameter40(); + } + + /* + * @testName: testRegisterOutParameter41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Tinyint value in maximum value column in Tinyint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Byte object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter41() throws Exception { + super.testRegisterOutParameter41(); + } + + /* + * @testName: testRegisterOutParameter42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Integer value in null column of Integer table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter42() throws Exception { + super.testRegisterOutParameter42(); + } + + /* + * @testName: testRegisterOutParameter43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Integer value in maximum value column in Integer table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Integer object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter43() throws Exception { + super.testRegisterOutParameter43(); + } + + /* + * @testName: testRegisterOutParameter44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set maximum Bigint value in null column of Bigint table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Long Object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter44() throws Exception { + super.testRegisterOutParameter44(); + } + + /* + * @testName: testRegisterOutParameter45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set minimum Bigint value in maximum value column in Bigint table and call + * registerOutParameter(int parameterIndex,int jdbcType) method and call + * getObject method. It should return a Long object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter45() throws Exception { + super.testRegisterOutParameter45(); + } + + /* + * @testName: testRegisterOutParameter46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1237; + * JDBC:JAVADOC:1238; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setString() method to + * set Char value in null column of Char table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getString method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter46() throws Exception { + super.testRegisterOutParameter46(); + } + + /* + * @testName: testRegisterOutParameter47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Varchar value in null column of Varchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter47() throws Exception { + super.testRegisterOutParameter47(); + } + + /* + * @testName: testRegisterOutParameter48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Longvarchar value in null column of Longvarchar table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a String object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + public void testRegisterOutParameter48() throws Exception { + super.testRegisterOutParameter48(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/build.xml deleted file mode 100644 index 2e19c8d9cb..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22.java index 4570f076f2..83ac7f3982 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22.java @@ -29,8 +29,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -49,6 +53,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class callStmtClient22 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt22"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22AppClient.java new file mode 100644 index 0000000000..e2d6f2e879 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22AppClient.java @@ -0,0 +1,224 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient22.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt22; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient22 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient22AppClient extends callStmtClient22 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt22"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt22_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient22AppClient.class, callStmtClient22.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient22AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt21/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient22AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient22AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt22_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient22AppClient theTests = new callStmtClient22AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testRegisterOutParameter49 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Date value in null column of Date table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getDate method. It should return a Date object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter49() throws Exception { + super.testRegisterOutParameter49(); + } + + /* + * @testName: testRegisterOutParameter50 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Time Object in null column of Time table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getTime method. It should return a Time object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter50() throws Exception { + super.testRegisterOutParameter50(); + } + + /* + * @testName: testRegisterOutParameter51 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Timestamp value in null column of Timestamp table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Timestamp object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter51() throws Exception { + super.testRegisterOutParameter51(); + } + + /* + * @testName: testRegisterOutParameter52 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Byte Array object in Binary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getObject method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter52() throws Exception { + super.testRegisterOutParameter52(); + } + + /* + * @testName: testRegisterOutParameter53 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Byte Array object in Varbinary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getObject method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter53() throws Exception { + super.testRegisterOutParameter53(); + } + + /* + * @testName: testRegisterOutParameter54 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Byte Array object in Longvarbinary table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Byte Array object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("appclient") + public void testRegisterOutParameter54() throws Exception { + super.testRegisterOutParameter54(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22EJB.java new file mode 100644 index 0000000000..e1d4d8f0c7 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22EJB.java @@ -0,0 +1,245 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient22.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt22; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient22 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient22EJB extends callStmtClient22 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt22"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt22_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient22EJB.class, callStmtClient22.class); + + + URL resURL = callStmtClient22EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient22EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmt22_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt22_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient22EJB.class, callStmtClient22.class); + + resURL = callStmtClient22EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmt22_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient22EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt22_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient22EJB theTests = new callStmtClient22EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testRegisterOutParameter49 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Date value in null column of Date table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getDate method. It should return a Date object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter49() throws Exception { + super.testRegisterOutParameter49(); + } + + /* + * @testName: testRegisterOutParameter50 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Time Object in null column of Time table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getTime method. It should return a Time object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter50() throws Exception { + super.testRegisterOutParameter50(); + } + + /* + * @testName: testRegisterOutParameter51 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Timestamp value in null column of Timestamp table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Timestamp object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter51() throws Exception { + super.testRegisterOutParameter51(); + } + + /* + * @testName: testRegisterOutParameter52 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Byte Array object in Binary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getObject method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter52() throws Exception { + super.testRegisterOutParameter52(); + } + + /* + * @testName: testRegisterOutParameter53 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Byte Array object in Varbinary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getObject method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter53() throws Exception { + super.testRegisterOutParameter53(); + } + + /* + * @testName: testRegisterOutParameter54 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Byte Array object in Longvarbinary table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Byte Array object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("ejb") + public void testRegisterOutParameter54() throws Exception { + super.testRegisterOutParameter54(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22JSP.java new file mode 100644 index 0000000000..39a00cedf5 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22JSP.java @@ -0,0 +1,227 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient22.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt22; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient22 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient22JSP extends callStmtClient22 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt22"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt22_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient22JSP.class, callStmtClient22.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = callStmtClient22JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient22JSP.class.getResource("callStmt22_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient22JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient22JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient22JSP theTests = new callStmtClient22JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testRegisterOutParameter49 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Date value in null column of Date table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getDate method. It should return a Date object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter49() throws Exception { + super.testRegisterOutParameter49(); + } + + /* + * @testName: testRegisterOutParameter50 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Time Object in null column of Time table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getTime method. It should return a Time object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter50() throws Exception { + super.testRegisterOutParameter50(); + } + + /* + * @testName: testRegisterOutParameter51 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Timestamp value in null column of Timestamp table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Timestamp object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter51() throws Exception { + super.testRegisterOutParameter51(); + } + + /* + * @testName: testRegisterOutParameter52 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Byte Array object in Binary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getObject method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter52() throws Exception { + super.testRegisterOutParameter52(); + } + + /* + * @testName: testRegisterOutParameter53 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Byte Array object in Varbinary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getObject method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter53() throws Exception { + super.testRegisterOutParameter53(); + } + + /* + * @testName: testRegisterOutParameter54 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Byte Array object in Longvarbinary table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Byte Array object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("jsp") + public void testRegisterOutParameter54() throws Exception { + super.testRegisterOutParameter54(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22Servlet.java new file mode 100644 index 0000000000..dd8fc3b844 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt22/callStmtClient22Servlet.java @@ -0,0 +1,216 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient22.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt22; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient22 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient22Servlet extends callStmtClient22 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt22"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt22_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient22Servlet.class, callStmtClient22.class); + // The servlet descriptor +URL servletUrl = callStmtClient22Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient22Servlet.class.getResource("callStmt22_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient22Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient22Servlet theTests = new callStmtClient22Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testRegisterOutParameter49 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Date value in null column of Date table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getDate method. It should return a Date object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter49() throws Exception { + super.testRegisterOutParameter49(); + } + + /* + * @testName: testRegisterOutParameter50 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Time Object in null column of Time table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getTime method. It should return a Time object that is been set. (Note: + * This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter50() throws Exception { + super.testRegisterOutParameter50(); + } + + /* + * @testName: testRegisterOutParameter51 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Timestamp value in null column of Timestamp table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Timestamp object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter51() throws Exception { + super.testRegisterOutParameter51(); + } + + /* + * @testName: testRegisterOutParameter52 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Byte Array object in Binary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getObject method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter52() throws Exception { + super.testRegisterOutParameter52(); + } + + /* + * @testName: testRegisterOutParameter53 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Byte Array object in Varbinary table and call registerOutParameter(int + * parameterIndex, int jdbcType) method and call getObject method. It should + * return a Byte Array object that is been set. (Note: This test case also + * checks the support for INOUT parameter in Stored Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter53() throws Exception { + super.testRegisterOutParameter53(); + } + + /* + * @testName: testRegisterOutParameter54 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1235; + * JDBC:JAVADOC:1236; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject() method to + * set Byte Array object in Longvarbinary table and call + * registerOutParameter(int parameterIndex, int jdbcType) method and call + * getObject method. It should return a Byte Array object that is been set. + * (Note: This test case also checks the support for INOUT parameter in Stored + * Procedure) + * + */ + @Test + @TargetVehicle("servlet") + public void testRegisterOutParameter54() throws Exception { + super.testRegisterOutParameter54(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/build.xml deleted file mode 100644 index 45f13abd4c..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/build.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3.java index 5336f6c1a1..a2702d6e48 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3.java @@ -27,8 +27,12 @@ import java.sql.SQLException; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; // Merant DataSource class @@ -47,6 +51,10 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + public class callStmtClient3 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt3"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3AppClient.java new file mode 100644 index 0000000000..834c4c651b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3AppClient.java @@ -0,0 +1,464 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient3.java 1.28 07/10/03 + */ +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The callStmtClient3 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient3AppClient extends callStmtClient3 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt3"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt3_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient3AppClient.class, callStmtClient3.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient3AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient3AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient3AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt3_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient3AppClient theTests = new callStmtClient3AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the maximum + * value of the parameter from Numeric_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject01() throws Exception { + super.testGetObject01(); + } + + /* + * @testName: testGetObject02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the minimum + * value of the parameter from Numeric_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject02() throws Exception { + super.testGetObject02(); + } + + /* + * @testName: testGetObject03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the null + * value from Numeric_Tab. Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject03() throws Exception { + super.testGetObject03(); + } + + /* + * @testName: testGetObject04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method.to retrieve the maximum value of + * the parameter from Float_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject04() throws Exception { + super.testGetObject04(); + } + + /* + * @testName: testGetObject05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Float_Tab. Extract the minimum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject05() throws Exception { + super.testGetObject05(); + } + + /* + * @testName: testGetObject06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Float_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject06() throws Exception { + super.testGetObject06(); + } + + /* + * @testName: testGetObject07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Smallint_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject07() throws Exception { + super.testGetObject07(); + } + + /* + * @testName: testGetObject08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Smallint_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject08() throws Exception { + super.testGetObject08(); + } + + /* + * @testName: testGetObject09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Smallint_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject09() throws Exception { + super.testGetObject09(); + } + + /* + * @testName: testGetObject10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a char value from + * Char_Tab.Extract the same char value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex).Both the + * values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject10() throws Exception { + super.testGetObject10(); + } + + /* + * @testName: testGetObject11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Char_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject11() throws Exception { + super.testGetObject11(); + } + + /* + * @testName: testGetObject12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Integer_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject12() throws Exception { + super.testGetObject12(); + } + + /* + * @testName: testGetObject13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Integer_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject13() throws Exception { + super.testGetObject13(); + } + + /* + * @testName: testGetObject14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Integer_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject14() throws Exception { + super.testGetObject14(); + } + + /* + * @testName: testGetObject15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Bit_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject15() throws Exception { + super.testGetObject15(); + } + + /* + * @testName: testGetObject16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Bit_Tab. Extract the minimum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject16() throws Exception { + super.testGetObject16(); + } + + /* + * @testName: testGetObject18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Bigint_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject18() throws Exception { + super.testGetObject18(); + } + + /* + * @testName: testGetObject19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Bigint_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject19() throws Exception { + super.testGetObject19(); + } + + /* + * @testName: testGetObject20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Bigint_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject20() throws Exception { + super.testGetObject20(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3EJB.java new file mode 100644 index 0000000000..2c84ec8419 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3EJB.java @@ -0,0 +1,484 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient3.java 1.28 07/10/03 + */ +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The callStmtClient3 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient3EJB extends callStmtClient3 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt3"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt3_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient3EJB.class, callStmtClient3.class); + + + URL resURL = callStmtClient3EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient3EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmt3_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt3_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient3EJB.class, callStmtClient3.class); + + resURL = callStmtClient3EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmt3_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient3EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt3_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient3EJB theTests = new callStmtClient3EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the maximum + * value of the parameter from Numeric_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject01() throws Exception { + super.testGetObject01(); + } + + /* + * @testName: testGetObject02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the minimum + * value of the parameter from Numeric_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject02() throws Exception { + super.testGetObject02(); + } + + /* + * @testName: testGetObject03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the null + * value from Numeric_Tab. Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject03() throws Exception { + super.testGetObject03(); + } + + /* + * @testName: testGetObject04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method.to retrieve the maximum value of + * the parameter from Float_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject04() throws Exception { + super.testGetObject04(); + } + + /* + * @testName: testGetObject05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Float_Tab. Extract the minimum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject05() throws Exception { + super.testGetObject05(); + } + + /* + * @testName: testGetObject06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Float_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject06() throws Exception { + super.testGetObject06(); + } + + /* + * @testName: testGetObject07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Smallint_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject07() throws Exception { + super.testGetObject07(); + } + + /* + * @testName: testGetObject08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Smallint_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject08() throws Exception { + super.testGetObject08(); + } + + /* + * @testName: testGetObject09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Smallint_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject09() throws Exception { + super.testGetObject09(); + } + + /* + * @testName: testGetObject10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a char value from + * Char_Tab.Extract the same char value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex).Both the + * values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject10() throws Exception { + super.testGetObject10(); + } + + /* + * @testName: testGetObject11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Char_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject11() throws Exception { + super.testGetObject11(); + } + + /* + * @testName: testGetObject12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Integer_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject12() throws Exception { + super.testGetObject12(); + } + + /* + * @testName: testGetObject13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Integer_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject13() throws Exception { + super.testGetObject13(); + } + + /* + * @testName: testGetObject14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Integer_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject14() throws Exception { + super.testGetObject14(); + } + + /* + * @testName: testGetObject15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Bit_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject15() throws Exception { + super.testGetObject15(); + } + + /* + * @testName: testGetObject16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Bit_Tab. Extract the minimum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject16() throws Exception { + super.testGetObject16(); + } + + /* + * @testName: testGetObject18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Bigint_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject18() throws Exception { + super.testGetObject18(); + } + + /* + * @testName: testGetObject19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Bigint_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject19() throws Exception { + super.testGetObject19(); + } + + /* + * @testName: testGetObject20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Bigint_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject20() throws Exception { + super.testGetObject20(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3JSP.java new file mode 100644 index 0000000000..199d0650bf --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3JSP.java @@ -0,0 +1,467 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient3.java 1.28 07/10/03 + */ +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt3; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The callStmtClient3 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient3JSP extends callStmtClient3 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt3"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt3_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient3JSP.class, callStmtClient3.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = callStmtClient3JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient3JSP.class.getResource("callStmt3_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient3JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient3JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient3JSP theTests = new callStmtClient3JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the maximum + * value of the parameter from Numeric_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject01() throws Exception { + super.testGetObject01(); + } + + /* + * @testName: testGetObject02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the minimum + * value of the parameter from Numeric_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject02() throws Exception { + super.testGetObject02(); + } + + /* + * @testName: testGetObject03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the null + * value from Numeric_Tab. Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject03() throws Exception { + super.testGetObject03(); + } + + /* + * @testName: testGetObject04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method.to retrieve the maximum value of + * the parameter from Float_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject04() throws Exception { + super.testGetObject04(); + } + + /* + * @testName: testGetObject05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Float_Tab. Extract the minimum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject05() throws Exception { + super.testGetObject05(); + } + + /* + * @testName: testGetObject06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Float_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject06() throws Exception { + super.testGetObject06(); + } + + /* + * @testName: testGetObject07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Smallint_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject07() throws Exception { + super.testGetObject07(); + } + + /* + * @testName: testGetObject08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Smallint_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject08() throws Exception { + super.testGetObject08(); + } + + /* + * @testName: testGetObject09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Smallint_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject09() throws Exception { + super.testGetObject09(); + } + + /* + * @testName: testGetObject10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a char value from + * Char_Tab.Extract the same char value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex).Both the + * values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject10() throws Exception { + super.testGetObject10(); + } + + /* + * @testName: testGetObject11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Char_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject11() throws Exception { + super.testGetObject11(); + } + + /* + * @testName: testGetObject12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Integer_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject12() throws Exception { + super.testGetObject12(); + } + + /* + * @testName: testGetObject13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Integer_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject13() throws Exception { + super.testGetObject13(); + } + + /* + * @testName: testGetObject14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Integer_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject14() throws Exception { + super.testGetObject14(); + } + + /* + * @testName: testGetObject15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Bit_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject15() throws Exception { + super.testGetObject15(); + } + + /* + * @testName: testGetObject16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Bit_Tab. Extract the minimum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject16() throws Exception { + super.testGetObject16(); + } + + /* + * @testName: testGetObject18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Bigint_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject18() throws Exception { + super.testGetObject18(); + } + + /* + * @testName: testGetObject19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Bigint_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject19() throws Exception { + super.testGetObject19(); + } + + /* + * @testName: testGetObject20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Bigint_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject20() throws Exception { + super.testGetObject20(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3Servlet.java new file mode 100644 index 0000000000..35ce94881c --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt3/callStmtClient3Servlet.java @@ -0,0 +1,456 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient3.java 1.28 07/10/03 + */ +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The callStmtClient3 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient3Servlet extends callStmtClient3 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt3"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt3_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient3Servlet.class, callStmtClient3.class); + // The servlet descriptor +URL servletUrl = callStmtClient3Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient3Servlet.class.getResource("callStmt3_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient3Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient3Servlet theTests = new callStmtClient3Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the maximum + * value of the parameter from Numeric_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject01() throws Exception { + super.testGetObject01(); + } + + /* + * @testName: testGetObject02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the minimum + * value of the parameter from Numeric_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject02() throws Exception { + super.testGetObject02(); + } + + /* + * @testName: testGetObject03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the null + * value from Numeric_Tab. Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject03() throws Exception { + super.testGetObject03(); + } + + /* + * @testName: testGetObject04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method.to retrieve the maximum value of + * the parameter from Float_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject04() throws Exception { + super.testGetObject04(); + } + + /* + * @testName: testGetObject05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Float_Tab. Extract the minimum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject05() throws Exception { + super.testGetObject05(); + } + + /* + * @testName: testGetObject06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Float_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject06() throws Exception { + super.testGetObject06(); + } + + /* + * @testName: testGetObject07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Smallint_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject07() throws Exception { + super.testGetObject07(); + } + + /* + * @testName: testGetObject08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Smallint_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject08() throws Exception { + super.testGetObject08(); + } + + /* + * @testName: testGetObject09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Smallint_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject09() throws Exception { + super.testGetObject09(); + } + + /* + * @testName: testGetObject10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a char value from + * Char_Tab.Extract the same char value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex).Both the + * values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject10() throws Exception { + super.testGetObject10(); + } + + /* + * @testName: testGetObject11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Char_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject11() throws Exception { + super.testGetObject11(); + } + + /* + * @testName: testGetObject12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Integer_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject12() throws Exception { + super.testGetObject12(); + } + + /* + * @testName: testGetObject13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Integer_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject13() throws Exception { + super.testGetObject13(); + } + + /* + * @testName: testGetObject14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Integer_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject14() throws Exception { + super.testGetObject14(); + } + + /* + * @testName: testGetObject15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Bit_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject15() throws Exception { + super.testGetObject15(); + } + + /* + * @testName: testGetObject16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Bit_Tab. Extract the minimum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject16() throws Exception { + super.testGetObject16(); + } + + /* + * @testName: testGetObject18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value of + * the parameter from Bigint_Tab. Extract the maximum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject18() throws Exception { + super.testGetObject18(); + } + + /* + * @testName: testGetObject19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Bigint_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject19() throws Exception { + super.testGetObject19(); + } + + /* + * @testName: testGetObject20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Bigint_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject20() throws Exception { + super.testGetObject20(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/build.xml deleted file mode 100644 index fb1c1f4138..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4.java index b057265ff5..aa92a52eb0 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4.java @@ -30,8 +30,12 @@ import java.sql.Timestamp; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -49,6 +53,10 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + public class callStmtClient4 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt4"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4AppClient.java new file mode 100644 index 0000000000..0f07f70599 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4AppClient.java @@ -0,0 +1,481 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient4.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt4; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; +/** + * The callStmtClient4 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient4AppClient extends callStmtClient4 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt4_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient4AppClient.class, callStmtClient4.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient4AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient4AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient4AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt4_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient4AppClient theTests = new callStmtClient4AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Time value from + * Time_Tab.Extract the same Time value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex).Both the + * values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject21() throws Exception { + super.testGetObject21(); + } + + /* + * @testName: testGetObject22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Time_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject22() throws Exception { + super.testGetObject22(); + } + + /* + * @testName: testGetObject23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Timestamp value from + * Timestamp_Tab.Extract the same Timestamp value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject23() throws Exception { + super.testGetObject23(); + } + + /* + * @testName: testGetObject24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Timestamp_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject24() throws Exception { + super.testGetObject24(); + } + + /* + * @testName: testGetObject25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Date value from from + * Date_Tab.Extract the Date char value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex).Both the + * values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject25() throws Exception { + super.testGetObject25(); + } + + /* + * @testName: testGetObject26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Date_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject26() throws Exception { + super.testGetObject26(); + } + + /* + * @testName: testGetObject27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value from + * Tinyint_Tab. Extract the maximum value from the tssql.stmt file.Compare + * this value with the value returned by the getObject(int parameterIndex) + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject27() throws Exception { + super.testGetObject27(); + } + + /* + * @testName: testGetObject28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value from + * Tinyint_Tab. Extract the minimum value from the tssql.stmt file.Compare + * this value with the value returned by the getObject(int parameterIndex) + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject28() throws Exception { + super.testGetObject28(); + } + + /* + * @testName: testGetObject29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Tinyint_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject29() throws Exception { + super.testGetObject29(); + } + + /* + * @testName: testGetObject30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value from + * Double_Tab. Extract the maximum value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex) Both the + * values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject30() throws Exception { + super.testGetObject30(); + } + + /* + * @testName: testGetObject31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Double_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject31() throws Exception { + super.testGetObject31(); + } + + /* + * @testName: testGetObject32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Double_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject32() throws Exception { + super.testGetObject32(); + + } + + /* + * @testName: testGetObject33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value from + * Real_Tab. Extract the maximum value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex) Both the + * values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject33() throws Exception { + super.testGetObject33(); + } + + /* + * @testName: testGetObject34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value from + * Real_Tab. Extract the minimum value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex) Both the + * values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject34() throws Exception { + super.testGetObject34(); + } + + /* + * @testName: testGetObject35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Real_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject35() throws Exception { + super.testGetObject35(); + } + + /* + * @testName: testGetObject36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Varchar value from + * Varchar_Tab.Extract the same Varchar value from the tssql.stmt file.Compare + * this value with the value returned by the getObject(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject36() throws Exception { + super.testGetObject36(); + } + + /* + * @testName: testGetObject37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Varchar_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject37() throws Exception { + super.testGetObject37(); + } + + /* + * @testName: testGetObject38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Longvarchar value + * from Longvarchar_Tab.Extract the same Longvarchar value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject38() throws Exception { + super.testGetObject38(); + } + + /* + * @testName: testGetObject39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Longvarchar_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject39() throws Exception { + super.testGetObject39(); + } + + /* + * @testName: testGetObject40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the maximum + * value from Decimal_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject40() throws Exception { + super.testGetObject40(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4EJB.java new file mode 100644 index 0000000000..59e001ec63 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4EJB.java @@ -0,0 +1,500 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient4.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt4; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; +/** + * The callStmtClient4 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient4EJB extends callStmtClient4 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt4_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient4EJB.class, callStmtClient4.class); + + URL resURL = callStmtClient4EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient4EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmt4_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt4_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient4EJB.class, callStmtClient4.class); + + resURL = callStmtClient4EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmt4_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient4EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt4_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient4EJB theTests = new callStmtClient4EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Time value from + * Time_Tab.Extract the same Time value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex).Both the + * values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject21() throws Exception { + super.testGetObject21(); + } + + /* + * @testName: testGetObject22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Time_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject22() throws Exception { + super.testGetObject22(); + } + + /* + * @testName: testGetObject23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Timestamp value from + * Timestamp_Tab.Extract the same Timestamp value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject23() throws Exception { + super.testGetObject23(); + } + + /* + * @testName: testGetObject24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Timestamp_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject24() throws Exception { + super.testGetObject24(); + } + + /* + * @testName: testGetObject25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Date value from from + * Date_Tab.Extract the Date char value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex).Both the + * values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject25() throws Exception { + super.testGetObject25(); + } + + /* + * @testName: testGetObject26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Date_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject26() throws Exception { + super.testGetObject26(); + } + + /* + * @testName: testGetObject27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value from + * Tinyint_Tab. Extract the maximum value from the tssql.stmt file.Compare + * this value with the value returned by the getObject(int parameterIndex) + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject27() throws Exception { + super.testGetObject27(); + } + + /* + * @testName: testGetObject28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value from + * Tinyint_Tab. Extract the minimum value from the tssql.stmt file.Compare + * this value with the value returned by the getObject(int parameterIndex) + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject28() throws Exception { + super.testGetObject28(); + } + + /* + * @testName: testGetObject29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Tinyint_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject29() throws Exception { + super.testGetObject29(); + } + + /* + * @testName: testGetObject30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value from + * Double_Tab. Extract the maximum value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex) Both the + * values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject30() throws Exception { + super.testGetObject30(); + } + + /* + * @testName: testGetObject31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Double_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject31() throws Exception { + super.testGetObject31(); + } + + /* + * @testName: testGetObject32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Double_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject32() throws Exception { + super.testGetObject32(); + + } + + /* + * @testName: testGetObject33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value from + * Real_Tab. Extract the maximum value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex) Both the + * values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject33() throws Exception { + super.testGetObject33(); + } + + /* + * @testName: testGetObject34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value from + * Real_Tab. Extract the minimum value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex) Both the + * values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject34() throws Exception { + super.testGetObject34(); + } + + /* + * @testName: testGetObject35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Real_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject35() throws Exception { + super.testGetObject35(); + } + + /* + * @testName: testGetObject36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Varchar value from + * Varchar_Tab.Extract the same Varchar value from the tssql.stmt file.Compare + * this value with the value returned by the getObject(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject36() throws Exception { + super.testGetObject36(); + } + + /* + * @testName: testGetObject37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Varchar_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject37() throws Exception { + super.testGetObject37(); + } + + /* + * @testName: testGetObject38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Longvarchar value + * from Longvarchar_Tab.Extract the same Longvarchar value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject38() throws Exception { + super.testGetObject38(); + } + + /* + * @testName: testGetObject39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Longvarchar_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject39() throws Exception { + super.testGetObject39(); + } + + /* + * @testName: testGetObject40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the maximum + * value from Decimal_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject40() throws Exception { + super.testGetObject40(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4JSP.java new file mode 100644 index 0000000000..4430ca6bea --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4JSP.java @@ -0,0 +1,484 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient4.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt4; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; +/** + * The callStmtClient4 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient4JSP extends callStmtClient4 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt4_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient4JSP.class, callStmtClient4.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = callStmtClient4JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient4JSP.class.getResource("callStmt4_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient4JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient4JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient4JSP theTests = new callStmtClient4JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Time value from + * Time_Tab.Extract the same Time value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex).Both the + * values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject21() throws Exception { + super.testGetObject21(); + } + + /* + * @testName: testGetObject22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Time_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject22() throws Exception { + super.testGetObject22(); + } + + /* + * @testName: testGetObject23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Timestamp value from + * Timestamp_Tab.Extract the same Timestamp value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject23() throws Exception { + super.testGetObject23(); + } + + /* + * @testName: testGetObject24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Timestamp_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject24() throws Exception { + super.testGetObject24(); + } + + /* + * @testName: testGetObject25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Date value from from + * Date_Tab.Extract the Date char value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex).Both the + * values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject25() throws Exception { + super.testGetObject25(); + } + + /* + * @testName: testGetObject26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Date_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject26() throws Exception { + super.testGetObject26(); + } + + /* + * @testName: testGetObject27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value from + * Tinyint_Tab. Extract the maximum value from the tssql.stmt file.Compare + * this value with the value returned by the getObject(int parameterIndex) + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject27() throws Exception { + super.testGetObject27(); + } + + /* + * @testName: testGetObject28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value from + * Tinyint_Tab. Extract the minimum value from the tssql.stmt file.Compare + * this value with the value returned by the getObject(int parameterIndex) + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject28() throws Exception { + super.testGetObject28(); + } + + /* + * @testName: testGetObject29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Tinyint_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject29() throws Exception { + super.testGetObject29(); + } + + /* + * @testName: testGetObject30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value from + * Double_Tab. Extract the maximum value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex) Both the + * values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject30() throws Exception { + super.testGetObject30(); + } + + /* + * @testName: testGetObject31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Double_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject31() throws Exception { + super.testGetObject31(); + } + + /* + * @testName: testGetObject32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Double_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject32() throws Exception { + super.testGetObject32(); + + } + + /* + * @testName: testGetObject33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value from + * Real_Tab. Extract the maximum value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex) Both the + * values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject33() throws Exception { + super.testGetObject33(); + } + + /* + * @testName: testGetObject34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value from + * Real_Tab. Extract the minimum value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex) Both the + * values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject34() throws Exception { + super.testGetObject34(); + } + + /* + * @testName: testGetObject35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Real_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject35() throws Exception { + super.testGetObject35(); + } + + /* + * @testName: testGetObject36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Varchar value from + * Varchar_Tab.Extract the same Varchar value from the tssql.stmt file.Compare + * this value with the value returned by the getObject(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject36() throws Exception { + super.testGetObject36(); + } + + /* + * @testName: testGetObject37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Varchar_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject37() throws Exception { + super.testGetObject37(); + } + + /* + * @testName: testGetObject38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Longvarchar value + * from Longvarchar_Tab.Extract the same Longvarchar value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject38() throws Exception { + super.testGetObject38(); + } + + /* + * @testName: testGetObject39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Longvarchar_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject39() throws Exception { + super.testGetObject39(); + } + + /* + * @testName: testGetObject40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the maximum + * value from Decimal_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject40() throws Exception { + super.testGetObject40(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4Servlet.java new file mode 100644 index 0000000000..9092b41b5a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt4/callStmtClient4Servlet.java @@ -0,0 +1,473 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient4.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt4; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; +/** + * The callStmtClient4 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient4Servlet extends callStmtClient4 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt4_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient4Servlet.class, callStmtClient4.class); + // The servlet descriptor +URL servletUrl = callStmtClient4Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient4Servlet.class.getResource("callStmt4_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient4Servlet.class, sunServletUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient4Servlet theTests = new callStmtClient4Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Time value from + * Time_Tab.Extract the same Time value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex).Both the + * values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject21() throws Exception { + super.testGetObject21(); + } + + /* + * @testName: testGetObject22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Time_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject22() throws Exception { + super.testGetObject22(); + } + + /* + * @testName: testGetObject23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Timestamp value from + * Timestamp_Tab.Extract the same Timestamp value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject23() throws Exception { + super.testGetObject23(); + } + + /* + * @testName: testGetObject24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Timestamp_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject24() throws Exception { + super.testGetObject24(); + } + + /* + * @testName: testGetObject25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Date value from from + * Date_Tab.Extract the Date char value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex).Both the + * values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject25() throws Exception { + super.testGetObject25(); + } + + /* + * @testName: testGetObject26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Date_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject26() throws Exception { + super.testGetObject26(); + } + + /* + * @testName: testGetObject27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value from + * Tinyint_Tab. Extract the maximum value from the tssql.stmt file.Compare + * this value with the value returned by the getObject(int parameterIndex) + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject27() throws Exception { + super.testGetObject27(); + } + + /* + * @testName: testGetObject28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value from + * Tinyint_Tab. Extract the minimum value from the tssql.stmt file.Compare + * this value with the value returned by the getObject(int parameterIndex) + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject28() throws Exception { + super.testGetObject28(); + } + + /* + * @testName: testGetObject29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Tinyint_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject29() throws Exception { + super.testGetObject29(); + } + + /* + * @testName: testGetObject30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value from + * Double_Tab. Extract the maximum value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex) Both the + * values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject30() throws Exception { + super.testGetObject30(); + } + + /* + * @testName: testGetObject31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value of + * the parameter from Double_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject31() throws Exception { + super.testGetObject31(); + } + + /* + * @testName: testGetObject32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Double_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject32() throws Exception { + super.testGetObject32(); + + } + + /* + * @testName: testGetObject33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the maximum value from + * Real_Tab. Extract the maximum value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex) Both the + * values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject33() throws Exception { + super.testGetObject33(); + } + + /* + * @testName: testGetObject34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the minimum value from + * Real_Tab. Extract the minimum value from the tssql.stmt file.Compare this + * value with the value returned by the getObject(int parameterIndex) Both the + * values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject34() throws Exception { + super.testGetObject34(); + } + + /* + * @testName: testGetObject35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Real_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject35() throws Exception { + super.testGetObject35(); + } + + /* + * @testName: testGetObject36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Varchar value from + * Varchar_Tab.Extract the same Varchar value from the tssql.stmt file.Compare + * this value with the value returned by the getObject(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject36() throws Exception { + super.testGetObject36(); + } + + /* + * @testName: testGetObject37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Varchar_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject37() throws Exception { + super.testGetObject37(); + } + + /* + * @testName: testGetObject38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve a Longvarchar value + * from Longvarchar_Tab.Extract the same Longvarchar value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject38() throws Exception { + super.testGetObject38(); + } + + /* + * @testName: testGetObject39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Longvarchar_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject39() throws Exception { + super.testGetObject39(); + } + + /* + * @testName: testGetObject40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the maximum + * value from Decimal_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getObject(int + * parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject40() throws Exception { + super.testGetObject40(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/build.xml deleted file mode 100644 index 9fa4084c62..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5.java index 163b3cb76b..a7ea89e6e8 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5.java @@ -28,8 +28,12 @@ import java.sql.SQLException; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -47,6 +51,10 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + public class callStmtClient5 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt5"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5AppClient.java new file mode 100644 index 0000000000..75ae642da6 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5AppClient.java @@ -0,0 +1,556 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient5.java 1.18 03/05/16 + */ +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt5; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient5 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient5AppClient extends callStmtClient5 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt5_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient5AppClient.class, callStmtClient5.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient5AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient5AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient5AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt5_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient5AppClient theTests = new callStmtClient5AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the minimum + * value of the parameter from Decimal_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject41() throws Exception { + super.testGetObject41(); + } + + /* + * @testName: testGetObject42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the null + * value from Decimal_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject42() throws Exception { + super.testGetObject42(); + } + + /* + * @testName: testGetObject43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Update the column Binary_Val of the Binary_Tab with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method.Register the + * parameter using registerOutParameter(int parameterIndex,int sqlType) + * method. Execute the stored procedure and call the getObject(int + * parameterIndex) method to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject43() throws Exception { + super.testGetObject43(); + } + + /* + * @testName: testGetObject44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Binary_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject44() throws Exception { + super.testGetObject44(); + } + + /* + * @testName: testGetObject45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Update the column Varbinary_Val of the Varbinary_tab with a byte + * array using the PreparedStatement.setBytes(int columnIndex) method.Register + * the parameter using registerOutParameter(int parameterIndex,int sqlType,int + * scale) method. Execute the stored procedure and call the getObject(int + * parameterIndex) method to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject45() throws Exception { + super.testGetObject45(); + } + + /* + * @testName: testGetObject46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the null + * value from Varbinary_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject46() throws Exception { + super.testGetObject46(); + } + + /* + * @testName: testGetObject47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Update the column Longvarbinary_Val of the Longvarbinary_Tab with + * a byte array using the PreparedStatement.setBytes(int columnIndex) + * method.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method.to retrieve the byte array. It + * should return the byte array object that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject47() throws Exception { + super.testGetObject47(); + } + + /* + * @testName: testGetObject48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * from Longvarbinary_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetObject48() throws Exception { + super.testGetObject48(); + } + + /* + * @testName: testGetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1253; + * JDBC:JAVADOC:1254; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getFloat(int parameterIndex) method to retrieve the maximum value from + * Real_Tab. Extract the maximum value from the tssql.stmt file.Compare this + * value with the value returned by the getFloat(int parameterIndex). Both the + * values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetFloat01() throws Exception { + super.testGetFloat01(); + } + + /* + * @testName: testGetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1253; + * JDBC:JAVADOC:1254; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getFloat(int parameterIndex) method to retrieve the minimum value from + * Real_Tab. Extract the minimum value from the tssql.stmt file.Compare this + * value with the value returned by the getFloat(int parameterIndex). Both the + * values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetFloat02() throws Exception { + super.testGetFloat02(); + } + + /* + * @testName: testGetFloat03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1253; + * JDBC:JAVADOC:1254; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getFloat(int parameterIndex) method to retrieve the null value from + * Real_Tab. Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetFloat03() throws Exception { + super.testGetFloat03(); + } + + /* + * @testName: testGetString03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve a String value from + * Varchar_Tab Extract the same String value from the tssql.stmt file.Compare + * this value with the value returned by the getString(int parameterIndex). + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetString03() throws Exception { + super.testGetString03(); + } + + /* + * @testName: testGetString04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve the null value from + * Varchar_Tab. Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetString04() throws Exception { + super.testGetString04(); + } + + /* + * @testName: testGetString05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve a String value from + * Longvarchar_Tab. Extract the same String value from the tssql.stmt + * file.Compare this value with the value returned by the getString(int + * parameterIndex). Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetString05() throws Exception { + super.testGetString05(); + } + + /* + * @testName: testGetString06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve the null value from + * Longvarchar_Tab. Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetString06() throws Exception { + super.testGetString06(); + } + + /* + * @testName: testGetBigDecimal04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale). Execute the stored procedure and + * call the getBigDecimal(int parameterIndex) method.to retrieve the maximum + * value from Decimal_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getBigDecimal(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetBigDecimal04() throws Exception { + super.testGetBigDecimal04(); + } + + /* + * @testName: testGetBigDecimal05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale). Execute the stored procedure and + * call the getBigDecimal(int parameterIndex) method to retrieve the minimum + * value from Decimal_Tab. Extract the minimum value from the tssql.stmt + * file.Compare this value with the value returned by the getBigDecimal(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetBigDecimal05() throws Exception { + super.testGetBigDecimal05(); + } + + /* + * @testName: testGetBigDecimal06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType, int scale). Execute the stored procedure and + * call the getBigDecimal(int parameterIndex) method to retrieve the null + * value from Decimal_Tab.Check if it returns null + */ + @Test + @TargetVehicle("appclient") + public void testGetBigDecimal06() throws Exception { + super.testGetBigDecimal06(); + } + + /* + * @testName: testGetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Update the column Binary_Val of the Binary + * with a byte array using the PreparedStatement.setBytes(int columnIndex) + * method.Execute the stored procedure and call the getBytes(int + * parameterIndex) method to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testGetBytes01() throws Exception { + super.testGetBytes01(); + } + + /* + * @testName: testGetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getBytes(int parameterIndex) method to retrieve the null value from + * Binary_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetBytes02() throws Exception { + super.testGetBytes02(); + } + + /* + * @testName: testGetBytes03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Update the column Varbinary_Val of the + * Varbinary_Tab with a byte array using the PreparedStatement.setBytes(int + * columnIndex) method.Execute the stored procedure and call the getBytes(int + * parameterIndex) method.to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testGetBytes03() throws Exception { + super.testGetBytes03(); + } + + /* + * @testName: testGetBytes04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getBytes(int parameterIndex) method.to retrieve the null value from + * Varbinary_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetBytes04() throws Exception { + super.testGetBytes04(); + } + + /* + * @testName: testGetBytes05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Update the column Longvarbinary_Val of the + * Longvarbinary_Tab with a byte array using the + * PreparedStatement.setBytes(int columnIndex) method.Execute the stored + * procedure and call the getBytes(int parameterIndex) method.to retrieve the + * byte array. It should return the byte array object that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testGetBytes05() throws Exception { + super.testGetBytes05(); + } + + /* + * @testName: testGetBytes06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getBytes(int parameterIndex) method.to retrieve the null value from + * Longvarbinary_Tab.Check if it returns null + * + */ + @Test + @TargetVehicle("appclient") + public void testGetBytes06() throws Exception { + super.testGetBytes06(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5EJB.java new file mode 100644 index 0000000000..0aa2a496b8 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5EJB.java @@ -0,0 +1,575 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient5.java 1.18 03/05/16 + */ +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt5; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient5 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient5EJB extends callStmtClient5 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt5_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient5EJB.class, callStmtClient5.class); + + URL resURL = callStmtClient5EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient5EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmt5_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt5_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient5EJB.class, callStmtClient5.class); + + resURL = callStmtClient5EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmt5_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient5EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt5_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient5EJB theTests = new callStmtClient5EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the minimum + * value of the parameter from Decimal_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject41() throws Exception { + super.testGetObject41(); + } + + /* + * @testName: testGetObject42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the null + * value from Decimal_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject42() throws Exception { + super.testGetObject42(); + } + + /* + * @testName: testGetObject43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Update the column Binary_Val of the Binary_Tab with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method.Register the + * parameter using registerOutParameter(int parameterIndex,int sqlType) + * method. Execute the stored procedure and call the getObject(int + * parameterIndex) method to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject43() throws Exception { + super.testGetObject43(); + } + + /* + * @testName: testGetObject44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Binary_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject44() throws Exception { + super.testGetObject44(); + } + + /* + * @testName: testGetObject45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Update the column Varbinary_Val of the Varbinary_tab with a byte + * array using the PreparedStatement.setBytes(int columnIndex) method.Register + * the parameter using registerOutParameter(int parameterIndex,int sqlType,int + * scale) method. Execute the stored procedure and call the getObject(int + * parameterIndex) method to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject45() throws Exception { + super.testGetObject45(); + } + + /* + * @testName: testGetObject46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the null + * value from Varbinary_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject46() throws Exception { + super.testGetObject46(); + } + + /* + * @testName: testGetObject47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Update the column Longvarbinary_Val of the Longvarbinary_Tab with + * a byte array using the PreparedStatement.setBytes(int columnIndex) + * method.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method.to retrieve the byte array. It + * should return the byte array object that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject47() throws Exception { + super.testGetObject47(); + } + + /* + * @testName: testGetObject48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * from Longvarbinary_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetObject48() throws Exception { + super.testGetObject48(); + } + + /* + * @testName: testGetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1253; + * JDBC:JAVADOC:1254; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getFloat(int parameterIndex) method to retrieve the maximum value from + * Real_Tab. Extract the maximum value from the tssql.stmt file.Compare this + * value with the value returned by the getFloat(int parameterIndex). Both the + * values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetFloat01() throws Exception { + super.testGetFloat01(); + } + + /* + * @testName: testGetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1253; + * JDBC:JAVADOC:1254; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getFloat(int parameterIndex) method to retrieve the minimum value from + * Real_Tab. Extract the minimum value from the tssql.stmt file.Compare this + * value with the value returned by the getFloat(int parameterIndex). Both the + * values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetFloat02() throws Exception { + super.testGetFloat02(); + } + + /* + * @testName: testGetFloat03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1253; + * JDBC:JAVADOC:1254; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getFloat(int parameterIndex) method to retrieve the null value from + * Real_Tab. Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetFloat03() throws Exception { + super.testGetFloat03(); + } + + /* + * @testName: testGetString03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve a String value from + * Varchar_Tab Extract the same String value from the tssql.stmt file.Compare + * this value with the value returned by the getString(int parameterIndex). + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetString03() throws Exception { + super.testGetString03(); + } + + /* + * @testName: testGetString04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve the null value from + * Varchar_Tab. Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetString04() throws Exception { + super.testGetString04(); + } + + /* + * @testName: testGetString05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve a String value from + * Longvarchar_Tab. Extract the same String value from the tssql.stmt + * file.Compare this value with the value returned by the getString(int + * parameterIndex). Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetString05() throws Exception { + super.testGetString05(); + } + + /* + * @testName: testGetString06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve the null value from + * Longvarchar_Tab. Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetString06() throws Exception { + super.testGetString06(); + } + + /* + * @testName: testGetBigDecimal04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale). Execute the stored procedure and + * call the getBigDecimal(int parameterIndex) method.to retrieve the maximum + * value from Decimal_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getBigDecimal(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetBigDecimal04() throws Exception { + super.testGetBigDecimal04(); + } + + /* + * @testName: testGetBigDecimal05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale). Execute the stored procedure and + * call the getBigDecimal(int parameterIndex) method to retrieve the minimum + * value from Decimal_Tab. Extract the minimum value from the tssql.stmt + * file.Compare this value with the value returned by the getBigDecimal(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetBigDecimal05() throws Exception { + super.testGetBigDecimal05(); + } + + /* + * @testName: testGetBigDecimal06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType, int scale). Execute the stored procedure and + * call the getBigDecimal(int parameterIndex) method to retrieve the null + * value from Decimal_Tab.Check if it returns null + */ + @Test + @TargetVehicle("ejb") + public void testGetBigDecimal06() throws Exception { + super.testGetBigDecimal06(); + } + + /* + * @testName: testGetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Update the column Binary_Val of the Binary + * with a byte array using the PreparedStatement.setBytes(int columnIndex) + * method.Execute the stored procedure and call the getBytes(int + * parameterIndex) method to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testGetBytes01() throws Exception { + super.testGetBytes01(); + } + + /* + * @testName: testGetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getBytes(int parameterIndex) method to retrieve the null value from + * Binary_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetBytes02() throws Exception { + super.testGetBytes02(); + } + + /* + * @testName: testGetBytes03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Update the column Varbinary_Val of the + * Varbinary_Tab with a byte array using the PreparedStatement.setBytes(int + * columnIndex) method.Execute the stored procedure and call the getBytes(int + * parameterIndex) method.to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testGetBytes03() throws Exception { + super.testGetBytes03(); + } + + /* + * @testName: testGetBytes04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getBytes(int parameterIndex) method.to retrieve the null value from + * Varbinary_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetBytes04() throws Exception { + super.testGetBytes04(); + } + + /* + * @testName: testGetBytes05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Update the column Longvarbinary_Val of the + * Longvarbinary_Tab with a byte array using the + * PreparedStatement.setBytes(int columnIndex) method.Execute the stored + * procedure and call the getBytes(int parameterIndex) method.to retrieve the + * byte array. It should return the byte array object that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testGetBytes05() throws Exception { + super.testGetBytes05(); + } + + /* + * @testName: testGetBytes06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getBytes(int parameterIndex) method.to retrieve the null value from + * Longvarbinary_Tab.Check if it returns null + * + */ + @Test + @TargetVehicle("ejb") + public void testGetBytes06() throws Exception { + super.testGetBytes06(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5JSP.java new file mode 100644 index 0000000000..77814a017a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5JSP.java @@ -0,0 +1,560 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient5.java 1.18 03/05/16 + */ +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt5; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient5 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient5JSP extends callStmtClient5 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt5_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(callStmtClient5JSP.class, callStmtClient5.class); + + // The jsp descriptor + URL jspUrl = callStmtClient5JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient5JSP.class.getResource("callStmt5_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient5JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient5JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient5JSP theTests = new callStmtClient5JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the minimum + * value of the parameter from Decimal_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject41() throws Exception { + super.testGetObject41(); + } + + /* + * @testName: testGetObject42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the null + * value from Decimal_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject42() throws Exception { + super.testGetObject42(); + } + + /* + * @testName: testGetObject43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Update the column Binary_Val of the Binary_Tab with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method.Register the + * parameter using registerOutParameter(int parameterIndex,int sqlType) + * method. Execute the stored procedure and call the getObject(int + * parameterIndex) method to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject43() throws Exception { + super.testGetObject43(); + } + + /* + * @testName: testGetObject44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Binary_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject44() throws Exception { + super.testGetObject44(); + } + + /* + * @testName: testGetObject45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Update the column Varbinary_Val of the Varbinary_tab with a byte + * array using the PreparedStatement.setBytes(int columnIndex) method.Register + * the parameter using registerOutParameter(int parameterIndex,int sqlType,int + * scale) method. Execute the stored procedure and call the getObject(int + * parameterIndex) method to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject45() throws Exception { + super.testGetObject45(); + } + + /* + * @testName: testGetObject46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the null + * value from Varbinary_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject46() throws Exception { + super.testGetObject46(); + } + + /* + * @testName: testGetObject47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Update the column Longvarbinary_Val of the Longvarbinary_Tab with + * a byte array using the PreparedStatement.setBytes(int columnIndex) + * method.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method.to retrieve the byte array. It + * should return the byte array object that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject47() throws Exception { + super.testGetObject47(); + } + + /* + * @testName: testGetObject48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * from Longvarbinary_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetObject48() throws Exception { + super.testGetObject48(); + } + + /* + * @testName: testGetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1253; + * JDBC:JAVADOC:1254; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getFloat(int parameterIndex) method to retrieve the maximum value from + * Real_Tab. Extract the maximum value from the tssql.stmt file.Compare this + * value with the value returned by the getFloat(int parameterIndex). Both the + * values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetFloat01() throws Exception { + super.testGetFloat01(); + } + + /* + * @testName: testGetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1253; + * JDBC:JAVADOC:1254; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getFloat(int parameterIndex) method to retrieve the minimum value from + * Real_Tab. Extract the minimum value from the tssql.stmt file.Compare this + * value with the value returned by the getFloat(int parameterIndex). Both the + * values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetFloat02() throws Exception { + super.testGetFloat02(); + } + + /* + * @testName: testGetFloat03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1253; + * JDBC:JAVADOC:1254; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getFloat(int parameterIndex) method to retrieve the null value from + * Real_Tab. Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetFloat03() throws Exception { + super.testGetFloat03(); + } + + /* + * @testName: testGetString03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve a String value from + * Varchar_Tab Extract the same String value from the tssql.stmt file.Compare + * this value with the value returned by the getString(int parameterIndex). + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetString03() throws Exception { + super.testGetString03(); + } + + /* + * @testName: testGetString04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve the null value from + * Varchar_Tab. Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetString04() throws Exception { + super.testGetString04(); + } + + /* + * @testName: testGetString05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve a String value from + * Longvarchar_Tab. Extract the same String value from the tssql.stmt + * file.Compare this value with the value returned by the getString(int + * parameterIndex). Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetString05() throws Exception { + super.testGetString05(); + } + + /* + * @testName: testGetString06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve the null value from + * Longvarchar_Tab. Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetString06() throws Exception { + super.testGetString06(); + } + + /* + * @testName: testGetBigDecimal04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale). Execute the stored procedure and + * call the getBigDecimal(int parameterIndex) method.to retrieve the maximum + * value from Decimal_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getBigDecimal(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetBigDecimal04() throws Exception { + super.testGetBigDecimal04(); + } + + /* + * @testName: testGetBigDecimal05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale). Execute the stored procedure and + * call the getBigDecimal(int parameterIndex) method to retrieve the minimum + * value from Decimal_Tab. Extract the minimum value from the tssql.stmt + * file.Compare this value with the value returned by the getBigDecimal(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetBigDecimal05() throws Exception { + super.testGetBigDecimal05(); + } + + /* + * @testName: testGetBigDecimal06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType, int scale). Execute the stored procedure and + * call the getBigDecimal(int parameterIndex) method to retrieve the null + * value from Decimal_Tab.Check if it returns null + */ + @Test + @TargetVehicle("jsp") + public void testGetBigDecimal06() throws Exception { + super.testGetBigDecimal06(); + } + + /* + * @testName: testGetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Update the column Binary_Val of the Binary + * with a byte array using the PreparedStatement.setBytes(int columnIndex) + * method.Execute the stored procedure and call the getBytes(int + * parameterIndex) method to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testGetBytes01() throws Exception { + super.testGetBytes01(); + } + + /* + * @testName: testGetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getBytes(int parameterIndex) method to retrieve the null value from + * Binary_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetBytes02() throws Exception { + super.testGetBytes02(); + } + + /* + * @testName: testGetBytes03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Update the column Varbinary_Val of the + * Varbinary_Tab with a byte array using the PreparedStatement.setBytes(int + * columnIndex) method.Execute the stored procedure and call the getBytes(int + * parameterIndex) method.to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testGetBytes03() throws Exception { + super.testGetBytes03(); + } + + /* + * @testName: testGetBytes04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getBytes(int parameterIndex) method.to retrieve the null value from + * Varbinary_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetBytes04() throws Exception { + super.testGetBytes04(); + } + + /* + * @testName: testGetBytes05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Update the column Longvarbinary_Val of the + * Longvarbinary_Tab with a byte array using the + * PreparedStatement.setBytes(int columnIndex) method.Execute the stored + * procedure and call the getBytes(int parameterIndex) method.to retrieve the + * byte array. It should return the byte array object that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testGetBytes05() throws Exception { + super.testGetBytes05(); + } + + /* + * @testName: testGetBytes06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getBytes(int parameterIndex) method.to retrieve the null value from + * Longvarbinary_Tab.Check if it returns null + * + */ + @Test + @TargetVehicle("jsp") + public void testGetBytes06() throws Exception { + super.testGetBytes06(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5Servlet.java new file mode 100644 index 0000000000..272dcb6478 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt5/callStmtClient5Servlet.java @@ -0,0 +1,548 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient5.java 1.18 03/05/16 + */ +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt5; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient5 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient5Servlet extends callStmtClient5 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt5_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient5Servlet.class, callStmtClient5.class); + // The servlet descriptor +URL servletUrl = callStmtClient5Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient5Servlet.class.getResource("callStmt5_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient5Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient5Servlet theTests = new callStmtClient5Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the minimum + * value of the parameter from Decimal_Tab. Extract the minimum value from the + * tssql.stmt file.Compare this value with the value returned by the + * getObject(int parameterIndex) Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject41() throws Exception { + super.testGetObject41(); + } + + /* + * @testName: testGetObject42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the null + * value from Decimal_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject42() throws Exception { + super.testGetObject42(); + } + + /* + * @testName: testGetObject43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Update the column Binary_Val of the Binary_Tab with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method.Register the + * parameter using registerOutParameter(int parameterIndex,int sqlType) + * method. Execute the stored procedure and call the getObject(int + * parameterIndex) method to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject43() throws Exception { + super.testGetObject43(); + } + + /* + * @testName: testGetObject44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * Binary_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject44() throws Exception { + super.testGetObject44(); + } + + /* + * @testName: testGetObject45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Update the column Varbinary_Val of the Varbinary_tab with a byte + * array using the PreparedStatement.setBytes(int columnIndex) method.Register + * the parameter using registerOutParameter(int parameterIndex,int sqlType,int + * scale) method. Execute the stored procedure and call the getObject(int + * parameterIndex) method to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject45() throws Exception { + super.testGetObject45(); + } + + /* + * @testName: testGetObject46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale) method. Execute the stored procedure + * and call the getObject(int parameterIndex) method to retrieve the null + * value from Varbinary_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject46() throws Exception { + super.testGetObject46(); + } + + /* + * @testName: testGetObject47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Update the column Longvarbinary_Val of the Longvarbinary_Tab with + * a byte array using the PreparedStatement.setBytes(int columnIndex) + * method.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method.to retrieve the byte array. It + * should return the byte array object that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject47() throws Exception { + super.testGetObject47(); + } + + /* + * @testName: testGetObject48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1267; + * JDBC:JAVADOC:1268; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType) method. Execute the stored procedure and call + * the getObject(int parameterIndex) method to retrieve the null value from + * from Longvarbinary_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetObject48() throws Exception { + super.testGetObject48(); + } + + /* + * @testName: testGetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1253; + * JDBC:JAVADOC:1254; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getFloat(int parameterIndex) method to retrieve the maximum value from + * Real_Tab. Extract the maximum value from the tssql.stmt file.Compare this + * value with the value returned by the getFloat(int parameterIndex). Both the + * values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetFloat01() throws Exception { + super.testGetFloat01(); + } + + /* + * @testName: testGetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1253; + * JDBC:JAVADOC:1254; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getFloat(int parameterIndex) method to retrieve the minimum value from + * Real_Tab. Extract the minimum value from the tssql.stmt file.Compare this + * value with the value returned by the getFloat(int parameterIndex). Both the + * values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetFloat02() throws Exception { + super.testGetFloat02(); + } + + /* + * @testName: testGetFloat03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1253; + * JDBC:JAVADOC:1254; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getFloat(int parameterIndex) method to retrieve the null value from + * Real_Tab. Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetFloat03() throws Exception { + super.testGetFloat03(); + } + + /* + * @testName: testGetString03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve a String value from + * Varchar_Tab Extract the same String value from the tssql.stmt file.Compare + * this value with the value returned by the getString(int parameterIndex). + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetString03() throws Exception { + super.testGetString03(); + } + + /* + * @testName: testGetString04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve the null value from + * Varchar_Tab. Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetString04() throws Exception { + super.testGetString04(); + } + + /* + * @testName: testGetString05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve a String value from + * Longvarchar_Tab. Extract the same String value from the tssql.stmt + * file.Compare this value with the value returned by the getString(int + * parameterIndex). Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetString05() throws Exception { + super.testGetString05(); + } + + /* + * @testName: testGetString06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1241; + * JDBC:JAVADOC:1242; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getString(int parameterIndex) method to retrieve the null value from + * Longvarchar_Tab. Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetString06() throws Exception { + super.testGetString06(); + } + + /* + * @testName: testGetBigDecimal04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale). Execute the stored procedure and + * call the getBigDecimal(int parameterIndex) method.to retrieve the maximum + * value from Decimal_Tab. Extract the maximum value from the tssql.stmt + * file.Compare this value with the value returned by the getBigDecimal(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetBigDecimal04() throws Exception { + super.testGetBigDecimal04(); + } + + /* + * @testName: testGetBigDecimal05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType,int scale). Execute the stored procedure and + * call the getBigDecimal(int parameterIndex) method to retrieve the minimum + * value from Decimal_Tab. Extract the minimum value from the tssql.stmt + * file.Compare this value with the value returned by the getBigDecimal(int + * parameterIndex).Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetBigDecimal05() throws Exception { + super.testGetBigDecimal05(); + } + + /* + * @testName: testGetBigDecimal06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1269; + * JDBC:JAVADOC:1270; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType, int scale). Execute the stored procedure and + * call the getBigDecimal(int parameterIndex) method to retrieve the null + * value from Decimal_Tab.Check if it returns null + */ + @Test + @TargetVehicle("servlet") + public void testGetBigDecimal06() throws Exception { + super.testGetBigDecimal06(); + } + + /* + * @testName: testGetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Update the column Binary_Val of the Binary + * with a byte array using the PreparedStatement.setBytes(int columnIndex) + * method.Execute the stored procedure and call the getBytes(int + * parameterIndex) method to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testGetBytes01() throws Exception { + super.testGetBytes01(); + } + + /* + * @testName: testGetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getBytes(int parameterIndex) method to retrieve the null value from + * Binary_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetBytes02() throws Exception { + super.testGetBytes02(); + } + + /* + * @testName: testGetBytes03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Update the column Varbinary_Val of the + * Varbinary_Tab with a byte array using the PreparedStatement.setBytes(int + * columnIndex) method.Execute the stored procedure and call the getBytes(int + * parameterIndex) method.to retrieve the byte array. It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testGetBytes03() throws Exception { + super.testGetBytes03(); + } + + /* + * @testName: testGetBytes04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getBytes(int parameterIndex) method.to retrieve the null value from + * Varbinary_Tab. Check if it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetBytes04() throws Exception { + super.testGetBytes04(); + } + + /* + * @testName: testGetBytes05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database.Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Update the column Longvarbinary_Val of the + * Longvarbinary_Tab with a byte array using the + * PreparedStatement.setBytes(int columnIndex) method.Execute the stored + * procedure and call the getBytes(int parameterIndex) method.to retrieve the + * byte array. It should return the byte array object that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testGetBytes05() throws Exception { + super.testGetBytes05(); + } + + /* + * @testName: testGetBytes06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:1259; + * JDBC:JAVADOC:1260; JavaEE:SPEC:183; JavaEE:SPEC:185; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Register the parameter using registerOutParameter(int + * parameterIndex,int sqlType). Execute the stored procedure and call the + * getBytes(int parameterIndex) method.to retrieve the null value from + * Longvarbinary_Tab.Check if it returns null + * + */ + @Test + @TargetVehicle("servlet") + public void testGetBytes06() throws Exception { + super.testGetBytes06(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/build.xml deleted file mode 100644 index 5088049912..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6.java index 64da6f74e3..e88c272589 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6.java @@ -35,8 +35,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -55,6 +59,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class callStmtClient6 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt6"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6AppClient.java new file mode 100644 index 0000000000..38fdc23c52 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6AppClient.java @@ -0,0 +1,498 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient6.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt6; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient6 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient6AppClient extends callStmtClient6 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt6_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient6AppClient.class, callStmtClient6.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient6AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient6AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient6AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt6_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + private static final String testName = "jdbc.ee.callStmt.callStmt6"; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient6AppClient theTests = new callStmtClient6AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetString01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setChar(int parameterIndex,String x),update the column + * minimum value of Char_Tab. Now execute a query to get the minimum value and + * retrieve the result of the query using the getString(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetString01() throws Exception { + super.testSetString01(); + } + + /* + * @testName: testSetString02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the maximum value of Char_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getString(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetString02() throws Exception { + super.testSetString02(); + } + + /* + * @testName: testSetString03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the minimum value of Varchar_Tab. Now execute a query to get the minimum + * value and retrieve the result of the query using the getString(int + * columnIndex) method.Compare the returned value, with the minimum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetString03() throws Exception { + super.testSetString03(); + } + + /* + * @testName: testSetString04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the maximum value of Varchar_Tab. Now execute a query to get the maximum + * value and retrieve the result of the query using the getInt(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetString04() throws Exception { + super.testSetString04(); + } + + /* + * @testName: testSetString05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JDBC:JAVADOC:398; JDBC:JAVADOC:399; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the minimum value of Longvarchar_Tab. Now execute a query to get the + * minimum value and retrieve the result of the query using the getString(int + * columnIndex) method.Compare the returned value, with the minimum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetString05() throws Exception { + super.testSetString05(); + } + + /* + * @testName: testSetString06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JDBC:JAVADOC:398; JDBC:JAVADOC:399; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the maximum value of Longvarchar_Tab. Now execute a query to get the + * maximum value and retrieve the result of the query using the getInt(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetString06() throws Exception { + super.testSetString06(); + } + + /* + * @testName: testSetBigDecimal01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,,update the column Max_Val of Decimal_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the minimum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetBigDecimal01() throws Exception { + super.testSetBigDecimal01(); + } + + /* + * @testName: testSetBigDecimal02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of Decimal_Tab with the maximum + * value.Execute a query to get the maximum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the maximum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetBigDecimal02() throws Exception { + super.testSetBigDecimal02(); + } + + /* + * @testName: testSetBigDecimal03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,,update the column Max_Val of Numeric_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the minimum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetBigDecimal03() throws Exception { + super.testSetBigDecimal03(); + } + + /* + * @testName: testSetBigDecimal04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of Numeric_Tab with the maximum + * value.Execute a query to get the maximum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the maximum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetBigDecimal04() throws Exception { + super.testSetBigDecimal04(); + } + + /* + * @testName: testSetBoolean01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:658; + * JDBC:JAVADOC:659; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Max_Val of Bit_Tab with the minimum value.Execute + * a query to get the minimum value and retrieve the result of the query using + * the getBoolean(int parameterIndex) method.Compare the returned value with + * the minimum value extracted from the tssql.stmt file.Both of them should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetBoolean01() throws Exception { + super.testSetBoolean01(); + } + + /* + * @testName: testSetBoolean02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:658; + * JDBC:JAVADOC:659; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Null_Val of Bit_Tab with the maximum value.Execute + * a query to get the maximum value and retrieve the result of the query using + * the getBoolean(int parameterIndex) method.Compare the returned value with + * the maximum value extracted from the with tssql.stmt file. Both of them + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetBoolean02() throws Exception { + super.testSetBoolean02(); + } + + /* + * @testName: testSetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:660; + * JDBC:JAVADOC:661; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Max_Val of Tinyint_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getByte(int parameterIndex) method.Compare the returned + * value with the minimum value extracted from the tssql.stmt file.Both of + * them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetByte01() throws Exception { + super.testSetByte01(); + } + + /* + * @testName: testSetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:660; + * JDBC:JAVADOC:661; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Max_Val of Tinyint_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getByte(int parameterIndex) method.Compare the returned + * value with the minimum value extracted from the tssql.stmt file. Both of + * them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetByte02() throws Exception { + super.testSetByte02(); + } + + /* + * @testName: testSetShort01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:662; + * JDBC:JAVADOC:663; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * minimum value of Smallint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetShort01() throws Exception { + super.testSetShort01(); + } + + /* + * @testName: testSetShort02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:662; + * JDBC:JAVADOC:663; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * maximum value of Smallint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetShort02() throws Exception { + super.testSetShort02(); + } + + /* + * @testName: testSetInt01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:664; + * JDBC:JAVADOC:665; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setInt(int parameterIndex,int x),update the column the + * minimum value of Integer_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetInt01() throws Exception { + super.testSetInt01(); + } + + /* + * @testName: testSetInt02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:664; + * JDBC:JAVADOC:665; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setInt(int parameterIndex,int x),update the column the + * maximum value of Integer_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetInt02() throws Exception { + super.testSetInt02(); + } + + /* + * @testName: testSetLong01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:666; + * JDBC:JAVADOC:667; JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * minimum value of Bigint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetLong01() throws Exception { + super.testSetLong01(); + } + + /* + * @testName: testSetLong02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:666; + * JDBC:JAVADOC:667; JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * maximum value of Bigint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetLong02() throws Exception { + super.testSetLong02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6EJB.java new file mode 100644 index 0000000000..c43eccf70b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6EJB.java @@ -0,0 +1,517 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient6.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt6; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient6 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient6EJB extends callStmtClient6 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentEJB(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt6_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient6EJB.class, callStmtClient6.class); + + URL resURL = callStmtClient6EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient6EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmt6_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt6_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient6EJB.class, callStmtClient6.class); + + resURL = callStmtClient6EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmt6_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient6EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt6_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + private static final String testName = "jdbc.ee.callStmt.callStmt6"; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient6EJB theTests = new callStmtClient6EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetString01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setChar(int parameterIndex,String x),update the column + * minimum value of Char_Tab. Now execute a query to get the minimum value and + * retrieve the result of the query using the getString(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetString01() throws Exception { + super.testSetString01(); + } + + /* + * @testName: testSetString02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the maximum value of Char_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getString(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetString02() throws Exception { + super.testSetString02(); + } + + /* + * @testName: testSetString03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the minimum value of Varchar_Tab. Now execute a query to get the minimum + * value and retrieve the result of the query using the getString(int + * columnIndex) method.Compare the returned value, with the minimum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetString03() throws Exception { + super.testSetString03(); + } + + /* + * @testName: testSetString04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the maximum value of Varchar_Tab. Now execute a query to get the maximum + * value and retrieve the result of the query using the getInt(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetString04() throws Exception { + super.testSetString04(); + } + + /* + * @testName: testSetString05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JDBC:JAVADOC:398; JDBC:JAVADOC:399; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the minimum value of Longvarchar_Tab. Now execute a query to get the + * minimum value and retrieve the result of the query using the getString(int + * columnIndex) method.Compare the returned value, with the minimum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetString05() throws Exception { + super.testSetString05(); + } + + /* + * @testName: testSetString06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JDBC:JAVADOC:398; JDBC:JAVADOC:399; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the maximum value of Longvarchar_Tab. Now execute a query to get the + * maximum value and retrieve the result of the query using the getInt(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetString06() throws Exception { + super.testSetString06(); + } + + /* + * @testName: testSetBigDecimal01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,,update the column Max_Val of Decimal_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the minimum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetBigDecimal01() throws Exception { + super.testSetBigDecimal01(); + } + + /* + * @testName: testSetBigDecimal02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of Decimal_Tab with the maximum + * value.Execute a query to get the maximum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the maximum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetBigDecimal02() throws Exception { + super.testSetBigDecimal02(); + } + + /* + * @testName: testSetBigDecimal03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,,update the column Max_Val of Numeric_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the minimum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetBigDecimal03() throws Exception { + super.testSetBigDecimal03(); + } + + /* + * @testName: testSetBigDecimal04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of Numeric_Tab with the maximum + * value.Execute a query to get the maximum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the maximum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetBigDecimal04() throws Exception { + super.testSetBigDecimal04(); + } + + /* + * @testName: testSetBoolean01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:658; + * JDBC:JAVADOC:659; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Max_Val of Bit_Tab with the minimum value.Execute + * a query to get the minimum value and retrieve the result of the query using + * the getBoolean(int parameterIndex) method.Compare the returned value with + * the minimum value extracted from the tssql.stmt file.Both of them should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetBoolean01() throws Exception { + super.testSetBoolean01(); + } + + /* + * @testName: testSetBoolean02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:658; + * JDBC:JAVADOC:659; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Null_Val of Bit_Tab with the maximum value.Execute + * a query to get the maximum value and retrieve the result of the query using + * the getBoolean(int parameterIndex) method.Compare the returned value with + * the maximum value extracted from the with tssql.stmt file. Both of them + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetBoolean02() throws Exception { + super.testSetBoolean02(); + } + + /* + * @testName: testSetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:660; + * JDBC:JAVADOC:661; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Max_Val of Tinyint_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getByte(int parameterIndex) method.Compare the returned + * value with the minimum value extracted from the tssql.stmt file.Both of + * them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetByte01() throws Exception { + super.testSetByte01(); + } + + /* + * @testName: testSetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:660; + * JDBC:JAVADOC:661; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Max_Val of Tinyint_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getByte(int parameterIndex) method.Compare the returned + * value with the minimum value extracted from the tssql.stmt file. Both of + * them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetByte02() throws Exception { + super.testSetByte02(); + } + + /* + * @testName: testSetShort01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:662; + * JDBC:JAVADOC:663; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * minimum value of Smallint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetShort01() throws Exception { + super.testSetShort01(); + } + + /* + * @testName: testSetShort02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:662; + * JDBC:JAVADOC:663; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * maximum value of Smallint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetShort02() throws Exception { + super.testSetShort02(); + } + + /* + * @testName: testSetInt01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:664; + * JDBC:JAVADOC:665; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setInt(int parameterIndex,int x),update the column the + * minimum value of Integer_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetInt01() throws Exception { + super.testSetInt01(); + } + + /* + * @testName: testSetInt02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:664; + * JDBC:JAVADOC:665; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setInt(int parameterIndex,int x),update the column the + * maximum value of Integer_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetInt02() throws Exception { + super.testSetInt02(); + } + + /* + * @testName: testSetLong01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:666; + * JDBC:JAVADOC:667; JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * minimum value of Bigint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetLong01() throws Exception { + super.testSetLong01(); + } + + /* + * @testName: testSetLong02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:666; + * JDBC:JAVADOC:667; JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * maximum value of Bigint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetLong02() throws Exception { + super.testSetLong02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6JSP.java new file mode 100644 index 0000000000..0cc616c1d7 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6JSP.java @@ -0,0 +1,502 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient6.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt6; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient6 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient6JSP extends callStmtClient6 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt6_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(callStmtClient6JSP.class, callStmtClient6.class); + + // The jsp descriptor + URL jspUrl = callStmtClient6JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient6JSP.class.getResource("callStmt6_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient6JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient6JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + private static final String testName = "jdbc.ee.callStmt.callStmt6"; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient6JSP theTests = new callStmtClient6JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetString01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setChar(int parameterIndex,String x),update the column + * minimum value of Char_Tab. Now execute a query to get the minimum value and + * retrieve the result of the query using the getString(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetString01() throws Exception { + super.testSetString01(); + } + + /* + * @testName: testSetString02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the maximum value of Char_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getString(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetString02() throws Exception { + super.testSetString02(); + } + + /* + * @testName: testSetString03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the minimum value of Varchar_Tab. Now execute a query to get the minimum + * value and retrieve the result of the query using the getString(int + * columnIndex) method.Compare the returned value, with the minimum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetString03() throws Exception { + super.testSetString03(); + } + + /* + * @testName: testSetString04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the maximum value of Varchar_Tab. Now execute a query to get the maximum + * value and retrieve the result of the query using the getInt(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetString04() throws Exception { + super.testSetString04(); + } + + /* + * @testName: testSetString05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JDBC:JAVADOC:398; JDBC:JAVADOC:399; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the minimum value of Longvarchar_Tab. Now execute a query to get the + * minimum value and retrieve the result of the query using the getString(int + * columnIndex) method.Compare the returned value, with the minimum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetString05() throws Exception { + super.testSetString05(); + } + + /* + * @testName: testSetString06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JDBC:JAVADOC:398; JDBC:JAVADOC:399; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the maximum value of Longvarchar_Tab. Now execute a query to get the + * maximum value and retrieve the result of the query using the getInt(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetString06() throws Exception { + super.testSetString06(); + } + + /* + * @testName: testSetBigDecimal01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,,update the column Max_Val of Decimal_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the minimum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetBigDecimal01() throws Exception { + super.testSetBigDecimal01(); + } + + /* + * @testName: testSetBigDecimal02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of Decimal_Tab with the maximum + * value.Execute a query to get the maximum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the maximum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetBigDecimal02() throws Exception { + super.testSetBigDecimal02(); + } + + /* + * @testName: testSetBigDecimal03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,,update the column Max_Val of Numeric_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the minimum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetBigDecimal03() throws Exception { + super.testSetBigDecimal03(); + } + + /* + * @testName: testSetBigDecimal04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of Numeric_Tab with the maximum + * value.Execute a query to get the maximum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the maximum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetBigDecimal04() throws Exception { + super.testSetBigDecimal04(); + } + + /* + * @testName: testSetBoolean01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:658; + * JDBC:JAVADOC:659; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Max_Val of Bit_Tab with the minimum value.Execute + * a query to get the minimum value and retrieve the result of the query using + * the getBoolean(int parameterIndex) method.Compare the returned value with + * the minimum value extracted from the tssql.stmt file.Both of them should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetBoolean01() throws Exception { + super.testSetBoolean01(); + } + + /* + * @testName: testSetBoolean02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:658; + * JDBC:JAVADOC:659; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Null_Val of Bit_Tab with the maximum value.Execute + * a query to get the maximum value and retrieve the result of the query using + * the getBoolean(int parameterIndex) method.Compare the returned value with + * the maximum value extracted from the with tssql.stmt file. Both of them + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetBoolean02() throws Exception { + super.testSetBoolean02(); + } + + /* + * @testName: testSetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:660; + * JDBC:JAVADOC:661; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Max_Val of Tinyint_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getByte(int parameterIndex) method.Compare the returned + * value with the minimum value extracted from the tssql.stmt file.Both of + * them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetByte01() throws Exception { + super.testSetByte01(); + } + + /* + * @testName: testSetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:660; + * JDBC:JAVADOC:661; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Max_Val of Tinyint_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getByte(int parameterIndex) method.Compare the returned + * value with the minimum value extracted from the tssql.stmt file. Both of + * them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetByte02() throws Exception { + super.testSetByte02(); + } + + /* + * @testName: testSetShort01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:662; + * JDBC:JAVADOC:663; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * minimum value of Smallint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetShort01() throws Exception { + super.testSetShort01(); + } + + /* + * @testName: testSetShort02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:662; + * JDBC:JAVADOC:663; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * maximum value of Smallint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetShort02() throws Exception { + super.testSetShort02(); + } + + /* + * @testName: testSetInt01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:664; + * JDBC:JAVADOC:665; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setInt(int parameterIndex,int x),update the column the + * minimum value of Integer_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetInt01() throws Exception { + super.testSetInt01(); + } + + /* + * @testName: testSetInt02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:664; + * JDBC:JAVADOC:665; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setInt(int parameterIndex,int x),update the column the + * maximum value of Integer_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetInt02() throws Exception { + super.testSetInt02(); + } + + /* + * @testName: testSetLong01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:666; + * JDBC:JAVADOC:667; JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * minimum value of Bigint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetLong01() throws Exception { + super.testSetLong01(); + } + + /* + * @testName: testSetLong02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:666; + * JDBC:JAVADOC:667; JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * maximum value of Bigint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetLong02() throws Exception { + super.testSetLong02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6Servlet.java new file mode 100644 index 0000000000..010ea962ed --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt6/callStmtClient6Servlet.java @@ -0,0 +1,490 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient6.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt6; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient6 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient6Servlet extends callStmtClient6 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt6_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient6Servlet.class, callStmtClient6.class); + // The servlet descriptor +URL servletUrl = callStmtClient6Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient6Servlet.class.getResource("callStmt6_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient6Servlet.class, sunServletUrl); + + return archive; + }; + + private static final String testName = "jdbc.ee.callStmt.callStmt6"; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient6Servlet theTests = new callStmtClient6Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetString01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setChar(int parameterIndex,String x),update the column + * minimum value of Char_Tab. Now execute a query to get the minimum value and + * retrieve the result of the query using the getString(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetString01() throws Exception { + super.testSetString01(); + } + + /* + * @testName: testSetString02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the maximum value of Char_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getString(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetString02() throws Exception { + super.testSetString02(); + } + + /* + * @testName: testSetString03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the minimum value of Varchar_Tab. Now execute a query to get the minimum + * value and retrieve the result of the query using the getString(int + * columnIndex) method.Compare the returned value, with the minimum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetString03() throws Exception { + super.testSetString03(); + } + + /* + * @testName: testSetString04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the maximum value of Varchar_Tab. Now execute a query to get the maximum + * value and retrieve the result of the query using the getInt(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetString04() throws Exception { + super.testSetString04(); + } + + /* + * @testName: testSetString05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JDBC:JAVADOC:398; JDBC:JAVADOC:399; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the minimum value of Longvarchar_Tab. Now execute a query to get the + * minimum value and retrieve the result of the query using the getString(int + * columnIndex) method.Compare the returned value, with the minimum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetString05() throws Exception { + super.testSetString05(); + } + + /* + * @testName: testSetString06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:674; + * JDBC:JAVADOC:675; JDBC:JAVADOC:398; JDBC:JAVADOC:399; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setString(int parameterIndex,String x),update the column + * the maximum value of Longvarchar_Tab. Now execute a query to get the + * maximum value and retrieve the result of the query using the getInt(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetString06() throws Exception { + super.testSetString06(); + } + + /* + * @testName: testSetBigDecimal01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,,update the column Max_Val of Decimal_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the minimum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetBigDecimal01() throws Exception { + super.testSetBigDecimal01(); + } + + /* + * @testName: testSetBigDecimal02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of Decimal_Tab with the maximum + * value.Execute a query to get the maximum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the maximum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetBigDecimal02() throws Exception { + super.testSetBigDecimal02(); + } + + /* + * @testName: testSetBigDecimal03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,,update the column Max_Val of Numeric_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the minimum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetBigDecimal03() throws Exception { + super.testSetBigDecimal03(); + } + + /* + * @testName: testSetBigDecimal04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:672; + * JDBC:JAVADOC:673; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of Numeric_Tab with the maximum + * value.Execute a query to get the maximum value and retrieve the result of + * the query using the getBigDecimal(int parameterIndex) method.Compare the + * returned value with the maximum value extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetBigDecimal04() throws Exception { + super.testSetBigDecimal04(); + } + + /* + * @testName: testSetBoolean01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:658; + * JDBC:JAVADOC:659; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Max_Val of Bit_Tab with the minimum value.Execute + * a query to get the minimum value and retrieve the result of the query using + * the getBoolean(int parameterIndex) method.Compare the returned value with + * the minimum value extracted from the tssql.stmt file.Both of them should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetBoolean01() throws Exception { + super.testSetBoolean01(); + } + + /* + * @testName: testSetBoolean02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:658; + * JDBC:JAVADOC:659; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Null_Val of Bit_Tab with the maximum value.Execute + * a query to get the maximum value and retrieve the result of the query using + * the getBoolean(int parameterIndex) method.Compare the returned value with + * the maximum value extracted from the with tssql.stmt file. Both of them + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetBoolean02() throws Exception { + super.testSetBoolean02(); + } + + /* + * @testName: testSetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:660; + * JDBC:JAVADOC:661; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Max_Val of Tinyint_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getByte(int parameterIndex) method.Compare the returned + * value with the minimum value extracted from the tssql.stmt file.Both of + * them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetByte01() throws Exception { + super.testSetByte01(); + } + + /* + * @testName: testSetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:660; + * JDBC:JAVADOC:661; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Max_Val of Tinyint_Tab with the minimum + * value.Execute a query to get the minimum value and retrieve the result of + * the query using the getByte(int parameterIndex) method.Compare the returned + * value with the minimum value extracted from the tssql.stmt file. Both of + * them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetByte02() throws Exception { + super.testSetByte02(); + } + + /* + * @testName: testSetShort01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:662; + * JDBC:JAVADOC:663; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * minimum value of Smallint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetShort01() throws Exception { + super.testSetShort01(); + } + + /* + * @testName: testSetShort02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:662; + * JDBC:JAVADOC:663; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * maximum value of Smallint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetShort02() throws Exception { + super.testSetShort02(); + } + + /* + * @testName: testSetInt01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:664; + * JDBC:JAVADOC:665; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setInt(int parameterIndex,int x),update the column the + * minimum value of Integer_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetInt01() throws Exception { + super.testSetInt01(); + } + + /* + * @testName: testSetInt02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:664; + * JDBC:JAVADOC:665; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setInt(int parameterIndex,int x),update the column the + * maximum value of Integer_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetInt02() throws Exception { + super.testSetInt02(); + } + + /* + * @testName: testSetLong01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:666; + * JDBC:JAVADOC:667; JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * minimum value of Bigint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetLong01() throws Exception { + super.testSetLong01(); + } + + /* + * @testName: testSetLong02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:666; + * JDBC:JAVADOC:667; JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * maximum value of Bigint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetLong02() throws Exception { + super.testSetLong02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/build.xml deleted file mode 100644 index 13f71c4a5c..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7.java index 2f52fb174d..7547ced7f3 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7.java @@ -34,8 +34,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -56,6 +60,10 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + public class callStmtClient7 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt7"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7AppClient.java new file mode 100644 index 0000000000..cb724a1936 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7AppClient.java @@ -0,0 +1,375 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient7.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt7; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient7 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient7AppClient extends callStmtClient7 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt7_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient7AppClient.class, callStmtClient7.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient7AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient7AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient7AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt7_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + private static final String testName = "jdbc.ee.callStmt.callStmt7"; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient7AppClient theTests = new callStmtClient7AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:668; + * JDBC:JAVADOC:669; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column the + * minimum value of Float_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetFloat01() throws Exception { + super.testSetFloat01(); + } + + /* + * @testName: testSetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:668; + * JDBC:JAVADOC:669; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column the + * maximum value of Float_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetFloat02() throws Exception { + super.testSetFloat02(); + } + + /* + * @testName: testSetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:670; + * JDBC:JAVADOC:671; JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setDouble(int parameterIndex,double x),update the column + * the minimum value of Double_Tab. Now execute a query to get the minimum + * value and retrieve the result of the query using the getDouble(int + * columnIndex) method.Compare the returned value, with the minimum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetDouble01() throws Exception { + super.testSetDouble01(); + } + + /* + * @testName: testSetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:670; + * JDBC:JAVADOC:671; JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setDouble(int parameterIndex,double x),update the column + * the maximum value of Double_Tab. Now execute a query to get the maximum + * value and retrieve the result of the query using the getDouble(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetDouble02() throws Exception { + super.testSetDouble02(); + } + + /* + * @testName: testSetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:676; + * JDBC:JAVADOC:677; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Binary_Val of Binary_Tab with a byte array.Execute + * a query to get the byte array and retrieve the result of the query using + * the getBytes(int parameterIndex) method.It should return the byte array + * object that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testSetBytes01() throws Exception { + super.testSetBytes01(); + } + + /* + * @testName: testSetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:676; + * JDBC:JAVADOC:677; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Varbinary_Val of Varbinary_Tab with a byte + * array.Execute a query to get the byte array and retrieve the result of the + * query using the getBytes(int parameterIndex) method.It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testSetBytes02() throws Exception { + super.testSetBytes02(); + } + + /* + * @testName: testSetDate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:678; + * JDBC:JAVADOC:679; JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Mfg_Date of Date_Tab with the null value.Execute a + * query to get the null value and retrieve the result of the query using the + * getDate(int parameterIndex) method.Check if it is null. + */ + @Test + @TargetVehicle("appclient") + public void testSetDate01() throws Exception { + super.testSetDate01(); + } + + /* + * @testName: testSetDate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:678; + * JDBC:JAVADOC:679; JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of Date_Tab with a non null Date value + * extracted from tssql.stmt file Execute a query to get the non null Date + * value and retrieve the result of the query using the getDate(int + * parameterIndex) method. Compare the returned value with the value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetDate02() throws Exception { + super.testSetDate02(); + } + + /* + * @testName: testSetDate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:678; + * JDBC:JAVADOC:679; JDBC:JAVADOC:612; JDBC:JAVADOC:613;JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Mfg_Date of Date_Tab with the null value.Execute a + * query to get the null value and retrieve the result of the query using the + * getDate(int parameterIndex,Calender cal) method.Check if it is null. + */ + @Test + @TargetVehicle("appclient") + public void testSetDate03() throws Exception { + super.testSetDate03(); + } + + /* + * @testName: testSetDate04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:714; + * JDBC:JAVADOC:715; JDBC:JAVADOC:612; JDBC:JAVADOC:613; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Null_Val of Date_Tab with a non null Date value + * extracted from tssql.stmt file. Execute a query to get the non null Date + * value and retrieve the result of the query using the getDate(int + * parameterIndex,Calender cal) method.Compare the returned value with the + * value extracted from tssql.stmt file.Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetDate04() throws Exception { + super.testSetDate04(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:680; + * JDBC:JAVADOC:681; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x) method,update the + * column value with the Non-Null Time value. Call the getTime(int columnno) + * method to retrieve this value. Extract the Time value from the tssql.stmt + * file. Compare this value with the value returned by the getTime(int + * columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:716; + * JDBC:JAVADOC:717; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Time value using the + * Calendar Object. Call the getTime(int columnno) method to retrieve this + * value. Extract the Time value from the tssql.stmt file. Compare this value + * with the value returned by the getTime(int columnno) method. Both the + * values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + + /* + * @testName: testSetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:682; + * JDBC:JAVADOC:683; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Timestamp x) + * method,update the column value with the Non-Null Timestamp value. Call the + * getTimestamp(int columnno) method to retrieve this value. Extract the + * Timestamp value from the tssql.stmt file. Compare this value with the value + * returned by the getTimestamp(int columnno) method. Both the values should + * be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetTimestamp01() throws Exception { + super.testSetTimestamp01(); + } + + /* + * @testName: testSetTimestamp02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:718; + * JDBC:JAVADOC:719; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Timestamp value using the + * Calendar Object. Call the getTimestamp(int columnno) method to retrieve + * this value. Extract the Timestamp value from the tssql.stmt file. Compare + * this value with the value returned by the getTimestamp(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetTimestamp02() throws Exception { + super.testSetTimestamp02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7EJB.java new file mode 100644 index 0000000000..fd30c786dd --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7EJB.java @@ -0,0 +1,396 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient7.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt7; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient7 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + + +public class callStmtClient7EJB extends callStmtClient7 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentEJB(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt7_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient7EJB.class, callStmtClient7.class); + + URL resURL = callStmtClient7EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient7EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmt7_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt7_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient7EJB.class, callStmtClient7.class); + + resURL = callStmtClient7EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmt7_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient7EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt7_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + private static final String testName = "jdbc.ee.callStmt.callStmt7"; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient7EJB theTests = new callStmtClient7EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:668; + * JDBC:JAVADOC:669; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column the + * minimum value of Float_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetFloat01() throws Exception { + super.testSetFloat01(); + } + + /* + * @testName: testSetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:668; + * JDBC:JAVADOC:669; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column the + * maximum value of Float_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetFloat02() throws Exception { + super.testSetFloat02(); + } + + /* + * @testName: testSetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:670; + * JDBC:JAVADOC:671; JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setDouble(int parameterIndex,double x),update the column + * the minimum value of Double_Tab. Now execute a query to get the minimum + * value and retrieve the result of the query using the getDouble(int + * columnIndex) method.Compare the returned value, with the minimum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetDouble01() throws Exception { + super.testSetDouble01(); + } + + /* + * @testName: testSetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:670; + * JDBC:JAVADOC:671; JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setDouble(int parameterIndex,double x),update the column + * the maximum value of Double_Tab. Now execute a query to get the maximum + * value and retrieve the result of the query using the getDouble(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetDouble02() throws Exception { + super.testSetDouble02(); + } + + /* + * @testName: testSetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:676; + * JDBC:JAVADOC:677; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Binary_Val of Binary_Tab with a byte array.Execute + * a query to get the byte array and retrieve the result of the query using + * the getBytes(int parameterIndex) method.It should return the byte array + * object that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testSetBytes01() throws Exception { + super.testSetBytes01(); + } + + /* + * @testName: testSetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:676; + * JDBC:JAVADOC:677; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Varbinary_Val of Varbinary_Tab with a byte + * array.Execute a query to get the byte array and retrieve the result of the + * query using the getBytes(int parameterIndex) method.It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testSetBytes02() throws Exception { + super.testSetBytes02(); + } + + /* + * @testName: testSetDate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:678; + * JDBC:JAVADOC:679; JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Mfg_Date of Date_Tab with the null value.Execute a + * query to get the null value and retrieve the result of the query using the + * getDate(int parameterIndex) method.Check if it is null. + */ + @Test + @TargetVehicle("ejb") + public void testSetDate01() throws Exception { + super.testSetDate01(); + } + + /* + * @testName: testSetDate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:678; + * JDBC:JAVADOC:679; JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of Date_Tab with a non null Date value + * extracted from tssql.stmt file Execute a query to get the non null Date + * value and retrieve the result of the query using the getDate(int + * parameterIndex) method. Compare the returned value with the value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetDate02() throws Exception { + super.testSetDate02(); + } + + /* + * @testName: testSetDate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:678; + * JDBC:JAVADOC:679; JDBC:JAVADOC:612; JDBC:JAVADOC:613;JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Mfg_Date of Date_Tab with the null value.Execute a + * query to get the null value and retrieve the result of the query using the + * getDate(int parameterIndex,Calender cal) method.Check if it is null. + */ + @Test + @TargetVehicle("ejb") + public void testSetDate03() throws Exception { + super.testSetDate03(); + } + + /* + * @testName: testSetDate04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:714; + * JDBC:JAVADOC:715; JDBC:JAVADOC:612; JDBC:JAVADOC:613; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Null_Val of Date_Tab with a non null Date value + * extracted from tssql.stmt file. Execute a query to get the non null Date + * value and retrieve the result of the query using the getDate(int + * parameterIndex,Calender cal) method.Compare the returned value with the + * value extracted from tssql.stmt file.Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetDate04() throws Exception { + super.testSetDate04(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:680; + * JDBC:JAVADOC:681; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x) method,update the + * column value with the Non-Null Time value. Call the getTime(int columnno) + * method to retrieve this value. Extract the Time value from the tssql.stmt + * file. Compare this value with the value returned by the getTime(int + * columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:716; + * JDBC:JAVADOC:717; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Time value using the + * Calendar Object. Call the getTime(int columnno) method to retrieve this + * value. Extract the Time value from the tssql.stmt file. Compare this value + * with the value returned by the getTime(int columnno) method. Both the + * values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + + /* + * @testName: testSetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:682; + * JDBC:JAVADOC:683; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Timestamp x) + * method,update the column value with the Non-Null Timestamp value. Call the + * getTimestamp(int columnno) method to retrieve this value. Extract the + * Timestamp value from the tssql.stmt file. Compare this value with the value + * returned by the getTimestamp(int columnno) method. Both the values should + * be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetTimestamp01() throws Exception { + super.testSetTimestamp01(); + } + + /* + * @testName: testSetTimestamp02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:718; + * JDBC:JAVADOC:719; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Timestamp value using the + * Calendar Object. Call the getTimestamp(int columnno) method to retrieve + * this value. Extract the Timestamp value from the tssql.stmt file. Compare + * this value with the value returned by the getTimestamp(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetTimestamp02() throws Exception { + super.testSetTimestamp02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7JSP.java new file mode 100644 index 0000000000..02c921705f --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7JSP.java @@ -0,0 +1,380 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient7.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt7; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient7 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient7JSP extends callStmtClient7 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt7_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(callStmtClient7JSP.class, callStmtClient7.class); + + // The jsp descriptor + URL jspUrl = callStmtClient7JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient7JSP.class.getResource("callStmt7_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient7JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient7JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + private static final String testName = "jdbc.ee.callStmt.callStmt7"; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient7JSP theTests = new callStmtClient7JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:668; + * JDBC:JAVADOC:669; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column the + * minimum value of Float_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetFloat01() throws Exception { + super.testSetFloat01(); + } + + /* + * @testName: testSetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:668; + * JDBC:JAVADOC:669; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column the + * maximum value of Float_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetFloat02() throws Exception { + super.testSetFloat02(); + } + + /* + * @testName: testSetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:670; + * JDBC:JAVADOC:671; JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setDouble(int parameterIndex,double x),update the column + * the minimum value of Double_Tab. Now execute a query to get the minimum + * value and retrieve the result of the query using the getDouble(int + * columnIndex) method.Compare the returned value, with the minimum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetDouble01() throws Exception { + super.testSetDouble01(); + } + + /* + * @testName: testSetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:670; + * JDBC:JAVADOC:671; JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setDouble(int parameterIndex,double x),update the column + * the maximum value of Double_Tab. Now execute a query to get the maximum + * value and retrieve the result of the query using the getDouble(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetDouble02() throws Exception { + super.testSetDouble02(); + } + + /* + * @testName: testSetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:676; + * JDBC:JAVADOC:677; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Binary_Val of Binary_Tab with a byte array.Execute + * a query to get the byte array and retrieve the result of the query using + * the getBytes(int parameterIndex) method.It should return the byte array + * object that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testSetBytes01() throws Exception { + super.testSetBytes01(); + } + + /* + * @testName: testSetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:676; + * JDBC:JAVADOC:677; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Varbinary_Val of Varbinary_Tab with a byte + * array.Execute a query to get the byte array and retrieve the result of the + * query using the getBytes(int parameterIndex) method.It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testSetBytes02() throws Exception { + super.testSetBytes02(); + } + + /* + * @testName: testSetDate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:678; + * JDBC:JAVADOC:679; JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Mfg_Date of Date_Tab with the null value.Execute a + * query to get the null value and retrieve the result of the query using the + * getDate(int parameterIndex) method.Check if it is null. + */ + @Test + @TargetVehicle("jsp") + public void testSetDate01() throws Exception { + super.testSetDate01(); + } + + /* + * @testName: testSetDate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:678; + * JDBC:JAVADOC:679; JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of Date_Tab with a non null Date value + * extracted from tssql.stmt file Execute a query to get the non null Date + * value and retrieve the result of the query using the getDate(int + * parameterIndex) method. Compare the returned value with the value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetDate02() throws Exception { + super.testSetDate02(); + } + + /* + * @testName: testSetDate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:678; + * JDBC:JAVADOC:679; JDBC:JAVADOC:612; JDBC:JAVADOC:613;JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Mfg_Date of Date_Tab with the null value.Execute a + * query to get the null value and retrieve the result of the query using the + * getDate(int parameterIndex,Calender cal) method.Check if it is null. + */ + @Test + @TargetVehicle("jsp") + public void testSetDate03() throws Exception { + super.testSetDate03(); + } + + /* + * @testName: testSetDate04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:714; + * JDBC:JAVADOC:715; JDBC:JAVADOC:612; JDBC:JAVADOC:613; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Null_Val of Date_Tab with a non null Date value + * extracted from tssql.stmt file. Execute a query to get the non null Date + * value and retrieve the result of the query using the getDate(int + * parameterIndex,Calender cal) method.Compare the returned value with the + * value extracted from tssql.stmt file.Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetDate04() throws Exception { + super.testSetDate04(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:680; + * JDBC:JAVADOC:681; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x) method,update the + * column value with the Non-Null Time value. Call the getTime(int columnno) + * method to retrieve this value. Extract the Time value from the tssql.stmt + * file. Compare this value with the value returned by the getTime(int + * columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:716; + * JDBC:JAVADOC:717; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Time value using the + * Calendar Object. Call the getTime(int columnno) method to retrieve this + * value. Extract the Time value from the tssql.stmt file. Compare this value + * with the value returned by the getTime(int columnno) method. Both the + * values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + + /* + * @testName: testSetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:682; + * JDBC:JAVADOC:683; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Timestamp x) + * method,update the column value with the Non-Null Timestamp value. Call the + * getTimestamp(int columnno) method to retrieve this value. Extract the + * Timestamp value from the tssql.stmt file. Compare this value with the value + * returned by the getTimestamp(int columnno) method. Both the values should + * be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetTimestamp01() throws Exception { + super.testSetTimestamp01(); + } + + /* + * @testName: testSetTimestamp02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:718; + * JDBC:JAVADOC:719; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Timestamp value using the + * Calendar Object. Call the getTimestamp(int columnno) method to retrieve + * this value. Extract the Timestamp value from the tssql.stmt file. Compare + * this value with the value returned by the getTimestamp(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetTimestamp02() throws Exception { + super.testSetTimestamp02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7Servlet.java new file mode 100644 index 0000000000..6408ea0515 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt7/callStmtClient7Servlet.java @@ -0,0 +1,368 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient7.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt7; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient7 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient7Servlet extends callStmtClient7 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt7_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient7Servlet.class, callStmtClient7.class); + // The servlet descriptor +URL servletUrl = callStmtClient7Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient7Servlet.class.getResource("callStmt7_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient7Servlet.class, sunServletUrl); + + return archive; + }; + + private static final String testName = "jdbc.ee.callStmt.callStmt7"; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient7Servlet theTests = new callStmtClient7Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:668; + * JDBC:JAVADOC:669; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column the + * minimum value of Float_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetFloat01() throws Exception { + super.testSetFloat01(); + } + + /* + * @testName: testSetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:668; + * JDBC:JAVADOC:669; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column the + * maximum value of Float_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetFloat02() throws Exception { + super.testSetFloat02(); + } + + /* + * @testName: testSetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:670; + * JDBC:JAVADOC:671; JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setDouble(int parameterIndex,double x),update the column + * the minimum value of Double_Tab. Now execute a query to get the minimum + * value and retrieve the result of the query using the getDouble(int + * columnIndex) method.Compare the returned value, with the minimum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetDouble01() throws Exception { + super.testSetDouble01(); + } + + /* + * @testName: testSetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:670; + * JDBC:JAVADOC:671; JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using setDouble(int parameterIndex,double x),update the column + * the maximum value of Double_Tab. Now execute a query to get the maximum + * value and retrieve the result of the query using the getDouble(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetDouble02() throws Exception { + super.testSetDouble02(); + } + + /* + * @testName: testSetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:676; + * JDBC:JAVADOC:677; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Binary_Val of Binary_Tab with a byte array.Execute + * a query to get the byte array and retrieve the result of the query using + * the getBytes(int parameterIndex) method.It should return the byte array + * object that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testSetBytes01() throws Exception { + super.testSetBytes01(); + } + + /* + * @testName: testSetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:676; + * JDBC:JAVADOC:677; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Varbinary_Val of Varbinary_Tab with a byte + * array.Execute a query to get the byte array and retrieve the result of the + * query using the getBytes(int parameterIndex) method.It should return the + * byte array object that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testSetBytes02() throws Exception { + super.testSetBytes02(); + } + + /* + * @testName: testSetDate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:678; + * JDBC:JAVADOC:679; JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Mfg_Date of Date_Tab with the null value.Execute a + * query to get the null value and retrieve the result of the query using the + * getDate(int parameterIndex) method.Check if it is null. + */ + @Test + @TargetVehicle("servlet") + public void testSetDate01() throws Exception { + super.testSetDate01(); + } + + /* + * @testName: testSetDate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:678; + * JDBC:JAVADOC:679; JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Null_Val of Date_Tab with a non null Date value + * extracted from tssql.stmt file Execute a query to get the non null Date + * value and retrieve the result of the query using the getDate(int + * parameterIndex) method. Compare the returned value with the value extracted + * from tssql.stmt file. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetDate02() throws Exception { + super.testSetDate02(); + } + + /* + * @testName: testSetDate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:678; + * JDBC:JAVADOC:679; JDBC:JAVADOC:612; JDBC:JAVADOC:613;JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database. Using the IN parameter of that + * object,update the column Mfg_Date of Date_Tab with the null value.Execute a + * query to get the null value and retrieve the result of the query using the + * getDate(int parameterIndex,Calender cal) method.Check if it is null. + */ + @Test + @TargetVehicle("servlet") + public void testSetDate03() throws Exception { + super.testSetDate03(); + } + + /* + * @testName: testSetDate04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:714; + * JDBC:JAVADOC:715; JDBC:JAVADOC:612; JDBC:JAVADOC:613; JavaEE:SPEC:186; + * + * @test_Strategy: This test case is meant for checking the support for IN + * parameter in CallableStatement Interface. Get a CallableStatement object + * from the connection to the database Using the IN parameter of that + * object,update the column Null_Val of Date_Tab with a non null Date value + * extracted from tssql.stmt file. Execute a query to get the non null Date + * value and retrieve the result of the query using the getDate(int + * parameterIndex,Calender cal) method.Compare the returned value with the + * value extracted from tssql.stmt file.Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetDate04() throws Exception { + super.testSetDate04(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:680; + * JDBC:JAVADOC:681; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x) method,update the + * column value with the Non-Null Time value. Call the getTime(int columnno) + * method to retrieve this value. Extract the Time value from the tssql.stmt + * file. Compare this value with the value returned by the getTime(int + * columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:716; + * JDBC:JAVADOC:717; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Time value using the + * Calendar Object. Call the getTime(int columnno) method to retrieve this + * value. Extract the Time value from the tssql.stmt file. Compare this value + * with the value returned by the getTime(int columnno) method. Both the + * values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + + /* + * @testName: testSetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:682; + * JDBC:JAVADOC:683; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Timestamp x) + * method,update the column value with the Non-Null Timestamp value. Call the + * getTimestamp(int columnno) method to retrieve this value. Extract the + * Timestamp value from the tssql.stmt file. Compare this value with the value + * returned by the getTimestamp(int columnno) method. Both the values should + * be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetTimestamp01() throws Exception { + super.testSetTimestamp01(); + } + + /* + * @testName: testSetTimestamp02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:718; + * JDBC:JAVADOC:719; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Timestamp value using the + * Calendar Object. Call the getTimestamp(int columnno) method to retrieve + * this value. Extract the Timestamp value from the tssql.stmt file. Compare + * this value with the value returned by the getTimestamp(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetTimestamp02() throws Exception { + super.testSetTimestamp02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/build.xml deleted file mode 100644 index 6daac8f946..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8.java index 8e6173f9be..314e54bd29 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8.java @@ -33,8 +33,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -54,6 +58,11 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") +@Tag("web_profile") +@Tag("tck-javatest") public class callStmtClient8 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt8"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8AppClient.java new file mode 100644 index 0000000000..19d8d3f601 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8AppClient.java @@ -0,0 +1,518 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt8; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient8 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient8AppClient extends callStmtClient8 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt8"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt8_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient8AppClient.class, callStmtClient8.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient8AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient8AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient8AppClient.class, sunAppClientUrl); + + archive.addAsManifestResource(callStmtClient8AppClient.class.getPackage(), "appclient_vehicle_client.xml"); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt8_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient8AppClient theTests = new callStmtClient8AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set String object for SQL Type CHAR and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject01() throws Exception { + super.testSetObject01(); + } + + /* + * @testName: testSetObject02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set String object for SQL Type VARCHAR + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject02() throws Exception { + super.testSetObject02(); + } + + /* + * @testName: testSetObject03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set String object for SQL Type + * LONGVARCHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from tssql.stmt file. + * Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject03() throws Exception { + super.testSetObject03(); + } + + /* + * @testName: testSetObject04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Numeric and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object. + * Compare the returned value with the extracted value from tssql.stmt file. + * Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject04() throws Exception { + super.testSetObject04(); + } + + /* + * @testName: testSetObject05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Numeric and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column) method. It should return a BigDecimal + * object. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject05() throws Exception { + super.testSetObject05(); + } + + /* + * @testName: testSetObject06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Decimal and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object. + * Compare the returned value with the value extracted from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject06() throws Exception { + super.testSetObject06(); + } + + /* + * @testName: testSetObject07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Decimal and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object. + * Compare the result with the extracted value from the tssql.stmt file. Both + * the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject07() throws Exception { + super.testSetObject07(); + } + + /* + * @testName: testSetObject08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Boolean object for SQL Type Bit and + * call statement.executeQuery(String sql) method and call + * ResultSet.getBoolean(int column). Compare the result with the extracted + * value from the tssql.stmt file. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject08() throws Exception { + super.testSetObject08(); + } + + /* + * @testName: testSetObject09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Boolean object for SQL Type Bit and + * call statement.executeQuery(String sql) method and call + * ResultSet.getBoolen(int column). Compare the result with the extracted + * value from the tssql.stmt file. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject09() throws Exception { + super.testSetObject09(); + } + + /* + * @testName: testSetObject10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type Integer + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject10() throws Exception { + super.testSetObject10(); + } + + /* + * @testName: testSetObject11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type Integer + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject11() throws Exception { + super.testSetObject11(); + } + + /* + * @testName: testSetObject12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Long object for SQL Type Bigint and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject12() throws Exception { + super.testSetObject12(); + } + + /* + * @testName: testSetObject13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Long object for SQL Type Bigint and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject13() throws Exception { + super.testSetObject13(); + } + + /* + * @testName: testSetObject14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Double object for SQL Type Double + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject14() throws Exception { + super.testSetObject14(); + } + + /* + * @testName: testSetObject15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Double object for SQL Type Double + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject15() throws Exception { + super.testSetObject15(); + } + + /* + * @testName: testSetObject16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Double object for SQL Type Float + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject16() throws Exception { + super.testSetObject16(); + } + + /* + * @testName: testSetObject17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Float object for SQL Type Float and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject17() throws Exception { + super.testSetObject17(); + } + + /* + * @testName: testSetObject18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Date object for SQL Type Date and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Date object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject18() throws Exception { + super.testSetObject18(); + } + + /* + * @testName: testSetObject19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Time object for SQL Type Time and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Time object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject19() throws Exception { + super.testSetObject19(); + } + + /* + * @testName: testSetObject20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Timestamp object for SQL Type + * Timestamp & call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Timestamp object. + * Compare the result with the extracted value from the tssql.stmt file. Both + * the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject20() throws Exception { + super.testSetObject20(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8EJB.java new file mode 100644 index 0000000000..65a6fb071b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8EJB.java @@ -0,0 +1,534 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt8; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient8 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient8EJB extends callStmtClient8 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt8"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentEJB(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt8_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient8EJB.class, callStmtClient8.class); + + URL resURL = callStmtClient8EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient8EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmt8_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt8_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient8EJB.class, callStmtClient8.class); + + resURL = callStmtClient8EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmt8_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient8EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt8_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient8EJB theTests = new callStmtClient8EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set String object for SQL Type CHAR and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject01() throws Exception { + super.testSetObject01(); + } + + /* + * @testName: testSetObject02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set String object for SQL Type VARCHAR + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject02() throws Exception { + super.testSetObject02(); + } + + /* + * @testName: testSetObject03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set String object for SQL Type + * LONGVARCHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from tssql.stmt file. + * Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject03() throws Exception { + super.testSetObject03(); + } + + /* + * @testName: testSetObject04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Numeric and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object. + * Compare the returned value with the extracted value from tssql.stmt file. + * Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject04() throws Exception { + super.testSetObject04(); + } + + /* + * @testName: testSetObject05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Numeric and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column) method. It should return a BigDecimal + * object. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject05() throws Exception { + super.testSetObject05(); + } + + /* + * @testName: testSetObject06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Decimal and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object. + * Compare the returned value with the value extracted from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject06() throws Exception { + super.testSetObject06(); + } + + /* + * @testName: testSetObject07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Decimal and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object. + * Compare the result with the extracted value from the tssql.stmt file. Both + * the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject07() throws Exception { + super.testSetObject07(); + } + + /* + * @testName: testSetObject08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Boolean object for SQL Type Bit and + * call statement.executeQuery(String sql) method and call + * ResultSet.getBoolean(int column). Compare the result with the extracted + * value from the tssql.stmt file. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject08() throws Exception { + super.testSetObject08(); + } + + /* + * @testName: testSetObject09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Boolean object for SQL Type Bit and + * call statement.executeQuery(String sql) method and call + * ResultSet.getBoolen(int column). Compare the result with the extracted + * value from the tssql.stmt file. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject09() throws Exception { + super.testSetObject09(); + } + + /* + * @testName: testSetObject10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type Integer + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject10() throws Exception { + super.testSetObject10(); + } + + /* + * @testName: testSetObject11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type Integer + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject11() throws Exception { + super.testSetObject11(); + } + + /* + * @testName: testSetObject12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Long object for SQL Type Bigint and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject12() throws Exception { + super.testSetObject12(); + } + + /* + * @testName: testSetObject13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Long object for SQL Type Bigint and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject13() throws Exception { + super.testSetObject13(); + } + + /* + * @testName: testSetObject14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Double object for SQL Type Double + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject14() throws Exception { + super.testSetObject14(); + } + + /* + * @testName: testSetObject15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Double object for SQL Type Double + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject15() throws Exception { + super.testSetObject15(); + } + + /* + * @testName: testSetObject16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Double object for SQL Type Float + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject16() throws Exception { + super.testSetObject16(); + } + + /* + * @testName: testSetObject17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Float object for SQL Type Float and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject17() throws Exception { + super.testSetObject17(); + } + + /* + * @testName: testSetObject18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Date object for SQL Type Date and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Date object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject18() throws Exception { + super.testSetObject18(); + } + + /* + * @testName: testSetObject19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Time object for SQL Type Time and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Time object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject19() throws Exception { + super.testSetObject19(); + } + + /* + * @testName: testSetObject20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Timestamp object for SQL Type + * Timestamp & call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Timestamp object. + * Compare the result with the extracted value from the tssql.stmt file. Both + * the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject20() throws Exception { + super.testSetObject20(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8JSP.java new file mode 100644 index 0000000000..ad11fa6fc2 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8JSP.java @@ -0,0 +1,520 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt8; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient8 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient8JSP extends callStmtClient8 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt8"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt8_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(callStmtClient8JSP.class, callStmtClient8.class); + + // The jsp descriptor + URL jspUrl = callStmtClient8JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient8JSP.class.getResource("callStmt8_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient8JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient8JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient8JSP theTests = new callStmtClient8JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set String object for SQL Type CHAR and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject01() throws Exception { + super.testSetObject01(); + } + + /* + * @testName: testSetObject02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set String object for SQL Type VARCHAR + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject02() throws Exception { + super.testSetObject02(); + } + + /* + * @testName: testSetObject03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set String object for SQL Type + * LONGVARCHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from tssql.stmt file. + * Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject03() throws Exception { + super.testSetObject03(); + } + + /* + * @testName: testSetObject04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Numeric and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object. + * Compare the returned value with the extracted value from tssql.stmt file. + * Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject04() throws Exception { + super.testSetObject04(); + } + + /* + * @testName: testSetObject05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Numeric and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column) method. It should return a BigDecimal + * object. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject05() throws Exception { + super.testSetObject05(); + } + + /* + * @testName: testSetObject06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Decimal and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object. + * Compare the returned value with the value extracted from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject06() throws Exception { + super.testSetObject06(); + } + + /* + * @testName: testSetObject07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Decimal and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object. + * Compare the result with the extracted value from the tssql.stmt file. Both + * the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject07() throws Exception { + super.testSetObject07(); + } + + /* + * @testName: testSetObject08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Boolean object for SQL Type Bit and + * call statement.executeQuery(String sql) method and call + * ResultSet.getBoolean(int column). Compare the result with the extracted + * value from the tssql.stmt file. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject08() throws Exception { + super.testSetObject08(); + } + + /* + * @testName: testSetObject09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Boolean object for SQL Type Bit and + * call statement.executeQuery(String sql) method and call + * ResultSet.getBoolen(int column). Compare the result with the extracted + * value from the tssql.stmt file. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject09() throws Exception { + super.testSetObject09(); + } + + /* + * @testName: testSetObject10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type Integer + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject10() throws Exception { + super.testSetObject10(); + } + + /* + * @testName: testSetObject11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type Integer + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject11() throws Exception { + super.testSetObject11(); + } + + /* + * @testName: testSetObject12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Long object for SQL Type Bigint and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject12() throws Exception { + super.testSetObject12(); + } + + /* + * @testName: testSetObject13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Long object for SQL Type Bigint and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject13() throws Exception { + super.testSetObject13(); + } + + /* + * @testName: testSetObject14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Double object for SQL Type Double + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject14() throws Exception { + super.testSetObject14(); + } + + /* + * @testName: testSetObject15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Double object for SQL Type Double + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject15() throws Exception { + super.testSetObject15(); + } + + /* + * @testName: testSetObject16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Double object for SQL Type Float + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject16() throws Exception { + super.testSetObject16(); + } + + /* + * @testName: testSetObject17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Float object for SQL Type Float and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject17() throws Exception { + super.testSetObject17(); + } + + /* + * @testName: testSetObject18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Date object for SQL Type Date and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Date object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject18() throws Exception { + super.testSetObject18(); + } + + /* + * @testName: testSetObject19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Time object for SQL Type Time and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Time object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject19() throws Exception { + super.testSetObject19(); + } + + /* + * @testName: testSetObject20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Timestamp object for SQL Type + * Timestamp & call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Timestamp object. + * Compare the result with the extracted value from the tssql.stmt file. Both + * the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject20() throws Exception { + super.testSetObject20(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8Servlet.java new file mode 100644 index 0000000000..acb4b55f2f --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt8/callStmtClient8Servlet.java @@ -0,0 +1,508 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt8; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient8 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient8Servlet extends callStmtClient8 implements Serializable { + private static final String testName = "jdbc.ee.callStmt.callStmt8"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt8_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient8Servlet.class, callStmtClient8.class); + // The servlet descriptor +URL servletUrl = callStmtClient8Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient8Servlet.class.getResource("callStmt8_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient8Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + callStmtClient8Servlet theTests = new callStmtClient8Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set String object for SQL Type CHAR and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject01() throws Exception { + super.testSetObject01(); + } + + /* + * @testName: testSetObject02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set String object for SQL Type VARCHAR + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject02() throws Exception { + super.testSetObject02(); + } + + /* + * @testName: testSetObject03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set String object for SQL Type + * LONGVARCHAR and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a String object that is + * been set. Compare the result with the extracted value from tssql.stmt file. + * Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject03() throws Exception { + super.testSetObject03(); + } + + /* + * @testName: testSetObject04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Numeric and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object. + * Compare the returned value with the extracted value from tssql.stmt file. + * Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject04() throws Exception { + super.testSetObject04(); + } + + /* + * @testName: testSetObject05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Numeric and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column) method. It should return a BigDecimal + * object. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject05() throws Exception { + super.testSetObject05(); + } + + /* + * @testName: testSetObject06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Decimal and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object. + * Compare the returned value with the value extracted from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject06() throws Exception { + super.testSetObject06(); + } + + /* + * @testName: testSetObject07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set BigDecimal object for SQL Type + * Decimal and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a BigDecimal object. + * Compare the result with the extracted value from the tssql.stmt file. Both + * the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject07() throws Exception { + super.testSetObject07(); + } + + /* + * @testName: testSetObject08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Boolean object for SQL Type Bit and + * call statement.executeQuery(String sql) method and call + * ResultSet.getBoolean(int column). Compare the result with the extracted + * value from the tssql.stmt file. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject08() throws Exception { + super.testSetObject08(); + } + + /* + * @testName: testSetObject09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Boolean object for SQL Type Bit and + * call statement.executeQuery(String sql) method and call + * ResultSet.getBoolen(int column). Compare the result with the extracted + * value from the tssql.stmt file. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject09() throws Exception { + super.testSetObject09(); + } + + /* + * @testName: testSetObject10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type Integer + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject10() throws Exception { + super.testSetObject10(); + } + + /* + * @testName: testSetObject11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type Integer + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject11() throws Exception { + super.testSetObject11(); + } + + /* + * @testName: testSetObject12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Long object for SQL Type Bigint and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject12() throws Exception { + super.testSetObject12(); + } + + /* + * @testName: testSetObject13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Long object for SQL Type Bigint and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject13() throws Exception { + super.testSetObject13(); + } + + /* + * @testName: testSetObject14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Double object for SQL Type Double + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject14() throws Exception { + super.testSetObject14(); + } + + /* + * @testName: testSetObject15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Double object for SQL Type Double + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject15() throws Exception { + super.testSetObject15(); + } + + /* + * @testName: testSetObject16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Double object for SQL Type Float + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject16() throws Exception { + super.testSetObject16(); + } + + /* + * @testName: testSetObject17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Float object for SQL Type Float and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject17() throws Exception { + super.testSetObject17(); + } + + /* + * @testName: testSetObject18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Date object for SQL Type Date and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Date object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject18() throws Exception { + super.testSetObject18(); + } + + /* + * @testName: testSetObject19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Time object for SQL Type Time and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Time object. Compare + * the result with the extracted value from the tssql.stmt file. Both the + * values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject19() throws Exception { + super.testSetObject19(); + } + + /* + * @testName: testSetObject20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Timestamp object for SQL Type + * Timestamp & call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Timestamp object. + * Compare the result with the extracted value from the tssql.stmt file. Both + * the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject20() throws Exception { + super.testSetObject20(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/build.xml deleted file mode 100644 index 1c12752218..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9.java index 638fca70f9..b12598f624 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9.java @@ -31,7 +31,10 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; @@ -52,6 +55,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class callStmtClient9 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.callStmt.callStmt9"; @@ -82,12 +88,6 @@ public class callStmtClient9 extends ServiceEETest implements Serializable { private Statement stmt = null; // private ResultSet rs = null; - /* Run test in standalone mode */ - public static void main(String[] args) { - callStmtClient9 theTests = new callStmtClient9(); - Status s = theTests.run(args, System.out, System.err); - s.exit(); - } /* Test setup: */ /* diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9AppClient.java new file mode 100644 index 0000000000..b7c136ffaa --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9AppClient.java @@ -0,0 +1,504 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient9.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt9; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient9 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient9AppClient extends callStmtClient9 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "callStmt9_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient9AppClient.class, callStmtClient9.class); + // The appclient-client descriptor + URL appClientUrl = callStmtClient9AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = callStmtClient9AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, callStmtClient9AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt9_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + private static final String testName = "jdbc.ee.callStmt.callStmt9"; + + + /* + * @testName: testSetObject21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Float object for SQL Type REAL and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject21() throws Exception { + super.testSetObject21(); + } + + /* + * @testName: testSetObject22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Float object for SQL Type REAL and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject22() throws Exception { + super.testSetObject22(); + } + + /* + * @testName: testSetObject23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type TINYINT + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject23() throws Exception { + super.testSetObject23(); + } + + /* + * @testName: testSetObject24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type TINYINT + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject24() throws Exception { + super.testSetObject24(); + } + + /* + * @testName: testSetObject25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type + * SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject25() throws Exception { + super.testSetObject25(); + } + + /* + * @testName: testSetObject26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type + * SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject26() throws Exception { + super.testSetObject26(); + } + + /* + * @testName: testSetObject27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Byte array object for SQL Type + * Binary and call statement.executeQuery method and call getObject method of + * ResultSet. It should return a Byte Array object that is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject27() throws Exception { + super.testSetObject27(); + } + + /* + * @testName: testSetObject28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Byte array object for SQL Type + * Varbinary and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a Varbinary object that is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject28() throws Exception { + super.testSetObject28(); + } + + /* + * @testName: testSetObject29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Byte array object for SQL Type + * Longvarbinary and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a Varbinary object that is been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject29() throws Exception { + super.testSetObject29(); + } + + /* + * @testName: testSetObject30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TINYINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject30() throws Exception { + super.testSetObject30(); + } + + /* + * @testName: testSetObject31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TINYINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject31() throws Exception { + super.testSetObject31(); + } + + /* + * @testName: testSetObject32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject32() throws Exception { + super.testSetObject32(); + } + + /* + * @testName: testSetObject33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject33() throws Exception { + super.testSetObject33(); + } + + /* + * @testName: testSetObject34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type INTEGER and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject34() throws Exception { + super.testSetObject34(); + } + + /* + * @testName: testSetObject35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type INTEGER and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject35() throws Exception { + super.testSetObject35(); + } + + /* + * @testName: testSetObject36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIGINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject36() throws Exception { + super.testSetObject36(); + } + + /* + * @testName: testSetObject37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIGINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject37() throws Exception { + super.testSetObject37(); + } + + /* + * @testName: testSetObject38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type REAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject38() throws Exception { + super.testSetObject38(); + } + + /* + * @testName: testSetObject39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type REAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject39() throws Exception { + super.testSetObject39(); + } + + + /* + * @testName: testSetObject40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type FLOAT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject40() throws Exception { + super.testSetObject40(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9EJB.java new file mode 100644 index 0000000000..29230ced1d --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9EJB.java @@ -0,0 +1,523 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient9.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt9; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient9 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class callStmtClient9EJB extends callStmtClient9 implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentEJB(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "callStmt9_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(callStmtClient9EJB.class, callStmtClient9.class); + + URL resURL = callStmtClient9EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = callStmtClient9EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmt9_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "callStmt9_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(callStmtClient9EJB.class, callStmtClient9.class); + + resURL = callStmtClient9EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmt9_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = callStmtClient9EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "callStmt9_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + private static final String testName = "jdbc.ee.callStmt.callStmt9"; + + + /* + * @testName: testSetObject21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Float object for SQL Type REAL and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject21() throws Exception { + super.testSetObject21(); + } + + /* + * @testName: testSetObject22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Float object for SQL Type REAL and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject22() throws Exception { + super.testSetObject22(); + } + + /* + * @testName: testSetObject23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type TINYINT + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject23() throws Exception { + super.testSetObject23(); + } + + /* + * @testName: testSetObject24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type TINYINT + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject24() throws Exception { + super.testSetObject24(); + } + + /* + * @testName: testSetObject25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type + * SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject25() throws Exception { + super.testSetObject25(); + } + + /* + * @testName: testSetObject26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type + * SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject26() throws Exception { + super.testSetObject26(); + } + + /* + * @testName: testSetObject27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Byte array object for SQL Type + * Binary and call statement.executeQuery method and call getObject method of + * ResultSet. It should return a Byte Array object that is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject27() throws Exception { + super.testSetObject27(); + } + + /* + * @testName: testSetObject28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Byte array object for SQL Type + * Varbinary and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a Varbinary object that is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject28() throws Exception { + super.testSetObject28(); + } + + /* + * @testName: testSetObject29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Byte array object for SQL Type + * Longvarbinary and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a Varbinary object that is been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject29() throws Exception { + super.testSetObject29(); + } + + /* + * @testName: testSetObject30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TINYINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject30() throws Exception { + super.testSetObject30(); + } + + /* + * @testName: testSetObject31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TINYINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject31() throws Exception { + super.testSetObject31(); + } + + /* + * @testName: testSetObject32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject32() throws Exception { + super.testSetObject32(); + } + + /* + * @testName: testSetObject33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject33() throws Exception { + super.testSetObject33(); + } + + /* + * @testName: testSetObject34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type INTEGER and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject34() throws Exception { + super.testSetObject34(); + } + + /* + * @testName: testSetObject35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type INTEGER and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject35() throws Exception { + super.testSetObject35(); + } + + /* + * @testName: testSetObject36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIGINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject36() throws Exception { + super.testSetObject36(); + } + + /* + * @testName: testSetObject37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIGINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject37() throws Exception { + super.testSetObject37(); + } + + /* + * @testName: testSetObject38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type REAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject38() throws Exception { + super.testSetObject38(); + } + + /* + * @testName: testSetObject39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type REAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject39() throws Exception { + super.testSetObject39(); + } + + + /* + * @testName: testSetObject40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type FLOAT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject40() throws Exception { + super.testSetObject40(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9JSP.java new file mode 100644 index 0000000000..06493211a6 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9JSP.java @@ -0,0 +1,508 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient9.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt9; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient9 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient9JSP extends callStmtClient9 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt9_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(callStmtClient9JSP.class, callStmtClient9.class); + + // The jsp descriptor + URL jspUrl = callStmtClient9JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = callStmtClient9JSP.class.getResource("callStmt9_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, callStmtClient9JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(callStmtClient9JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + private static final String testName = "jdbc.ee.callStmt.callStmt9"; + + + /* + * @testName: testSetObject21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Float object for SQL Type REAL and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject21() throws Exception { + super.testSetObject21(); + } + + /* + * @testName: testSetObject22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Float object for SQL Type REAL and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject22() throws Exception { + super.testSetObject22(); + } + + /* + * @testName: testSetObject23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type TINYINT + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject23() throws Exception { + super.testSetObject23(); + } + + /* + * @testName: testSetObject24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type TINYINT + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject24() throws Exception { + super.testSetObject24(); + } + + /* + * @testName: testSetObject25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type + * SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject25() throws Exception { + super.testSetObject25(); + } + + /* + * @testName: testSetObject26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type + * SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject26() throws Exception { + super.testSetObject26(); + } + + /* + * @testName: testSetObject27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Byte array object for SQL Type + * Binary and call statement.executeQuery method and call getObject method of + * ResultSet. It should return a Byte Array object that is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject27() throws Exception { + super.testSetObject27(); + } + + /* + * @testName: testSetObject28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Byte array object for SQL Type + * Varbinary and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a Varbinary object that is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject28() throws Exception { + super.testSetObject28(); + } + + /* + * @testName: testSetObject29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Byte array object for SQL Type + * Longvarbinary and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a Varbinary object that is been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject29() throws Exception { + super.testSetObject29(); + } + + /* + * @testName: testSetObject30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TINYINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject30() throws Exception { + super.testSetObject30(); + } + + /* + * @testName: testSetObject31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TINYINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject31() throws Exception { + super.testSetObject31(); + } + + /* + * @testName: testSetObject32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject32() throws Exception { + super.testSetObject32(); + } + + /* + * @testName: testSetObject33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject33() throws Exception { + super.testSetObject33(); + } + + /* + * @testName: testSetObject34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type INTEGER and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject34() throws Exception { + super.testSetObject34(); + } + + /* + * @testName: testSetObject35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type INTEGER and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject35() throws Exception { + super.testSetObject35(); + } + + /* + * @testName: testSetObject36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIGINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject36() throws Exception { + super.testSetObject36(); + } + + /* + * @testName: testSetObject37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIGINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject37() throws Exception { + super.testSetObject37(); + } + + /* + * @testName: testSetObject38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type REAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject38() throws Exception { + super.testSetObject38(); + } + + /* + * @testName: testSetObject39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type REAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject39() throws Exception { + super.testSetObject39(); + } + + + /* + * @testName: testSetObject40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type FLOAT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject40() throws Exception { + super.testSetObject40(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9Servlet.java new file mode 100644 index 0000000000..9a6b6a7065 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/callStmt/callStmt9/callStmtClient9Servlet.java @@ -0,0 +1,534 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)callStmtClient9.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.callStmt.callStmt9; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; +import java.sql.CallableStatement; +import java.sql.Connection; +import java.sql.DatabaseMetaData; +import java.sql.Statement; +import java.util.Properties; + +import javax.sql.DataSource; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.util.TSNamingContextInterface; +import com.sun.ts.tests.jdbc.ee.common.JDBCTestMsg; +import com.sun.ts.tests.jdbc.ee.common.csSchema; +import com.sun.ts.tests.jdbc.ee.common.rsSchema; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The callStmtClient9 class tests methods of CallableStatement interface (to + * check the Support for IN, OUT and INOUT parameters of Stored Procedure) using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class callStmtClient9Servlet extends callStmtClient9 implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "callStmt9_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(callStmtClient9Servlet.class, callStmtClient9.class); + // The servlet descriptor +URL servletUrl = callStmtClient9Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = callStmtClient9Servlet.class.getResource("callStmt9_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, callStmtClient9Servlet.class, sunServletUrl); + + return archive; + }; + + private static final String testName = "jdbc.ee.callStmt.callStmt9"; + + // Naming specific member variables + private TSNamingContextInterface jc = null; + + // Harness requirements + + private transient Connection conn = null; + + private DataSource ds1 = null; + + private csSchema csSch = null; + + private rsSchema rsSch = null; + + private JDBCTestMsg msg = null; + + private String drManager = null; + + private Properties sqlp = null; + + private CallableStatement cstmt = null; + + private transient DatabaseMetaData dbmd = null; + + private Statement stmt = null; + // private ResultSet rs = null; + + + /* + * @testName: testSetObject21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Float object for SQL Type REAL and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject21() throws Exception { + super.testSetObject21(); + } + + /* + * @testName: testSetObject22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Float object for SQL Type REAL and + * call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject22() throws Exception { + super.testSetObject22(); + } + + /* + * @testName: testSetObject23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type TINYINT + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject23() throws Exception { + super.testSetObject23(); + } + + /* + * @testName: testSetObject24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type TINYINT + * and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject24() throws Exception { + super.testSetObject24(); + } + + /* + * @testName: testSetObject25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type + * SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject25() throws Exception { + super.testSetObject25(); + } + + /* + * @testName: testSetObject26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Integer object for SQL Type + * SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. * + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject26() throws Exception { + super.testSetObject26(); + } + + /* + * @testName: testSetObject27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Byte array object for SQL Type + * Binary and call statement.executeQuery method and call getObject method of + * ResultSet. It should return a Byte Array object that is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject27() throws Exception { + super.testSetObject27(); + } + + /* + * @testName: testSetObject28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Byte array object for SQL Type + * Varbinary and call statement.executeQuery method and call getObject method + * of ResultSet. It should return a Varbinary object that is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject28() throws Exception { + super.testSetObject28(); + } + + /* + * @testName: testSetObject29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:696; + * JDBC:JAVADOC:697; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database. execute the stored procedure and call the setObject(int + * parameterIndex, Object x) method to set Byte array object for SQL Type + * Longvarbinary and call statement.executeQuery method and call getObject + * method of ResultSet. It should return a Varbinary object that is been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject29() throws Exception { + super.testSetObject29(); + } + + /* + * @testName: testSetObject30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TINYINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject30() throws Exception { + super.testSetObject30(); + } + + /* + * @testName: testSetObject31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type TINYINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject31() throws Exception { + super.testSetObject31(); + } + + /* + * @testName: testSetObject32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject32() throws Exception { + super.testSetObject32(); + } + + /* + * @testName: testSetObject33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type SMALLINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject33() throws Exception { + super.testSetObject33(); + } + + /* + * @testName: testSetObject34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type INTEGER and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject34() throws Exception { + super.testSetObject34(); + } + + /* + * @testName: testSetObject35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type INTEGER and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Integer object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject35() throws Exception { + super.testSetObject35(); + } + + /* + * @testName: testSetObject36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIGINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject36() throws Exception { + super.testSetObject36(); + } + + /* + * @testName: testSetObject37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type BIGINT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Long object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject37() throws Exception { + super.testSetObject37(); + } + + /* + * @testName: testSetObject38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type REAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject38() throws Exception { + super.testSetObject38(); + } + + /* + * @testName: testSetObject39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type REAL and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Float object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject39() throws Exception { + super.testSetObject39(); + } + + + /* + * @testName: testSetObject40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a CallableStatement object from the connection to the + * database execute the stored procedure and call the setObject(int + * parameterIndex, Object x,int jdbcType) method to set String object for SQL + * Type FLOAT and call statement.executeQuery(String sql) method and call + * ResultSet.getObject(int column). It should return a Double object that is + * been set. Compare the result with the extracted value from the tssql.stmt + * file. Both the values should be equal. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject40() throws Exception { + super.testSetObject40(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/DataSourceConnection.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/DataSourceConnection.java index c1656a3012..298277f518 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/DataSourceConnection.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/DataSourceConnection.java @@ -47,7 +47,6 @@ public Connection getConnection(Properties p) TestUtil.logTrace("Looking up the JNDI DataSource names"); ds1 = (DataSource) jc.lookup("java:comp/env/jdbc/DB1"); TestUtil.logTrace("ds1: " + ds1.toString()); - TestUtil.logTrace("Attempting to make the connection"); con = ds1.getConnection(); TestUtil.logTrace("Made the connection via DataSource!"); diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/DriverManagerConnection.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/DriverManagerConnection.java index 7972f7d974..d6e54dbb4f 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/DriverManagerConnection.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/DriverManagerConnection.java @@ -52,7 +52,12 @@ public Connection getConnection(Properties p) TestUtil.logMsg("Successfully loaded the driver class"); TestUtil.logTrace("About to make the DB connection"); + try { con = DriverManager.getConnection(dbName, dbUser, dbPassword); + } catch (Exception e) { + e.printStackTrace(); + throw e; + } TestUtil.logMsg("Made the JDBC connection to the DB"); return con; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/build.xml deleted file mode 100644 index 87ac39205c..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/rsSchema.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/rsSchema.java index 5276bd7e0c..ad046a8def 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/rsSchema.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/common/rsSchema.java @@ -57,6 +57,7 @@ public void createTab(String sTableName, Properties sqlProps, Connection conn) dropTab(sTableName, conn); TestUtil.logTrace("deleted rows from table " + sTableName); } catch (Exception e) { + e.printStackTrace(); TestUtil.logErr("Exception encountered deleting rows from table: " + sTableName + ": " + e.getMessage(), e); } @@ -135,6 +136,7 @@ public void dropTab(String sTableName, Connection conn) stmt.executeUpdate(removeString); stmt.close(); } catch (SQLException e) { + e.printStackTrace(); TestUtil.printStackTrace(e); throw new RemoteException(e.getMessage()); diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/build.xml deleted file mode 100644 index 354fec427f..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/build.xml deleted file mode 100644 index 8f2b9a3f48..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1.java index e5560d4b93..30c9891bc9 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1.java @@ -30,8 +30,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -51,6 +55,11 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + + public class connectionClient1 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.connection.connection1"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1AppClient.java new file mode 100644 index 0000000000..0025e84e5e --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1AppClient.java @@ -0,0 +1,247 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)connectionClient1.java 1.22 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.connection.connection1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The connectionClient1 class tests methods of Connection interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class connectionClient1AppClient extends connectionClient1 implements Serializable { + private static final String testName = "jdbc.ee.connection.connection1"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "connection1_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(connectionClient1AppClient.class, connectionClient1.class); + // The appclient-client descriptor + URL appClientUrl = connectionClient1AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/connection/connection1/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = connectionClient1AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, connectionClient1AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "connection1_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + connectionClient1AppClient theTests = new connectionClient1AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testClose + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1157; JDBC:JAVADOC:1158; + * JDBC:JAVADOC:1159; JDBC:JAVADOC:1160; + * + * @test_Strategy: Get a Connection object and call close() method and call + * isClosed() method and it should return a true value + * + */ + @Test + @TargetVehicle("appclient") + public void testClose() throws Exception { + super.testClose(); + } + + /* + * @testName: testCreateStatement01 + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1141; JDBC:JAVADOC:1142; + * + * @test_Strategy: Get a Connection object and call createStatement() method + * and call instanceof to check It should return a Statement object + */ + @Test + @TargetVehicle("appclient") + public void testCreateStatement01() throws Exception { + super.testCreateStatement01(); + } + + /* + * @testName: testGetCatalog + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1169; JDBC:JAVADOC:1170; + * + * @test_Strategy: Get a Connection object and call getCatalog() method It + * should return a String value The getCatalogs() method in Databasemeta data + * object will return a Resultset object that contains the catalog name in the + * column TABLE_CAT .The String returned by Connection.getCatalog() method + * will be checked against these column values. + */ + @Test + @TargetVehicle("appclient") + public void testGetCatalog() throws Exception { + super.testGetCatalog(); + } + + /* + * @testName: testGetMetaData + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1161; JDBC:JAVADOC:1162; + * + * @test_Strategy: Get a Connection object and call getMetaData() method and + * call instanceof method to check It should return a DatabaseMetaData object + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMetaData() throws Exception { + super.testGetMetaData(); + } + + /* + * @testName: testGetTransactionIsolation + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1173; JDBC:JAVADOC:1174; + * JDBC:SPEC:16; JDBC:SPEC:15 + * + * @test_Strategy: Get a Connection object and call getTransactionIsolation() + * method It should return a Integer value and must be equal to the value of + * TRANSACTION_NONE or TRANSACTION_READ_COMMITTED or + * TRANSACTION_READ_UNCOMMITTED or TRANSACTION_REPEATABLE_READ or + * TRANSACTION_SERIALIZABLE which is default set by the driver + * + * + */ + @Test + @TargetVehicle("appclient") + public void testGetTransactionIsolation() throws Exception { + super.testGetTransactionIsolation(); + } + + /* + * @testName: testIsClosed01 + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1159; JDBC:JAVADOC:1160; + * + * @test_Strategy: Get a Connection object and call isClosed() method It + * should return a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("appclient") + public void testIsClosed01() throws Exception { + super.testIsClosed01(); + } + + /* + * @testName: testIsClosed02 + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1157; JDBC:JAVADOC:1158; + * JDBC:JAVADOC:1159; JDBC:JAVADOC:1160; + * + * @test_Strategy: Get a Connection object and call close() method and call + * isClosed() method It should return a boolean value and the value should be + * equal to true + * + */ + @Test + @TargetVehicle("appclient") + public void testIsClosed02() throws Exception { + super.testIsClosed02(); + } + + /* + * @testName: testIsReadOnly + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1165; JDBC:JAVADOC:1166; + * JDBC:JAVADOC:1163; JDBC:JAVADOC:1164; + * + * @test_Strategy: Get a Connection object and call setReadOnly(boolean b) + * method and call isReadOnly() method It should return a boolean value that + * is been set + * + */ + @Test + @TargetVehicle("appclient") + public void testIsReadOnly() throws Exception { + super.testIsReadOnly(); + } + + /* + * @testName: testNativeSQL + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1147; JDBC:JAVADOC:1148; + * + * @test_Strategy: Get a Connection object and call nativeSQL(String sql) + * method It should return a String value which represents native SQL grammar + * implementation of the SQL statement if the driver supports else it returns + * the actual SQL statement as a String.This is checked by using instanceof + * method + */ + @Test + @TargetVehicle("appclient") + public void testNativeSQL() throws Exception { + super.testNativeSQL(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1EJB.java new file mode 100644 index 0000000000..fe51da39ba --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1EJB.java @@ -0,0 +1,266 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)connectionClient1.java 1.22 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.connection.connection1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The connectionClient1 class tests methods of Connection interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class connectionClient1EJB extends connectionClient1 implements Serializable { + private static final String testName = "jdbc.ee.connection.connection1"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "connection1_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(connectionClient1EJB.class, connectionClient1.class); + + URL resURL = connectionClient1EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = connectionClient1EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/connection/connection1/connection1_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "connection1_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(connectionClient1EJB.class, connectionClient1.class); + + resURL = connectionClient1EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/connection/connection1/connection1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = connectionClient1EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/connection/connection1/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "connection1_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + connectionClient1EJB theTests = new connectionClient1EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testClose + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1157; JDBC:JAVADOC:1158; + * JDBC:JAVADOC:1159; JDBC:JAVADOC:1160; + * + * @test_Strategy: Get a Connection object and call close() method and call + * isClosed() method and it should return a true value + * + */ + @Test + @TargetVehicle("ejb") + public void testClose() throws Exception { + super.testClose(); + } + + /* + * @testName: testCreateStatement01 + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1141; JDBC:JAVADOC:1142; + * + * @test_Strategy: Get a Connection object and call createStatement() method + * and call instanceof to check It should return a Statement object + */ + @Test + @TargetVehicle("ejb") + public void testCreateStatement01() throws Exception { + super.testCreateStatement01(); + } + + /* + * @testName: testGetCatalog + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1169; JDBC:JAVADOC:1170; + * + * @test_Strategy: Get a Connection object and call getCatalog() method It + * should return a String value The getCatalogs() method in Databasemeta data + * object will return a Resultset object that contains the catalog name in the + * column TABLE_CAT .The String returned by Connection.getCatalog() method + * will be checked against these column values. + */ + @Test + @TargetVehicle("ejb") + public void testGetCatalog() throws Exception { + super.testGetCatalog(); + } + + /* + * @testName: testGetMetaData + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1161; JDBC:JAVADOC:1162; + * + * @test_Strategy: Get a Connection object and call getMetaData() method and + * call instanceof method to check It should return a DatabaseMetaData object + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMetaData() throws Exception { + super.testGetMetaData(); + } + + /* + * @testName: testGetTransactionIsolation + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1173; JDBC:JAVADOC:1174; + * JDBC:SPEC:16; JDBC:SPEC:15 + * + * @test_Strategy: Get a Connection object and call getTransactionIsolation() + * method It should return a Integer value and must be equal to the value of + * TRANSACTION_NONE or TRANSACTION_READ_COMMITTED or + * TRANSACTION_READ_UNCOMMITTED or TRANSACTION_REPEATABLE_READ or + * TRANSACTION_SERIALIZABLE which is default set by the driver + * + * + */ + @Test + @TargetVehicle("ejb") + public void testGetTransactionIsolation() throws Exception { + super.testGetTransactionIsolation(); + } + + /* + * @testName: testIsClosed01 + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1159; JDBC:JAVADOC:1160; + * + * @test_Strategy: Get a Connection object and call isClosed() method It + * should return a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("ejb") + public void testIsClosed01() throws Exception { + super.testIsClosed01(); + } + + /* + * @testName: testIsClosed02 + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1157; JDBC:JAVADOC:1158; + * JDBC:JAVADOC:1159; JDBC:JAVADOC:1160; + * + * @test_Strategy: Get a Connection object and call close() method and call + * isClosed() method It should return a boolean value and the value should be + * equal to true + * + */ + @Test + @TargetVehicle("ejb") + public void testIsClosed02() throws Exception { + super.testIsClosed02(); + } + + /* + * @testName: testIsReadOnly + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1165; JDBC:JAVADOC:1166; + * JDBC:JAVADOC:1163; JDBC:JAVADOC:1164; + * + * @test_Strategy: Get a Connection object and call setReadOnly(boolean b) + * method and call isReadOnly() method It should return a boolean value that + * is been set + * + */ + @Test + @TargetVehicle("ejb") + public void testIsReadOnly() throws Exception { + super.testIsReadOnly(); + } + + /* + * @testName: testNativeSQL + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1147; JDBC:JAVADOC:1148; + * + * @test_Strategy: Get a Connection object and call nativeSQL(String sql) + * method It should return a String value which represents native SQL grammar + * implementation of the SQL statement if the driver supports else it returns + * the actual SQL statement as a String.This is checked by using instanceof + * method + */ + @Test + @TargetVehicle("ejb") + public void testNativeSQL() throws Exception { + super.testNativeSQL(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1JSP.java new file mode 100644 index 0000000000..aa3841484f --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1JSP.java @@ -0,0 +1,251 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)connectionClient1.java 1.22 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.connection.connection1; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The connectionClient1 class tests methods of Connection interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class connectionClient1JSP extends connectionClient1 implements Serializable { + private static final String testName = "jdbc.ee.connection.connection1"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "connection1_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(connectionClient1JSP.class, connectionClient1.class); + + // The jsp descriptor + URL jspUrl = connectionClient1JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = connectionClient1JSP.class.getResource("connection1_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, connectionClient1JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(connectionClient1JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + connectionClient1JSP theTests = new connectionClient1JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testClose + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1157; JDBC:JAVADOC:1158; + * JDBC:JAVADOC:1159; JDBC:JAVADOC:1160; + * + * @test_Strategy: Get a Connection object and call close() method and call + * isClosed() method and it should return a true value + * + */ + @Test + @TargetVehicle("jsp") + public void testClose() throws Exception { + super.testClose(); + } + + /* + * @testName: testCreateStatement01 + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1141; JDBC:JAVADOC:1142; + * + * @test_Strategy: Get a Connection object and call createStatement() method + * and call instanceof to check It should return a Statement object + */ + @Test + @TargetVehicle("jsp") + public void testCreateStatement01() throws Exception { + super.testCreateStatement01(); + } + + /* + * @testName: testGetCatalog + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1169; JDBC:JAVADOC:1170; + * + * @test_Strategy: Get a Connection object and call getCatalog() method It + * should return a String value The getCatalogs() method in Databasemeta data + * object will return a Resultset object that contains the catalog name in the + * column TABLE_CAT .The String returned by Connection.getCatalog() method + * will be checked against these column values. + */ + @Test + @TargetVehicle("jsp") + public void testGetCatalog() throws Exception { + super.testGetCatalog(); + } + + /* + * @testName: testGetMetaData + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1161; JDBC:JAVADOC:1162; + * + * @test_Strategy: Get a Connection object and call getMetaData() method and + * call instanceof method to check It should return a DatabaseMetaData object + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMetaData() throws Exception { + super.testGetMetaData(); + } + + /* + * @testName: testGetTransactionIsolation + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1173; JDBC:JAVADOC:1174; + * JDBC:SPEC:16; JDBC:SPEC:15 + * + * @test_Strategy: Get a Connection object and call getTransactionIsolation() + * method It should return a Integer value and must be equal to the value of + * TRANSACTION_NONE or TRANSACTION_READ_COMMITTED or + * TRANSACTION_READ_UNCOMMITTED or TRANSACTION_REPEATABLE_READ or + * TRANSACTION_SERIALIZABLE which is default set by the driver + * + * + */ + @Test + @TargetVehicle("jsp") + public void testGetTransactionIsolation() throws Exception { + super.testGetTransactionIsolation(); + } + + /* + * @testName: testIsClosed01 + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1159; JDBC:JAVADOC:1160; + * + * @test_Strategy: Get a Connection object and call isClosed() method It + * should return a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("jsp") + public void testIsClosed01() throws Exception { + super.testIsClosed01(); + } + + /* + * @testName: testIsClosed02 + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1157; JDBC:JAVADOC:1158; + * JDBC:JAVADOC:1159; JDBC:JAVADOC:1160; + * + * @test_Strategy: Get a Connection object and call close() method and call + * isClosed() method It should return a boolean value and the value should be + * equal to true + * + */ + @Test + @TargetVehicle("jsp") + public void testIsClosed02() throws Exception { + super.testIsClosed02(); + } + + /* + * @testName: testIsReadOnly + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1165; JDBC:JAVADOC:1166; + * JDBC:JAVADOC:1163; JDBC:JAVADOC:1164; + * + * @test_Strategy: Get a Connection object and call setReadOnly(boolean b) + * method and call isReadOnly() method It should return a boolean value that + * is been set + * + */ + @Test + @TargetVehicle("jsp") + public void testIsReadOnly() throws Exception { + super.testIsReadOnly(); + } + + /* + * @testName: testNativeSQL + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1147; JDBC:JAVADOC:1148; + * + * @test_Strategy: Get a Connection object and call nativeSQL(String sql) + * method It should return a String value which represents native SQL grammar + * implementation of the SQL statement if the driver supports else it returns + * the actual SQL statement as a String.This is checked by using instanceof + * method + */ + @Test + @TargetVehicle("jsp") + public void testNativeSQL() throws Exception { + super.testNativeSQL(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1Servlet.java new file mode 100644 index 0000000000..a5e43ec089 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/connection/connection1/connectionClient1Servlet.java @@ -0,0 +1,239 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)connectionClient1.java 1.22 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.connection.connection1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The connectionClient1 class tests methods of Connection interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class connectionClient1Servlet extends connectionClient1 implements Serializable { + private static final String testName = "jdbc.ee.connection.connection1"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "connection1_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(connectionClient1Servlet.class, connectionClient1.class); + // The servlet descriptor +URL servletUrl = connectionClient1Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = connectionClient1Servlet.class.getResource("connection1_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, connectionClient1Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + connectionClient1Servlet theTests = new connectionClient1Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testClose + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1157; JDBC:JAVADOC:1158; + * JDBC:JAVADOC:1159; JDBC:JAVADOC:1160; + * + * @test_Strategy: Get a Connection object and call close() method and call + * isClosed() method and it should return a true value + * + */ + @Test + @TargetVehicle("servlet") + public void testClose() throws Exception { + super.testClose(); + } + + /* + * @testName: testCreateStatement01 + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1141; JDBC:JAVADOC:1142; + * + * @test_Strategy: Get a Connection object and call createStatement() method + * and call instanceof to check It should return a Statement object + */ + @Test + @TargetVehicle("servlet") + public void testCreateStatement01() throws Exception { + super.testCreateStatement01(); + } + + /* + * @testName: testGetCatalog + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1169; JDBC:JAVADOC:1170; + * + * @test_Strategy: Get a Connection object and call getCatalog() method It + * should return a String value The getCatalogs() method in Databasemeta data + * object will return a Resultset object that contains the catalog name in the + * column TABLE_CAT .The String returned by Connection.getCatalog() method + * will be checked against these column values. + */ + @Test + @TargetVehicle("servlet") + public void testGetCatalog() throws Exception { + super.testGetCatalog(); + } + + /* + * @testName: testGetMetaData + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1161; JDBC:JAVADOC:1162; + * + * @test_Strategy: Get a Connection object and call getMetaData() method and + * call instanceof method to check It should return a DatabaseMetaData object + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMetaData() throws Exception { + super.testGetMetaData(); + } + + /* + * @testName: testGetTransactionIsolation + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1173; JDBC:JAVADOC:1174; + * JDBC:SPEC:16; JDBC:SPEC:15 + * + * @test_Strategy: Get a Connection object and call getTransactionIsolation() + * method It should return a Integer value and must be equal to the value of + * TRANSACTION_NONE or TRANSACTION_READ_COMMITTED or + * TRANSACTION_READ_UNCOMMITTED or TRANSACTION_REPEATABLE_READ or + * TRANSACTION_SERIALIZABLE which is default set by the driver + * + * + */ + @Test + @TargetVehicle("servlet") + public void testGetTransactionIsolation() throws Exception { + super.testGetTransactionIsolation(); + } + + /* + * @testName: testIsClosed01 + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1159; JDBC:JAVADOC:1160; + * + * @test_Strategy: Get a Connection object and call isClosed() method It + * should return a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("servlet") + public void testIsClosed01() throws Exception { + super.testIsClosed01(); + } + + /* + * @testName: testIsClosed02 + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1157; JDBC:JAVADOC:1158; + * JDBC:JAVADOC:1159; JDBC:JAVADOC:1160; + * + * @test_Strategy: Get a Connection object and call close() method and call + * isClosed() method It should return a boolean value and the value should be + * equal to true + * + */ + @Test + @TargetVehicle("servlet") + public void testIsClosed02() throws Exception { + super.testIsClosed02(); + } + + /* + * @testName: testIsReadOnly + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1165; JDBC:JAVADOC:1166; + * JDBC:JAVADOC:1163; JDBC:JAVADOC:1164; + * + * @test_Strategy: Get a Connection object and call setReadOnly(boolean b) + * method and call isReadOnly() method It should return a boolean value that + * is been set + * + */ + @Test + @TargetVehicle("servlet") + public void testIsReadOnly() throws Exception { + super.testIsReadOnly(); + } + + /* + * @testName: testNativeSQL + * + * @assertion_ids: JavaEE:SPEC:179; JDBC:JAVADOC:1147; JDBC:JAVADOC:1148; + * + * @test_Strategy: Get a Connection object and call nativeSQL(String sql) + * method It should return a String value which represents native SQL grammar + * implementation of the SQL statement if the driver supports else it returns + * the actual SQL statement as a String.This is checked by using instanceof + * method + */ + @Test + @TargetVehicle("servlet") + public void testNativeSQL() throws Exception { + super.testNativeSQL(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/build.xml deleted file mode 100644 index 7301030182..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/build.xml deleted file mode 100644 index 02f9a47178..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1.java index 99b87344ca..e792b5c580 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1.java @@ -30,8 +30,12 @@ import java.util.Properties; import java.util.TimeZone; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.JDBCTestMsg; @@ -46,6 +50,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class dateTimeClient1 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dateTime.dateTime1"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1AppClient.java new file mode 100644 index 0000000000..1d7817271a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1AppClient.java @@ -0,0 +1,442 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dateTimeClient1.java 1.18 03/05/16 + */ + +/* + * @(#)dateTimeClient1.java 1.16 02/08/27 + */ + +package com.sun.ts.tests.jdbc.ee.dateTime.dateTime1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dateTimeClient1 class tests methods of Timestamp class using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dateTimeClient1AppClient extends dateTimeClient1 implements Serializable { + private static final String testName = "jdbc.ee.dateTime.dateTime1"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dateTime1_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dateTimeClient1AppClient.class, dateTimeClient1.class); + // The appclient-client descriptor + URL appClientUrl = dateTimeClient1AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dateTimeClient1AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dateTimeClient1AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dateTime1_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dateTimeClient1AppClient theTests = new dateTimeClient1AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testTimestamp01 + * + * @assertion_ids: JDBC:JAVADOC:32; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. Check whether + * it is same as equivalent String Value in the property file. + */ + @Test + @TargetVehicle("appclient") + public void testTimestamp01() throws Exception { + super.testTimestamp01(); + } + + /* + * @testName: testTimestamp02 + * + * @assertion_ids: JDBC:JAVADOC:32; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. Check whether + * it is same as equivalent String Value in the property file. + */ + @Test + @TargetVehicle("appclient") + public void testTimestamp02() throws Exception { + super.testTimestamp02(); + } + + /* + * @testName: testSetNanos01 + * + * @assertion_ids: JDBC:JAVADOC:38; + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * and call getNanos() to check and it should return an Integer value that is + * been set + */ + @Test + @TargetVehicle("appclient") + public void testSetNanos01() throws Exception { + super.testSetNanos01(); + } + + /* + * @testName: testSetNanos02 + * + * @assertion_ids: JDBC:JAVADOC:38; JDBC:JAVADOC:37; + * + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * and call getNanos() to check and it should return an Integer value that is + * been set + */ + @Test + @TargetVehicle("appclient") + public void testSetNanos02() throws Exception { + super.testSetNanos02(); + } + + /* + * @testName: testSetNanos03 + * + * @assertion_ids: JDBC:JAVADOC:38; + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * with the invalid value of argument and it should throw + * IllegalArgumentException + */ + @Test + @TargetVehicle("appclient") + public void testSetNanos03() throws Exception { + super.testSetNanos03(); + } + + /* + * @testName: testSetNanos04 + * + * @assertion_ids: JDBC:JAVADOC:38; + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * with an invalid value as argument and it should throw + * IllegalArgumentException + */ + @Test + @TargetVehicle("appclient") + public void testSetNanos04() throws Exception { + super.testSetNanos04(); + } + + /* + * @testName: testGetNanos + * + * @assertion_ids: JDBC:JAVADOC:37; + * + * @test_Strategy: Get a Timestamp object and call the getNanos() method. It + * should return an Integer value. + */ + @Test + @TargetVehicle("appclient") + public void testGetNanos() throws Exception { + super.testGetNanos(); + } + + /* + * @testName: testToString01 + * + * @assertion_ids: JDBC:JAVADOC:36; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. using the + * toString() method.Check whether it is same as equivalent String Value in + * property file. + */ + @Test + @TargetVehicle("appclient") + public void testToString01() throws Exception { + super.testToString01(); + } + + /* + * @testName: testToString02 + * + * @assertion_ids: JDBC:JAVADOC:36; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. using the + * toString() method.Check whether it is same as equivalent String Value in + * property file. + * + */ + @Test + @TargetVehicle("appclient") + public void testToString02() throws Exception { + super.testToString02(); + } + + /* + * @testName: testAfter01 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is after than the Timestamp It should return a + * boolean value and the value should be equal to true + */ + @Test + @TargetVehicle("appclient") + public void testAfter01() throws Exception { + super.testAfter01(); + } + + /* + * @testName: testAfter02 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is not after than the Timestamp It should + * return a boolean value and the value should be equal to false + */ + @Test + @TargetVehicle("appclient") + public void testAfter02() throws Exception { + super.testAfter02(); + } + + /* + * @testName: testAfter03 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is after than the Timestamp in Nano second + * level It should return a boolean value and the value should be equal to + * true + */ + @Test + @TargetVehicle("appclient") + public void testAfter03() throws Exception { + super.testAfter03(); + } + + /* + * @testName: testAfter04 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is not after than the Timestamp with Nano + * seconds level It should return a boolean value and the value should be + * equal to false + */ + @Test + @TargetVehicle("appclient") + public void testAfter04() throws Exception { + super.testAfter04(); + } + + /* + * @testName: testBefore01 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is before than the Timestamp It should return a + * boolean value and the value should be equal to true + */ + @Test + @TargetVehicle("appclient") + public void testBefore01() throws Exception { + super.testBefore01(); + } + + /* + * @testName: testBefore02 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is not before than the Timestamp It should + * return a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("appclient") + public void testBefore02() throws Exception { + super.testBefore02(); + } + + /* + * @testName: testBefore03 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is before than the Timestamp in Nano second + * level It should return a boolean value and the value should be equal to + * true. + * + */ + @Test + @TargetVehicle("appclient") + public void testBefore03() throws Exception { + super.testBefore03(); + } + + /* + * @testName: testBefore04 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is not before than the Timestamp with Nano + * seconds level It should return a boolean value and the value should be + * equal to false + */ + @Test + @TargetVehicle("appclient") + public void testBefore04() throws Exception { + super.testBefore04(); + } + + /* + * @testName: testEqualsTimestamp01 + * + * @assertion_ids: JDBC:JAVADOC:39; + * + * @test_Strategy: Get a Timestamp object and call the equals(Timestamp ts) + * method with equal value of Timestamp It should return a boolean value and + * the value should be equal to true + */ + @Test + @TargetVehicle("appclient") + public void testEqualsTimestamp01() throws Exception { + super.testEqualsTimestamp01(); + } + + /* + * @testName: testEqualsObject01 + * + * @assertion_ids: JDBC:JAVADOC:40; + * + * @test_Strategy: Get a Timestamp object and call the equals(Object obj) + * method with equal value of Timestamp It should return a boolean value and + * the value should be equal to true + */ + @Test + @TargetVehicle("appclient") + public void testEqualsObject01() throws Exception { + super.testEqualsObject01(); + } + + /* + * @testName: testEqualsObject02 + * + * @assertion_ids: JDBC:JAVADOC:40; + * + * @test_Strategy: Get a Timestamp object and call the equals(Object obj) + * method with equal value of Timestamp in Nano seconds level It should return + * a boolean value and the value should be equal to true + */ + @Test + @TargetVehicle("appclient") + public void testEqualsObject02() throws Exception { + super.testEqualsObject02(); + } + + /* + * @testName: testValueOf01 + * + * @assertion_ids: JDBC:JAVADOC:35; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Timestamp + * class with a String argument to get a Timestamp object Check whether it is + * same as Timestamp object obtained from equivalent long value . + */ + @Test + @TargetVehicle("appclient") + public void testValueOf01() throws Exception { + super.testValueOf01(); + } + + /* + * @testName: testValueOf02 + * + * @assertion_ids: JDBC:JAVADOC:35; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Timestamp + * class with a String argument to get a Timestamp object Check whether it is + * same as Timestamp object obtained from equivalent long value . + */ + @Test + @TargetVehicle("appclient") + public void testValueOf02() throws Exception { + super.testValueOf02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1EJB.java new file mode 100644 index 0000000000..007ec3af7b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1EJB.java @@ -0,0 +1,461 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dateTimeClient1.java 1.18 03/05/16 + */ + +/* + * @(#)dateTimeClient1.java 1.16 02/08/27 + */ + +package com.sun.ts.tests.jdbc.ee.dateTime.dateTime1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dateTimeClient1 class tests methods of Timestamp class using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dateTimeClient1EJB extends dateTimeClient1 implements Serializable { + private static final String testName = "jdbc.ee.dateTime.dateTime1"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dateTime1_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dateTimeClient1EJB.class, dateTimeClient1.class); + + URL resURL = dateTimeClient1EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dateTimeClient1EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTime1_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dateTime1_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dateTimeClient1EJB.class, dateTimeClient1.class); + + resURL = dateTimeClient1EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTime1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dateTimeClient1EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dateTime1_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dateTimeClient1EJB theTests = new dateTimeClient1EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testTimestamp01 + * + * @assertion_ids: JDBC:JAVADOC:32; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. Check whether + * it is same as equivalent String Value in the property file. + */ + @Test + @TargetVehicle("ejb") + public void testTimestamp01() throws Exception { + super.testTimestamp01(); + } + + /* + * @testName: testTimestamp02 + * + * @assertion_ids: JDBC:JAVADOC:32; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. Check whether + * it is same as equivalent String Value in the property file. + */ + @Test + @TargetVehicle("ejb") + public void testTimestamp02() throws Exception { + super.testTimestamp02(); + } + + /* + * @testName: testSetNanos01 + * + * @assertion_ids: JDBC:JAVADOC:38; + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * and call getNanos() to check and it should return an Integer value that is + * been set + */ + @Test + @TargetVehicle("ejb") + public void testSetNanos01() throws Exception { + super.testSetNanos01(); + } + + /* + * @testName: testSetNanos02 + * + * @assertion_ids: JDBC:JAVADOC:38; JDBC:JAVADOC:37; + * + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * and call getNanos() to check and it should return an Integer value that is + * been set + */ + @Test + @TargetVehicle("ejb") + public void testSetNanos02() throws Exception { + super.testSetNanos02(); + } + + /* + * @testName: testSetNanos03 + * + * @assertion_ids: JDBC:JAVADOC:38; + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * with the invalid value of argument and it should throw + * IllegalArgumentException + */ + @Test + @TargetVehicle("ejb") + public void testSetNanos03() throws Exception { + super.testSetNanos03(); + } + + /* + * @testName: testSetNanos04 + * + * @assertion_ids: JDBC:JAVADOC:38; + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * with an invalid value as argument and it should throw + * IllegalArgumentException + */ + @Test + @TargetVehicle("ejb") + public void testSetNanos04() throws Exception { + super.testSetNanos04(); + } + + /* + * @testName: testGetNanos + * + * @assertion_ids: JDBC:JAVADOC:37; + * + * @test_Strategy: Get a Timestamp object and call the getNanos() method. It + * should return an Integer value. + */ + @Test + @TargetVehicle("ejb") + public void testGetNanos() throws Exception { + super.testGetNanos(); + } + + /* + * @testName: testToString01 + * + * @assertion_ids: JDBC:JAVADOC:36; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. using the + * toString() method.Check whether it is same as equivalent String Value in + * property file. + */ + @Test + @TargetVehicle("ejb") + public void testToString01() throws Exception { + super.testToString01(); + } + + /* + * @testName: testToString02 + * + * @assertion_ids: JDBC:JAVADOC:36; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. using the + * toString() method.Check whether it is same as equivalent String Value in + * property file. + * + */ + @Test + @TargetVehicle("ejb") + public void testToString02() throws Exception { + super.testToString02(); + } + + /* + * @testName: testAfter01 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is after than the Timestamp It should return a + * boolean value and the value should be equal to true + */ + @Test + @TargetVehicle("ejb") + public void testAfter01() throws Exception { + super.testAfter01(); + } + + /* + * @testName: testAfter02 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is not after than the Timestamp It should + * return a boolean value and the value should be equal to false + */ + @Test + @TargetVehicle("ejb") + public void testAfter02() throws Exception { + super.testAfter02(); + } + + /* + * @testName: testAfter03 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is after than the Timestamp in Nano second + * level It should return a boolean value and the value should be equal to + * true + */ + @Test + @TargetVehicle("ejb") + public void testAfter03() throws Exception { + super.testAfter03(); + } + + /* + * @testName: testAfter04 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is not after than the Timestamp with Nano + * seconds level It should return a boolean value and the value should be + * equal to false + */ + @Test + @TargetVehicle("ejb") + public void testAfter04() throws Exception { + super.testAfter04(); + } + + /* + * @testName: testBefore01 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is before than the Timestamp It should return a + * boolean value and the value should be equal to true + */ + @Test + @TargetVehicle("ejb") + public void testBefore01() throws Exception { + super.testBefore01(); + } + + /* + * @testName: testBefore02 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is not before than the Timestamp It should + * return a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("ejb") + public void testBefore02() throws Exception { + super.testBefore02(); + } + + /* + * @testName: testBefore03 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is before than the Timestamp in Nano second + * level It should return a boolean value and the value should be equal to + * true. + * + */ + @Test + @TargetVehicle("ejb") + public void testBefore03() throws Exception { + super.testBefore03(); + } + + /* + * @testName: testBefore04 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is not before than the Timestamp with Nano + * seconds level It should return a boolean value and the value should be + * equal to false + */ + @Test + @TargetVehicle("ejb") + public void testBefore04() throws Exception { + super.testBefore04(); + } + + /* + * @testName: testEqualsTimestamp01 + * + * @assertion_ids: JDBC:JAVADOC:39; + * + * @test_Strategy: Get a Timestamp object and call the equals(Timestamp ts) + * method with equal value of Timestamp It should return a boolean value and + * the value should be equal to true + */ + @Test + @TargetVehicle("ejb") + public void testEqualsTimestamp01() throws Exception { + super.testEqualsTimestamp01(); + } + + /* + * @testName: testEqualsObject01 + * + * @assertion_ids: JDBC:JAVADOC:40; + * + * @test_Strategy: Get a Timestamp object and call the equals(Object obj) + * method with equal value of Timestamp It should return a boolean value and + * the value should be equal to true + */ + @Test + @TargetVehicle("ejb") + public void testEqualsObject01() throws Exception { + super.testEqualsObject01(); + } + + /* + * @testName: testEqualsObject02 + * + * @assertion_ids: JDBC:JAVADOC:40; + * + * @test_Strategy: Get a Timestamp object and call the equals(Object obj) + * method with equal value of Timestamp in Nano seconds level It should return + * a boolean value and the value should be equal to true + */ + @Test + @TargetVehicle("ejb") + public void testEqualsObject02() throws Exception { + super.testEqualsObject02(); + } + + /* + * @testName: testValueOf01 + * + * @assertion_ids: JDBC:JAVADOC:35; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Timestamp + * class with a String argument to get a Timestamp object Check whether it is + * same as Timestamp object obtained from equivalent long value . + */ + @Test + @TargetVehicle("ejb") + public void testValueOf01() throws Exception { + super.testValueOf01(); + } + + /* + * @testName: testValueOf02 + * + * @assertion_ids: JDBC:JAVADOC:35; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Timestamp + * class with a String argument to get a Timestamp object Check whether it is + * same as Timestamp object obtained from equivalent long value . + */ + @Test + @TargetVehicle("ejb") + public void testValueOf02() throws Exception { + super.testValueOf02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1JSP.java new file mode 100644 index 0000000000..658eca42b5 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1JSP.java @@ -0,0 +1,446 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dateTimeClient1.java 1.18 03/05/16 + */ + +/* + * @(#)dateTimeClient1.java 1.16 02/08/27 + */ + +package com.sun.ts.tests.jdbc.ee.dateTime.dateTime1; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dateTimeClient1 class tests methods of Timestamp class using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dateTimeClient1JSP extends dateTimeClient1 implements Serializable { + private static final String testName = "jdbc.ee.dateTime.dateTime1"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dateTime1_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(dateTimeClient1JSP.class, dateTimeClient1.class); + + // The jsp descriptor + URL jspUrl = dateTimeClient1JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dateTimeClient1JSP.class.getResource("dateTime1_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, dateTimeClient1JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(dateTimeClient1JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dateTimeClient1JSP theTests = new dateTimeClient1JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testTimestamp01 + * + * @assertion_ids: JDBC:JAVADOC:32; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. Check whether + * it is same as equivalent String Value in the property file. + */ + @Test + @TargetVehicle("jsp") + public void testTimestamp01() throws Exception { + super.testTimestamp01(); + } + + /* + * @testName: testTimestamp02 + * + * @assertion_ids: JDBC:JAVADOC:32; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. Check whether + * it is same as equivalent String Value in the property file. + */ + @Test + @TargetVehicle("jsp") + public void testTimestamp02() throws Exception { + super.testTimestamp02(); + } + + /* + * @testName: testSetNanos01 + * + * @assertion_ids: JDBC:JAVADOC:38; + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * and call getNanos() to check and it should return an Integer value that is + * been set + */ + @Test + @TargetVehicle("jsp") + public void testSetNanos01() throws Exception { + super.testSetNanos01(); + } + + /* + * @testName: testSetNanos02 + * + * @assertion_ids: JDBC:JAVADOC:38; JDBC:JAVADOC:37; + * + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * and call getNanos() to check and it should return an Integer value that is + * been set + */ + @Test + @TargetVehicle("jsp") + public void testSetNanos02() throws Exception { + super.testSetNanos02(); + } + + /* + * @testName: testSetNanos03 + * + * @assertion_ids: JDBC:JAVADOC:38; + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * with the invalid value of argument and it should throw + * IllegalArgumentException + */ + @Test + @TargetVehicle("jsp") + public void testSetNanos03() throws Exception { + super.testSetNanos03(); + } + + /* + * @testName: testSetNanos04 + * + * @assertion_ids: JDBC:JAVADOC:38; + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * with an invalid value as argument and it should throw + * IllegalArgumentException + */ + @Test + @TargetVehicle("jsp") + public void testSetNanos04() throws Exception { + super.testSetNanos04(); + } + + /* + * @testName: testGetNanos + * + * @assertion_ids: JDBC:JAVADOC:37; + * + * @test_Strategy: Get a Timestamp object and call the getNanos() method. It + * should return an Integer value. + */ + @Test + @TargetVehicle("jsp") + public void testGetNanos() throws Exception { + super.testGetNanos(); + } + + /* + * @testName: testToString01 + * + * @assertion_ids: JDBC:JAVADOC:36; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. using the + * toString() method.Check whether it is same as equivalent String Value in + * property file. + */ + @Test + @TargetVehicle("jsp") + public void testToString01() throws Exception { + super.testToString01(); + } + + /* + * @testName: testToString02 + * + * @assertion_ids: JDBC:JAVADOC:36; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. using the + * toString() method.Check whether it is same as equivalent String Value in + * property file. + * + */ + @Test + @TargetVehicle("jsp") + public void testToString02() throws Exception { + super.testToString02(); + } + + /* + * @testName: testAfter01 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is after than the Timestamp It should return a + * boolean value and the value should be equal to true + */ + @Test + @TargetVehicle("jsp") + public void testAfter01() throws Exception { + super.testAfter01(); + } + + /* + * @testName: testAfter02 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is not after than the Timestamp It should + * return a boolean value and the value should be equal to false + */ + @Test + @TargetVehicle("jsp") + public void testAfter02() throws Exception { + super.testAfter02(); + } + + /* + * @testName: testAfter03 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is after than the Timestamp in Nano second + * level It should return a boolean value and the value should be equal to + * true + */ + @Test + @TargetVehicle("jsp") + public void testAfter03() throws Exception { + super.testAfter03(); + } + + /* + * @testName: testAfter04 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is not after than the Timestamp with Nano + * seconds level It should return a boolean value and the value should be + * equal to false + */ + @Test + @TargetVehicle("jsp") + public void testAfter04() throws Exception { + super.testAfter04(); + } + + /* + * @testName: testBefore01 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is before than the Timestamp It should return a + * boolean value and the value should be equal to true + */ + @Test + @TargetVehicle("jsp") + public void testBefore01() throws Exception { + super.testBefore01(); + } + + /* + * @testName: testBefore02 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is not before than the Timestamp It should + * return a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("jsp") + public void testBefore02() throws Exception { + super.testBefore02(); + } + + /* + * @testName: testBefore03 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is before than the Timestamp in Nano second + * level It should return a boolean value and the value should be equal to + * true. + * + */ + @Test + @TargetVehicle("jsp") + public void testBefore03() throws Exception { + super.testBefore03(); + } + + /* + * @testName: testBefore04 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is not before than the Timestamp with Nano + * seconds level It should return a boolean value and the value should be + * equal to false + */ + @Test + @TargetVehicle("jsp") + public void testBefore04() throws Exception { + super.testBefore04(); + } + + /* + * @testName: testEqualsTimestamp01 + * + * @assertion_ids: JDBC:JAVADOC:39; + * + * @test_Strategy: Get a Timestamp object and call the equals(Timestamp ts) + * method with equal value of Timestamp It should return a boolean value and + * the value should be equal to true + */ + @Test + @TargetVehicle("jsp") + public void testEqualsTimestamp01() throws Exception { + super.testEqualsTimestamp01(); + } + + /* + * @testName: testEqualsObject01 + * + * @assertion_ids: JDBC:JAVADOC:40; + * + * @test_Strategy: Get a Timestamp object and call the equals(Object obj) + * method with equal value of Timestamp It should return a boolean value and + * the value should be equal to true + */ + @Test + @TargetVehicle("jsp") + public void testEqualsObject01() throws Exception { + super.testEqualsObject01(); + } + + /* + * @testName: testEqualsObject02 + * + * @assertion_ids: JDBC:JAVADOC:40; + * + * @test_Strategy: Get a Timestamp object and call the equals(Object obj) + * method with equal value of Timestamp in Nano seconds level It should return + * a boolean value and the value should be equal to true + */ + @Test + @TargetVehicle("jsp") + public void testEqualsObject02() throws Exception { + super.testEqualsObject02(); + } + + /* + * @testName: testValueOf01 + * + * @assertion_ids: JDBC:JAVADOC:35; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Timestamp + * class with a String argument to get a Timestamp object Check whether it is + * same as Timestamp object obtained from equivalent long value . + */ + @Test + @TargetVehicle("jsp") + public void testValueOf01() throws Exception { + super.testValueOf01(); + } + + /* + * @testName: testValueOf02 + * + * @assertion_ids: JDBC:JAVADOC:35; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Timestamp + * class with a String argument to get a Timestamp object Check whether it is + * same as Timestamp object obtained from equivalent long value . + */ + @Test + @TargetVehicle("jsp") + public void testValueOf02() throws Exception { + super.testValueOf02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1Servlet.java new file mode 100644 index 0000000000..fcda5a6a19 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime1/dateTimeClient1Servlet.java @@ -0,0 +1,434 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dateTimeClient1.java 1.18 03/05/16 + */ + +/* + * @(#)dateTimeClient1.java 1.16 02/08/27 + */ + +package com.sun.ts.tests.jdbc.ee.dateTime.dateTime1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dateTimeClient1 class tests methods of Timestamp class using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dateTimeClient1Servlet extends dateTimeClient1 implements Serializable { + private static final String testName = "jdbc.ee.dateTime.dateTime1"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dateTime1_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dateTimeClient1Servlet.class, dateTimeClient1.class); + // The servlet descriptor +URL servletUrl = dateTimeClient1Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dateTimeClient1Servlet.class.getResource("dateTime1_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dateTimeClient1Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dateTimeClient1Servlet theTests = new dateTimeClient1Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testTimestamp01 + * + * @assertion_ids: JDBC:JAVADOC:32; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. Check whether + * it is same as equivalent String Value in the property file. + */ + @Test + @TargetVehicle("servlet") + public void testTimestamp01() throws Exception { + super.testTimestamp01(); + } + + /* + * @testName: testTimestamp02 + * + * @assertion_ids: JDBC:JAVADOC:32; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. Check whether + * it is same as equivalent String Value in the property file. + */ + @Test + @TargetVehicle("servlet") + public void testTimestamp02() throws Exception { + super.testTimestamp02(); + } + + /* + * @testName: testSetNanos01 + * + * @assertion_ids: JDBC:JAVADOC:38; + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * and call getNanos() to check and it should return an Integer value that is + * been set + */ + @Test + @TargetVehicle("servlet") + public void testSetNanos01() throws Exception { + super.testSetNanos01(); + } + + /* + * @testName: testSetNanos02 + * + * @assertion_ids: JDBC:JAVADOC:38; JDBC:JAVADOC:37; + * + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * and call getNanos() to check and it should return an Integer value that is + * been set + */ + @Test + @TargetVehicle("servlet") + public void testSetNanos02() throws Exception { + super.testSetNanos02(); + } + + /* + * @testName: testSetNanos03 + * + * @assertion_ids: JDBC:JAVADOC:38; + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * with the invalid value of argument and it should throw + * IllegalArgumentException + */ + @Test + @TargetVehicle("servlet") + public void testSetNanos03() throws Exception { + super.testSetNanos03(); + } + + /* + * @testName: testSetNanos04 + * + * @assertion_ids: JDBC:JAVADOC:38; + * + * @test_Strategy: Get a Timestamp object and call the setNanos(int n) method + * with an invalid value as argument and it should throw + * IllegalArgumentException + */ + @Test + @TargetVehicle("servlet") + public void testSetNanos04() throws Exception { + super.testSetNanos04(); + } + + /* + * @testName: testGetNanos + * + * @assertion_ids: JDBC:JAVADOC:37; + * + * @test_Strategy: Get a Timestamp object and call the getNanos() method. It + * should return an Integer value. + */ + @Test + @TargetVehicle("servlet") + public void testGetNanos() throws Exception { + super.testGetNanos(); + } + + /* + * @testName: testToString01 + * + * @assertion_ids: JDBC:JAVADOC:36; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. using the + * toString() method.Check whether it is same as equivalent String Value in + * property file. + */ + @Test + @TargetVehicle("servlet") + public void testToString01() throws Exception { + super.testToString01(); + } + + /* + * @testName: testToString02 + * + * @assertion_ids: JDBC:JAVADOC:36; + * + * @test_Strategy: Create a Timestamp Object with a long value as an argument. + * Then get the String representation of that Timestamp object. using the + * toString() method.Check whether it is same as equivalent String Value in + * property file. + * + */ + @Test + @TargetVehicle("servlet") + public void testToString02() throws Exception { + super.testToString02(); + } + + /* + * @testName: testAfter01 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is after than the Timestamp It should return a + * boolean value and the value should be equal to true + */ + @Test + @TargetVehicle("servlet") + public void testAfter01() throws Exception { + super.testAfter01(); + } + + /* + * @testName: testAfter02 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is not after than the Timestamp It should + * return a boolean value and the value should be equal to false + */ + @Test + @TargetVehicle("servlet") + public void testAfter02() throws Exception { + super.testAfter02(); + } + + /* + * @testName: testAfter03 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is after than the Timestamp in Nano second + * level It should return a boolean value and the value should be equal to + * true + */ + @Test + @TargetVehicle("servlet") + public void testAfter03() throws Exception { + super.testAfter03(); + } + + /* + * @testName: testAfter04 + * + * @assertion_ids: JDBC:JAVADOC:42; + * + * @test_Strategy: Get a Timestamp object and call the after(Timestamp ts) + * method with the value of ts is not after than the Timestamp with Nano + * seconds level It should return a boolean value and the value should be + * equal to false + */ + @Test + @TargetVehicle("servlet") + public void testAfter04() throws Exception { + super.testAfter04(); + } + + /* + * @testName: testBefore01 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is before than the Timestamp It should return a + * boolean value and the value should be equal to true + */ + @Test + @TargetVehicle("servlet") + public void testBefore01() throws Exception { + super.testBefore01(); + } + + /* + * @testName: testBefore02 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is not before than the Timestamp It should + * return a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("servlet") + public void testBefore02() throws Exception { + super.testBefore02(); + } + + /* + * @testName: testBefore03 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is before than the Timestamp in Nano second + * level It should return a boolean value and the value should be equal to + * true. + * + */ + @Test + @TargetVehicle("servlet") + public void testBefore03() throws Exception { + super.testBefore03(); + } + + /* + * @testName: testBefore04 + * + * @assertion_ids: JDBC:JAVADOC:41; + * + * @test_Strategy: Get a Timestamp object and call the before(Timestamp ts) + * method with the value of ts is not before than the Timestamp with Nano + * seconds level It should return a boolean value and the value should be + * equal to false + */ + @Test + @TargetVehicle("servlet") + public void testBefore04() throws Exception { + super.testBefore04(); + } + + /* + * @testName: testEqualsTimestamp01 + * + * @assertion_ids: JDBC:JAVADOC:39; + * + * @test_Strategy: Get a Timestamp object and call the equals(Timestamp ts) + * method with equal value of Timestamp It should return a boolean value and + * the value should be equal to true + */ + @Test + @TargetVehicle("servlet") + public void testEqualsTimestamp01() throws Exception { + super.testEqualsTimestamp01(); + } + + /* + * @testName: testEqualsObject01 + * + * @assertion_ids: JDBC:JAVADOC:40; + * + * @test_Strategy: Get a Timestamp object and call the equals(Object obj) + * method with equal value of Timestamp It should return a boolean value and + * the value should be equal to true + */ + @Test + @TargetVehicle("servlet") + public void testEqualsObject01() throws Exception { + super.testEqualsObject01(); + } + + /* + * @testName: testEqualsObject02 + * + * @assertion_ids: JDBC:JAVADOC:40; + * + * @test_Strategy: Get a Timestamp object and call the equals(Object obj) + * method with equal value of Timestamp in Nano seconds level It should return + * a boolean value and the value should be equal to true + */ + @Test + @TargetVehicle("servlet") + public void testEqualsObject02() throws Exception { + super.testEqualsObject02(); + } + + /* + * @testName: testValueOf01 + * + * @assertion_ids: JDBC:JAVADOC:35; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Timestamp + * class with a String argument to get a Timestamp object Check whether it is + * same as Timestamp object obtained from equivalent long value . + */ + @Test + @TargetVehicle("servlet") + public void testValueOf01() throws Exception { + super.testValueOf01(); + } + + /* + * @testName: testValueOf02 + * + * @assertion_ids: JDBC:JAVADOC:35; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Timestamp + * class with a String argument to get a Timestamp object Check whether it is + * same as Timestamp object obtained from equivalent long value . + */ + @Test + @TargetVehicle("servlet") + public void testValueOf02() throws Exception { + super.testValueOf02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/build.xml deleted file mode 100644 index 1c7c114f7a..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2.java index f20c26cf50..29879038e6 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2.java @@ -27,8 +27,12 @@ import java.util.Properties; import java.util.TimeZone; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.tests.jdbc.ee.common.JDBCTestMsg; @@ -42,6 +46,10 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + public class dateTimeClient2 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dateTime.dateTime2"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2AppClient.java new file mode 100644 index 0000000000..7956b0445b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2AppClient.java @@ -0,0 +1,223 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dateTimeClient2.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dateTime.dateTime2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dateTimeClient2 class tests methods of Time class using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dateTimeClient2AppClient extends dateTimeClient2 implements Serializable { + private static final String testName = "jdbc.ee.dateTime.dateTime2"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dateTime2_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dateTimeClient2AppClient.class, dateTimeClient2.class); + // The appclient-client descriptor + URL appClientUrl = dateTimeClient2AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dateTimeClient2AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dateTimeClient2AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dateTime2_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dateTimeClient2AppClient theTests = new dateTimeClient2AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testTime01 + * + * @assertion_ids: JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. Check whether it is same + * as equivalent String Value in property file. + */ + @Test + @TargetVehicle("appclient") + public void testTime01() throws Exception { + super.testTime01(); + } + + /* + * @testName: testTime02 + * + * @assertion_ids: JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. Check whether it is same + * as equivalent String Value in property file. + */ + public void testTime02() throws Exception { + super.testTime02(); + } + + /* + * @testName: testToString01 + * + * @assertion_ids: JDBC:JAVADOC:49; JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("appclient") + public void testToString01() throws Exception { + super.testToString01(); + } + + /* + * @testName: testToString02 + * + * @assertion_ids: JDBC:JAVADOC:49; JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("appclient") + public void testToString02() throws Exception { + super.testToString02(); + } + + /* + * @testName: testValueOf01 + * + * @assertion_ids: JDBC:JAVADOC:48; JDBC:JAVADOC:46; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Time + * class with a String argument to get a Time object Check whether it is same + * as Time object obtained from equivalent long value . + * + */ + @Test + @TargetVehicle("appclient") + public void testValueOf01() throws Exception { + super.testValueOf01(); + } + + /* + * @testName: testValueOf02 + * + * @assertion_ids: JDBC:JAVADOC:48; JDBC:JAVADOC:46; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Time + * class with a String argument to get a Time object Check whether it is same + * as Time object obtained from equivalent long value . + */ + @Test + @TargetVehicle("appclient") + public void testValueOf02() throws Exception { + super.testValueOf02(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:JAVADOC:47; JDBC:JAVADOC:46; + * + * @test_Strategy: Create two Time objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Time objects are equal using + * equals method + */ + @Test + @TargetVehicle("appclient") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:JAVADOC:47; JDBC:JAVADOC:46; + * + * @test_Strategy: Create two Time objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Time objects are equal using + * equals method + */ + @Test + @TargetVehicle("appclient") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2EJB.java new file mode 100644 index 0000000000..d66c1a4cd8 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2EJB.java @@ -0,0 +1,244 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dateTimeClient2.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dateTime.dateTime2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dateTimeClient2 class tests methods of Time class using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dateTimeClient2EJB extends dateTimeClient2 implements Serializable { + private static final String testName = "jdbc.ee.dateTime.dateTime2"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dateTime2_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dateTimeClient2EJB.class, dateTimeClient2.class); + + URL resURL = dateTimeClient2EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dateTimeClient2EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTime2_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dateTime2_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dateTimeClient2EJB.class, dateTimeClient2.class); + + resURL = dateTimeClient2EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTime2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dateTimeClient2EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dateTime2_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dateTimeClient2EJB theTests = new dateTimeClient2EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testTime01 + * + * @assertion_ids: JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. Check whether it is same + * as equivalent String Value in property file. + */ + @Test + @TargetVehicle("ejb") + public void testTime01() throws Exception { + super.testTime01(); + } + + /* + * @testName: testTime02 + * + * @assertion_ids: JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. Check whether it is same + * as equivalent String Value in property file. + */ + public void testTime02() throws Exception { + super.testTime02(); + } + + /* + * @testName: testToString01 + * + * @assertion_ids: JDBC:JAVADOC:49; JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("ejb") + public void testToString01() throws Exception { + super.testToString01(); + } + + /* + * @testName: testToString02 + * + * @assertion_ids: JDBC:JAVADOC:49; JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("ejb") + public void testToString02() throws Exception { + super.testToString02(); + } + + /* + * @testName: testValueOf01 + * + * @assertion_ids: JDBC:JAVADOC:48; JDBC:JAVADOC:46; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Time + * class with a String argument to get a Time object Check whether it is same + * as Time object obtained from equivalent long value . + * + */ + @Test + @TargetVehicle("ejb") + public void testValueOf01() throws Exception { + super.testValueOf01(); + } + + /* + * @testName: testValueOf02 + * + * @assertion_ids: JDBC:JAVADOC:48; JDBC:JAVADOC:46; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Time + * class with a String argument to get a Time object Check whether it is same + * as Time object obtained from equivalent long value . + */ + @Test + @TargetVehicle("ejb") + public void testValueOf02() throws Exception { + super.testValueOf02(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:JAVADOC:47; JDBC:JAVADOC:46; + * + * @test_Strategy: Create two Time objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Time objects are equal using + * equals method + */ + @Test + @TargetVehicle("ejb") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:JAVADOC:47; JDBC:JAVADOC:46; + * + * @test_Strategy: Create two Time objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Time objects are equal using + * equals method + */ + @Test + @TargetVehicle("ejb") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2JSP.java new file mode 100644 index 0000000000..61ab62ef15 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2JSP.java @@ -0,0 +1,227 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dateTimeClient2.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dateTime.dateTime2; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dateTimeClient2 class tests methods of Time class using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dateTimeClient2JSP extends dateTimeClient2 implements Serializable { + private static final String testName = "jdbc.ee.dateTime.dateTime2"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dateTime2_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(dateTimeClient2JSP.class, dateTimeClient2.class); + + // The jsp descriptor + URL jspUrl = dateTimeClient2JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dateTimeClient2JSP.class.getResource("dateTime2_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, dateTimeClient2JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(dateTimeClient2JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dateTimeClient2JSP theTests = new dateTimeClient2JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testTime01 + * + * @assertion_ids: JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. Check whether it is same + * as equivalent String Value in property file. + */ + @Test + @TargetVehicle("jsp") + public void testTime01() throws Exception { + super.testTime01(); + } + + /* + * @testName: testTime02 + * + * @assertion_ids: JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. Check whether it is same + * as equivalent String Value in property file. + */ + public void testTime02() throws Exception { + super.testTime02(); + } + + /* + * @testName: testToString01 + * + * @assertion_ids: JDBC:JAVADOC:49; JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("jsp") + public void testToString01() throws Exception { + super.testToString01(); + } + + /* + * @testName: testToString02 + * + * @assertion_ids: JDBC:JAVADOC:49; JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("jsp") + public void testToString02() throws Exception { + super.testToString02(); + } + + /* + * @testName: testValueOf01 + * + * @assertion_ids: JDBC:JAVADOC:48; JDBC:JAVADOC:46; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Time + * class with a String argument to get a Time object Check whether it is same + * as Time object obtained from equivalent long value . + * + */ + @Test + @TargetVehicle("jsp") + public void testValueOf01() throws Exception { + super.testValueOf01(); + } + + /* + * @testName: testValueOf02 + * + * @assertion_ids: JDBC:JAVADOC:48; JDBC:JAVADOC:46; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Time + * class with a String argument to get a Time object Check whether it is same + * as Time object obtained from equivalent long value . + */ + @Test + @TargetVehicle("jsp") + public void testValueOf02() throws Exception { + super.testValueOf02(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:JAVADOC:47; JDBC:JAVADOC:46; + * + * @test_Strategy: Create two Time objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Time objects are equal using + * equals method + */ + @Test + @TargetVehicle("jsp") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:JAVADOC:47; JDBC:JAVADOC:46; + * + * @test_Strategy: Create two Time objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Time objects are equal using + * equals method + */ + @Test + @TargetVehicle("jsp") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2Servlet.java new file mode 100644 index 0000000000..30808b007f --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime2/dateTimeClient2Servlet.java @@ -0,0 +1,215 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dateTimeClient2.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dateTime.dateTime2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dateTimeClient2 class tests methods of Time class using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dateTimeClient2Servlet extends dateTimeClient2 implements Serializable { + private static final String testName = "jdbc.ee.dateTime.dateTime2"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dateTime2_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dateTimeClient2Servlet.class, dateTimeClient2.class); + // The servlet descriptor +URL servletUrl = dateTimeClient2Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dateTimeClient2Servlet.class.getResource("dateTime2_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dateTimeClient2Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dateTimeClient2Servlet theTests = new dateTimeClient2Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testTime01 + * + * @assertion_ids: JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. Check whether it is same + * as equivalent String Value in property file. + */ + @Test + @TargetVehicle("servlet") + public void testTime01() throws Exception { + super.testTime01(); + } + + /* + * @testName: testTime02 + * + * @assertion_ids: JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. Check whether it is same + * as equivalent String Value in property file. + */ + public void testTime02() throws Exception { + super.testTime02(); + } + + /* + * @testName: testToString01 + * + * @assertion_ids: JDBC:JAVADOC:49; JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("servlet") + public void testToString01() throws Exception { + super.testToString01(); + } + + /* + * @testName: testToString02 + * + * @assertion_ids: JDBC:JAVADOC:49; JDBC:JAVADOC:46; + * + * @test_Strategy: Create a Time Object with a long value as an argument. Then + * get the String representation of that Time object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("servlet") + public void testToString02() throws Exception { + super.testToString02(); + } + + /* + * @testName: testValueOf01 + * + * @assertion_ids: JDBC:JAVADOC:48; JDBC:JAVADOC:46; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Time + * class with a String argument to get a Time object Check whether it is same + * as Time object obtained from equivalent long value . + * + */ + @Test + @TargetVehicle("servlet") + public void testValueOf01() throws Exception { + super.testValueOf01(); + } + + /* + * @testName: testValueOf02 + * + * @assertion_ids: JDBC:JAVADOC:48; JDBC:JAVADOC:46; + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Time + * class with a String argument to get a Time object Check whether it is same + * as Time object obtained from equivalent long value . + */ + @Test + @TargetVehicle("servlet") + public void testValueOf02() throws Exception { + super.testValueOf02(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:JAVADOC:47; JDBC:JAVADOC:46; + * + * @test_Strategy: Create two Time objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Time objects are equal using + * equals method + */ + @Test + @TargetVehicle("servlet") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:JAVADOC:47; JDBC:JAVADOC:46; + * + * @test_Strategy: Create two Time objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Time objects are equal using + * equals method + */ + @Test + @TargetVehicle("servlet") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/build.xml deleted file mode 100644 index 7e1defd357..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3.java index 63bf6129d5..1ef51dab8a 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3.java @@ -26,8 +26,12 @@ import java.util.Properties; import java.util.TimeZone; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.tests.jdbc.ee.common.JDBCTestMsg; @@ -40,6 +44,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class dateTimeClient3 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dateTime.dateTime3"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3AppClient.java new file mode 100644 index 0000000000..ff138fe3dc --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3AppClient.java @@ -0,0 +1,223 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dateTimeClient3.java 1.17 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dateTime.dateTime3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/* + * The dateTimeClient3 class tests methods of Timestamp class using + * Sun's J2EE Reference Implementation. + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + + +public class dateTimeClient3AppClient extends dateTimeClient3 implements Serializable { + private static final String testName = "jdbc.ee.dateTime.dateTime3"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dateTime3_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dateTimeClient3AppClient.class, dateTimeClient3.class); + // The appclient-client descriptor + URL appClientUrl = dateTimeClient3AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dateTimeClient3AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dateTimeClient3AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dateTime3_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dateTimeClient3AppClient theTests = new dateTimeClient3AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testDate01 + * + * @assertion_ids: JDBC:JAVADOC:100 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. Check whether it is same + * as equivalent String Value in property file. + */ + @Test + @TargetVehicle("appclient") + public void testDate01() throws Exception { + super.testDate01(); + } + + /* + * @testName: testDate02 + * + * @assertion_ids: JDBC:JAVADOC:100 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. Check whether it is same + * as equivalent String Value in property file. + */ + @Test + @TargetVehicle("appclient") + public void testDate02() throws Exception { + super.testDate02(); + } + + /* + * @testName: testToString01 + * + * @assertion_ids: JDBC:JAVADOC:103 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("appclient") + public void testToString01() throws Exception { + super.testToString01(); + } + + /* + * @testName: testToString02 + * + * @assertion_ids: JDBC:JAVADOC:103 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("appclient") + public void testToString02() throws Exception { + super.testToString02(); + } + + /* + * @testName: testValueOf01 + * + * @assertion_ids: JDBC:JAVADOC:102 + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Date + * class with a String argument to get a Date object Check whether it is same + * as Date object obtained from equivalent long value . + */ + @Test + @TargetVehicle("appclient") + public void testValueOf01() throws Exception { + super.testValueOf01(); + } + + /* + * @testName: testValueOf02 + * + * @assertion_ids: JDBC:JAVADOC:102 + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Date + * class with a String argument to get a Date object Check whether it is same + * as Date object obtained from equivalent long value . + */ + @Test + @TargetVehicle("appclient") + public void testValueOf02() throws Exception { + super.testValueOf02(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:JAVADOC:101 + * + * @test_Strategy: Create two Date objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Date objects are equal using + * equals method + */ + @Test + @TargetVehicle("appclient") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:JAVADOC:101 + * + * @test_Strategy: Create two Date objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Date objects are equal using + * equals method + */ + @Test + @TargetVehicle("appclient") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3EJB.java new file mode 100644 index 0000000000..05e32a16e6 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3EJB.java @@ -0,0 +1,244 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dateTimeClient3.java 1.17 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dateTime.dateTime3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/* + * The dateTimeClient3 class tests methods of Timestamp class using + * Sun's J2EE Reference Implementation. + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dateTimeClient3EJB extends dateTimeClient3 implements Serializable { + private static final String testName = "jdbc.ee.dateTime.dateTime3"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dateTime3_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dateTimeClient3EJB.class, dateTimeClient3.class); + + URL resURL = dateTimeClient3EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dateTimeClient3EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTime3_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dateTime3_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dateTimeClient3EJB.class, dateTimeClient3.class); + + resURL = dateTimeClient3EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTime3_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dateTimeClient3EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dateTime3_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dateTimeClient3EJB theTests = new dateTimeClient3EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testDate01 + * + * @assertion_ids: JDBC:JAVADOC:100 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. Check whether it is same + * as equivalent String Value in property file. + */ + @Test + @TargetVehicle("ejb") + public void testDate01() throws Exception { + super.testDate01(); + } + + /* + * @testName: testDate02 + * + * @assertion_ids: JDBC:JAVADOC:100 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. Check whether it is same + * as equivalent String Value in property file. + */ + @Test + @TargetVehicle("ejb") + public void testDate02() throws Exception { + super.testDate02(); + } + + /* + * @testName: testToString01 + * + * @assertion_ids: JDBC:JAVADOC:103 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("ejb") + public void testToString01() throws Exception { + super.testToString01(); + } + + /* + * @testName: testToString02 + * + * @assertion_ids: JDBC:JAVADOC:103 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("ejb") + public void testToString02() throws Exception { + super.testToString02(); + } + + /* + * @testName: testValueOf01 + * + * @assertion_ids: JDBC:JAVADOC:102 + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Date + * class with a String argument to get a Date object Check whether it is same + * as Date object obtained from equivalent long value . + */ + @Test + @TargetVehicle("ejb") + public void testValueOf01() throws Exception { + super.testValueOf01(); + } + + /* + * @testName: testValueOf02 + * + * @assertion_ids: JDBC:JAVADOC:102 + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Date + * class with a String argument to get a Date object Check whether it is same + * as Date object obtained from equivalent long value . + */ + @Test + @TargetVehicle("ejb") + public void testValueOf02() throws Exception { + super.testValueOf02(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:JAVADOC:101 + * + * @test_Strategy: Create two Date objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Date objects are equal using + * equals method + */ + @Test + @TargetVehicle("ejb") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:JAVADOC:101 + * + * @test_Strategy: Create two Date objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Date objects are equal using + * equals method + */ + @Test + @TargetVehicle("ejb") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3JSP.java new file mode 100644 index 0000000000..ca101b7ce3 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3JSP.java @@ -0,0 +1,228 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dateTimeClient3.java 1.17 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dateTime.dateTime3; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.batchUpdate.batchUpdateClientJSP; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/* + * The dateTimeClient3 class tests methods of Timestamp class using + * Sun's J2EE Reference Implementation. + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dateTimeClient3JSP extends dateTimeClient3 implements Serializable { + private static final String testName = "jdbc.ee.dateTime.dateTime3"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dateTime3_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dateTimeClient3JSP.class, dateTimeClient3.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = dateTimeClient3JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dateTimeClient3JSP.class.getResource("dateTime3_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, batchUpdateClientJSP.class, sunJSPUrl); + + + archive.addAsWebInfResource(dateTimeClient3JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dateTimeClient3JSP theTests = new dateTimeClient3JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testDate01 + * + * @assertion_ids: JDBC:JAVADOC:100 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. Check whether it is same + * as equivalent String Value in property file. + */ + @Test + @TargetVehicle("jsp") + public void testDate01() throws Exception { + super.testDate01(); + } + + /* + * @testName: testDate02 + * + * @assertion_ids: JDBC:JAVADOC:100 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. Check whether it is same + * as equivalent String Value in property file. + */ + @Test + @TargetVehicle("jsp") + public void testDate02() throws Exception { + super.testDate02(); + } + + /* + * @testName: testToString01 + * + * @assertion_ids: JDBC:JAVADOC:103 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("jsp") + public void testToString01() throws Exception { + super.testToString01(); + } + + /* + * @testName: testToString02 + * + * @assertion_ids: JDBC:JAVADOC:103 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("jsp") + public void testToString02() throws Exception { + super.testToString02(); + } + + /* + * @testName: testValueOf01 + * + * @assertion_ids: JDBC:JAVADOC:102 + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Date + * class with a String argument to get a Date object Check whether it is same + * as Date object obtained from equivalent long value . + */ + @Test + @TargetVehicle("jsp") + public void testValueOf01() throws Exception { + super.testValueOf01(); + } + + /* + * @testName: testValueOf02 + * + * @assertion_ids: JDBC:JAVADOC:102 + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Date + * class with a String argument to get a Date object Check whether it is same + * as Date object obtained from equivalent long value . + */ + @Test + @TargetVehicle("jsp") + public void testValueOf02() throws Exception { + super.testValueOf02(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:JAVADOC:101 + * + * @test_Strategy: Create two Date objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Date objects are equal using + * equals method + */ + @Test + @TargetVehicle("jsp") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:JAVADOC:101 + * + * @test_Strategy: Create two Date objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Date objects are equal using + * equals method + */ + @Test + @TargetVehicle("jsp") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3Servlet.java new file mode 100644 index 0000000000..5ff9ef177d --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dateTime/dateTime3/dateTimeClient3Servlet.java @@ -0,0 +1,215 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dateTimeClient3.java 1.17 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dateTime.dateTime3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/* + * The dateTimeClient3 class tests methods of Timestamp class using + * Sun's J2EE Reference Implementation. + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dateTimeClient3Servlet extends dateTimeClient3 implements Serializable { + private static final String testName = "jdbc.ee.dateTime.dateTime3"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dateTime3_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dateTimeClient3Servlet.class, dateTimeClient3.class); + // The servlet descriptor +URL servletUrl = dateTimeClient3Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dateTimeClient3Servlet.class.getResource("dateTime3_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dateTimeClient3Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dateTimeClient3Servlet theTests = new dateTimeClient3Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testDate01 + * + * @assertion_ids: JDBC:JAVADOC:100 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. Check whether it is same + * as equivalent String Value in property file. + */ + @Test + @TargetVehicle("servlet") + public void testDate01() throws Exception { + super.testDate01(); + } + + /* + * @testName: testDate02 + * + * @assertion_ids: JDBC:JAVADOC:100 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. Check whether it is same + * as equivalent String Value in property file. + */ + @Test + @TargetVehicle("servlet") + public void testDate02() throws Exception { + super.testDate02(); + } + + /* + * @testName: testToString01 + * + * @assertion_ids: JDBC:JAVADOC:103 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("servlet") + public void testToString01() throws Exception { + super.testToString01(); + } + + /* + * @testName: testToString02 + * + * @assertion_ids: JDBC:JAVADOC:103 + * + * @test_Strategy: Create a Date Object with a long value as an argument. Then + * get the String representation of that Date object. using the toString() + * method.Check whether it is same as equivalent String Value in property + * file. + */ + @Test + @TargetVehicle("servlet") + public void testToString02() throws Exception { + super.testToString02(); + } + + /* + * @testName: testValueOf01 + * + * @assertion_ids: JDBC:JAVADOC:102 + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Date + * class with a String argument to get a Date object Check whether it is same + * as Date object obtained from equivalent long value . + */ + @Test + @TargetVehicle("servlet") + public void testValueOf01() throws Exception { + super.testValueOf01(); + } + + /* + * @testName: testValueOf02 + * + * @assertion_ids: JDBC:JAVADOC:102 + * + * @test_Strategy: Call valueof(String ts) static method in java.sql.Date + * class with a String argument to get a Date object Check whether it is same + * as Date object obtained from equivalent long value . + */ + @Test + @TargetVehicle("servlet") + public void testValueOf02() throws Exception { + super.testValueOf02(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:JAVADOC:101 + * + * @test_Strategy: Create two Date objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Date objects are equal using + * equals method + */ + @Test + @TargetVehicle("servlet") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:JAVADOC:101 + * + * @test_Strategy: Create two Date objects with two different long values. Set + * the same long value in the second object as used in the first object using + * setTime(long) method Check whether both the Date objects are equal using + * equals method + */ + @Test + @TargetVehicle("servlet") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/build.xml deleted file mode 100644 index 8c452495fa..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/build.xml deleted file mode 100644 index c4c0e4b280..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1.java index 77714cb4ba..de7cdae65e 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1.java @@ -28,8 +28,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -48,6 +52,11 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + + public class dbMetaClient1 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dbMeta.dbMeta1"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1AppClient.java new file mode 100644 index 0000000000..3b04cf2754 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1AppClient.java @@ -0,0 +1,436 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient1.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +// import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient1 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + + +public class dbMetaClient1AppClient extends dbMetaClient1 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta1"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dbMeta1_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient1AppClient.class, dbMetaClient1.class); + // The appclient-client descriptor + URL appClientUrl = dbMetaClient1AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dbMetaClient1AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dbMetaClient1AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta1_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient1AppClient theTests = new dbMetaClient1AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSupportsStoredProcedures + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:962; JDBC:JAVADOC:963; + * JavaEE:SPEC:193; JavaEE:SPEC:180; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsStoredprocedures() method It should return + * true value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsStoredProcedures() throws Exception { + super.testSupportsStoredProcedures(); + } + + /* + * @testName: testAllProceduresAreCallable + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:808; JDBC:JAVADOC:809; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the allProceduresAreCallable() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testAllProceduresAreCallable() throws Exception { + super.testAllProceduresAreCallable(); + } + + /* + * @testName: testAllTablesAreSelectable + * + * @assertion_ids: JDBC:SPEC:8 ; JDBC:JAVADOC:810 ; JDBC:JAVADOC:811; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the allTablesAreSelectable() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testAllTablesAreSelectable() throws Exception { + super.testAllTablesAreSelectable(); + } + + /* + * @testName: testGetURL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:812; JDBC:JAVADOC:813; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getURL() method It should return a String or null if + * it cannot be generated + * + */ + @Test + @TargetVehicle("appclient") + public void testGetURL() throws Exception { + super.testGetURL(); + } + + /* + * @testName: testGetUserName + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:814; JDBC:JAVADOC:815; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getUserName() method It should return a String + * + */ + @Test + @TargetVehicle("appclient") + public void testGetUserName() throws Exception { + super.testGetUserName(); + } + + /* + * @testName: testIsReadOnly + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:816; JDBC:JAVADOC:817; + * JavaEE:SPEC:193; + * + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the isReadOnly() method It should return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testIsReadOnly() throws Exception { + super.testIsReadOnly(); + } + + /* + * @testName: testNullsAreSortedHigh + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:818; JDBC:JAVADOC:819; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedHigh() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testNullsAreSortedHigh() throws Exception { + super.testNullsAreSortedHigh(); + } + + /* + * @testName: testNullsAreSortedLow + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:820; JDBC:JAVADOC:821; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedLow() method It should return a boolean + * value + * + */ + @Test + @TargetVehicle("appclient") + public void testNullsAreSortedLow() throws Exception { + super.testNullsAreSortedLow(); + } + + /* + * @testName: testNullsAreSortedAtStart + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:822; JDBC:JAVADOC:823; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedAtStart() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testNullsAreSortedAtStart() throws Exception { + super.testNullsAreSortedAtStart(); + } + + /* + * @testName: testNullsAreSortedAtEnd + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:824; JDBC:JAVADOC:825; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedAtEnd() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testNullsAreSortedAtEnd() throws Exception { + super.testNullsAreSortedAtEnd(); + } + + /* + * @testName: testGetDatabaseProductName + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:826; JDBC:JAVADOC:827; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDatabaseProductName() method It should return a + * String + * + */ + @Test + @TargetVehicle("appclient") + public void testGetDatabaseProductName() throws Exception { + super.testGetDatabaseProductName(); + } + + /* + * @testName: testGetDatabaseProductVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:828; JDBC:JAVADOC:829; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDatabaseProductVersion() method It should return a + * String + * + */ + @Test + @TargetVehicle("appclient") + public void testGetDatabaseProductVersion() throws Exception { + super.testGetDatabaseProductVersion(); + } + + /* + * @testName: testGetDriverName + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:830; JDBC:JAVADOC:831; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverName() method It should return a String + * + */ + @Test + @TargetVehicle("appclient") + public void testGetDriverName() throws Exception { + super.testGetDriverName(); + } + + /* + * @testName: testGetDriverVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:832; JDBC:JAVADOC:833; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverVersion() method It should return a String + * + */ + @Test + @TargetVehicle("appclient") + public void testGetDriverVersion() throws Exception { + super.testGetDriverVersion(); + } + + /* + * @testName: testGetDriverMajorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:834; JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverMajorVersion() method It should return a + * Integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetDriverMajorVersion() throws Exception { + super.testGetDriverMajorVersion(); + } + + /* + * @testName: testGetDriverMinorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:835; JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverMinorVersion() method It should return a + * Integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetDriverMinorVersion() throws Exception { + super.testGetDriverMinorVersion(); + } + + /* + * @testName: testUsesLocalFilePerTable + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:838; JDBC:JAVADOC:839; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the usesLocalFilePerTable() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testUsesLocalFilePerTable() throws Exception { + super.testUsesLocalFilePerTable(); + } + + /* + * @testName: testSupportsMixedCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:840; JDBC:JAVADOC:841; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMixedCaseIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsMixedCaseIdentifiers() throws Exception { + super.testSupportsMixedCaseIdentifiers(); + } + + /* + * @testName: testStoresUpperCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:842; JDBC:JAVADOC:843; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesUpperCaseIdentifiers() method It should return + * a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testStoresUpperCaseIdentifiers() throws Exception { + super.testStoresUpperCaseIdentifiers(); + } + + /* + * @testName: testStoresLowerCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:844; JDBC:JAVADOC:845; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesLowerCaseIdentifiers() method It should return + * a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testStoresLowerCaseIdentifiers() throws Exception { + super.testStoresLowerCaseIdentifiers(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1EJB.java new file mode 100644 index 0000000000..0217ffc364 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1EJB.java @@ -0,0 +1,453 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient1.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +// import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient1 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-appclient") + +public class dbMetaClient1EJB extends dbMetaClient1 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta1"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dbMeta1_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dbMetaClient1EJB.class, dbMetaClient1.class); + + URL resURL = dbMetaClient1EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dbMetaClient1EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMeta1_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dbMeta1_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dbMetaClient1EJB.class, dbMetaClient1.class); + + resURL = dbMetaClient1EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMeta1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dbMetaClient1EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta1_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient1EJB theTests = new dbMetaClient1EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSupportsStoredProcedures + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:962; JDBC:JAVADOC:963; + * JavaEE:SPEC:193; JavaEE:SPEC:180; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsStoredprocedures() method It should return + * true value + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsStoredProcedures() throws Exception { + super.testSupportsStoredProcedures(); + } + + /* + * @testName: testAllProceduresAreCallable + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:808; JDBC:JAVADOC:809; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the allProceduresAreCallable() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testAllProceduresAreCallable() throws Exception { + super.testAllProceduresAreCallable(); + } + + /* + * @testName: testAllTablesAreSelectable + * + * @assertion_ids: JDBC:SPEC:8 ; JDBC:JAVADOC:810 ; JDBC:JAVADOC:811; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the allTablesAreSelectable() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testAllTablesAreSelectable() throws Exception { + super.testAllTablesAreSelectable(); + } + + /* + * @testName: testGetURL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:812; JDBC:JAVADOC:813; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getURL() method It should return a String or null if + * it cannot be generated + * + */ + @Test + @TargetVehicle("ejb") + public void testGetURL() throws Exception { + super.testGetURL(); + } + + /* + * @testName: testGetUserName + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:814; JDBC:JAVADOC:815; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getUserName() method It should return a String + * + */ + @Test + @TargetVehicle("ejb") + public void testGetUserName() throws Exception { + super.testGetUserName(); + } + + /* + * @testName: testIsReadOnly + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:816; JDBC:JAVADOC:817; + * JavaEE:SPEC:193; + * + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the isReadOnly() method It should return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testIsReadOnly() throws Exception { + super.testIsReadOnly(); + } + + /* + * @testName: testNullsAreSortedHigh + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:818; JDBC:JAVADOC:819; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedHigh() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testNullsAreSortedHigh() throws Exception { + super.testNullsAreSortedHigh(); + } + + /* + * @testName: testNullsAreSortedLow + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:820; JDBC:JAVADOC:821; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedLow() method It should return a boolean + * value + * + */ + @Test + @TargetVehicle("ejb") + public void testNullsAreSortedLow() throws Exception { + super.testNullsAreSortedLow(); + } + + /* + * @testName: testNullsAreSortedAtStart + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:822; JDBC:JAVADOC:823; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedAtStart() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testNullsAreSortedAtStart() throws Exception { + super.testNullsAreSortedAtStart(); + } + + /* + * @testName: testNullsAreSortedAtEnd + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:824; JDBC:JAVADOC:825; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedAtEnd() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testNullsAreSortedAtEnd() throws Exception { + super.testNullsAreSortedAtEnd(); + } + + /* + * @testName: testGetDatabaseProductName + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:826; JDBC:JAVADOC:827; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDatabaseProductName() method It should return a + * String + * + */ + @Test + @TargetVehicle("ejb") + public void testGetDatabaseProductName() throws Exception { + super.testGetDatabaseProductName(); + } + + /* + * @testName: testGetDatabaseProductVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:828; JDBC:JAVADOC:829; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDatabaseProductVersion() method It should return a + * String + * + */ + @Test + @TargetVehicle("ejb") + public void testGetDatabaseProductVersion() throws Exception { + super.testGetDatabaseProductVersion(); + } + + /* + * @testName: testGetDriverName + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:830; JDBC:JAVADOC:831; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverName() method It should return a String + * + */ + @Test + @TargetVehicle("ejb") + public void testGetDriverName() throws Exception { + super.testGetDriverName(); + } + + /* + * @testName: testGetDriverVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:832; JDBC:JAVADOC:833; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverVersion() method It should return a String + * + */ + @Test + @TargetVehicle("ejb") + public void testGetDriverVersion() throws Exception { + super.testGetDriverVersion(); + } + + /* + * @testName: testGetDriverMajorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:834; JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverMajorVersion() method It should return a + * Integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetDriverMajorVersion() throws Exception { + super.testGetDriverMajorVersion(); + } + + /* + * @testName: testGetDriverMinorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:835; JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverMinorVersion() method It should return a + * Integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetDriverMinorVersion() throws Exception { + super.testGetDriverMinorVersion(); + } + + /* + * @testName: testUsesLocalFilePerTable + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:838; JDBC:JAVADOC:839; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the usesLocalFilePerTable() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testUsesLocalFilePerTable() throws Exception { + super.testUsesLocalFilePerTable(); + } + + /* + * @testName: testSupportsMixedCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:840; JDBC:JAVADOC:841; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMixedCaseIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsMixedCaseIdentifiers() throws Exception { + super.testSupportsMixedCaseIdentifiers(); + } + + /* + * @testName: testStoresUpperCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:842; JDBC:JAVADOC:843; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesUpperCaseIdentifiers() method It should return + * a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testStoresUpperCaseIdentifiers() throws Exception { + super.testStoresUpperCaseIdentifiers(); + } + + /* + * @testName: testStoresLowerCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:844; JDBC:JAVADOC:845; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesLowerCaseIdentifiers() method It should return + * a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testStoresLowerCaseIdentifiers() throws Exception { + super.testStoresLowerCaseIdentifiers(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1JSP.java new file mode 100644 index 0000000000..5e0a7647ae --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1JSP.java @@ -0,0 +1,437 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient1.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta1; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +// import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient1 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient1JSP extends dbMetaClient1 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta1"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta1_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient1JSP.class, dbMetaClient1.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = dbMetaClient1JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dbMetaClient1JSP.class.getResource("dbMeta1_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, dbMetaClient1JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(dbMetaClient1JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient1JSP theTests = new dbMetaClient1JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSupportsStoredProcedures + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:962; JDBC:JAVADOC:963; + * JavaEE:SPEC:193; JavaEE:SPEC:180; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsStoredprocedures() method It should return + * true value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsStoredProcedures() throws Exception { + super.testSupportsStoredProcedures(); + } + + /* + * @testName: testAllProceduresAreCallable + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:808; JDBC:JAVADOC:809; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the allProceduresAreCallable() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testAllProceduresAreCallable() throws Exception { + super.testAllProceduresAreCallable(); + } + + /* + * @testName: testAllTablesAreSelectable + * + * @assertion_ids: JDBC:SPEC:8 ; JDBC:JAVADOC:810 ; JDBC:JAVADOC:811; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the allTablesAreSelectable() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testAllTablesAreSelectable() throws Exception { + super.testAllTablesAreSelectable(); + } + + /* + * @testName: testGetURL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:812; JDBC:JAVADOC:813; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getURL() method It should return a String or null if + * it cannot be generated + * + */ + @Test + @TargetVehicle("jsp") + public void testGetURL() throws Exception { + super.testGetURL(); + } + + /* + * @testName: testGetUserName + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:814; JDBC:JAVADOC:815; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getUserName() method It should return a String + * + */ + @Test + @TargetVehicle("jsp") + public void testGetUserName() throws Exception { + super.testGetUserName(); + } + + /* + * @testName: testIsReadOnly + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:816; JDBC:JAVADOC:817; + * JavaEE:SPEC:193; + * + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the isReadOnly() method It should return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testIsReadOnly() throws Exception { + super.testIsReadOnly(); + } + + /* + * @testName: testNullsAreSortedHigh + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:818; JDBC:JAVADOC:819; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedHigh() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testNullsAreSortedHigh() throws Exception { + super.testNullsAreSortedHigh(); + } + + /* + * @testName: testNullsAreSortedLow + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:820; JDBC:JAVADOC:821; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedLow() method It should return a boolean + * value + * + */ + @Test + @TargetVehicle("jsp") + public void testNullsAreSortedLow() throws Exception { + super.testNullsAreSortedLow(); + } + + /* + * @testName: testNullsAreSortedAtStart + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:822; JDBC:JAVADOC:823; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedAtStart() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testNullsAreSortedAtStart() throws Exception { + super.testNullsAreSortedAtStart(); + } + + /* + * @testName: testNullsAreSortedAtEnd + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:824; JDBC:JAVADOC:825; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedAtEnd() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testNullsAreSortedAtEnd() throws Exception { + super.testNullsAreSortedAtEnd(); + } + + /* + * @testName: testGetDatabaseProductName + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:826; JDBC:JAVADOC:827; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDatabaseProductName() method It should return a + * String + * + */ + @Test + @TargetVehicle("jsp") + public void testGetDatabaseProductName() throws Exception { + super.testGetDatabaseProductName(); + } + + /* + * @testName: testGetDatabaseProductVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:828; JDBC:JAVADOC:829; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDatabaseProductVersion() method It should return a + * String + * + */ + @Test + @TargetVehicle("jsp") + public void testGetDatabaseProductVersion() throws Exception { + super.testGetDatabaseProductVersion(); + } + + /* + * @testName: testGetDriverName + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:830; JDBC:JAVADOC:831; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverName() method It should return a String + * + */ + @Test + @TargetVehicle("jsp") + public void testGetDriverName() throws Exception { + super.testGetDriverName(); + } + + /* + * @testName: testGetDriverVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:832; JDBC:JAVADOC:833; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverVersion() method It should return a String + * + */ + @Test + @TargetVehicle("jsp") + public void testGetDriverVersion() throws Exception { + super.testGetDriverVersion(); + } + + /* + * @testName: testGetDriverMajorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:834; JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverMajorVersion() method It should return a + * Integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetDriverMajorVersion() throws Exception { + super.testGetDriverMajorVersion(); + } + + /* + * @testName: testGetDriverMinorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:835; JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverMinorVersion() method It should return a + * Integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetDriverMinorVersion() throws Exception { + super.testGetDriverMinorVersion(); + } + + /* + * @testName: testUsesLocalFilePerTable + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:838; JDBC:JAVADOC:839; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the usesLocalFilePerTable() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testUsesLocalFilePerTable() throws Exception { + super.testUsesLocalFilePerTable(); + } + + /* + * @testName: testSupportsMixedCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:840; JDBC:JAVADOC:841; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMixedCaseIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsMixedCaseIdentifiers() throws Exception { + super.testSupportsMixedCaseIdentifiers(); + } + + /* + * @testName: testStoresUpperCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:842; JDBC:JAVADOC:843; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesUpperCaseIdentifiers() method It should return + * a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testStoresUpperCaseIdentifiers() throws Exception { + super.testStoresUpperCaseIdentifiers(); + } + + /* + * @testName: testStoresLowerCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:844; JDBC:JAVADOC:845; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesLowerCaseIdentifiers() method It should return + * a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testStoresLowerCaseIdentifiers() throws Exception { + super.testStoresLowerCaseIdentifiers(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1Servlet.java new file mode 100644 index 0000000000..133e5c893f --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta1/dbMetaClient1Servlet.java @@ -0,0 +1,426 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient1.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +// import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient1 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient1Servlet extends dbMetaClient1 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta1"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta1_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient1Servlet.class, dbMetaClient1.class); + // The servlet descriptor +URL servletUrl = dbMetaClient1Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dbMetaClient1Servlet.class.getResource("dbMeta1_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dbMetaClient1Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient1Servlet theTests = new dbMetaClient1Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSupportsStoredProcedures + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:962; JDBC:JAVADOC:963; + * JavaEE:SPEC:193; JavaEE:SPEC:180; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsStoredprocedures() method It should return + * true value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsStoredProcedures() throws Exception { + super.testSupportsStoredProcedures(); + } + + /* + * @testName: testAllProceduresAreCallable + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:808; JDBC:JAVADOC:809; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the allProceduresAreCallable() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testAllProceduresAreCallable() throws Exception { + super.testAllProceduresAreCallable(); + } + + /* + * @testName: testAllTablesAreSelectable + * + * @assertion_ids: JDBC:SPEC:8 ; JDBC:JAVADOC:810 ; JDBC:JAVADOC:811; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the allTablesAreSelectable() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testAllTablesAreSelectable() throws Exception { + super.testAllTablesAreSelectable(); + } + + /* + * @testName: testGetURL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:812; JDBC:JAVADOC:813; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getURL() method It should return a String or null if + * it cannot be generated + * + */ + @Test + @TargetVehicle("servlet") + public void testGetURL() throws Exception { + super.testGetURL(); + } + + /* + * @testName: testGetUserName + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:814; JDBC:JAVADOC:815; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getUserName() method It should return a String + * + */ + @Test + @TargetVehicle("servlet") + public void testGetUserName() throws Exception { + super.testGetUserName(); + } + + /* + * @testName: testIsReadOnly + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:816; JDBC:JAVADOC:817; + * JavaEE:SPEC:193; + * + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the isReadOnly() method It should return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testIsReadOnly() throws Exception { + super.testIsReadOnly(); + } + + /* + * @testName: testNullsAreSortedHigh + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:818; JDBC:JAVADOC:819; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedHigh() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testNullsAreSortedHigh() throws Exception { + super.testNullsAreSortedHigh(); + } + + /* + * @testName: testNullsAreSortedLow + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:820; JDBC:JAVADOC:821; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedLow() method It should return a boolean + * value + * + */ + @Test + @TargetVehicle("servlet") + public void testNullsAreSortedLow() throws Exception { + super.testNullsAreSortedLow(); + } + + /* + * @testName: testNullsAreSortedAtStart + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:822; JDBC:JAVADOC:823; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedAtStart() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testNullsAreSortedAtStart() throws Exception { + super.testNullsAreSortedAtStart(); + } + + /* + * @testName: testNullsAreSortedAtEnd + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:824; JDBC:JAVADOC:825; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullsAreSortedAtEnd() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testNullsAreSortedAtEnd() throws Exception { + super.testNullsAreSortedAtEnd(); + } + + /* + * @testName: testGetDatabaseProductName + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:826; JDBC:JAVADOC:827; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDatabaseProductName() method It should return a + * String + * + */ + @Test + @TargetVehicle("servlet") + public void testGetDatabaseProductName() throws Exception { + super.testGetDatabaseProductName(); + } + + /* + * @testName: testGetDatabaseProductVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:828; JDBC:JAVADOC:829; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDatabaseProductVersion() method It should return a + * String + * + */ + @Test + @TargetVehicle("servlet") + public void testGetDatabaseProductVersion() throws Exception { + super.testGetDatabaseProductVersion(); + } + + /* + * @testName: testGetDriverName + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:830; JDBC:JAVADOC:831; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverName() method It should return a String + * + */ + @Test + @TargetVehicle("servlet") + public void testGetDriverName() throws Exception { + super.testGetDriverName(); + } + + /* + * @testName: testGetDriverVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:832; JDBC:JAVADOC:833; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverVersion() method It should return a String + * + */ + @Test + @TargetVehicle("servlet") + public void testGetDriverVersion() throws Exception { + super.testGetDriverVersion(); + } + + /* + * @testName: testGetDriverMajorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:834; JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverMajorVersion() method It should return a + * Integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetDriverMajorVersion() throws Exception { + super.testGetDriverMajorVersion(); + } + + /* + * @testName: testGetDriverMinorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:835; JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getDriverMinorVersion() method It should return a + * Integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetDriverMinorVersion() throws Exception { + super.testGetDriverMinorVersion(); + } + + /* + * @testName: testUsesLocalFilePerTable + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:838; JDBC:JAVADOC:839; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the usesLocalFilePerTable() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testUsesLocalFilePerTable() throws Exception { + super.testUsesLocalFilePerTable(); + } + + /* + * @testName: testSupportsMixedCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:840; JDBC:JAVADOC:841; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMixedCaseIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsMixedCaseIdentifiers() throws Exception { + super.testSupportsMixedCaseIdentifiers(); + } + + /* + * @testName: testStoresUpperCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:842; JDBC:JAVADOC:843; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesUpperCaseIdentifiers() method It should return + * a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testStoresUpperCaseIdentifiers() throws Exception { + super.testStoresUpperCaseIdentifiers(); + } + + /* + * @testName: testStoresLowerCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:844; JDBC:JAVADOC:845; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesLowerCaseIdentifiers() method It should return + * a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testStoresLowerCaseIdentifiers() throws Exception { + super.testStoresLowerCaseIdentifiers(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/build.xml deleted file mode 100644 index 027b96dff9..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10.java index 3727d5223e..1cbeb97370 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10.java @@ -30,8 +30,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -49,6 +53,11 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") +@Tag("web_profile") +@Tag("tck-javatest") public class dbMetaClient10 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dbMeta.dbMeta10"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10AppClient.java new file mode 100644 index 0000000000..88e72032a3 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10AppClient.java @@ -0,0 +1,458 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient10.java 1.33 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta10; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient10AppClient extends dbMetaClient10 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta10"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dbMeta10_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient10AppClient.class, dbMetaClient10.class); + // The appclient-client descriptor + URL appClientUrl = dbMetaClient10AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dbMetaClient10AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dbMetaClient10AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta10_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient10AppClient theTests = new dbMetaClient10AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testOthersUpdatesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1086; JDBC:JAVADOC:1087; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOthersUpdatesAreVisible2() throws Exception { + super.testOthersUpdatesAreVisible2(); + } + + /* + * @testName: testOthersUpdatesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1086; JDBC:JAVADOC:1087; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOthersUpdatesAreVisible3() throws Exception { + super.testOthersUpdatesAreVisible3(); + } + + /* + * @testName: testOthersDeletesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1088; JDBC:JAVADOC:1089; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOthersDeletesAreVisible1() throws Exception { + super.testOthersDeletesAreVisible1(); + } + + /* + * @testName: testOthersDeletesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1088; JDBC:JAVADOC:1089; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOthersDeletesAreVisible2() throws Exception { + super.testOthersDeletesAreVisible2(); + } + + /* + * @testName: testOthersDeletesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1088; JDBC:JAVADOC:1089; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOthersDeletesAreVisible3() throws Exception { + super.testOthersDeletesAreVisible3(); + } + + /* + * @testName: testOthersInsertsAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1090; JDBC:JAVADOC:1091; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOthersInsertsAreVisible1() throws Exception { + super.testOthersInsertsAreVisible1(); + } + + /* + * @testName: testOthersInsertsAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1090; JDBC:JAVADOC:1091; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOthersInsertsAreVisible2() throws Exception { + super.testOthersInsertsAreVisible2(); + } + + /* + * @testName: testOthersInsertsAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1090; JDBC:JAVADOC:1091; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOthersInsertsAreVisible3() throws Exception { + super.testOthersInsertsAreVisible3(); + } + + /* + * @testName: testUpdatesAreDetected1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1092; JDBC:JAVADOC:1093; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the updatesAreDetected() method on that object with the + * ResultSet Type as ResultSet.TYPE_FORWARD_ONLY. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testUpdatesAreDetected1() throws Exception { + super.testUpdatesAreDetected1(); + } + + /* + * @testName: testUpdatesAreDetected2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1092; JDBC:JAVADOC:1093; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the updatesAreDetected() method on that object with the + * ResultSet Type as ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testUpdatesAreDetected2() throws Exception { + super.testUpdatesAreDetected2(); + } + + /* + * @testName: testUpdatesAreDetected3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1092; JDBC:JAVADOC:1093; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the updatesAreDetected() method on that object with the + * ResultSet Type as ResultSet.TYPE_SCROLL_SENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testUpdatesAreDetected3() throws Exception { + super.testUpdatesAreDetected3(); + } + + /* + * @testName: testDeletesAreDetected1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1094; JDBC:JAVADOC:1095; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the deletesAreDetected() method on that object with the + * result set type as ResultSet.TYPE_FORWARD_ONLY. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testDeletesAreDetected1() throws Exception { + super.testDeletesAreDetected1(); + } + + /* + * @testName: testDeletesAreDetected2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1094; JDBC:JAVADOC:1095; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the deletesAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testDeletesAreDetected2() throws Exception { + super.testDeletesAreDetected2(); + } + + /* + * @testName: testDeletesAreDetected3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1094; JDBC:JAVADOC:1095; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the deletesAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_SENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testDeletesAreDetected3() throws Exception { + super.testDeletesAreDetected3(); + } + + /* + * @testName: testInsertsAreDetected1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1096; JDBC:JAVADOC:1097; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the insertsAreDetected() method on that object with the + * result set type as ResultSet.TYPE_FORWARD_ONLY. It should return a boolean + * value; either or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testInsertsAreDetected1() throws Exception { + super.testInsertsAreDetected1(); + } + + /* + * @testName: testInsertsAreDetected2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1096; JDBC:JAVADOC:1097; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the insertsAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a + * boolean value; either or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testInsertsAreDetected2() throws Exception { + super.testInsertsAreDetected2(); + } + + /* + * @testName: testInsertsAreDetected3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1096; JDBC:JAVADOC:1097; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the insertsAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_SENSITIVE. It should return a + * boolean value; either or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testInsertsAreDetected3() throws Exception { + super.testInsertsAreDetected3(); + } + + /* + * @testName: testGetUDTs + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1100; JDBC:JAVADOC:1101; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getUDTs() method on that object. It should return a + * ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetUDTs() throws Exception { + super.testGetUDTs(); + } + + /* + * @testName: testGetUDTs01 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1100; JDBC:JAVADOC:1101; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getUDTs() method on that object. It should return a + * ResultSet object. Validate the column names and column ordering. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetUDTs01() throws Exception { + super.testGetUDTs01(); + } + + /* + * @testName: testSupportsTransactionIsolationLevel1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with the isolation level TRANSACTION_NONE. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsTransactionIsolationLevel1() throws Exception { + super.testSupportsTransactionIsolationLevel1(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10EJB.java new file mode 100644 index 0000000000..62931ec5c9 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10EJB.java @@ -0,0 +1,477 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient10.java 1.33 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta10; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient10EJB extends dbMetaClient10 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta10"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dbMeta10_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dbMetaClient10EJB.class, dbMetaClient10.class); + + URL resURL = dbMetaClient10EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dbMetaClient10EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMeta10_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dbMeta10_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dbMetaClient10EJB.class, dbMetaClient10.class); + + + resURL = dbMetaClient10EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMeta10_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dbMetaClient10EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta10_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient10EJB theTests = new dbMetaClient10EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testOthersUpdatesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1086; JDBC:JAVADOC:1087; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOthersUpdatesAreVisible2() throws Exception { + super.testOthersUpdatesAreVisible2(); + } + + /* + * @testName: testOthersUpdatesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1086; JDBC:JAVADOC:1087; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOthersUpdatesAreVisible3() throws Exception { + super.testOthersUpdatesAreVisible3(); + } + + /* + * @testName: testOthersDeletesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1088; JDBC:JAVADOC:1089; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOthersDeletesAreVisible1() throws Exception { + super.testOthersDeletesAreVisible1(); + } + + /* + * @testName: testOthersDeletesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1088; JDBC:JAVADOC:1089; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOthersDeletesAreVisible2() throws Exception { + super.testOthersDeletesAreVisible2(); + } + + /* + * @testName: testOthersDeletesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1088; JDBC:JAVADOC:1089; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOthersDeletesAreVisible3() throws Exception { + super.testOthersDeletesAreVisible3(); + } + + /* + * @testName: testOthersInsertsAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1090; JDBC:JAVADOC:1091; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOthersInsertsAreVisible1() throws Exception { + super.testOthersInsertsAreVisible1(); + } + + /* + * @testName: testOthersInsertsAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1090; JDBC:JAVADOC:1091; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOthersInsertsAreVisible2() throws Exception { + super.testOthersInsertsAreVisible2(); + } + + /* + * @testName: testOthersInsertsAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1090; JDBC:JAVADOC:1091; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOthersInsertsAreVisible3() throws Exception { + super.testOthersInsertsAreVisible3(); + } + + /* + * @testName: testUpdatesAreDetected1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1092; JDBC:JAVADOC:1093; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the updatesAreDetected() method on that object with the + * ResultSet Type as ResultSet.TYPE_FORWARD_ONLY. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testUpdatesAreDetected1() throws Exception { + super.testUpdatesAreDetected1(); + } + + /* + * @testName: testUpdatesAreDetected2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1092; JDBC:JAVADOC:1093; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the updatesAreDetected() method on that object with the + * ResultSet Type as ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testUpdatesAreDetected2() throws Exception { + super.testUpdatesAreDetected2(); + } + + /* + * @testName: testUpdatesAreDetected3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1092; JDBC:JAVADOC:1093; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the updatesAreDetected() method on that object with the + * ResultSet Type as ResultSet.TYPE_SCROLL_SENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testUpdatesAreDetected3() throws Exception { + super.testUpdatesAreDetected3(); + } + + /* + * @testName: testDeletesAreDetected1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1094; JDBC:JAVADOC:1095; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the deletesAreDetected() method on that object with the + * result set type as ResultSet.TYPE_FORWARD_ONLY. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testDeletesAreDetected1() throws Exception { + super.testDeletesAreDetected1(); + } + + /* + * @testName: testDeletesAreDetected2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1094; JDBC:JAVADOC:1095; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the deletesAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testDeletesAreDetected2() throws Exception { + super.testDeletesAreDetected2(); + } + + /* + * @testName: testDeletesAreDetected3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1094; JDBC:JAVADOC:1095; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the deletesAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_SENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testDeletesAreDetected3() throws Exception { + super.testDeletesAreDetected3(); + } + + /* + * @testName: testInsertsAreDetected1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1096; JDBC:JAVADOC:1097; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the insertsAreDetected() method on that object with the + * result set type as ResultSet.TYPE_FORWARD_ONLY. It should return a boolean + * value; either or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testInsertsAreDetected1() throws Exception { + super.testInsertsAreDetected1(); + } + + /* + * @testName: testInsertsAreDetected2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1096; JDBC:JAVADOC:1097; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the insertsAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a + * boolean value; either or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testInsertsAreDetected2() throws Exception { + super.testInsertsAreDetected2(); + } + + /* + * @testName: testInsertsAreDetected3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1096; JDBC:JAVADOC:1097; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the insertsAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_SENSITIVE. It should return a + * boolean value; either or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testInsertsAreDetected3() throws Exception { + super.testInsertsAreDetected3(); + } + + /* + * @testName: testGetUDTs + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1100; JDBC:JAVADOC:1101; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getUDTs() method on that object. It should return a + * ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetUDTs() throws Exception { + super.testGetUDTs(); + } + + /* + * @testName: testGetUDTs01 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1100; JDBC:JAVADOC:1101; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getUDTs() method on that object. It should return a + * ResultSet object. Validate the column names and column ordering. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetUDTs01() throws Exception { + super.testGetUDTs01(); + } + + /* + * @testName: testSupportsTransactionIsolationLevel1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with the isolation level TRANSACTION_NONE. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsTransactionIsolationLevel1() throws Exception { + super.testSupportsTransactionIsolationLevel1(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10JSP.java new file mode 100644 index 0000000000..edd292e542 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10JSP.java @@ -0,0 +1,462 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient10.java 1.33 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta10; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.batchUpdate.batchUpdateClientJSP; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient10JSP extends dbMetaClient10 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta10"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta10_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(dbMetaClient10JSP.class, dbMetaClient10.class); + + // The jsp descriptor + URL jspUrl = batchUpdateClientJSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dbMetaClient10JSP.class.getResource("dbMeta10_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, dbMetaClient10JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(dbMetaClient10JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient10JSP theTests = new dbMetaClient10JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testOthersUpdatesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1086; JDBC:JAVADOC:1087; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOthersUpdatesAreVisible2() throws Exception { + super.testOthersUpdatesAreVisible2(); + } + + /* + * @testName: testOthersUpdatesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1086; JDBC:JAVADOC:1087; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOthersUpdatesAreVisible3() throws Exception { + super.testOthersUpdatesAreVisible3(); + } + + /* + * @testName: testOthersDeletesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1088; JDBC:JAVADOC:1089; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOthersDeletesAreVisible1() throws Exception { + super.testOthersDeletesAreVisible1(); + } + + /* + * @testName: testOthersDeletesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1088; JDBC:JAVADOC:1089; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOthersDeletesAreVisible2() throws Exception { + super.testOthersDeletesAreVisible2(); + } + + /* + * @testName: testOthersDeletesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1088; JDBC:JAVADOC:1089; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOthersDeletesAreVisible3() throws Exception { + super.testOthersDeletesAreVisible3(); + } + + /* + * @testName: testOthersInsertsAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1090; JDBC:JAVADOC:1091; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOthersInsertsAreVisible1() throws Exception { + super.testOthersInsertsAreVisible1(); + } + + /* + * @testName: testOthersInsertsAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1090; JDBC:JAVADOC:1091; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOthersInsertsAreVisible2() throws Exception { + super.testOthersInsertsAreVisible2(); + } + + /* + * @testName: testOthersInsertsAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1090; JDBC:JAVADOC:1091; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOthersInsertsAreVisible3() throws Exception { + super.testOthersInsertsAreVisible3(); + } + + /* + * @testName: testUpdatesAreDetected1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1092; JDBC:JAVADOC:1093; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the updatesAreDetected() method on that object with the + * ResultSet Type as ResultSet.TYPE_FORWARD_ONLY. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testUpdatesAreDetected1() throws Exception { + super.testUpdatesAreDetected1(); + } + + /* + * @testName: testUpdatesAreDetected2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1092; JDBC:JAVADOC:1093; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the updatesAreDetected() method on that object with the + * ResultSet Type as ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testUpdatesAreDetected2() throws Exception { + super.testUpdatesAreDetected2(); + } + + /* + * @testName: testUpdatesAreDetected3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1092; JDBC:JAVADOC:1093; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the updatesAreDetected() method on that object with the + * ResultSet Type as ResultSet.TYPE_SCROLL_SENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testUpdatesAreDetected3() throws Exception { + super.testUpdatesAreDetected3(); + } + + /* + * @testName: testDeletesAreDetected1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1094; JDBC:JAVADOC:1095; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the deletesAreDetected() method on that object with the + * result set type as ResultSet.TYPE_FORWARD_ONLY. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testDeletesAreDetected1() throws Exception { + super.testDeletesAreDetected1(); + } + + /* + * @testName: testDeletesAreDetected2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1094; JDBC:JAVADOC:1095; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the deletesAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testDeletesAreDetected2() throws Exception { + super.testDeletesAreDetected2(); + } + + /* + * @testName: testDeletesAreDetected3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1094; JDBC:JAVADOC:1095; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the deletesAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_SENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testDeletesAreDetected3() throws Exception { + super.testDeletesAreDetected3(); + } + + /* + * @testName: testInsertsAreDetected1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1096; JDBC:JAVADOC:1097; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the insertsAreDetected() method on that object with the + * result set type as ResultSet.TYPE_FORWARD_ONLY. It should return a boolean + * value; either or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testInsertsAreDetected1() throws Exception { + super.testInsertsAreDetected1(); + } + + /* + * @testName: testInsertsAreDetected2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1096; JDBC:JAVADOC:1097; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the insertsAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a + * boolean value; either or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testInsertsAreDetected2() throws Exception { + super.testInsertsAreDetected2(); + } + + /* + * @testName: testInsertsAreDetected3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1096; JDBC:JAVADOC:1097; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the insertsAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_SENSITIVE. It should return a + * boolean value; either or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testInsertsAreDetected3() throws Exception { + super.testInsertsAreDetected3(); + } + + /* + * @testName: testGetUDTs + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1100; JDBC:JAVADOC:1101; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getUDTs() method on that object. It should return a + * ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetUDTs() throws Exception { + super.testGetUDTs(); + } + + /* + * @testName: testGetUDTs01 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1100; JDBC:JAVADOC:1101; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getUDTs() method on that object. It should return a + * ResultSet object. Validate the column names and column ordering. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetUDTs01() throws Exception { + super.testGetUDTs01(); + } + + /* + * @testName: testSupportsTransactionIsolationLevel1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with the isolation level TRANSACTION_NONE. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsTransactionIsolationLevel1() throws Exception { + super.testSupportsTransactionIsolationLevel1(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10Servlet.java new file mode 100644 index 0000000000..56829c6a93 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta10/dbMetaClient10Servlet.java @@ -0,0 +1,450 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient10.java 1.33 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta10; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.batchUpdate.batchUpdateClientServlet; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient10Servlet extends dbMetaClient10 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta10"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta10_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient10Servlet.class, dbMetaClient10.class); + // The servlet descriptor +URL servletUrl = dbMetaClient10Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dbMetaClient10Servlet.class.getResource("dbMeta10_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, batchUpdateClientServlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient10Servlet theTests = new dbMetaClient10Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testOthersUpdatesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1086; JDBC:JAVADOC:1087; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOthersUpdatesAreVisible2() throws Exception { + super.testOthersUpdatesAreVisible2(); + } + + /* + * @testName: testOthersUpdatesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1086; JDBC:JAVADOC:1087; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOthersUpdatesAreVisible3() throws Exception { + super.testOthersUpdatesAreVisible3(); + } + + /* + * @testName: testOthersDeletesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1088; JDBC:JAVADOC:1089; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOthersDeletesAreVisible1() throws Exception { + super.testOthersDeletesAreVisible1(); + } + + /* + * @testName: testOthersDeletesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1088; JDBC:JAVADOC:1089; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOthersDeletesAreVisible2() throws Exception { + super.testOthersDeletesAreVisible2(); + } + + /* + * @testName: testOthersDeletesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1088; JDBC:JAVADOC:1089; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOthersDeletesAreVisible3() throws Exception { + super.testOthersDeletesAreVisible3(); + } + + /* + * @testName: testOthersInsertsAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1090; JDBC:JAVADOC:1091; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOthersInsertsAreVisible1() throws Exception { + super.testOthersInsertsAreVisible1(); + } + + /* + * @testName: testOthersInsertsAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1090; JDBC:JAVADOC:1091; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOthersInsertsAreVisible2() throws Exception { + super.testOthersInsertsAreVisible2(); + } + + /* + * @testName: testOthersInsertsAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1090; JDBC:JAVADOC:1091; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOthersInsertsAreVisible3() throws Exception { + super.testOthersInsertsAreVisible3(); + } + + /* + * @testName: testUpdatesAreDetected1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1092; JDBC:JAVADOC:1093; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the updatesAreDetected() method on that object with the + * ResultSet Type as ResultSet.TYPE_FORWARD_ONLY. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testUpdatesAreDetected1() throws Exception { + super.testUpdatesAreDetected1(); + } + + /* + * @testName: testUpdatesAreDetected2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1092; JDBC:JAVADOC:1093; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the updatesAreDetected() method on that object with the + * ResultSet Type as ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testUpdatesAreDetected2() throws Exception { + super.testUpdatesAreDetected2(); + } + + /* + * @testName: testUpdatesAreDetected3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1092; JDBC:JAVADOC:1093; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the updatesAreDetected() method on that object with the + * ResultSet Type as ResultSet.TYPE_SCROLL_SENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testUpdatesAreDetected3() throws Exception { + super.testUpdatesAreDetected3(); + } + + /* + * @testName: testDeletesAreDetected1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1094; JDBC:JAVADOC:1095; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the deletesAreDetected() method on that object with the + * result set type as ResultSet.TYPE_FORWARD_ONLY. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testDeletesAreDetected1() throws Exception { + super.testDeletesAreDetected1(); + } + + /* + * @testName: testDeletesAreDetected2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1094; JDBC:JAVADOC:1095; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the deletesAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testDeletesAreDetected2() throws Exception { + super.testDeletesAreDetected2(); + } + + /* + * @testName: testDeletesAreDetected3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1094; JDBC:JAVADOC:1095; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the deletesAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_SENSITIVE. It should return a + * boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testDeletesAreDetected3() throws Exception { + super.testDeletesAreDetected3(); + } + + /* + * @testName: testInsertsAreDetected1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1096; JDBC:JAVADOC:1097; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the insertsAreDetected() method on that object with the + * result set type as ResultSet.TYPE_FORWARD_ONLY. It should return a boolean + * value; either or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testInsertsAreDetected1() throws Exception { + super.testInsertsAreDetected1(); + } + + /* + * @testName: testInsertsAreDetected2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1096; JDBC:JAVADOC:1097; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the insertsAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a + * boolean value; either or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testInsertsAreDetected2() throws Exception { + super.testInsertsAreDetected2(); + } + + /* + * @testName: testInsertsAreDetected3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1096; JDBC:JAVADOC:1097; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the insertsAreDetected() method on that object with the + * result set type as ResultSet.TYPE_SCROLL_SENSITIVE. It should return a + * boolean value; either or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testInsertsAreDetected3() throws Exception { + super.testInsertsAreDetected3(); + } + + /* + * @testName: testGetUDTs + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1100; JDBC:JAVADOC:1101; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getUDTs() method on that object. It should return a + * ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetUDTs() throws Exception { + super.testGetUDTs(); + } + + /* + * @testName: testGetUDTs01 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1100; JDBC:JAVADOC:1101; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getUDTs() method on that object. It should return a + * ResultSet object. Validate the column names and column ordering. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetUDTs01() throws Exception { + super.testGetUDTs01(); + } + + /* + * @testName: testSupportsTransactionIsolationLevel1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with the isolation level TRANSACTION_NONE. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsTransactionIsolationLevel1() throws Exception { + super.testSupportsTransactionIsolationLevel1(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/build.xml deleted file mode 100644 index d97ee156f0..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11.java index 91f93d1cc1..85d7b015aa 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11.java @@ -30,8 +30,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -49,6 +53,12 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") +@Tag("web_profile") +@Tag("tck-javatest") + public class dbMetaClient11 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dbMeta.dbMeta11"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11AppClient.java new file mode 100644 index 0000000000..133600c670 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11AppClient.java @@ -0,0 +1,492 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient11.java 1.30 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta11; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient11 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-appclient") + + +public class dbMetaClient11AppClient extends dbMetaClient11 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta11"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dbMeta11_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient11AppClient.class, dbMetaClient11.class); + // The appclient-client descriptor + URL appClientUrl = dbMetaClient11AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dbMetaClient11AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dbMetaClient11AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta11_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient11AppClient theTests = new dbMetaClient11AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSupportsTransactionIsolationLevel2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with the isolation level TRANSACTION_READ_COMMITTED. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsTransactionIsolationLevel2() throws Exception { + super.testSupportsTransactionIsolationLevel2(); + } + + /* + * @testName: testSupportsTransactionIsolationLevel3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with the isolation level + * TRANSACTION_READ_UNCOMMITTED. It should return a boolean value; either true + * or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsTransactionIsolationLevel3() throws Exception { + super.testSupportsTransactionIsolationLevel3(); + } + + /* + * @testName: testSupportsTransactionIsolationLevel4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with isolation level TRANSACTION_REPEATABLE_READ. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsTransactionIsolationLevel4() throws Exception { + super.testSupportsTransactionIsolationLevel4(); + + } + + /* + * @testName: testSupportsTransactionIsolationLevel5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with isolation level TRANSACTION_SERIALIZABLE. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsTransactionIsolationLevel5() throws Exception { + super.testSupportsTransactionIsolationLevel5(); + } + + /* + * @testName: testGetColumnPrivileges + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1056; JDBC:JAVADOC:1057; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getColumnPrivileges() method on that object. It + * should return a ResultSet object. Validate the column names and column + * ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetColumnPrivileges() throws Exception { + super.testGetColumnPrivileges(); + } + + /* + * @testName: testGetTablePrivileges + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1058; JDBC:JAVADOC:1059; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTablePrivileges() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetTablePrivileges() throws Exception { + super.testGetTablePrivileges(); + } + + /* + * @testName: testGetBestRowIdentifier1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetBestRowIdentifier1() throws Exception { + super.testGetBestRowIdentifier1(); + } + + /* + * @testName: testGetBestRowIdentifier2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetBestRowIdentifier2() throws Exception { + super.testGetBestRowIdentifier2(); + } + + /* + * @testName: testGetBestRowIdentifier3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetBestRowIdentifier3() throws Exception { + super.testGetBestRowIdentifier3(); + } + + /* + * @testName: testGetBestRowIdentifier4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetBestRowIdentifier4() throws Exception { + super.testGetBestRowIdentifier4(); + } + + /* + * @testName: testGetBestRowIdentifier5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetBestRowIdentifier5() throws Exception { + super.testGetBestRowIdentifier5(); + } + + /* + * @testName: testGetBestRowIdentifier6 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object + * + */ + @Test + @TargetVehicle("appclient") + public void testGetBestRowIdentifier6() throws Exception { + super.testGetBestRowIdentifier6(); + } + + /* + * @testName: testGetBestRowIdentifier7 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. Validate the column names and column + * ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetBestRowIdentifier7() throws Exception { + super.testGetBestRowIdentifier7(); + } + + /* + * @testName: testGetVersionColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1062; JDBC:JAVADOC:1063; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getVersionColumns() method on that object. It should + * return a ResultSet object.Compare the column names Validate the column + * names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetVersionColumns() throws Exception { + super.testGetVersionColumns(); + } + + /* + * @testName: testGetPrimaryKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1064; JDBC:JAVADOC:1065; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getPrimaryKeys() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetPrimaryKeys() throws Exception { + super.testGetPrimaryKeys(); + } + + /* + * @testName: testGetImportedKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1066; JDBC:JAVADOC:1067; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getImportedKeys() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetImportedKeys() throws Exception { + super.testGetImportedKeys(); + } + + /* + * @testName: testGetExportedKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1068; JDBC:JAVADOC:1069; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getExportedKeys() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetExportedKeys() throws Exception { + super.testGetExportedKeys(); + } + + /* + * @testName: testGetCrossReference + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1070; JDBC:JAVADOC:1071; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getCrossReference() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetCrossReference() throws Exception { + super.testGetCrossReference(); + } + + /* + * @testName: testGetIndexInfo1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetIndexInfo1() throws Exception { + super.testGetIndexInfo1(); + } + + /* + * @testName: testGetIndexInfo2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetIndexInfo2() throws Exception { + super.testGetIndexInfo2(); + } + + /* + * @testName: testGetIndexInfo3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetIndexInfo3() throws Exception { + super.testGetIndexInfo3(); + } + + /* + * @testName: testGetIndexInfo4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetIndexInfo4() throws Exception { + super.testGetIndexInfo4(); + } + + /* + * @testName: testGetIndexInfo5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetIndexInfo5() throws Exception { + super.testGetIndexInfo5(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11EJB.java new file mode 100644 index 0000000000..2f4131e1b3 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11EJB.java @@ -0,0 +1,513 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient11.java 1.30 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta11; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient11 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient11EJB extends dbMetaClient11 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta11"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dbMeta11_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dbMetaClient11EJB.class, dbMetaClient11.class); + + URL resURL = dbMetaClient11EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dbMetaClient11EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMeta11_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dbMeta11_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dbMetaClient11EJB.class, dbMetaClient11.class); + + + resURL = dbMetaClient11EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMeta11_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dbMetaClient11EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta11_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient11EJB theTests = new dbMetaClient11EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSupportsTransactionIsolationLevel2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with the isolation level TRANSACTION_READ_COMMITTED. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsTransactionIsolationLevel2() throws Exception { + super.testSupportsTransactionIsolationLevel2(); + } + + /* + * @testName: testSupportsTransactionIsolationLevel3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with the isolation level + * TRANSACTION_READ_UNCOMMITTED. It should return a boolean value; either true + * or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsTransactionIsolationLevel3() throws Exception { + super.testSupportsTransactionIsolationLevel3(); + } + + /* + * @testName: testSupportsTransactionIsolationLevel4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with isolation level TRANSACTION_REPEATABLE_READ. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsTransactionIsolationLevel4() throws Exception { + super.testSupportsTransactionIsolationLevel4(); + + } + + /* + * @testName: testSupportsTransactionIsolationLevel5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with isolation level TRANSACTION_SERIALIZABLE. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsTransactionIsolationLevel5() throws Exception { + super.testSupportsTransactionIsolationLevel5(); + } + + /* + * @testName: testGetColumnPrivileges + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1056; JDBC:JAVADOC:1057; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getColumnPrivileges() method on that object. It + * should return a ResultSet object. Validate the column names and column + * ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetColumnPrivileges() throws Exception { + super.testGetColumnPrivileges(); + } + + /* + * @testName: testGetTablePrivileges + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1058; JDBC:JAVADOC:1059; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTablePrivileges() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetTablePrivileges() throws Exception { + super.testGetTablePrivileges(); + } + + /* + * @testName: testGetBestRowIdentifier1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetBestRowIdentifier1() throws Exception { + super.testGetBestRowIdentifier1(); + } + + /* + * @testName: testGetBestRowIdentifier2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetBestRowIdentifier2() throws Exception { + super.testGetBestRowIdentifier2(); + } + + /* + * @testName: testGetBestRowIdentifier3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetBestRowIdentifier3() throws Exception { + super.testGetBestRowIdentifier3(); + } + + /* + * @testName: testGetBestRowIdentifier4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetBestRowIdentifier4() throws Exception { + super.testGetBestRowIdentifier4(); + } + + /* + * @testName: testGetBestRowIdentifier5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetBestRowIdentifier5() throws Exception { + super.testGetBestRowIdentifier5(); + } + + /* + * @testName: testGetBestRowIdentifier6 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object + * + */ + @Test + @TargetVehicle("ejb") + public void testGetBestRowIdentifier6() throws Exception { + super.testGetBestRowIdentifier6(); + } + + /* + * @testName: testGetBestRowIdentifier7 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. Validate the column names and column + * ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetBestRowIdentifier7() throws Exception { + super.testGetBestRowIdentifier7(); + } + + /* + * @testName: testGetVersionColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1062; JDBC:JAVADOC:1063; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getVersionColumns() method on that object. It should + * return a ResultSet object.Compare the column names Validate the column + * names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetVersionColumns() throws Exception { + super.testGetVersionColumns(); + } + + /* + * @testName: testGetPrimaryKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1064; JDBC:JAVADOC:1065; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getPrimaryKeys() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetPrimaryKeys() throws Exception { + super.testGetPrimaryKeys(); + } + + /* + * @testName: testGetImportedKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1066; JDBC:JAVADOC:1067; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getImportedKeys() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetImportedKeys() throws Exception { + super.testGetImportedKeys(); + } + + /* + * @testName: testGetExportedKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1068; JDBC:JAVADOC:1069; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getExportedKeys() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetExportedKeys() throws Exception { + super.testGetExportedKeys(); + } + + /* + * @testName: testGetCrossReference + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1070; JDBC:JAVADOC:1071; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getCrossReference() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetCrossReference() throws Exception { + super.testGetCrossReference(); + } + + /* + * @testName: testGetIndexInfo1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetIndexInfo1() throws Exception { + super.testGetIndexInfo1(); + } + + /* + * @testName: testGetIndexInfo2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetIndexInfo2() throws Exception { + super.testGetIndexInfo2(); + } + + /* + * @testName: testGetIndexInfo3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetIndexInfo3() throws Exception { + super.testGetIndexInfo3(); + } + + /* + * @testName: testGetIndexInfo4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetIndexInfo4() throws Exception { + super.testGetIndexInfo4(); + } + + /* + * @testName: testGetIndexInfo5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetIndexInfo5() throws Exception { + super.testGetIndexInfo5(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11JSP.java new file mode 100644 index 0000000000..b8a57fff1c --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11JSP.java @@ -0,0 +1,496 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient11.java 1.30 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta11; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient11 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient11JSP extends dbMetaClient11 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta11"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta11_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(dbMetaClient11JSP.class, dbMetaClient11.class); + + // The jsp descriptor + URL jspUrl = dbMetaClient11JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dbMetaClient11JSP.class.getResource("dbMeta11_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, dbMetaClient11JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(dbMetaClient11JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient11JSP theTests = new dbMetaClient11JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSupportsTransactionIsolationLevel2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with the isolation level TRANSACTION_READ_COMMITTED. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsTransactionIsolationLevel2() throws Exception { + super.testSupportsTransactionIsolationLevel2(); + } + + /* + * @testName: testSupportsTransactionIsolationLevel3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with the isolation level + * TRANSACTION_READ_UNCOMMITTED. It should return a boolean value; either true + * or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsTransactionIsolationLevel3() throws Exception { + super.testSupportsTransactionIsolationLevel3(); + } + + /* + * @testName: testSupportsTransactionIsolationLevel4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with isolation level TRANSACTION_REPEATABLE_READ. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsTransactionIsolationLevel4() throws Exception { + super.testSupportsTransactionIsolationLevel4(); + + } + + /* + * @testName: testSupportsTransactionIsolationLevel5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with isolation level TRANSACTION_SERIALIZABLE. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsTransactionIsolationLevel5() throws Exception { + super.testSupportsTransactionIsolationLevel5(); + } + + /* + * @testName: testGetColumnPrivileges + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1056; JDBC:JAVADOC:1057; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getColumnPrivileges() method on that object. It + * should return a ResultSet object. Validate the column names and column + * ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetColumnPrivileges() throws Exception { + super.testGetColumnPrivileges(); + } + + /* + * @testName: testGetTablePrivileges + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1058; JDBC:JAVADOC:1059; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTablePrivileges() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetTablePrivileges() throws Exception { + super.testGetTablePrivileges(); + } + + /* + * @testName: testGetBestRowIdentifier1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetBestRowIdentifier1() throws Exception { + super.testGetBestRowIdentifier1(); + } + + /* + * @testName: testGetBestRowIdentifier2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetBestRowIdentifier2() throws Exception { + super.testGetBestRowIdentifier2(); + } + + /* + * @testName: testGetBestRowIdentifier3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetBestRowIdentifier3() throws Exception { + super.testGetBestRowIdentifier3(); + } + + /* + * @testName: testGetBestRowIdentifier4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetBestRowIdentifier4() throws Exception { + super.testGetBestRowIdentifier4(); + } + + /* + * @testName: testGetBestRowIdentifier5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetBestRowIdentifier5() throws Exception { + super.testGetBestRowIdentifier5(); + } + + /* + * @testName: testGetBestRowIdentifier6 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object + * + */ + @Test + @TargetVehicle("jsp") + public void testGetBestRowIdentifier6() throws Exception { + super.testGetBestRowIdentifier6(); + } + + /* + * @testName: testGetBestRowIdentifier7 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. Validate the column names and column + * ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetBestRowIdentifier7() throws Exception { + super.testGetBestRowIdentifier7(); + } + + /* + * @testName: testGetVersionColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1062; JDBC:JAVADOC:1063; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getVersionColumns() method on that object. It should + * return a ResultSet object.Compare the column names Validate the column + * names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetVersionColumns() throws Exception { + super.testGetVersionColumns(); + } + + /* + * @testName: testGetPrimaryKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1064; JDBC:JAVADOC:1065; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getPrimaryKeys() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetPrimaryKeys() throws Exception { + super.testGetPrimaryKeys(); + } + + /* + * @testName: testGetImportedKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1066; JDBC:JAVADOC:1067; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getImportedKeys() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetImportedKeys() throws Exception { + super.testGetImportedKeys(); + } + + /* + * @testName: testGetExportedKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1068; JDBC:JAVADOC:1069; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getExportedKeys() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetExportedKeys() throws Exception { + super.testGetExportedKeys(); + } + + /* + * @testName: testGetCrossReference + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1070; JDBC:JAVADOC:1071; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getCrossReference() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetCrossReference() throws Exception { + super.testGetCrossReference(); + } + + /* + * @testName: testGetIndexInfo1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetIndexInfo1() throws Exception { + super.testGetIndexInfo1(); + } + + /* + * @testName: testGetIndexInfo2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetIndexInfo2() throws Exception { + super.testGetIndexInfo2(); + } + + /* + * @testName: testGetIndexInfo3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetIndexInfo3() throws Exception { + super.testGetIndexInfo3(); + } + + /* + * @testName: testGetIndexInfo4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetIndexInfo4() throws Exception { + super.testGetIndexInfo4(); + } + + /* + * @testName: testGetIndexInfo5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetIndexInfo5() throws Exception { + super.testGetIndexInfo5(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11Servlet.java new file mode 100644 index 0000000000..285b4aa501 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta11/dbMetaClient11Servlet.java @@ -0,0 +1,484 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient11.java 1.30 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta11; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient11 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient11Servlet extends dbMetaClient11 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta11"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta11_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient11Servlet.class, dbMetaClient11.class); + // The servlet descriptor +URL servletUrl = dbMetaClient11Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dbMetaClient11Servlet.class.getResource("dbMeta11_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dbMetaClient11Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient11Servlet theTests = new dbMetaClient11Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSupportsTransactionIsolationLevel2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with the isolation level TRANSACTION_READ_COMMITTED. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsTransactionIsolationLevel2() throws Exception { + super.testSupportsTransactionIsolationLevel2(); + } + + /* + * @testName: testSupportsTransactionIsolationLevel3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with the isolation level + * TRANSACTION_READ_UNCOMMITTED. It should return a boolean value; either true + * or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsTransactionIsolationLevel3() throws Exception { + super.testSupportsTransactionIsolationLevel3(); + } + + /* + * @testName: testSupportsTransactionIsolationLevel4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with isolation level TRANSACTION_REPEATABLE_READ. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsTransactionIsolationLevel4() throws Exception { + super.testSupportsTransactionIsolationLevel4(); + + } + + /* + * @testName: testSupportsTransactionIsolationLevel5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1032; JDBC:JAVADOC:1033; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactionIsolationLevel(int isolevel) + * method on that object with isolation level TRANSACTION_SERIALIZABLE. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsTransactionIsolationLevel5() throws Exception { + super.testSupportsTransactionIsolationLevel5(); + } + + /* + * @testName: testGetColumnPrivileges + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1056; JDBC:JAVADOC:1057; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getColumnPrivileges() method on that object. It + * should return a ResultSet object. Validate the column names and column + * ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetColumnPrivileges() throws Exception { + super.testGetColumnPrivileges(); + } + + /* + * @testName: testGetTablePrivileges + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1058; JDBC:JAVADOC:1059; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTablePrivileges() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetTablePrivileges() throws Exception { + super.testGetTablePrivileges(); + } + + /* + * @testName: testGetBestRowIdentifier1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetBestRowIdentifier1() throws Exception { + super.testGetBestRowIdentifier1(); + } + + /* + * @testName: testGetBestRowIdentifier2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetBestRowIdentifier2() throws Exception { + super.testGetBestRowIdentifier2(); + } + + /* + * @testName: testGetBestRowIdentifier3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetBestRowIdentifier3() throws Exception { + super.testGetBestRowIdentifier3(); + } + + /* + * @testName: testGetBestRowIdentifier4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetBestRowIdentifier4() throws Exception { + super.testGetBestRowIdentifier4(); + } + + /* + * @testName: testGetBestRowIdentifier5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetBestRowIdentifier5() throws Exception { + super.testGetBestRowIdentifier5(); + } + + /* + * @testName: testGetBestRowIdentifier6 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object + * + */ + @Test + @TargetVehicle("servlet") + public void testGetBestRowIdentifier6() throws Exception { + super.testGetBestRowIdentifier6(); + } + + /* + * @testName: testGetBestRowIdentifier7 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1060; JDBC:JAVADOC:1061; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getBestRowIdentifier() method on that object. It + * should return a ResultSet object. Validate the column names and column + * ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetBestRowIdentifier7() throws Exception { + super.testGetBestRowIdentifier7(); + } + + /* + * @testName: testGetVersionColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1062; JDBC:JAVADOC:1063; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getVersionColumns() method on that object. It should + * return a ResultSet object.Compare the column names Validate the column + * names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetVersionColumns() throws Exception { + super.testGetVersionColumns(); + } + + /* + * @testName: testGetPrimaryKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1064; JDBC:JAVADOC:1065; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getPrimaryKeys() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetPrimaryKeys() throws Exception { + super.testGetPrimaryKeys(); + } + + /* + * @testName: testGetImportedKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1066; JDBC:JAVADOC:1067; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getImportedKeys() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetImportedKeys() throws Exception { + super.testGetImportedKeys(); + } + + /* + * @testName: testGetExportedKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1068; JDBC:JAVADOC:1069; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getExportedKeys() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetExportedKeys() throws Exception { + super.testGetExportedKeys(); + } + + /* + * @testName: testGetCrossReference + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1070; JDBC:JAVADOC:1071; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getCrossReference() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetCrossReference() throws Exception { + super.testGetCrossReference(); + } + + /* + * @testName: testGetIndexInfo1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetIndexInfo1() throws Exception { + super.testGetIndexInfo1(); + } + + /* + * @testName: testGetIndexInfo2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetIndexInfo2() throws Exception { + super.testGetIndexInfo2(); + } + + /* + * @testName: testGetIndexInfo3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetIndexInfo3() throws Exception { + super.testGetIndexInfo3(); + } + + /* + * @testName: testGetIndexInfo4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetIndexInfo4() throws Exception { + super.testGetIndexInfo4(); + } + + /* + * @testName: testGetIndexInfo5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1074; JDBC:JAVADOC:1075; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getIndexInfo() method on that object. It should + * return a ResultSet object. Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetIndexInfo5() throws Exception { + super.testGetIndexInfo5(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/build.xml deleted file mode 100644 index a36e15b99c..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12.java index 008082deda..5a4fceb054 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12.java @@ -29,8 +29,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -45,6 +49,12 @@ * @author * @version 1.0, 16/09/2002 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") +@Tag("web_profile") +@Tag("tck-javatest") + public class dbMetaClient12 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dbMeta.dbMeta12"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12AppClient.java new file mode 100644 index 0000000000..8a76dd81cf --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12AppClient.java @@ -0,0 +1,303 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient12.java 1.2 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta12; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The dbMetaClient class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.0, 16/09/2002 + */ + +@Tag("tck-appclient") + +public class dbMetaClient12AppClient extends dbMetaClient12 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta12"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dbMeta12_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient12AppClient.class, dbMetaClient12.class); + // The appclient-client descriptor + URL appClientUrl = dbMetaClient12AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dbMetaClient12AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dbMetaClient12AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta12_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient12AppClient theTests = new dbMetaClient12AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetSQLStateType + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1130; JDBC:JAVADOC:1131; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getSQLStateType() method on that object. It should + * return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetSQLStateType() throws Exception { + super.testGetSQLStateType(); + } + + /* + * @testName: testGetDatabaseMinorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1124; JDBC:JAVADOC:1125; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getDatabaseMinorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetDatabaseMinorVersion() throws Exception { + super.testGetDatabaseMinorVersion(); + } + + /* + * @testName: testGetDatabaseMajorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1122; JDBC:JAVADOC:1123; + * JavaEE:SPEC:193; + * + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getDatabaseMajorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetDatabaseMajorVersion() throws Exception { + super.testGetDatabaseMajorVersion(); + } + + /* + * @testName: testGetJDBCMinorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1128; JDBC:JAVADOC:1129; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getJDBCMinorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetJDBCMinorVersion() throws Exception { + super.testGetJDBCMinorVersion(); + } + + /* + * @testName: testGetJDBCMajorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1126; JDBC:JAVADOC:1127; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getJDBCMajorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetJDBCMajorVersion() throws Exception { + super.testGetJDBCMajorVersion(); + } + + /* + * @testName: testSupportsSavepoints + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1104; JDBC:JAVADOC:1105; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSavepoints() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsSavepoints() throws Exception { + super.testSupportsSavepoints(); + } + + + /* + * @testName: testSupportsNamedParameters + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1106; JDBC:JAVADOC:1107; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSavepoints() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsNamedParameters() throws Exception { + super.testSupportsNamedParameters(); + } + + /* + * @testName: testSupportsMultipleOpenResults + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1108; JDBC:JAVADOC:1109; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsMultipleOpenResults() method. It should + * return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsMultipleOpenResults() throws Exception { + super.testSupportsMultipleOpenResults(); + } + + /* + * @testName: testSupportsGetGeneratedKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1110; JDBC:JAVADOC:1111; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsGetGeneratedKeys() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsGetGeneratedKeys() throws Exception { + super.testSupportsGetGeneratedKeys(); + } + + /* + * @testName: testSupportsResultSetHoldability01 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1118; JDBC:JAVADOC:1119; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetHoldability(int holdability) method. + * It should return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsResultSetHoldability01() throws Exception { + super.testSupportsResultSetHoldability01(); + } + + /* + * @testName: testSupportsResultSetHoldability02 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1118; JDBC:JAVADOC:1119; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetHoldability(int holdability) method. + * It should return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsResultSetHoldability02() throws Exception { + super.testSupportsResultSetHoldability02(); + } + + /* + * @testName: testGetResultSetHoldability + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1120; JDBC:JAVADOC:1121; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetHoldability(int holdability) method. + * It should return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetResultSetHoldability() throws Exception { + super.testGetResultSetHoldability(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12EJB.java new file mode 100644 index 0000000000..00b3faff40 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12EJB.java @@ -0,0 +1,323 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient12.java 1.2 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta12; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The dbMetaClient class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.0, 16/09/2002 + */ + +@Tag("tck-appclient") + +public class dbMetaClient12EJB extends dbMetaClient12 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta12"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dbMeta12_appclient_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dbMetaClient12EJB.class, dbMetaClient12.class); + + URL resURL = dbMetaClient12EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dbMetaClient12EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMeta12_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dbMeta12_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dbMetaClient12EJB.class, dbMetaClient12.class); + + + resURL = dbMetaClient12EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMeta12_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dbMetaClient12EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta12_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient12EJB theTests = new dbMetaClient12EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetSQLStateType + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1130; JDBC:JAVADOC:1131; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getSQLStateType() method on that object. It should + * return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetSQLStateType() throws Exception { + super.testGetSQLStateType(); + } + + /* + * @testName: testGetDatabaseMinorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1124; JDBC:JAVADOC:1125; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getDatabaseMinorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetDatabaseMinorVersion() throws Exception { + super.testGetDatabaseMinorVersion(); + } + + /* + * @testName: testGetDatabaseMajorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1122; JDBC:JAVADOC:1123; + * JavaEE:SPEC:193; + * + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getDatabaseMajorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetDatabaseMajorVersion() throws Exception { + super.testGetDatabaseMajorVersion(); + } + + /* + * @testName: testGetJDBCMinorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1128; JDBC:JAVADOC:1129; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getJDBCMinorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetJDBCMinorVersion() throws Exception { + super.testGetJDBCMinorVersion(); + } + + /* + * @testName: testGetJDBCMajorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1126; JDBC:JAVADOC:1127; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getJDBCMajorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetJDBCMajorVersion() throws Exception { + super.testGetJDBCMajorVersion(); + } + + /* + * @testName: testSupportsSavepoints + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1104; JDBC:JAVADOC:1105; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSavepoints() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsSavepoints() throws Exception { + super.testSupportsSavepoints(); + } + + + /* + * @testName: testSupportsNamedParameters + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1106; JDBC:JAVADOC:1107; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSavepoints() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsNamedParameters() throws Exception { + super.testSupportsNamedParameters(); + } + + /* + * @testName: testSupportsMultipleOpenResults + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1108; JDBC:JAVADOC:1109; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsMultipleOpenResults() method. It should + * return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsMultipleOpenResults() throws Exception { + super.testSupportsMultipleOpenResults(); + } + + /* + * @testName: testSupportsGetGeneratedKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1110; JDBC:JAVADOC:1111; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsGetGeneratedKeys() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsGetGeneratedKeys() throws Exception { + super.testSupportsGetGeneratedKeys(); + } + + /* + * @testName: testSupportsResultSetHoldability01 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1118; JDBC:JAVADOC:1119; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetHoldability(int holdability) method. + * It should return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsResultSetHoldability01() throws Exception { + super.testSupportsResultSetHoldability01(); + } + + /* + * @testName: testSupportsResultSetHoldability02 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1118; JDBC:JAVADOC:1119; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetHoldability(int holdability) method. + * It should return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsResultSetHoldability02() throws Exception { + super.testSupportsResultSetHoldability02(); + } + + /* + * @testName: testGetResultSetHoldability + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1120; JDBC:JAVADOC:1121; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetHoldability(int holdability) method. + * It should return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetResultSetHoldability() throws Exception { + super.testGetResultSetHoldability(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12JSP.java new file mode 100644 index 0000000000..e624bb8140 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12JSP.java @@ -0,0 +1,308 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient12.java 1.2 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta12; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.batchUpdate.batchUpdateClientJSP; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The dbMetaClient class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.0, 16/09/2002 + */ + +@Tag("tck-javatest") + +public class dbMetaClient12JSP extends dbMetaClient12 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta12"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta12_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(dbMetaClient12JSP.class, dbMetaClient12.class); + + // The jsp descriptor + URL jspUrl = dbMetaClient12JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dbMetaClient12JSP.class.getResource("dbMeta12_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, batchUpdateClientJSP.class, sunJSPUrl); + + archive.addAsWebInfResource(dbMetaClient12JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient12JSP theTests = new dbMetaClient12JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetSQLStateType + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1130; JDBC:JAVADOC:1131; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getSQLStateType() method on that object. It should + * return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetSQLStateType() throws Exception { + super.testGetSQLStateType(); + } + + /* + * @testName: testGetDatabaseMinorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1124; JDBC:JAVADOC:1125; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getDatabaseMinorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetDatabaseMinorVersion() throws Exception { + super.testGetDatabaseMinorVersion(); + } + + /* + * @testName: testGetDatabaseMajorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1122; JDBC:JAVADOC:1123; + * JavaEE:SPEC:193; + * + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getDatabaseMajorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetDatabaseMajorVersion() throws Exception { + super.testGetDatabaseMajorVersion(); + } + + /* + * @testName: testGetJDBCMinorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1128; JDBC:JAVADOC:1129; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getJDBCMinorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetJDBCMinorVersion() throws Exception { + super.testGetJDBCMinorVersion(); + } + + /* + * @testName: testGetJDBCMajorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1126; JDBC:JAVADOC:1127; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getJDBCMajorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetJDBCMajorVersion() throws Exception { + super.testGetJDBCMajorVersion(); + } + + /* + * @testName: testSupportsSavepoints + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1104; JDBC:JAVADOC:1105; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSavepoints() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsSavepoints() throws Exception { + super.testSupportsSavepoints(); + } + + + /* + * @testName: testSupportsNamedParameters + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1106; JDBC:JAVADOC:1107; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSavepoints() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsNamedParameters() throws Exception { + super.testSupportsNamedParameters(); + } + + /* + * @testName: testSupportsMultipleOpenResults + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1108; JDBC:JAVADOC:1109; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsMultipleOpenResults() method. It should + * return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsMultipleOpenResults() throws Exception { + super.testSupportsMultipleOpenResults(); + } + + /* + * @testName: testSupportsGetGeneratedKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1110; JDBC:JAVADOC:1111; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsGetGeneratedKeys() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsGetGeneratedKeys() throws Exception { + super.testSupportsGetGeneratedKeys(); + } + + /* + * @testName: testSupportsResultSetHoldability01 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1118; JDBC:JAVADOC:1119; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetHoldability(int holdability) method. + * It should return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsResultSetHoldability01() throws Exception { + super.testSupportsResultSetHoldability01(); + } + + /* + * @testName: testSupportsResultSetHoldability02 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1118; JDBC:JAVADOC:1119; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetHoldability(int holdability) method. + * It should return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsResultSetHoldability02() throws Exception { + super.testSupportsResultSetHoldability02(); + } + + /* + * @testName: testGetResultSetHoldability + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1120; JDBC:JAVADOC:1121; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetHoldability(int holdability) method. + * It should return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetResultSetHoldability() throws Exception { + super.testGetResultSetHoldability(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12Servlet.java new file mode 100644 index 0000000000..2e412dcc4e --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta12/dbMetaClient12Servlet.java @@ -0,0 +1,295 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient12.java 1.2 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta12; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The dbMetaClient class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.0, 16/09/2002 + */ + +@Tag("tck-javatest") + +public class dbMetaClient12Servlet extends dbMetaClient12 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta12"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta12_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient12Servlet.class, dbMetaClient12.class); + // The servlet descriptor +URL servletUrl = dbMetaClient12Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dbMetaClient12Servlet.class.getResource("dbMeta12_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dbMetaClient12Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient12Servlet theTests = new dbMetaClient12Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetSQLStateType + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1130; JDBC:JAVADOC:1131; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getSQLStateType() method on that object. It should + * return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetSQLStateType() throws Exception { + super.testGetSQLStateType(); + } + + /* + * @testName: testGetDatabaseMinorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1124; JDBC:JAVADOC:1125; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getDatabaseMinorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetDatabaseMinorVersion() throws Exception { + super.testGetDatabaseMinorVersion(); + } + + /* + * @testName: testGetDatabaseMajorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1122; JDBC:JAVADOC:1123; + * JavaEE:SPEC:193; + * + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getDatabaseMajorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetDatabaseMajorVersion() throws Exception { + super.testGetDatabaseMajorVersion(); + } + + /* + * @testName: testGetJDBCMinorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1128; JDBC:JAVADOC:1129; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getJDBCMinorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetJDBCMinorVersion() throws Exception { + super.testGetJDBCMinorVersion(); + } + + /* + * @testName: testGetJDBCMajorVersion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1126; JDBC:JAVADOC:1127; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getJDBCMajorVersion() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetJDBCMajorVersion() throws Exception { + super.testGetJDBCMajorVersion(); + } + + /* + * @testName: testSupportsSavepoints + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1104; JDBC:JAVADOC:1105; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSavepoints() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsSavepoints() throws Exception { + super.testSupportsSavepoints(); + } + + + /* + * @testName: testSupportsNamedParameters + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1106; JDBC:JAVADOC:1107; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSavepoints() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsNamedParameters() throws Exception { + super.testSupportsNamedParameters(); + } + + /* + * @testName: testSupportsMultipleOpenResults + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1108; JDBC:JAVADOC:1109; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsMultipleOpenResults() method. It should + * return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsMultipleOpenResults() throws Exception { + super.testSupportsMultipleOpenResults(); + } + + /* + * @testName: testSupportsGetGeneratedKeys + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1110; JDBC:JAVADOC:1111; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsGetGeneratedKeys() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsGetGeneratedKeys() throws Exception { + super.testSupportsGetGeneratedKeys(); + } + + /* + * @testName: testSupportsResultSetHoldability01 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1118; JDBC:JAVADOC:1119; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetHoldability(int holdability) method. + * It should return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsResultSetHoldability01() throws Exception { + super.testSupportsResultSetHoldability01(); + } + + /* + * @testName: testSupportsResultSetHoldability02 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1118; JDBC:JAVADOC:1119; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetHoldability(int holdability) method. + * It should return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsResultSetHoldability02() throws Exception { + super.testSupportsResultSetHoldability02(); + } + + /* + * @testName: testGetResultSetHoldability + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1120; JDBC:JAVADOC:1121; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetHoldability(int holdability) method. + * It should return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetResultSetHoldability() throws Exception { + super.testGetResultSetHoldability(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/build.xml deleted file mode 100644 index c8e0228ee0..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2.java index 9ea090f2cf..0cbea5e94c 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2.java @@ -29,8 +29,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -48,6 +52,12 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") +@Tag("web_profile") +@Tag("tck-javatest") + public class dbMetaClient2 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dbMeta.dbMeta2"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2AppClient.java new file mode 100644 index 0000000000..b62f50e1ce --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2AppClient.java @@ -0,0 +1,437 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient2.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient2 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient2AppClient extends dbMetaClient2 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta2"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dbMeta2_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient2AppClient.class, dbMetaClient2.class); + // The appclient-client descriptor + URL appClientUrl = dbMetaClient2AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dbMetaClient2AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dbMetaClient2AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta2_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient2AppClient theTests = new dbMetaClient2AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testStoresMixedCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:846; JDBC:JAVADOC:847; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesMixedCaseIdentifiers() method It should return + * a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testStoresMixedCaseIdentifiers() throws Exception { + super.testStoresMixedCaseIdentifiers(); + } + + /* + * @testName: testSupportsMixedCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:848; JDBC:JAVADOC:849; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMixedCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsMixedCaseQuotedIdentifiers() throws Exception { + super.testStoresMixedCaseIdentifiers(); + } + + /* + * @testName: testStoresUpperCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:850; JDBC:JAVADOC:851; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesUpperCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testStoresUpperCaseQuotedIdentifiers() throws Exception { + super.testStoresUpperCaseQuotedIdentifiers(); + } + + /* + * @testName: testStoresLowerCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:852; JDBC:JAVADOC:853; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesLowerCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testStoresLowerCaseQuotedIdentifiers() throws Exception { + super.testStoresLowerCaseQuotedIdentifiers(); + } + + /* + * @testName: testStoresMixedCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:854; JDBC:JAVADOC:855; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesMixedCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testStoresMixedCaseQuotedIdentifiers() throws Exception { + super.testStoresMixedCaseQuotedIdentifiers(); + } + + /* + * @testName: testGetIdentifierQuoteString + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:856; JDBC:JAVADOC:857; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getIdentifierQuoteString() method It should return a + * String + * + */ + @Test + @TargetVehicle("appclient") + public void testGetIdentifierQuoteString() throws Exception { + super.testGetIdentifierQuoteString(); + } + + /* + * @testName: testGetSQLKeywords + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:858; JDBC:JAVADOC:859; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSQLKeywords() method It should return a String + * + */ + @Test + @TargetVehicle("appclient") + public void testGetSQLKeywords() throws Exception { + super.testGetSQLKeywords(); + } + + /* + * @testName: testGetNumericFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:860; JDBC:JAVADOC:861; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getNumericFunctions() method It should return a + * String + * + */ + @Test + @TargetVehicle("appclient") + public void testGetNumericFunctions() throws Exception { + super.testGetNumericFunctions(); + } + + /* + * @testName: testGetStringFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:862; JDBC:JAVADOC:863; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getStringFunctions() method It should return a String + * + */ + @Test + @TargetVehicle("appclient") + public void testGetStringFunctions() throws Exception { + super.testGetStringFunctions(); + } + + /* + * @testName: testGetSystemFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:864; JDBC:JAVADOC:865; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSystemFunctions() method It should return a String + * + */ + @Test + @TargetVehicle("appclient") + public void testGetSystemFunctions() throws Exception { + super.testGetSystemFunctions(); + } + + /* + * @testName: testGetTimeDateFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:866; JDBC:JAVADOC:867; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getTimeDateFunctions() method It should return a + * String + * + */ + @Test + @TargetVehicle("appclient") + public void testGetTimeDateFunctions() throws Exception { + super.testGetTimeDateFunctions(); + } + + /* + * @testName: testGetSearchStringEscape + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:868; JDBC:JAVADOC:869; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSearchStringEscape() method It should return a + * String + * + */ + @Test + @TargetVehicle("appclient") + public void testGetSearchStringEscape() throws Exception { + super.testGetSearchStringEscape(); + } + + /* + * @testName: testGetExtraNameCharacters + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:870; JDBC:JAVADOC:871; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getExtraNameCharacters() method It should return a + * String + * + */ + @Test + @TargetVehicle("appclient") + public void testGetExtraNameCharacters() throws Exception { + super.testGetExtraNameCharacters(); + } + + /* + * @testName: testSupportsAlterTableWithAddColumn + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:872; JDBC:JAVADOC:873; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsAlterTableWithAddColumn() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsAlterTableWithAddColumn() throws Exception { + super.testSupportsAlterTableWithAddColumn(); + } + + /* + * @testName: testSupportsAlterTableWithDropColumn + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:874; JDBC:JAVADOC:875; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsAlterTableWithDropColumn() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsAlterTableWithDropColumn() throws Exception { + super.testSupportsAlterTableWithDropColumn(); + } + + /* + * @testName: testSupportsColumnAliasing + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:876; JDBC:JAVADOC:877; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsColumnAliasing() method It should return a + * true value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsColumnAliasing() throws Exception { + super.testSupportsColumnAliasing(); + } + + /* + * @testName: testNullPlusNonNullIsNull + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:878; JDBC:JAVADOC:879; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullPlusNonNullIsNull() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testNullPlusNonNullIsNull() throws Exception { + super.testNullPlusNonNullIsNull(); + } + + /* + * @testName: testSupportsConvert + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:880; JDBC:JAVADOC:881; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert() method It should return a boolean + * value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert() throws Exception { + super.testSupportsConvert(); + } + + /* + * @testName: testSupportsConvert01 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(ARRAY, VARCHAR) method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert01() throws Exception { + super.testSupportsConvert01(); + } + + /* + * @testName: testSupportsConvert02 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIGINT, VARCHAR) method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert02() throws Exception { + super.testSupportsConvert02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2EJB.java new file mode 100644 index 0000000000..bea7b41363 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2EJB.java @@ -0,0 +1,456 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient2.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient2 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient2EJB extends dbMetaClient2 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta2"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dbMeta2_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dbMetaClient2EJB.class, dbMetaClient2.class); + + URL resURL = dbMetaClient2EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dbMetaClient2EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMeta2_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dbMeta2_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dbMetaClient2EJB.class, dbMetaClient2.class); + + + resURL = dbMetaClient2EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMeta2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dbMetaClient2EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta2_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient2EJB theTests = new dbMetaClient2EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testStoresMixedCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:846; JDBC:JAVADOC:847; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesMixedCaseIdentifiers() method It should return + * a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testStoresMixedCaseIdentifiers() throws Exception { + super.testStoresMixedCaseIdentifiers(); + } + + /* + * @testName: testSupportsMixedCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:848; JDBC:JAVADOC:849; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMixedCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsMixedCaseQuotedIdentifiers() throws Exception { + super.testStoresMixedCaseIdentifiers(); + } + + /* + * @testName: testStoresUpperCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:850; JDBC:JAVADOC:851; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesUpperCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testStoresUpperCaseQuotedIdentifiers() throws Exception { + super.testStoresUpperCaseQuotedIdentifiers(); + } + + /* + * @testName: testStoresLowerCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:852; JDBC:JAVADOC:853; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesLowerCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testStoresLowerCaseQuotedIdentifiers() throws Exception { + super.testStoresLowerCaseQuotedIdentifiers(); + } + + /* + * @testName: testStoresMixedCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:854; JDBC:JAVADOC:855; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesMixedCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testStoresMixedCaseQuotedIdentifiers() throws Exception { + super.testStoresMixedCaseQuotedIdentifiers(); + } + + /* + * @testName: testGetIdentifierQuoteString + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:856; JDBC:JAVADOC:857; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getIdentifierQuoteString() method It should return a + * String + * + */ + @Test + @TargetVehicle("ejb") + public void testGetIdentifierQuoteString() throws Exception { + super.testGetIdentifierQuoteString(); + } + + /* + * @testName: testGetSQLKeywords + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:858; JDBC:JAVADOC:859; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSQLKeywords() method It should return a String + * + */ + @Test + @TargetVehicle("ejb") + public void testGetSQLKeywords() throws Exception { + super.testGetSQLKeywords(); + } + + /* + * @testName: testGetNumericFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:860; JDBC:JAVADOC:861; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getNumericFunctions() method It should return a + * String + * + */ + @Test + @TargetVehicle("ejb") + public void testGetNumericFunctions() throws Exception { + super.testGetNumericFunctions(); + } + + /* + * @testName: testGetStringFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:862; JDBC:JAVADOC:863; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getStringFunctions() method It should return a String + * + */ + @Test + @TargetVehicle("ejb") + public void testGetStringFunctions() throws Exception { + super.testGetStringFunctions(); + } + + /* + * @testName: testGetSystemFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:864; JDBC:JAVADOC:865; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSystemFunctions() method It should return a String + * + */ + @Test + @TargetVehicle("ejb") + public void testGetSystemFunctions() throws Exception { + super.testGetSystemFunctions(); + } + + /* + * @testName: testGetTimeDateFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:866; JDBC:JAVADOC:867; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getTimeDateFunctions() method It should return a + * String + * + */ + @Test + @TargetVehicle("ejb") + public void testGetTimeDateFunctions() throws Exception { + super.testGetTimeDateFunctions(); + } + + /* + * @testName: testGetSearchStringEscape + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:868; JDBC:JAVADOC:869; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSearchStringEscape() method It should return a + * String + * + */ + @Test + @TargetVehicle("ejb") + public void testGetSearchStringEscape() throws Exception { + super.testGetSearchStringEscape(); + } + + /* + * @testName: testGetExtraNameCharacters + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:870; JDBC:JAVADOC:871; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getExtraNameCharacters() method It should return a + * String + * + */ + @Test + @TargetVehicle("ejb") + public void testGetExtraNameCharacters() throws Exception { + super.testGetExtraNameCharacters(); + } + + /* + * @testName: testSupportsAlterTableWithAddColumn + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:872; JDBC:JAVADOC:873; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsAlterTableWithAddColumn() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsAlterTableWithAddColumn() throws Exception { + super.testSupportsAlterTableWithAddColumn(); + } + + /* + * @testName: testSupportsAlterTableWithDropColumn + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:874; JDBC:JAVADOC:875; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsAlterTableWithDropColumn() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsAlterTableWithDropColumn() throws Exception { + super.testSupportsAlterTableWithDropColumn(); + } + + /* + * @testName: testSupportsColumnAliasing + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:876; JDBC:JAVADOC:877; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsColumnAliasing() method It should return a + * true value + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsColumnAliasing() throws Exception { + super.testSupportsColumnAliasing(); + } + + /* + * @testName: testNullPlusNonNullIsNull + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:878; JDBC:JAVADOC:879; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullPlusNonNullIsNull() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testNullPlusNonNullIsNull() throws Exception { + super.testNullPlusNonNullIsNull(); + } + + /* + * @testName: testSupportsConvert + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:880; JDBC:JAVADOC:881; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert() method It should return a boolean + * value + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert() throws Exception { + super.testSupportsConvert(); + } + + /* + * @testName: testSupportsConvert01 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(ARRAY, VARCHAR) method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert01() throws Exception { + super.testSupportsConvert01(); + } + + /* + * @testName: testSupportsConvert02 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIGINT, VARCHAR) method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert02() throws Exception { + super.testSupportsConvert02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2JSP.java new file mode 100644 index 0000000000..d94acc1446 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2JSP.java @@ -0,0 +1,440 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient2.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta2; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient2 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient2JSP extends dbMetaClient2 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta2"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta2_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(dbMetaClient2JSP.class, dbMetaClient2.class); + + // The jsp descriptor + URL jspUrl = dbMetaClient2JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dbMetaClient2JSP.class.getResource("dbMeta2_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, dbMetaClient2JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(dbMetaClient2JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient2JSP theTests = new dbMetaClient2JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testStoresMixedCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:846; JDBC:JAVADOC:847; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesMixedCaseIdentifiers() method It should return + * a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testStoresMixedCaseIdentifiers() throws Exception { + super.testStoresMixedCaseIdentifiers(); + } + + /* + * @testName: testSupportsMixedCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:848; JDBC:JAVADOC:849; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMixedCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsMixedCaseQuotedIdentifiers() throws Exception { + super.testStoresMixedCaseIdentifiers(); + } + + /* + * @testName: testStoresUpperCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:850; JDBC:JAVADOC:851; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesUpperCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testStoresUpperCaseQuotedIdentifiers() throws Exception { + super.testStoresUpperCaseQuotedIdentifiers(); + } + + /* + * @testName: testStoresLowerCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:852; JDBC:JAVADOC:853; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesLowerCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testStoresLowerCaseQuotedIdentifiers() throws Exception { + super.testStoresLowerCaseQuotedIdentifiers(); + } + + /* + * @testName: testStoresMixedCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:854; JDBC:JAVADOC:855; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesMixedCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testStoresMixedCaseQuotedIdentifiers() throws Exception { + super.testStoresMixedCaseQuotedIdentifiers(); + } + + /* + * @testName: testGetIdentifierQuoteString + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:856; JDBC:JAVADOC:857; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getIdentifierQuoteString() method It should return a + * String + * + */ + @Test + @TargetVehicle("jsp") + public void testGetIdentifierQuoteString() throws Exception { + super.testGetIdentifierQuoteString(); + } + + /* + * @testName: testGetSQLKeywords + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:858; JDBC:JAVADOC:859; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSQLKeywords() method It should return a String + * + */ + @Test + @TargetVehicle("jsp") + public void testGetSQLKeywords() throws Exception { + super.testGetSQLKeywords(); + } + + /* + * @testName: testGetNumericFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:860; JDBC:JAVADOC:861; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getNumericFunctions() method It should return a + * String + * + */ + @Test + @TargetVehicle("jsp") + public void testGetNumericFunctions() throws Exception { + super.testGetNumericFunctions(); + } + + /* + * @testName: testGetStringFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:862; JDBC:JAVADOC:863; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getStringFunctions() method It should return a String + * + */ + @Test + @TargetVehicle("jsp") + public void testGetStringFunctions() throws Exception { + super.testGetStringFunctions(); + } + + /* + * @testName: testGetSystemFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:864; JDBC:JAVADOC:865; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSystemFunctions() method It should return a String + * + */ + @Test + @TargetVehicle("jsp") + public void testGetSystemFunctions() throws Exception { + super.testGetSystemFunctions(); + } + + /* + * @testName: testGetTimeDateFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:866; JDBC:JAVADOC:867; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getTimeDateFunctions() method It should return a + * String + * + */ + @Test + @TargetVehicle("jsp") + public void testGetTimeDateFunctions() throws Exception { + super.testGetTimeDateFunctions(); + } + + /* + * @testName: testGetSearchStringEscape + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:868; JDBC:JAVADOC:869; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSearchStringEscape() method It should return a + * String + * + */ + @Test + @TargetVehicle("jsp") + public void testGetSearchStringEscape() throws Exception { + super.testGetSearchStringEscape(); + } + + /* + * @testName: testGetExtraNameCharacters + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:870; JDBC:JAVADOC:871; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getExtraNameCharacters() method It should return a + * String + * + */ + @Test + @TargetVehicle("jsp") + public void testGetExtraNameCharacters() throws Exception { + super.testGetExtraNameCharacters(); + } + + /* + * @testName: testSupportsAlterTableWithAddColumn + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:872; JDBC:JAVADOC:873; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsAlterTableWithAddColumn() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsAlterTableWithAddColumn() throws Exception { + super.testSupportsAlterTableWithAddColumn(); + } + + /* + * @testName: testSupportsAlterTableWithDropColumn + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:874; JDBC:JAVADOC:875; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsAlterTableWithDropColumn() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsAlterTableWithDropColumn() throws Exception { + super.testSupportsAlterTableWithDropColumn(); + } + + /* + * @testName: testSupportsColumnAliasing + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:876; JDBC:JAVADOC:877; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsColumnAliasing() method It should return a + * true value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsColumnAliasing() throws Exception { + super.testSupportsColumnAliasing(); + } + + /* + * @testName: testNullPlusNonNullIsNull + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:878; JDBC:JAVADOC:879; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullPlusNonNullIsNull() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testNullPlusNonNullIsNull() throws Exception { + super.testNullPlusNonNullIsNull(); + } + + /* + * @testName: testSupportsConvert + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:880; JDBC:JAVADOC:881; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert() method It should return a boolean + * value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert() throws Exception { + super.testSupportsConvert(); + } + + /* + * @testName: testSupportsConvert01 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(ARRAY, VARCHAR) method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert01() throws Exception { + super.testSupportsConvert01(); + } + + /* + * @testName: testSupportsConvert02 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIGINT, VARCHAR) method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert02() throws Exception { + super.testSupportsConvert02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2Servlet.java new file mode 100644 index 0000000000..70eefc6588 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta2/dbMetaClient2Servlet.java @@ -0,0 +1,428 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient2.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient2 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient2Servlet extends dbMetaClient2 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta2"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta2_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient2Servlet.class, dbMetaClient2.class); + // The servlet descriptor +URL servletUrl = dbMetaClient2Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dbMetaClient2Servlet.class.getResource("dbMeta2_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dbMetaClient2Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient2Servlet theTests = new dbMetaClient2Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testStoresMixedCaseIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:846; JDBC:JAVADOC:847; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesMixedCaseIdentifiers() method It should return + * a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testStoresMixedCaseIdentifiers() throws Exception { + super.testStoresMixedCaseIdentifiers(); + } + + /* + * @testName: testSupportsMixedCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:848; JDBC:JAVADOC:849; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMixedCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsMixedCaseQuotedIdentifiers() throws Exception { + super.testStoresMixedCaseIdentifiers(); + } + + /* + * @testName: testStoresUpperCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:850; JDBC:JAVADOC:851; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesUpperCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testStoresUpperCaseQuotedIdentifiers() throws Exception { + super.testStoresUpperCaseQuotedIdentifiers(); + } + + /* + * @testName: testStoresLowerCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:852; JDBC:JAVADOC:853; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesLowerCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testStoresLowerCaseQuotedIdentifiers() throws Exception { + super.testStoresLowerCaseQuotedIdentifiers(); + } + + /* + * @testName: testStoresMixedCaseQuotedIdentifiers + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:854; JDBC:JAVADOC:855; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the storesMixedCaseQuotedIdentifiers() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testStoresMixedCaseQuotedIdentifiers() throws Exception { + super.testStoresMixedCaseQuotedIdentifiers(); + } + + /* + * @testName: testGetIdentifierQuoteString + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:856; JDBC:JAVADOC:857; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getIdentifierQuoteString() method It should return a + * String + * + */ + @Test + @TargetVehicle("servlet") + public void testGetIdentifierQuoteString() throws Exception { + super.testGetIdentifierQuoteString(); + } + + /* + * @testName: testGetSQLKeywords + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:858; JDBC:JAVADOC:859; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSQLKeywords() method It should return a String + * + */ + @Test + @TargetVehicle("servlet") + public void testGetSQLKeywords() throws Exception { + super.testGetSQLKeywords(); + } + + /* + * @testName: testGetNumericFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:860; JDBC:JAVADOC:861; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getNumericFunctions() method It should return a + * String + * + */ + @Test + @TargetVehicle("servlet") + public void testGetNumericFunctions() throws Exception { + super.testGetNumericFunctions(); + } + + /* + * @testName: testGetStringFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:862; JDBC:JAVADOC:863; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getStringFunctions() method It should return a String + * + */ + @Test + @TargetVehicle("servlet") + public void testGetStringFunctions() throws Exception { + super.testGetStringFunctions(); + } + + /* + * @testName: testGetSystemFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:864; JDBC:JAVADOC:865; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSystemFunctions() method It should return a String + * + */ + @Test + @TargetVehicle("servlet") + public void testGetSystemFunctions() throws Exception { + super.testGetSystemFunctions(); + } + + /* + * @testName: testGetTimeDateFunctions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:866; JDBC:JAVADOC:867; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getTimeDateFunctions() method It should return a + * String + * + */ + @Test + @TargetVehicle("servlet") + public void testGetTimeDateFunctions() throws Exception { + super.testGetTimeDateFunctions(); + } + + /* + * @testName: testGetSearchStringEscape + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:868; JDBC:JAVADOC:869; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSearchStringEscape() method It should return a + * String + * + */ + @Test + @TargetVehicle("servlet") + public void testGetSearchStringEscape() throws Exception { + super.testGetSearchStringEscape(); + } + + /* + * @testName: testGetExtraNameCharacters + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:870; JDBC:JAVADOC:871; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getExtraNameCharacters() method It should return a + * String + * + */ + @Test + @TargetVehicle("servlet") + public void testGetExtraNameCharacters() throws Exception { + super.testGetExtraNameCharacters(); + } + + /* + * @testName: testSupportsAlterTableWithAddColumn + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:872; JDBC:JAVADOC:873; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsAlterTableWithAddColumn() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsAlterTableWithAddColumn() throws Exception { + super.testSupportsAlterTableWithAddColumn(); + } + + /* + * @testName: testSupportsAlterTableWithDropColumn + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:874; JDBC:JAVADOC:875; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsAlterTableWithDropColumn() method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsAlterTableWithDropColumn() throws Exception { + super.testSupportsAlterTableWithDropColumn(); + } + + /* + * @testName: testSupportsColumnAliasing + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:876; JDBC:JAVADOC:877; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsColumnAliasing() method It should return a + * true value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsColumnAliasing() throws Exception { + super.testSupportsColumnAliasing(); + } + + /* + * @testName: testNullPlusNonNullIsNull + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:878; JDBC:JAVADOC:879; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the nullPlusNonNullIsNull() method It should return a + * boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testNullPlusNonNullIsNull() throws Exception { + super.testNullPlusNonNullIsNull(); + } + + /* + * @testName: testSupportsConvert + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:880; JDBC:JAVADOC:881; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert() method It should return a boolean + * value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert() throws Exception { + super.testSupportsConvert(); + } + + /* + * @testName: testSupportsConvert01 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(ARRAY, VARCHAR) method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert01() throws Exception { + super.testSupportsConvert01(); + } + + /* + * @testName: testSupportsConvert02 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIGINT, VARCHAR) method It should + * return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert02() throws Exception { + super.testSupportsConvert02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/build.xml deleted file mode 100644 index c7bcdb6cb9..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3.java index 2dbe430ed2..7d6b188217 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3.java @@ -29,8 +29,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -49,6 +53,11 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + + public class dbMetaClient3 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dbMeta.dbMeta3"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3AppClient.java new file mode 100644 index 0000000000..e1c6c8eb17 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3AppClient.java @@ -0,0 +1,436 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient3.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient3 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient3AppClient extends dbMetaClient3 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta3"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dbMeta3_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient3AppClient.class, dbMetaClient3.class); + // The appclient-client descriptor + URL appClientUrl = dbMetaClient3AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dbMetaClient3AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dbMetaClient3AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta3_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient3AppClient theTests = new dbMetaClient3AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsConvert03 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BINARY, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert03() throws Exception { + super.testSupportsConvert03(); + } + + /* + * @testName: testSupportsConvert04 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIT, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert04() throws Exception { + super.testSupportsConvert04(); + } + + /* + * @testName: testSupportsConvert05 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BLOB, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert05() throws Exception { + super.testSupportsConvert05(); + } + + /* + * @testName: testSupportsConvert06 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(CHAR, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert06() throws Exception { + super.testSupportsConvert06(); + } + + /* + * @testName: testSupportsConvert07 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(CLOB, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + public void testSupportsConvert07() throws Exception { + super.testSupportsConvert07(); + } + + /* + * @testName: testSupportsConvert08 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DATE, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert08() throws Exception { + super.testSupportsConvert08(); + } + + /* + * @testName: testSupportsConvert09 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DECIMAL, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + public void testSupportsConvert09() throws Exception { + super.testSupportsConvert09(); + } + + /* + * @testName: testSupportsConvert10 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DISTINCT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert10() throws Exception { + super.testSupportsConvert10(); + } + + /* + * @testName: testSupportsConvert11 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DOUBLE, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert11() throws Exception { + super.testSupportsConvert11(); + } + + /* + * @testName: testSupportsConvert12 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(FLOAT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert12() throws Exception { + super.testSupportsConvert12(); + } + + /* + * @testName: testSupportsConvert13 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(INTEGER, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert13() throws Exception { + super.testSupportsConvert13(); + } + + /* + * @testName: testSupportsConvert14 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(JAVA_OBJECT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert14() throws Exception { + super.testSupportsConvert14(); + } + + /* + * @testName: testSupportsConvert15 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(LONGVARBINARY, VARCHAR) method on + * that object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert15() throws Exception { + super.testSupportsConvert15(); + } + + /* + * @testName: testSupportsConvert16 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(LONGVARCHAR, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert16() throws Exception { + super.testSupportsConvert16(); + } + + /* + * @testName: testSupportsConvert17 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(NULL, VARCHAR) on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert17() throws Exception { + super.testSupportsConvert17(); + } + + /* + * @testName: testSupportsConvert18 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(NUMERIC, VARCHAR) method on that + * object It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert18() throws Exception { + super.testSupportsConvert18(); + } + + /* + * @testName: testSupportsConvert19 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(OTHER, VARCHAR) method on that object + * It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert19() throws Exception { + super.testSupportsConvert19(); + } + + /* + * @testName: testSupportsConvert20 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(REAL, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert20() throws Exception { + super.testSupportsConvert20(); + } + + /* + * @testName: testSupportsConvert21 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(REF, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert21() throws Exception { + super.testSupportsConvert21(); + } + + /* + * @testName: testSupportsConvert22 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(SMALLINT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert22() throws Exception { + super.testSupportsConvert22(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3EJB.java new file mode 100644 index 0000000000..376482e9d7 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3EJB.java @@ -0,0 +1,456 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient3.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient3 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-appclient") + + +public class dbMetaClient3EJB extends dbMetaClient3 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta3"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dbMeta3_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dbMetaClient3EJB.class, dbMetaClient3.class); + + URL resURL = dbMetaClient3EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dbMetaClient3EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMeta3_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dbMeta3_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dbMetaClient3EJB.class, dbMetaClient3.class); + + + resURL = dbMetaClient3EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMeta3_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dbMetaClient3EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta3_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient3EJB theTests = new dbMetaClient3EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsConvert03 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BINARY, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert03() throws Exception { + super.testSupportsConvert03(); + } + + /* + * @testName: testSupportsConvert04 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIT, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert04() throws Exception { + super.testSupportsConvert04(); + } + + /* + * @testName: testSupportsConvert05 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BLOB, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert05() throws Exception { + super.testSupportsConvert05(); + } + + /* + * @testName: testSupportsConvert06 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(CHAR, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert06() throws Exception { + super.testSupportsConvert06(); + } + + /* + * @testName: testSupportsConvert07 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(CLOB, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + public void testSupportsConvert07() throws Exception { + super.testSupportsConvert07(); + } + + /* + * @testName: testSupportsConvert08 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DATE, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert08() throws Exception { + super.testSupportsConvert08(); + } + + /* + * @testName: testSupportsConvert09 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DECIMAL, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + public void testSupportsConvert09() throws Exception { + super.testSupportsConvert09(); + } + + /* + * @testName: testSupportsConvert10 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DISTINCT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert10() throws Exception { + super.testSupportsConvert10(); + } + + /* + * @testName: testSupportsConvert11 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DOUBLE, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert11() throws Exception { + super.testSupportsConvert11(); + } + + /* + * @testName: testSupportsConvert12 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(FLOAT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert12() throws Exception { + super.testSupportsConvert12(); + } + + /* + * @testName: testSupportsConvert13 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(INTEGER, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert13() throws Exception { + super.testSupportsConvert13(); + } + + /* + * @testName: testSupportsConvert14 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(JAVA_OBJECT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert14() throws Exception { + super.testSupportsConvert14(); + } + + /* + * @testName: testSupportsConvert15 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(LONGVARBINARY, VARCHAR) method on + * that object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert15() throws Exception { + super.testSupportsConvert15(); + } + + /* + * @testName: testSupportsConvert16 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(LONGVARCHAR, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert16() throws Exception { + super.testSupportsConvert16(); + } + + /* + * @testName: testSupportsConvert17 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(NULL, VARCHAR) on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert17() throws Exception { + super.testSupportsConvert17(); + } + + /* + * @testName: testSupportsConvert18 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(NUMERIC, VARCHAR) method on that + * object It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert18() throws Exception { + super.testSupportsConvert18(); + } + + /* + * @testName: testSupportsConvert19 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(OTHER, VARCHAR) method on that object + * It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert19() throws Exception { + super.testSupportsConvert19(); + } + + /* + * @testName: testSupportsConvert20 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(REAL, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert20() throws Exception { + super.testSupportsConvert20(); + } + + /* + * @testName: testSupportsConvert21 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(REF, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert21() throws Exception { + super.testSupportsConvert21(); + } + + /* + * @testName: testSupportsConvert22 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(SMALLINT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert22() throws Exception { + super.testSupportsConvert22(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3JSP.java new file mode 100644 index 0000000000..f766cc3a00 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3JSP.java @@ -0,0 +1,440 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient3.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta3; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient3 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient3JSP extends dbMetaClient3 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta3"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta3_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(dbMetaClient3JSP.class, dbMetaClient3.class); + + // The jsp descriptor + URL jspUrl = dbMetaClient3JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dbMetaClient3JSP.class.getResource("dbMeta3_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, dbMetaClient3JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(dbMetaClient3JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient3JSP theTests = new dbMetaClient3JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsConvert03 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BINARY, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert03() throws Exception { + super.testSupportsConvert03(); + } + + /* + * @testName: testSupportsConvert04 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIT, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert04() throws Exception { + super.testSupportsConvert04(); + } + + /* + * @testName: testSupportsConvert05 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BLOB, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert05() throws Exception { + super.testSupportsConvert05(); + } + + /* + * @testName: testSupportsConvert06 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(CHAR, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert06() throws Exception { + super.testSupportsConvert06(); + } + + /* + * @testName: testSupportsConvert07 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(CLOB, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + public void testSupportsConvert07() throws Exception { + super.testSupportsConvert07(); + } + + /* + * @testName: testSupportsConvert08 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DATE, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert08() throws Exception { + super.testSupportsConvert08(); + } + + /* + * @testName: testSupportsConvert09 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DECIMAL, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + public void testSupportsConvert09() throws Exception { + super.testSupportsConvert09(); + } + + /* + * @testName: testSupportsConvert10 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DISTINCT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert10() throws Exception { + super.testSupportsConvert10(); + } + + /* + * @testName: testSupportsConvert11 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DOUBLE, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert11() throws Exception { + super.testSupportsConvert11(); + } + + /* + * @testName: testSupportsConvert12 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(FLOAT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert12() throws Exception { + super.testSupportsConvert12(); + } + + /* + * @testName: testSupportsConvert13 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(INTEGER, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert13() throws Exception { + super.testSupportsConvert13(); + } + + /* + * @testName: testSupportsConvert14 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(JAVA_OBJECT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert14() throws Exception { + super.testSupportsConvert14(); + } + + /* + * @testName: testSupportsConvert15 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(LONGVARBINARY, VARCHAR) method on + * that object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert15() throws Exception { + super.testSupportsConvert15(); + } + + /* + * @testName: testSupportsConvert16 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(LONGVARCHAR, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert16() throws Exception { + super.testSupportsConvert16(); + } + + /* + * @testName: testSupportsConvert17 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(NULL, VARCHAR) on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert17() throws Exception { + super.testSupportsConvert17(); + } + + /* + * @testName: testSupportsConvert18 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(NUMERIC, VARCHAR) method on that + * object It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert18() throws Exception { + super.testSupportsConvert18(); + } + + /* + * @testName: testSupportsConvert19 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(OTHER, VARCHAR) method on that object + * It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert19() throws Exception { + super.testSupportsConvert19(); + } + + /* + * @testName: testSupportsConvert20 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(REAL, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert20() throws Exception { + super.testSupportsConvert20(); + } + + /* + * @testName: testSupportsConvert21 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(REF, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert21() throws Exception { + super.testSupportsConvert21(); + } + + /* + * @testName: testSupportsConvert22 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(SMALLINT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert22() throws Exception { + super.testSupportsConvert22(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3Servlet.java new file mode 100644 index 0000000000..c4a8142199 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta3/dbMetaClient3Servlet.java @@ -0,0 +1,428 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient3.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient3 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient3Servlet extends dbMetaClient3 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta3"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta3_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient3Servlet.class, dbMetaClient3.class); + // The servlet descriptor +URL servletUrl = dbMetaClient3Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dbMetaClient3Servlet.class.getResource("dbMeta3_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dbMetaClient3Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient3Servlet theTests = new dbMetaClient3Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsConvert03 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BINARY, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert03() throws Exception { + super.testSupportsConvert03(); + } + + /* + * @testName: testSupportsConvert04 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIT, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert04() throws Exception { + super.testSupportsConvert04(); + } + + /* + * @testName: testSupportsConvert05 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BLOB, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert05() throws Exception { + super.testSupportsConvert05(); + } + + /* + * @testName: testSupportsConvert06 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(CHAR, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert06() throws Exception { + super.testSupportsConvert06(); + } + + /* + * @testName: testSupportsConvert07 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(CLOB, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + public void testSupportsConvert07() throws Exception { + super.testSupportsConvert07(); + } + + /* + * @testName: testSupportsConvert08 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DATE, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert08() throws Exception { + super.testSupportsConvert08(); + } + + /* + * @testName: testSupportsConvert09 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DECIMAL, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + public void testSupportsConvert09() throws Exception { + super.testSupportsConvert09(); + } + + /* + * @testName: testSupportsConvert10 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DISTINCT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert10() throws Exception { + super.testSupportsConvert10(); + } + + /* + * @testName: testSupportsConvert11 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DOUBLE, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert11() throws Exception { + super.testSupportsConvert11(); + } + + /* + * @testName: testSupportsConvert12 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(FLOAT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert12() throws Exception { + super.testSupportsConvert12(); + } + + /* + * @testName: testSupportsConvert13 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(INTEGER, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert13() throws Exception { + super.testSupportsConvert13(); + } + + /* + * @testName: testSupportsConvert14 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(JAVA_OBJECT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert14() throws Exception { + super.testSupportsConvert14(); + } + + /* + * @testName: testSupportsConvert15 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(LONGVARBINARY, VARCHAR) method on + * that object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert15() throws Exception { + super.testSupportsConvert15(); + } + + /* + * @testName: testSupportsConvert16 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(LONGVARCHAR, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert16() throws Exception { + super.testSupportsConvert16(); + } + + /* + * @testName: testSupportsConvert17 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(NULL, VARCHAR) on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert17() throws Exception { + super.testSupportsConvert17(); + } + + /* + * @testName: testSupportsConvert18 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(NUMERIC, VARCHAR) method on that + * object It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert18() throws Exception { + super.testSupportsConvert18(); + } + + /* + * @testName: testSupportsConvert19 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(OTHER, VARCHAR) method on that object + * It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert19() throws Exception { + super.testSupportsConvert19(); + } + + /* + * @testName: testSupportsConvert20 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(REAL, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert20() throws Exception { + super.testSupportsConvert20(); + } + + /* + * @testName: testSupportsConvert21 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(REF, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert21() throws Exception { + super.testSupportsConvert21(); + } + + /* + * @testName: testSupportsConvert22 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(SMALLINT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert22() throws Exception { + super.testSupportsConvert22(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/build.xml deleted file mode 100644 index e3dbf5c0bd..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4.java index 269f78820f..3e6bd1c5cc 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4.java @@ -29,8 +29,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -49,6 +53,11 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + + public class dbMetaClient4 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dbMeta.dbMeta4"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4AppClient.java new file mode 100644 index 0000000000..e0c788f8a9 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4AppClient.java @@ -0,0 +1,438 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient4.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta4; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient4 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient4AppClient extends dbMetaClient4 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta4"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dbMeta4_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient4AppClient.class, dbMetaClient4.class); + // The appclient-client descriptor + URL appClientUrl = dbMetaClient4AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dbMetaClient4AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dbMetaClient4AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta4_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient4AppClient theTests = new dbMetaClient4AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsConvert23 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(STRUCT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert23() throws Exception { + super.testSupportsConvert23(); + } + + /* + * @testName: testSupportsConvert24 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TIME, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert24() throws Exception { + super.testSupportsConvert24(); + } + + /* + * @testName: testSupportsConvert25 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TIMESTAMP, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert25() throws Exception { + super.testSupportsConvert25(); + } + + /* + * @testName: testSupportsConvert26 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TINYINT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert26() throws Exception { + super.testSupportsConvert26(); + } + + /* + * @testName: testSupportsConvert27 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(VARBINARY, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert27() throws Exception { + super.testSupportsConvert27(); + } + + /* + * @testName: testSupportsConvert28 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIGINT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert28() throws Exception { + super.testSupportsConvert28(); + } + + /* + * @testName: testSupportsConvert29 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIT, INTEGER) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert29() throws Exception { + super.testSupportsConvert29(); + } + + /* + * @testName: testSupportsConvert30 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DATE, INTEGER) method onn that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert30() throws Exception { + super.testSupportsConvert30(); + } + + /* + * @testName: testSupportsConvert31 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DECIMAL, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert31() throws Exception { + super.testSupportsConvert31(); + } + + /* + * @testName: testSupportsConvert32 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DOUBLE, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert32() throws Exception { + super.testSupportsConvert32(); + } + + /* + * @testName: testSupportsConvert33 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(FLOAT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert33() throws Exception { + super.testSupportsConvert33(); + } + + /* + * @testName: testSupportsConvert34 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(NUMERIC, INTEGER) method on that + * object. It should return a boolean value; true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert34() throws Exception { + super.testSupportsConvert34(); + } + + /* + * @testName: testSupportsConvert35 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(REAL, INTEGER) method on that object. + * It should return a boolean value; either true false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert35() throws Exception { + super.testSupportsConvert35(); + } + + /* + * @testName: testSupportsConvert36 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(SMALLINT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert36() throws Exception { + super.testSupportsConvert36(); + } + + /* + * @testName: testSupportsConvert37 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TINYINT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsConvert37() throws Exception { + super.testSupportsConvert37(); + } + + /* + * @testName: testSupportsTableCorrelationNames + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:884; JDBC:JAVADOC:885; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsTableCorrelationNames() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsTableCorrelationNames() throws Exception { + super.testSupportsTableCorrelationNames(); + } + + + /* + * @testName: testSupportsDifferentTableCorrelationNames + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:886; JDBC:JAVADOC:887; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsDifferentTableCorrelationNames() method on + * that object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsDifferentTableCorrelationNames() throws Exception { + super.testSupportsDifferentTableCorrelationNames(); + } + + /* + * @testName: testSupportsExpressionsInOrderBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:888; JDBC:JAVADOC:889; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsExpressionsInOrderBy() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsExpressionsInOrderBy() throws Exception { + super.testSupportsExpressionsInOrderBy(); + } + + /* + * @testName: testSupportsOrderByUnrelated + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:890; JDBC:JAVADOC:891; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsOrderByUnrelated() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsOrderByUnrelated() throws Exception { + super.testSupportsOrderByUnrelated(); + } + + /* + * @testName: testSupportsGroupBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:892; JDBC:JAVADOC:893; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsGroupBy() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsGroupBy() throws Exception { + super.testSupportsGroupBy(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4EJB.java new file mode 100644 index 0000000000..5d9ed6d5db --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4EJB.java @@ -0,0 +1,459 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient4.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta4; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient4 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient4EJB extends dbMetaClient4 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta4"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dbMeta4_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dbMetaClient4EJB.class, dbMetaClient4.class); + + URL resURL = dbMetaClient4EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dbMetaClient4EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMeta4_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dbMeta4_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dbMetaClient4EJB.class, dbMetaClient4.class); + + + resURL = dbMetaClient4EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMeta4_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dbMetaClient4EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta4_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient4EJB theTests = new dbMetaClient4EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsConvert23 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(STRUCT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert23() throws Exception { + super.testSupportsConvert23(); + } + + /* + * @testName: testSupportsConvert24 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TIME, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert24() throws Exception { + super.testSupportsConvert24(); + } + + /* + * @testName: testSupportsConvert25 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TIMESTAMP, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert25() throws Exception { + super.testSupportsConvert25(); + } + + /* + * @testName: testSupportsConvert26 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TINYINT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert26() throws Exception { + super.testSupportsConvert26(); + } + + /* + * @testName: testSupportsConvert27 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(VARBINARY, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert27() throws Exception { + super.testSupportsConvert27(); + } + + /* + * @testName: testSupportsConvert28 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIGINT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert28() throws Exception { + super.testSupportsConvert28(); + } + + /* + * @testName: testSupportsConvert29 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIT, INTEGER) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert29() throws Exception { + super.testSupportsConvert29(); + } + + /* + * @testName: testSupportsConvert30 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DATE, INTEGER) method onn that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert30() throws Exception { + super.testSupportsConvert30(); + } + + /* + * @testName: testSupportsConvert31 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DECIMAL, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert31() throws Exception { + super.testSupportsConvert31(); + } + + /* + * @testName: testSupportsConvert32 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DOUBLE, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert32() throws Exception { + super.testSupportsConvert32(); + } + + /* + * @testName: testSupportsConvert33 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(FLOAT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert33() throws Exception { + super.testSupportsConvert33(); + } + + /* + * @testName: testSupportsConvert34 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(NUMERIC, INTEGER) method on that + * object. It should return a boolean value; true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert34() throws Exception { + super.testSupportsConvert34(); + } + + /* + * @testName: testSupportsConvert35 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(REAL, INTEGER) method on that object. + * It should return a boolean value; either true false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert35() throws Exception { + super.testSupportsConvert35(); + } + + /* + * @testName: testSupportsConvert36 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(SMALLINT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert36() throws Exception { + super.testSupportsConvert36(); + } + + /* + * @testName: testSupportsConvert37 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TINYINT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsConvert37() throws Exception { + super.testSupportsConvert37(); + } + + /* + * @testName: testSupportsTableCorrelationNames + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:884; JDBC:JAVADOC:885; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsTableCorrelationNames() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsTableCorrelationNames() throws Exception { + super.testSupportsTableCorrelationNames(); + } + + + /* + * @testName: testSupportsDifferentTableCorrelationNames + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:886; JDBC:JAVADOC:887; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsDifferentTableCorrelationNames() method on + * that object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsDifferentTableCorrelationNames() throws Exception { + super.testSupportsDifferentTableCorrelationNames(); + } + + /* + * @testName: testSupportsExpressionsInOrderBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:888; JDBC:JAVADOC:889; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsExpressionsInOrderBy() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsExpressionsInOrderBy() throws Exception { + super.testSupportsExpressionsInOrderBy(); + } + + /* + * @testName: testSupportsOrderByUnrelated + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:890; JDBC:JAVADOC:891; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsOrderByUnrelated() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsOrderByUnrelated() throws Exception { + super.testSupportsOrderByUnrelated(); + } + + /* + * @testName: testSupportsGroupBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:892; JDBC:JAVADOC:893; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsGroupBy() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsGroupBy() throws Exception { + super.testSupportsGroupBy(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4JSP.java new file mode 100644 index 0000000000..a498b9f1ff --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4JSP.java @@ -0,0 +1,443 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient4.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta4; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient4 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient4JSP extends dbMetaClient4 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta4"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta4_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(dbMetaClient4JSP.class, dbMetaClient4.class); + + // The jsp descriptor + URL jspUrl = dbMetaClient4JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dbMetaClient4JSP.class.getResource("dbMeta4_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, dbMetaClient4JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(dbMetaClient4JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient4JSP theTests = new dbMetaClient4JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsConvert23 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(STRUCT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert23() throws Exception { + super.testSupportsConvert23(); + } + + /* + * @testName: testSupportsConvert24 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TIME, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert24() throws Exception { + super.testSupportsConvert24(); + } + + /* + * @testName: testSupportsConvert25 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TIMESTAMP, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert25() throws Exception { + super.testSupportsConvert25(); + } + + /* + * @testName: testSupportsConvert26 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TINYINT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert26() throws Exception { + super.testSupportsConvert26(); + } + + /* + * @testName: testSupportsConvert27 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(VARBINARY, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert27() throws Exception { + super.testSupportsConvert27(); + } + + /* + * @testName: testSupportsConvert28 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIGINT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert28() throws Exception { + super.testSupportsConvert28(); + } + + /* + * @testName: testSupportsConvert29 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIT, INTEGER) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert29() throws Exception { + super.testSupportsConvert29(); + } + + /* + * @testName: testSupportsConvert30 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DATE, INTEGER) method onn that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert30() throws Exception { + super.testSupportsConvert30(); + } + + /* + * @testName: testSupportsConvert31 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DECIMAL, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert31() throws Exception { + super.testSupportsConvert31(); + } + + /* + * @testName: testSupportsConvert32 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DOUBLE, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert32() throws Exception { + super.testSupportsConvert32(); + } + + /* + * @testName: testSupportsConvert33 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(FLOAT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert33() throws Exception { + super.testSupportsConvert33(); + } + + /* + * @testName: testSupportsConvert34 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(NUMERIC, INTEGER) method on that + * object. It should return a boolean value; true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert34() throws Exception { + super.testSupportsConvert34(); + } + + /* + * @testName: testSupportsConvert35 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(REAL, INTEGER) method on that object. + * It should return a boolean value; either true false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert35() throws Exception { + super.testSupportsConvert35(); + } + + /* + * @testName: testSupportsConvert36 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(SMALLINT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert36() throws Exception { + super.testSupportsConvert36(); + } + + /* + * @testName: testSupportsConvert37 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TINYINT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsConvert37() throws Exception { + super.testSupportsConvert37(); + } + + /* + * @testName: testSupportsTableCorrelationNames + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:884; JDBC:JAVADOC:885; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsTableCorrelationNames() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsTableCorrelationNames() throws Exception { + super.testSupportsTableCorrelationNames(); + } + + + /* + * @testName: testSupportsDifferentTableCorrelationNames + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:886; JDBC:JAVADOC:887; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsDifferentTableCorrelationNames() method on + * that object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsDifferentTableCorrelationNames() throws Exception { + super.testSupportsDifferentTableCorrelationNames(); + } + + /* + * @testName: testSupportsExpressionsInOrderBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:888; JDBC:JAVADOC:889; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsExpressionsInOrderBy() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsExpressionsInOrderBy() throws Exception { + super.testSupportsExpressionsInOrderBy(); + } + + /* + * @testName: testSupportsOrderByUnrelated + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:890; JDBC:JAVADOC:891; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsOrderByUnrelated() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsOrderByUnrelated() throws Exception { + super.testSupportsOrderByUnrelated(); + } + + /* + * @testName: testSupportsGroupBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:892; JDBC:JAVADOC:893; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsGroupBy() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsGroupBy() throws Exception { + super.testSupportsGroupBy(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4Servlet.java new file mode 100644 index 0000000000..9de3fe38c1 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta4/dbMetaClient4Servlet.java @@ -0,0 +1,431 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient4.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta4; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient4 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient4Servlet extends dbMetaClient4 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta4"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta4_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient4Servlet.class, dbMetaClient4.class); + // The servlet descriptor +URL servletUrl = dbMetaClient4Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dbMetaClient4Servlet.class.getResource("dbMeta4_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dbMetaClient4Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient4Servlet theTests = new dbMetaClient4Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsConvert23 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(STRUCT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert23() throws Exception { + super.testSupportsConvert23(); + } + + /* + * @testName: testSupportsConvert24 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TIME, VARCHAR) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert24() throws Exception { + super.testSupportsConvert24(); + } + + /* + * @testName: testSupportsConvert25 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TIMESTAMP, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert25() throws Exception { + super.testSupportsConvert25(); + } + + /* + * @testName: testSupportsConvert26 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TINYINT, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert26() throws Exception { + super.testSupportsConvert26(); + } + + /* + * @testName: testSupportsConvert27 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(VARBINARY, VARCHAR) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert27() throws Exception { + super.testSupportsConvert27(); + } + + /* + * @testName: testSupportsConvert28 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIGINT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert28() throws Exception { + super.testSupportsConvert28(); + } + + /* + * @testName: testSupportsConvert29 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(BIT, INTEGER) method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert29() throws Exception { + super.testSupportsConvert29(); + } + + /* + * @testName: testSupportsConvert30 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DATE, INTEGER) method onn that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert30() throws Exception { + super.testSupportsConvert30(); + } + + /* + * @testName: testSupportsConvert31 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DECIMAL, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert31() throws Exception { + super.testSupportsConvert31(); + } + + /* + * @testName: testSupportsConvert32 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(DOUBLE, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert32() throws Exception { + super.testSupportsConvert32(); + } + + /* + * @testName: testSupportsConvert33 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(FLOAT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert33() throws Exception { + super.testSupportsConvert33(); + } + + /* + * @testName: testSupportsConvert34 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(NUMERIC, INTEGER) method on that + * object. It should return a boolean value; true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert34() throws Exception { + super.testSupportsConvert34(); + } + + /* + * @testName: testSupportsConvert35 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(REAL, INTEGER) method on that object. + * It should return a boolean value; either true false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert35() throws Exception { + super.testSupportsConvert35(); + } + + /* + * @testName: testSupportsConvert36 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(SMALLINT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert36() throws Exception { + super.testSupportsConvert36(); + } + + /* + * @testName: testSupportsConvert37 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:882; JDBC:JAVADOC:883; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsConvert(TINYINT, INTEGER) method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsConvert37() throws Exception { + super.testSupportsConvert37(); + } + + /* + * @testName: testSupportsTableCorrelationNames + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:884; JDBC:JAVADOC:885; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsTableCorrelationNames() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsTableCorrelationNames() throws Exception { + super.testSupportsTableCorrelationNames(); + } + + + /* + * @testName: testSupportsDifferentTableCorrelationNames + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:886; JDBC:JAVADOC:887; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsDifferentTableCorrelationNames() method on + * that object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsDifferentTableCorrelationNames() throws Exception { + super.testSupportsDifferentTableCorrelationNames(); + } + + /* + * @testName: testSupportsExpressionsInOrderBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:888; JDBC:JAVADOC:889; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsExpressionsInOrderBy() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsExpressionsInOrderBy() throws Exception { + super.testSupportsExpressionsInOrderBy(); + } + + /* + * @testName: testSupportsOrderByUnrelated + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:890; JDBC:JAVADOC:891; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsOrderByUnrelated() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsOrderByUnrelated() throws Exception { + super.testSupportsOrderByUnrelated(); + } + + /* + * @testName: testSupportsGroupBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:892; JDBC:JAVADOC:893; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsGroupBy() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsGroupBy() throws Exception { + super.testSupportsGroupBy(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/build.xml deleted file mode 100644 index 68dce75ce3..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5.java index 748975a5bd..8651330dce 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5.java @@ -28,8 +28,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -48,6 +52,11 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + + public class dbMetaClient5 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dbMeta.dbMeta5"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5AppClient.java new file mode 100644 index 0000000000..a605d0f41a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5AppClient.java @@ -0,0 +1,441 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient5.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta5; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient5 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient5AppClient extends dbMetaClient5 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta5"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dbMeta5_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient5AppClient.class, dbMetaClient5.class); + // The appclient-client descriptor + URL appClientUrl = dbMetaClient5AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dbMetaClient5AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dbMetaClient5AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta5_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient5AppClient theTests = new dbMetaClient5AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsGroupByUnrelated + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:894; JDBC:JAVADOC:895; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsGroupByUnrelated() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsGroupByUnrelated() throws Exception { + super.testSupportsGroupByUnrelated(); + } + + /* + * @testName: testSupportsGroupByBeyondSelect + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:896; JDBC:JAVADOC:897; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsGroupByBeyondSelect() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsGroupByBeyondSelect() throws Exception { + super.testSupportsGroupByBeyondSelect(); + } + + /* + * @testName: testSupportsLikeEscapeClause + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:898; JDBC:JAVADOC:899; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsLikeEscapeClause() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsLikeEscapeClause() throws Exception { + super.testSupportsLikeEscapeClause(); + } + + /* + * @testName: testSupportsMultipleResultSets + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:900; JDBC:JAVADOC:901; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMultipleResultSets() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsMultipleResultSets() throws Exception { + super.testSupportsMultipleResultSets(); + } + + /* + * @testName: testSupportsMultipleTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:902; JDBC:JAVADOC:903; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMultipleTransactions() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsMultipleTransactions() throws Exception { + super.testSupportsMultipleTransactions(); + } + + /* + * @testName: testSupportsNonNullableColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:904; JDBC:JAVADOC:905; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsNonNullableColumns() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsNonNullableColumns() throws Exception { + super.testSupportsNonNullableColumns(); + } + + /* + * @testName: testSupportsMinimumSQLGrammar + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:906; JDBC:JAVADOC:907; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMinimumSQLGrammar() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsMinimumSQLGrammar() throws Exception { + super.testSupportsMinimumSQLGrammar(); + } + + /* + * @testName: testSupportsCoreSQLGrammar + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:908; JDBC:JAVADOC:909; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsCoreSQLGrammar() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsCoreSQLGrammar() throws Exception { + super.testSupportsCoreSQLGrammar(); + } + + /* + * @testName: testSupportsExtendedSQLGrammar + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:910; JDBC:JAVADOC:911; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsExtendedSQLGrammar() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsExtendedSQLGrammar() throws Exception { + super.testSupportsExtendedSQLGrammar(); + } + + /* + * @testName: testSupportsANSI92EntryLevelSQL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:912; JDBC:JAVADOC:913; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsANSI92EntryLevelSQL() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsANSI92EntryLevelSQL() throws Exception { + super.testSupportsANSI92EntryLevelSQL(); + } + + /* + * @testName: testSupportsANSI92IntermediateSQL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:914; JDBC:JAVADOC:915; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsANSI92IntermediateSQL() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsANSI92IntermediateSQL() throws Exception { + super.testSupportsANSI92IntermediateSQL(); + } + + /* + * @testName: testSupportsANSI92FullSQL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:916; JDBC:JAVADOC:917; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsANSI92FullSQL() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsANSI92FullSQL() throws Exception { + super.testSupportsANSI92FullSQL(); + } + + /* + * @testName: testSupportsIntegrityEnhancementFacility + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:918; JDBC:JAVADOC:919; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsIntegrityEnhancementFacility() method onn + * that object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsIntegrityEnhancementFacility() throws Exception { + super.testSupportsIntegrityEnhancementFacility(); + } + + /* + * @testName: testSupportsOuterJoins + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:920; JDBC:JAVADOC:921; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsOuterJoins() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsOuterJoins() throws Exception { + super.testSupportsOuterJoins(); + } + + /* + * @testName: testSupportsFullOuterJoins + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:922; JDBC:JAVADOC:923; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsFullOuterJoins() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsFullOuterJoins() throws Exception { + super.testSupportsFullOuterJoins(); + } + + /* + * @testName: testSupportsLimitedOuterJoins + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:924; JDBC:JAVADOC:925; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsLimitedOuterJoins() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsLimitedOuterJoins() throws Exception { + super.testSupportsLimitedOuterJoins(); + } + + /* + * @testName: testGetSchemaTerm + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:926; JDBC:JAVADOC:927; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSchemaTerm() method on that object. It should + * return a String and NULL if it cannot be generated. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetSchemaTerm() throws Exception { + super.testGetSchemaTerm(); + } + + /* + * @testName: testGetProcedureTerm + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:928; JDBC:JAVADOC:929; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getProcedureTerm() method on that object. It should + * return a String and NULL if it cannot be generated.; + * + */ + @Test + @TargetVehicle("appclient") + public void testGetProcedureTerm() throws Exception { + super.testGetProcedureTerm(); + } + + /* + * @testName: testGetCatalogTerm + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:930; JDBC:JAVADOC:931; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getCatalogTerm() method on that object. It should + * return a String and NULL if it cannot be returned. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetCatalogTerm() throws Exception { + super.testGetCatalogTerm(); + } + + /* + * @testName: testIsCatalogAtStart + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:932; JDBC:JAVADOC:933; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the isCatalogAtStart() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testIsCatalogAtStart() throws Exception { + super.testIsCatalogAtStart(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5EJB.java new file mode 100644 index 0000000000..dd41c5fa57 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5EJB.java @@ -0,0 +1,460 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient5.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta5; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient5 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient5EJB extends dbMetaClient5 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta5"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dbMeta5_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dbMetaClient5EJB.class, dbMetaClient5.class); + + URL resURL = dbMetaClient5EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dbMetaClient5EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMeta5_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dbMeta5_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dbMetaClient5EJB.class, dbMetaClient5.class); + + + resURL = dbMetaClient5EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMeta5_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dbMetaClient5EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta5_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient5EJB theTests = new dbMetaClient5EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsGroupByUnrelated + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:894; JDBC:JAVADOC:895; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsGroupByUnrelated() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsGroupByUnrelated() throws Exception { + super.testSupportsGroupByUnrelated(); + } + + /* + * @testName: testSupportsGroupByBeyondSelect + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:896; JDBC:JAVADOC:897; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsGroupByBeyondSelect() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsGroupByBeyondSelect() throws Exception { + super.testSupportsGroupByBeyondSelect(); + } + + /* + * @testName: testSupportsLikeEscapeClause + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:898; JDBC:JAVADOC:899; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsLikeEscapeClause() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsLikeEscapeClause() throws Exception { + super.testSupportsLikeEscapeClause(); + } + + /* + * @testName: testSupportsMultipleResultSets + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:900; JDBC:JAVADOC:901; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMultipleResultSets() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsMultipleResultSets() throws Exception { + super.testSupportsMultipleResultSets(); + } + + /* + * @testName: testSupportsMultipleTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:902; JDBC:JAVADOC:903; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMultipleTransactions() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsMultipleTransactions() throws Exception { + super.testSupportsMultipleTransactions(); + } + + /* + * @testName: testSupportsNonNullableColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:904; JDBC:JAVADOC:905; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsNonNullableColumns() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsNonNullableColumns() throws Exception { + super.testSupportsNonNullableColumns(); + } + + /* + * @testName: testSupportsMinimumSQLGrammar + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:906; JDBC:JAVADOC:907; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMinimumSQLGrammar() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsMinimumSQLGrammar() throws Exception { + super.testSupportsMinimumSQLGrammar(); + } + + /* + * @testName: testSupportsCoreSQLGrammar + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:908; JDBC:JAVADOC:909; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsCoreSQLGrammar() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsCoreSQLGrammar() throws Exception { + super.testSupportsCoreSQLGrammar(); + } + + /* + * @testName: testSupportsExtendedSQLGrammar + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:910; JDBC:JAVADOC:911; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsExtendedSQLGrammar() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsExtendedSQLGrammar() throws Exception { + super.testSupportsExtendedSQLGrammar(); + } + + /* + * @testName: testSupportsANSI92EntryLevelSQL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:912; JDBC:JAVADOC:913; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsANSI92EntryLevelSQL() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsANSI92EntryLevelSQL() throws Exception { + super.testSupportsANSI92EntryLevelSQL(); + } + + /* + * @testName: testSupportsANSI92IntermediateSQL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:914; JDBC:JAVADOC:915; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsANSI92IntermediateSQL() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsANSI92IntermediateSQL() throws Exception { + super.testSupportsANSI92IntermediateSQL(); + } + + /* + * @testName: testSupportsANSI92FullSQL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:916; JDBC:JAVADOC:917; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsANSI92FullSQL() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsANSI92FullSQL() throws Exception { + super.testSupportsANSI92FullSQL(); + } + + /* + * @testName: testSupportsIntegrityEnhancementFacility + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:918; JDBC:JAVADOC:919; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsIntegrityEnhancementFacility() method onn + * that object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsIntegrityEnhancementFacility() throws Exception { + super.testSupportsIntegrityEnhancementFacility(); + } + + /* + * @testName: testSupportsOuterJoins + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:920; JDBC:JAVADOC:921; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsOuterJoins() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsOuterJoins() throws Exception { + super.testSupportsOuterJoins(); + } + + /* + * @testName: testSupportsFullOuterJoins + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:922; JDBC:JAVADOC:923; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsFullOuterJoins() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsFullOuterJoins() throws Exception { + super.testSupportsFullOuterJoins(); + } + + /* + * @testName: testSupportsLimitedOuterJoins + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:924; JDBC:JAVADOC:925; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsLimitedOuterJoins() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsLimitedOuterJoins() throws Exception { + super.testSupportsLimitedOuterJoins(); + } + + /* + * @testName: testGetSchemaTerm + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:926; JDBC:JAVADOC:927; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSchemaTerm() method on that object. It should + * return a String and NULL if it cannot be generated. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetSchemaTerm() throws Exception { + super.testGetSchemaTerm(); + } + + /* + * @testName: testGetProcedureTerm + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:928; JDBC:JAVADOC:929; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getProcedureTerm() method on that object. It should + * return a String and NULL if it cannot be generated.; + * + */ + @Test + @TargetVehicle("ejb") + public void testGetProcedureTerm() throws Exception { + super.testGetProcedureTerm(); + } + + /* + * @testName: testGetCatalogTerm + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:930; JDBC:JAVADOC:931; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getCatalogTerm() method on that object. It should + * return a String and NULL if it cannot be returned. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetCatalogTerm() throws Exception { + super.testGetCatalogTerm(); + } + + /* + * @testName: testIsCatalogAtStart + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:932; JDBC:JAVADOC:933; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the isCatalogAtStart() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testIsCatalogAtStart() throws Exception { + super.testIsCatalogAtStart(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5JSP.java new file mode 100644 index 0000000000..78e8b3bd13 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5JSP.java @@ -0,0 +1,444 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient5.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta5; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient5 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient5JSP extends dbMetaClient5 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta5"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta5_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(dbMetaClient5JSP.class, dbMetaClient5.class); + + // The jsp descriptor + URL jspUrl = dbMetaClient5JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dbMetaClient5JSP.class.getResource("dbMeta5_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, dbMetaClient5JSP.class, sunJSPUrl); + + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient5JSP theTests = new dbMetaClient5JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsGroupByUnrelated + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:894; JDBC:JAVADOC:895; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsGroupByUnrelated() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsGroupByUnrelated() throws Exception { + super.testSupportsGroupByUnrelated(); + } + + /* + * @testName: testSupportsGroupByBeyondSelect + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:896; JDBC:JAVADOC:897; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsGroupByBeyondSelect() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsGroupByBeyondSelect() throws Exception { + super.testSupportsGroupByBeyondSelect(); + } + + /* + * @testName: testSupportsLikeEscapeClause + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:898; JDBC:JAVADOC:899; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsLikeEscapeClause() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsLikeEscapeClause() throws Exception { + super.testSupportsLikeEscapeClause(); + } + + /* + * @testName: testSupportsMultipleResultSets + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:900; JDBC:JAVADOC:901; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMultipleResultSets() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsMultipleResultSets() throws Exception { + super.testSupportsMultipleResultSets(); + } + + /* + * @testName: testSupportsMultipleTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:902; JDBC:JAVADOC:903; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMultipleTransactions() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsMultipleTransactions() throws Exception { + super.testSupportsMultipleTransactions(); + } + + /* + * @testName: testSupportsNonNullableColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:904; JDBC:JAVADOC:905; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsNonNullableColumns() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsNonNullableColumns() throws Exception { + super.testSupportsNonNullableColumns(); + } + + /* + * @testName: testSupportsMinimumSQLGrammar + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:906; JDBC:JAVADOC:907; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMinimumSQLGrammar() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsMinimumSQLGrammar() throws Exception { + super.testSupportsMinimumSQLGrammar(); + } + + /* + * @testName: testSupportsCoreSQLGrammar + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:908; JDBC:JAVADOC:909; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsCoreSQLGrammar() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsCoreSQLGrammar() throws Exception { + super.testSupportsCoreSQLGrammar(); + } + + /* + * @testName: testSupportsExtendedSQLGrammar + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:910; JDBC:JAVADOC:911; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsExtendedSQLGrammar() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsExtendedSQLGrammar() throws Exception { + super.testSupportsExtendedSQLGrammar(); + } + + /* + * @testName: testSupportsANSI92EntryLevelSQL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:912; JDBC:JAVADOC:913; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsANSI92EntryLevelSQL() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsANSI92EntryLevelSQL() throws Exception { + super.testSupportsANSI92EntryLevelSQL(); + } + + /* + * @testName: testSupportsANSI92IntermediateSQL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:914; JDBC:JAVADOC:915; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsANSI92IntermediateSQL() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsANSI92IntermediateSQL() throws Exception { + super.testSupportsANSI92IntermediateSQL(); + } + + /* + * @testName: testSupportsANSI92FullSQL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:916; JDBC:JAVADOC:917; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsANSI92FullSQL() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsANSI92FullSQL() throws Exception { + super.testSupportsANSI92FullSQL(); + } + + /* + * @testName: testSupportsIntegrityEnhancementFacility + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:918; JDBC:JAVADOC:919; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsIntegrityEnhancementFacility() method onn + * that object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsIntegrityEnhancementFacility() throws Exception { + super.testSupportsIntegrityEnhancementFacility(); + } + + /* + * @testName: testSupportsOuterJoins + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:920; JDBC:JAVADOC:921; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsOuterJoins() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsOuterJoins() throws Exception { + super.testSupportsOuterJoins(); + } + + /* + * @testName: testSupportsFullOuterJoins + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:922; JDBC:JAVADOC:923; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsFullOuterJoins() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsFullOuterJoins() throws Exception { + super.testSupportsFullOuterJoins(); + } + + /* + * @testName: testSupportsLimitedOuterJoins + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:924; JDBC:JAVADOC:925; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsLimitedOuterJoins() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsLimitedOuterJoins() throws Exception { + super.testSupportsLimitedOuterJoins(); + } + + /* + * @testName: testGetSchemaTerm + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:926; JDBC:JAVADOC:927; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSchemaTerm() method on that object. It should + * return a String and NULL if it cannot be generated. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetSchemaTerm() throws Exception { + super.testGetSchemaTerm(); + } + + /* + * @testName: testGetProcedureTerm + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:928; JDBC:JAVADOC:929; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getProcedureTerm() method on that object. It should + * return a String and NULL if it cannot be generated.; + * + */ + @Test + @TargetVehicle("jsp") + public void testGetProcedureTerm() throws Exception { + super.testGetProcedureTerm(); + } + + /* + * @testName: testGetCatalogTerm + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:930; JDBC:JAVADOC:931; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getCatalogTerm() method on that object. It should + * return a String and NULL if it cannot be returned. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetCatalogTerm() throws Exception { + super.testGetCatalogTerm(); + } + + /* + * @testName: testIsCatalogAtStart + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:932; JDBC:JAVADOC:933; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the isCatalogAtStart() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testIsCatalogAtStart() throws Exception { + super.testIsCatalogAtStart(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5Servlet.java new file mode 100644 index 0000000000..a589f5aaf7 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta5/dbMetaClient5Servlet.java @@ -0,0 +1,433 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient5.java 1.27 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta5; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient5 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient5Servlet extends dbMetaClient5 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta5"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta5_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient5Servlet.class, dbMetaClient5.class); + // The servlet descriptor +URL servletUrl = dbMetaClient5Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dbMetaClient5Servlet.class.getResource("dbMeta5_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dbMetaClient5Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient5Servlet theTests = new dbMetaClient5Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsGroupByUnrelated + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:894; JDBC:JAVADOC:895; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsGroupByUnrelated() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsGroupByUnrelated() throws Exception { + super.testSupportsGroupByUnrelated(); + } + + /* + * @testName: testSupportsGroupByBeyondSelect + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:896; JDBC:JAVADOC:897; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsGroupByBeyondSelect() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsGroupByBeyondSelect() throws Exception { + super.testSupportsGroupByBeyondSelect(); + } + + /* + * @testName: testSupportsLikeEscapeClause + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:898; JDBC:JAVADOC:899; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsLikeEscapeClause() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsLikeEscapeClause() throws Exception { + super.testSupportsLikeEscapeClause(); + } + + /* + * @testName: testSupportsMultipleResultSets + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:900; JDBC:JAVADOC:901; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMultipleResultSets() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsMultipleResultSets() throws Exception { + super.testSupportsMultipleResultSets(); + } + + /* + * @testName: testSupportsMultipleTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:902; JDBC:JAVADOC:903; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMultipleTransactions() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsMultipleTransactions() throws Exception { + super.testSupportsMultipleTransactions(); + } + + /* + * @testName: testSupportsNonNullableColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:904; JDBC:JAVADOC:905; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsNonNullableColumns() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsNonNullableColumns() throws Exception { + super.testSupportsNonNullableColumns(); + } + + /* + * @testName: testSupportsMinimumSQLGrammar + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:906; JDBC:JAVADOC:907; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsMinimumSQLGrammar() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsMinimumSQLGrammar() throws Exception { + super.testSupportsMinimumSQLGrammar(); + } + + /* + * @testName: testSupportsCoreSQLGrammar + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:908; JDBC:JAVADOC:909; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsCoreSQLGrammar() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsCoreSQLGrammar() throws Exception { + super.testSupportsCoreSQLGrammar(); + } + + /* + * @testName: testSupportsExtendedSQLGrammar + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:910; JDBC:JAVADOC:911; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsExtendedSQLGrammar() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsExtendedSQLGrammar() throws Exception { + super.testSupportsExtendedSQLGrammar(); + } + + /* + * @testName: testSupportsANSI92EntryLevelSQL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:912; JDBC:JAVADOC:913; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsANSI92EntryLevelSQL() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsANSI92EntryLevelSQL() throws Exception { + super.testSupportsANSI92EntryLevelSQL(); + } + + /* + * @testName: testSupportsANSI92IntermediateSQL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:914; JDBC:JAVADOC:915; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsANSI92IntermediateSQL() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsANSI92IntermediateSQL() throws Exception { + super.testSupportsANSI92IntermediateSQL(); + } + + /* + * @testName: testSupportsANSI92FullSQL + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:916; JDBC:JAVADOC:917; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsANSI92FullSQL() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsANSI92FullSQL() throws Exception { + super.testSupportsANSI92FullSQL(); + } + + /* + * @testName: testSupportsIntegrityEnhancementFacility + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:918; JDBC:JAVADOC:919; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsIntegrityEnhancementFacility() method onn + * that object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsIntegrityEnhancementFacility() throws Exception { + super.testSupportsIntegrityEnhancementFacility(); + } + + /* + * @testName: testSupportsOuterJoins + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:920; JDBC:JAVADOC:921; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsOuterJoins() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsOuterJoins() throws Exception { + super.testSupportsOuterJoins(); + } + + /* + * @testName: testSupportsFullOuterJoins + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:922; JDBC:JAVADOC:923; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsFullOuterJoins() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsFullOuterJoins() throws Exception { + super.testSupportsFullOuterJoins(); + } + + /* + * @testName: testSupportsLimitedOuterJoins + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:924; JDBC:JAVADOC:925; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the supportsLimitedOuterJoins() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsLimitedOuterJoins() throws Exception { + super.testSupportsLimitedOuterJoins(); + } + + /* + * @testName: testGetSchemaTerm + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:926; JDBC:JAVADOC:927; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getSchemaTerm() method on that object. It should + * return a String and NULL if it cannot be generated. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetSchemaTerm() throws Exception { + super.testGetSchemaTerm(); + } + + /* + * @testName: testGetProcedureTerm + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:928; JDBC:JAVADOC:929; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getProcedureTerm() method on that object. It should + * return a String and NULL if it cannot be generated.; + * + */ + @Test + @TargetVehicle("servlet") + public void testGetProcedureTerm() throws Exception { + super.testGetProcedureTerm(); + } + + /* + * @testName: testGetCatalogTerm + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:930; JDBC:JAVADOC:931; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the getCatalogTerm() method on that object. It should + * return a String and NULL if it cannot be returned. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetCatalogTerm() throws Exception { + super.testGetCatalogTerm(); + } + + /* + * @testName: testIsCatalogAtStart + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:932; JDBC:JAVADOC:933; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase and call the isCatalogAtStart() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testIsCatalogAtStart() throws Exception { + super.testIsCatalogAtStart(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/build.xml deleted file mode 100644 index ab0746a32e..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6.java index 6782e04cf7..7a9e54b1f5 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6.java @@ -28,8 +28,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -48,6 +52,11 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + + public class dbMetaClient6 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dbMeta.dbMeta6"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6AppClient.java new file mode 100644 index 0000000000..3e4cac4237 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6AppClient.java @@ -0,0 +1,442 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient6.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta6; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient6 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient6AppClient extends dbMetaClient6 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta6"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dbMeta6_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient6AppClient.class, dbMetaClient6.class); + // The appclient-client descriptor + URL appClientUrl = dbMetaClient6AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dbMetaClient6AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dbMetaClient6AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta6_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient6AppClient theTests = new dbMetaClient6AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetCatalogSeparator + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:934; JDBC:JAVADOC:935; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to DatabaseMetadata.getCatalogSeparator() on that + * object. It should return a String and NULL if it is not supported. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetCatalogSeparator() throws Exception { + super.testGetCatalogSeparator(); + } + + /* + * @testName: testSupportsSchemasInDataManipulation + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:936; JDBC:JAVADOC:937; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to + * DatabaseMetadata.supportsSchemasInDataManipulation() on that object. It + * should return a boolean value either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsSchemasInDataManipulation() throws Exception { + super.testSupportsSchemasInDataManipulation(); + } + + /* + * @testName: testSupportsSchemasInProcedureCalls + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:938; JDBC:JAVADOC:939; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to DatabaseMetadata.supportsSchemasInProcedureCalls() + * on that object. It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsSchemasInProcedureCalls() throws Exception { + super.testSupportsSchemasInProcedureCalls(); + } + + /* + * @testName: testSupportsSchemasInTableDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:940; JDBC:JAVADOC:941; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to + * DatabaseMetadata.supportsSchemasInTableDefinitions() on that object.It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsSchemasInTableDefinitions() throws Exception { + super.testSupportsSchemasInTableDefinitions(); + } + + /* + * @testName: testSupportsSchemasInIndexDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:942; JDBC:JAVADOC:943; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsSchemasInIndexDefinitions() on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsSchemasInIndexDefinitions() throws Exception { + super.testSupportsSchemasInIndexDefinitions(); + } + + /* + * @testName: testSupportsSchemasInPrivilegeDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:944; JDBC:JAVADOC:945; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsSchemasInPrivilegeDefinitions() on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsSchemasInPrivilegeDefinitions() throws Exception { + super.testSupportsSchemasInPrivilegeDefinitions(); + } + + /* + * @testName: testSupportsCatalogsInDataManipulation + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:946; JDBC:JAVADOC:947; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsCatalogsInDataManipulation()on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsCatalogsInDataManipulation() throws Exception { + super.testSupportsCatalogsInDataManipulation(); + } + + /* + * @testName: testSupportsCatalogsInProcedureCalls + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:948; JDBC:JAVADOC:949; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsCatalogsInProcedureCalls() on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsCatalogsInProcedureCalls() throws Exception { + super.testSupportsCatalogsInProcedureCalls(); + } + + /* + * @testName: testSupportsCatalogsInTableDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:950; JDBC:JAVADOC:951; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database Call the supportsCatalogsInTableDefinitions() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsCatalogsInTableDefinitions() throws Exception { + super.testSupportsCatalogsInTableDefinitions(); + } + + /* + * @testName: testSupportsCatalogsInIndexDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:952; JDBC:JAVADOC:953; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database Call the supportsCatalogsInIndexDefinitions() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsCatalogsInIndexDefinitions() throws Exception { + super.testSupportsCatalogsInIndexDefinitions(); + } + + /* + * @testName: testSupportsCatalogsInPrivilegeDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:954; JDBC:JAVADOC:955; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsCatalogsInPrivilegeDefinitions() method on + * that object. It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsCatalogsInPrivilegeDefinitions() throws Exception { + super.testSupportsCatalogsInPrivilegeDefinitions(); + } + + /* + * @testName: testSupportsPositionedDelete + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:956; JDBC:JAVADOC:957; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsPositionedDelete() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsPositionedDelete() throws Exception { + super.testSupportsPositionedDelete(); + } + + /* + * @testName: testSupportsPositionedUpdate + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:958; JDBC:JAVADOC:959; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsPositionedUpdate() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsPositionedUpdate() throws Exception { + super.testSupportsPositionedUpdate(); + } + + /* + * @testName: testSupportsSelectForUpdate + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:960; JDBC:JAVADOC:961; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSelectForUpdate() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsSelectForUpdate() throws Exception { + super.testSupportsSelectForUpdate(); + } + + /* + * @testName: testSupportsSubqueriesInComparisons + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:964; JDBC:JAVADOC:965; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInComparisons() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsSubqueriesInComparisons() throws Exception { + super.testSupportsSubqueriesInComparisons(); + } + + /* + * @testName: testSupportsSubqueriesInExists + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:966; JDBC:JAVADOC:967; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInExists() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsSubqueriesInExists() throws Exception { + super.testSupportsSubqueriesInExists(); + } + + /* + * @testName: testSupportsSubqueriesInIns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:968; JDBC:JAVADOC:969; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInIns() method on that object. It + * should return a boolean value either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsSubqueriesInIns() throws Exception { + super.testSupportsSubqueriesInIns(); + } + + /* + * @testName: testSupportsSubqueriesInQuantifieds + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:970; JDBC:JAVADOC:971; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInQuantifieds() method on that + * object. It should return a boolean value either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsSubqueriesInQuantifieds() throws Exception { + super.testSupportsSubqueriesInQuantifieds(); + } + + /* + * @testName: testSupportsCorrelatedSubqueries + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:972; JDBC:JAVADOC:973; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsCorrelatedSubqueries() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsCorrelatedSubqueries() throws Exception { + super.testSupportsCorrelatedSubqueries(); + } + + /* + * @testName: testSupportsUnion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:974; JDBC:JAVADOC:975; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsUnion() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsUnion() throws Exception { + super.testSupportsUnion(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6EJB.java new file mode 100644 index 0000000000..9125058079 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6EJB.java @@ -0,0 +1,462 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient6.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta6; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient6 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient6EJB extends dbMetaClient6 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta6"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dbMeta6_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dbMetaClient6EJB.class, dbMetaClient6.class); + + URL resURL = dbMetaClient6EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dbMetaClient6EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMeta6_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dbMeta6_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dbMetaClient6EJB.class, dbMetaClient6.class); + + + resURL = dbMetaClient6EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMeta6_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dbMetaClient6EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta6_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient6EJB theTests = new dbMetaClient6EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetCatalogSeparator + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:934; JDBC:JAVADOC:935; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to DatabaseMetadata.getCatalogSeparator() on that + * object. It should return a String and NULL if it is not supported. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetCatalogSeparator() throws Exception { + super.testGetCatalogSeparator(); + } + + /* + * @testName: testSupportsSchemasInDataManipulation + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:936; JDBC:JAVADOC:937; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to + * DatabaseMetadata.supportsSchemasInDataManipulation() on that object. It + * should return a boolean value either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsSchemasInDataManipulation() throws Exception { + super.testSupportsSchemasInDataManipulation(); + } + + /* + * @testName: testSupportsSchemasInProcedureCalls + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:938; JDBC:JAVADOC:939; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to DatabaseMetadata.supportsSchemasInProcedureCalls() + * on that object. It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsSchemasInProcedureCalls() throws Exception { + super.testSupportsSchemasInProcedureCalls(); + } + + /* + * @testName: testSupportsSchemasInTableDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:940; JDBC:JAVADOC:941; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to + * DatabaseMetadata.supportsSchemasInTableDefinitions() on that object.It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsSchemasInTableDefinitions() throws Exception { + super.testSupportsSchemasInTableDefinitions(); + } + + /* + * @testName: testSupportsSchemasInIndexDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:942; JDBC:JAVADOC:943; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsSchemasInIndexDefinitions() on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsSchemasInIndexDefinitions() throws Exception { + super.testSupportsSchemasInIndexDefinitions(); + } + + /* + * @testName: testSupportsSchemasInPrivilegeDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:944; JDBC:JAVADOC:945; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsSchemasInPrivilegeDefinitions() on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsSchemasInPrivilegeDefinitions() throws Exception { + super.testSupportsSchemasInPrivilegeDefinitions(); + } + + /* + * @testName: testSupportsCatalogsInDataManipulation + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:946; JDBC:JAVADOC:947; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsCatalogsInDataManipulation()on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsCatalogsInDataManipulation() throws Exception { + super.testSupportsCatalogsInDataManipulation(); + } + + /* + * @testName: testSupportsCatalogsInProcedureCalls + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:948; JDBC:JAVADOC:949; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsCatalogsInProcedureCalls() on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsCatalogsInProcedureCalls() throws Exception { + super.testSupportsCatalogsInProcedureCalls(); + } + + /* + * @testName: testSupportsCatalogsInTableDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:950; JDBC:JAVADOC:951; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database Call the supportsCatalogsInTableDefinitions() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsCatalogsInTableDefinitions() throws Exception { + super.testSupportsCatalogsInTableDefinitions(); + } + + /* + * @testName: testSupportsCatalogsInIndexDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:952; JDBC:JAVADOC:953; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database Call the supportsCatalogsInIndexDefinitions() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsCatalogsInIndexDefinitions() throws Exception { + super.testSupportsCatalogsInIndexDefinitions(); + } + + /* + * @testName: testSupportsCatalogsInPrivilegeDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:954; JDBC:JAVADOC:955; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsCatalogsInPrivilegeDefinitions() method on + * that object. It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsCatalogsInPrivilegeDefinitions() throws Exception { + super.testSupportsCatalogsInPrivilegeDefinitions(); + } + + /* + * @testName: testSupportsPositionedDelete + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:956; JDBC:JAVADOC:957; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsPositionedDelete() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsPositionedDelete() throws Exception { + super.testSupportsPositionedDelete(); + } + + /* + * @testName: testSupportsPositionedUpdate + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:958; JDBC:JAVADOC:959; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsPositionedUpdate() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsPositionedUpdate() throws Exception { + super.testSupportsPositionedUpdate(); + } + + /* + * @testName: testSupportsSelectForUpdate + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:960; JDBC:JAVADOC:961; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSelectForUpdate() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsSelectForUpdate() throws Exception { + super.testSupportsSelectForUpdate(); + } + + /* + * @testName: testSupportsSubqueriesInComparisons + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:964; JDBC:JAVADOC:965; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInComparisons() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsSubqueriesInComparisons() throws Exception { + super.testSupportsSubqueriesInComparisons(); + } + + /* + * @testName: testSupportsSubqueriesInExists + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:966; JDBC:JAVADOC:967; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInExists() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsSubqueriesInExists() throws Exception { + super.testSupportsSubqueriesInExists(); + } + + /* + * @testName: testSupportsSubqueriesInIns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:968; JDBC:JAVADOC:969; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInIns() method on that object. It + * should return a boolean value either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsSubqueriesInIns() throws Exception { + super.testSupportsSubqueriesInIns(); + } + + /* + * @testName: testSupportsSubqueriesInQuantifieds + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:970; JDBC:JAVADOC:971; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInQuantifieds() method on that + * object. It should return a boolean value either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsSubqueriesInQuantifieds() throws Exception { + super.testSupportsSubqueriesInQuantifieds(); + } + + /* + * @testName: testSupportsCorrelatedSubqueries + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:972; JDBC:JAVADOC:973; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsCorrelatedSubqueries() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsCorrelatedSubqueries() throws Exception { + super.testSupportsCorrelatedSubqueries(); + } + + /* + * @testName: testSupportsUnion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:974; JDBC:JAVADOC:975; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsUnion() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsUnion() throws Exception { + super.testSupportsUnion(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6JSP.java new file mode 100644 index 0000000000..01c637ef67 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6JSP.java @@ -0,0 +1,446 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient6.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta6; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient6 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient6JSP extends dbMetaClient6 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta6"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta6_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(dbMetaClient6JSP.class, dbMetaClient6.class); + + // The jsp descriptor + URL jspUrl = dbMetaClient6JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dbMetaClient6JSP.class.getResource("dbMeta6_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, dbMetaClient6JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(dbMetaClient6JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient6JSP theTests = new dbMetaClient6JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetCatalogSeparator + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:934; JDBC:JAVADOC:935; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to DatabaseMetadata.getCatalogSeparator() on that + * object. It should return a String and NULL if it is not supported. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetCatalogSeparator() throws Exception { + super.testGetCatalogSeparator(); + } + + /* + * @testName: testSupportsSchemasInDataManipulation + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:936; JDBC:JAVADOC:937; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to + * DatabaseMetadata.supportsSchemasInDataManipulation() on that object. It + * should return a boolean value either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsSchemasInDataManipulation() throws Exception { + super.testSupportsSchemasInDataManipulation(); + } + + /* + * @testName: testSupportsSchemasInProcedureCalls + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:938; JDBC:JAVADOC:939; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to DatabaseMetadata.supportsSchemasInProcedureCalls() + * on that object. It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsSchemasInProcedureCalls() throws Exception { + super.testSupportsSchemasInProcedureCalls(); + } + + /* + * @testName: testSupportsSchemasInTableDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:940; JDBC:JAVADOC:941; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to + * DatabaseMetadata.supportsSchemasInTableDefinitions() on that object.It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsSchemasInTableDefinitions() throws Exception { + super.testSupportsSchemasInTableDefinitions(); + } + + /* + * @testName: testSupportsSchemasInIndexDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:942; JDBC:JAVADOC:943; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsSchemasInIndexDefinitions() on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsSchemasInIndexDefinitions() throws Exception { + super.testSupportsSchemasInIndexDefinitions(); + } + + /* + * @testName: testSupportsSchemasInPrivilegeDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:944; JDBC:JAVADOC:945; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsSchemasInPrivilegeDefinitions() on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsSchemasInPrivilegeDefinitions() throws Exception { + super.testSupportsSchemasInPrivilegeDefinitions(); + } + + /* + * @testName: testSupportsCatalogsInDataManipulation + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:946; JDBC:JAVADOC:947; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsCatalogsInDataManipulation()on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsCatalogsInDataManipulation() throws Exception { + super.testSupportsCatalogsInDataManipulation(); + } + + /* + * @testName: testSupportsCatalogsInProcedureCalls + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:948; JDBC:JAVADOC:949; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsCatalogsInProcedureCalls() on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsCatalogsInProcedureCalls() throws Exception { + super.testSupportsCatalogsInProcedureCalls(); + } + + /* + * @testName: testSupportsCatalogsInTableDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:950; JDBC:JAVADOC:951; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database Call the supportsCatalogsInTableDefinitions() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsCatalogsInTableDefinitions() throws Exception { + super.testSupportsCatalogsInTableDefinitions(); + } + + /* + * @testName: testSupportsCatalogsInIndexDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:952; JDBC:JAVADOC:953; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database Call the supportsCatalogsInIndexDefinitions() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsCatalogsInIndexDefinitions() throws Exception { + super.testSupportsCatalogsInIndexDefinitions(); + } + + /* + * @testName: testSupportsCatalogsInPrivilegeDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:954; JDBC:JAVADOC:955; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsCatalogsInPrivilegeDefinitions() method on + * that object. It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsCatalogsInPrivilegeDefinitions() throws Exception { + super.testSupportsCatalogsInPrivilegeDefinitions(); + } + + /* + * @testName: testSupportsPositionedDelete + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:956; JDBC:JAVADOC:957; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsPositionedDelete() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsPositionedDelete() throws Exception { + super.testSupportsPositionedDelete(); + } + + /* + * @testName: testSupportsPositionedUpdate + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:958; JDBC:JAVADOC:959; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsPositionedUpdate() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsPositionedUpdate() throws Exception { + super.testSupportsPositionedUpdate(); + } + + /* + * @testName: testSupportsSelectForUpdate + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:960; JDBC:JAVADOC:961; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSelectForUpdate() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsSelectForUpdate() throws Exception { + super.testSupportsSelectForUpdate(); + } + + /* + * @testName: testSupportsSubqueriesInComparisons + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:964; JDBC:JAVADOC:965; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInComparisons() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsSubqueriesInComparisons() throws Exception { + super.testSupportsSubqueriesInComparisons(); + } + + /* + * @testName: testSupportsSubqueriesInExists + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:966; JDBC:JAVADOC:967; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInExists() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsSubqueriesInExists() throws Exception { + super.testSupportsSubqueriesInExists(); + } + + /* + * @testName: testSupportsSubqueriesInIns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:968; JDBC:JAVADOC:969; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInIns() method on that object. It + * should return a boolean value either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsSubqueriesInIns() throws Exception { + super.testSupportsSubqueriesInIns(); + } + + /* + * @testName: testSupportsSubqueriesInQuantifieds + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:970; JDBC:JAVADOC:971; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInQuantifieds() method on that + * object. It should return a boolean value either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsSubqueriesInQuantifieds() throws Exception { + super.testSupportsSubqueriesInQuantifieds(); + } + + /* + * @testName: testSupportsCorrelatedSubqueries + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:972; JDBC:JAVADOC:973; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsCorrelatedSubqueries() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsCorrelatedSubqueries() throws Exception { + super.testSupportsCorrelatedSubqueries(); + } + + /* + * @testName: testSupportsUnion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:974; JDBC:JAVADOC:975; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsUnion() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsUnion() throws Exception { + super.testSupportsUnion(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6Servlet.java new file mode 100644 index 0000000000..ae33aa9910 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta6/dbMetaClient6Servlet.java @@ -0,0 +1,434 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient6.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta6; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient6 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient6Servlet extends dbMetaClient6 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta6"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta6_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient6Servlet.class, dbMetaClient6.class); + // The servlet descriptor +URL servletUrl = dbMetaClient6Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dbMetaClient6Servlet.class.getResource("dbMeta6_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dbMetaClient6Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient6Servlet theTests = new dbMetaClient6Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetCatalogSeparator + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:934; JDBC:JAVADOC:935; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to DatabaseMetadata.getCatalogSeparator() on that + * object. It should return a String and NULL if it is not supported. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetCatalogSeparator() throws Exception { + super.testGetCatalogSeparator(); + } + + /* + * @testName: testSupportsSchemasInDataManipulation + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:936; JDBC:JAVADOC:937; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to + * DatabaseMetadata.supportsSchemasInDataManipulation() on that object. It + * should return a boolean value either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsSchemasInDataManipulation() throws Exception { + super.testSupportsSchemasInDataManipulation(); + } + + /* + * @testName: testSupportsSchemasInProcedureCalls + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:938; JDBC:JAVADOC:939; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to DatabaseMetadata.supportsSchemasInProcedureCalls() + * on that object. It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsSchemasInProcedureCalls() throws Exception { + super.testSupportsSchemasInProcedureCalls(); + } + + /* + * @testName: testSupportsSchemasInTableDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:940; JDBC:JAVADOC:941; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Make a call to + * DatabaseMetadata.supportsSchemasInTableDefinitions() on that object.It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsSchemasInTableDefinitions() throws Exception { + super.testSupportsSchemasInTableDefinitions(); + } + + /* + * @testName: testSupportsSchemasInIndexDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:942; JDBC:JAVADOC:943; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsSchemasInIndexDefinitions() on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsSchemasInIndexDefinitions() throws Exception { + super.testSupportsSchemasInIndexDefinitions(); + } + + /* + * @testName: testSupportsSchemasInPrivilegeDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:944; JDBC:JAVADOC:945; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsSchemasInPrivilegeDefinitions() on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsSchemasInPrivilegeDefinitions() throws Exception { + super.testSupportsSchemasInPrivilegeDefinitions(); + } + + /* + * @testName: testSupportsCatalogsInDataManipulation + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:946; JDBC:JAVADOC:947; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsCatalogsInDataManipulation()on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsCatalogsInDataManipulation() throws Exception { + super.testSupportsCatalogsInDataManipulation(); + } + + /* + * @testName: testSupportsCatalogsInProcedureCalls + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:948; JDBC:JAVADOC:949; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get the DataBaseMetaData object from the Connection to the + * DataBase. Call to supportsCatalogsInProcedureCalls() on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsCatalogsInProcedureCalls() throws Exception { + super.testSupportsCatalogsInProcedureCalls(); + } + + /* + * @testName: testSupportsCatalogsInTableDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:950; JDBC:JAVADOC:951; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database Call the supportsCatalogsInTableDefinitions() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsCatalogsInTableDefinitions() throws Exception { + super.testSupportsCatalogsInTableDefinitions(); + } + + /* + * @testName: testSupportsCatalogsInIndexDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:952; JDBC:JAVADOC:953; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database Call the supportsCatalogsInIndexDefinitions() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsCatalogsInIndexDefinitions() throws Exception { + super.testSupportsCatalogsInIndexDefinitions(); + } + + /* + * @testName: testSupportsCatalogsInPrivilegeDefinitions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:954; JDBC:JAVADOC:955; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsCatalogsInPrivilegeDefinitions() method on + * that object. It should return a boolean value; either true or false + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsCatalogsInPrivilegeDefinitions() throws Exception { + super.testSupportsCatalogsInPrivilegeDefinitions(); + } + + /* + * @testName: testSupportsPositionedDelete + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:956; JDBC:JAVADOC:957; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsPositionedDelete() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsPositionedDelete() throws Exception { + super.testSupportsPositionedDelete(); + } + + /* + * @testName: testSupportsPositionedUpdate + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:958; JDBC:JAVADOC:959; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsPositionedUpdate() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsPositionedUpdate() throws Exception { + super.testSupportsPositionedUpdate(); + } + + /* + * @testName: testSupportsSelectForUpdate + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:960; JDBC:JAVADOC:961; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSelectForUpdate() method on that object. It + * should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsSelectForUpdate() throws Exception { + super.testSupportsSelectForUpdate(); + } + + /* + * @testName: testSupportsSubqueriesInComparisons + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:964; JDBC:JAVADOC:965; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInComparisons() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsSubqueriesInComparisons() throws Exception { + super.testSupportsSubqueriesInComparisons(); + } + + /* + * @testName: testSupportsSubqueriesInExists + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:966; JDBC:JAVADOC:967; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInExists() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsSubqueriesInExists() throws Exception { + super.testSupportsSubqueriesInExists(); + } + + /* + * @testName: testSupportsSubqueriesInIns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:968; JDBC:JAVADOC:969; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInIns() method on that object. It + * should return a boolean value either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsSubqueriesInIns() throws Exception { + super.testSupportsSubqueriesInIns(); + } + + /* + * @testName: testSupportsSubqueriesInQuantifieds + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:970; JDBC:JAVADOC:971; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsSubqueriesInQuantifieds() method on that + * object. It should return a boolean value either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsSubqueriesInQuantifieds() throws Exception { + super.testSupportsSubqueriesInQuantifieds(); + } + + /* + * @testName: testSupportsCorrelatedSubqueries + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:972; JDBC:JAVADOC:973; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsCorrelatedSubqueries() method on that object. + * It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsCorrelatedSubqueries() throws Exception { + super.testSupportsCorrelatedSubqueries(); + } + + /* + * @testName: testSupportsUnion + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:974; JDBC:JAVADOC:975; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsUnion() method on that object. It should + * return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsUnion() throws Exception { + super.testSupportsUnion(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/build.xml deleted file mode 100644 index 2140e3f304..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7.java index 2bcba8f915..a845477b4a 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7.java @@ -28,8 +28,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -48,6 +52,11 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + + public class dbMetaClient7 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dbMeta.dbMeta7"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7AppClient.java new file mode 100644 index 0000000000..14cd695ba6 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7AppClient.java @@ -0,0 +1,440 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient7.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta7; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient7 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient7AppClient extends dbMetaClient7 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta7"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dbMeta7_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient7AppClient.class, dbMetaClient7.class); + // The appclient-client descriptor + URL appClientUrl = dbMetaClient7AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dbMetaClient7AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dbMetaClient7AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta7_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient7AppClient theTests = new dbMetaClient7AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsUnionAll + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:976; JDBC:JAVADOC:977; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsUnionAll() method on that object. It should + * return a boolean value; eithet true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsUnionAll() throws Exception { + super.testSupportsUnionAll(); + } + + /* + * @testName: testSupportsOpenCursorsAcrossCommit + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:978; JDBC:JAVADOC:979; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenCursorsAcrossCommit() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsOpenCursorsAcrossCommit() throws Exception { + super.testSupportsOpenCursorsAcrossCommit(); + } + + /* + * @testName: testSupportsOpenCursorsAcrossRollback + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:980; JDBC:JAVADOC:981; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenCursorsAcrossRollback() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsOpenCursorsAcrossRollback() throws Exception { + super.testSupportsOpenCursorsAcrossRollback(); + } + + /* + * @testName: testSupportsOpenStatementsAcrossCommit + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:982; JDBC:JAVADOC:983; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenStatementsAcrossCommit() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsOpenStatementsAcrossCommit() throws Exception { + super.testSupportsOpenStatementsAcrossCommit(); + } + + /* + * @testName: testSupportsOpenStatementsAcrossRollback + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:984; JDBC:JAVADOC:985; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenStatementsAcrossRollback() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsOpenStatementsAcrossRollback() throws Exception { + super.testSupportsOpenStatementsAcrossRollback(); + } + + /* + * @testName: testGetMaxBinaryLiteralLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:986; JDBC:JAVADOC:987; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxBinaryLiteralLength() method on that object. It + * should return an integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxBinaryLiteralLength() throws Exception { + super.testGetMaxBinaryLiteralLength(); + } + + /* + * @testName: testGetMaxCharLiteralLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:988; JDBC:JAVADOC:989; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxCharLiteralLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxCharLiteralLength() throws Exception { + super.testGetMaxCharLiteralLength(); + } + + /* + * @testName: testGetMaxColumnNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:990; JDBC:JAVADOC:991; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnNameLength() method on that object. It + * should return an integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxColumnNameLength() throws Exception { + super.testGetMaxColumnNameLength(); + } + + /* + * @testName: testGetMaxColumnsInGroupBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:992; JDBC:JAVADOC:993; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInGroupBy() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxColumnsInGroupBy() throws Exception { + super.testGetMaxColumnsInGroupBy(); + } + + /* + * @testName: testGetMaxColumnsInIndex + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:994; JDBC:JAVADOC:995; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInIndex() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxColumnsInIndex() throws Exception { + super.testGetMaxColumnsInIndex(); + } + + /* + * @testName: testGetMaxColumnsInOrderBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:996; JDBC:JAVADOC:997; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInOrderBy() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxColumnsInOrderBy() throws Exception { + super.testGetMaxColumnsInOrderBy(); + } + + /* + * @testName: testGetMaxColumnsInSelect + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:998; JDBC:JAVADOC:999; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInSelect() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxColumnsInSelect() throws Exception { + super.testGetMaxColumnsInSelect(); + } + + /* + * @testName: testGetMaxColumnsInTable + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1000; JDBC:JAVADOC:1001; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInTable() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxColumnsInTable() throws Exception { + super.testGetMaxColumnsInTable(); + } + + /* + * @testName: testGetMaxConnections + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1002; JDBC:JAVADOC:1003; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxConnections() method on that object. It should + * return an integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxConnections() throws Exception { + super.testGetMaxConnections(); + } + + /* + * @testName: testGetMaxCursorNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1004; JDBC:JAVADOC:1005; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxCursorNameLength() method on that object. It + * should return an integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxCursorNameLength() throws Exception { + super.testGetMaxCursorNameLength(); + } + + /* + * @testName: testGetMaxIndexLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1006; JDBC:JAVADOC:1007; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxIndexLength() method on that object. It should + * return an integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxIndexLength() throws Exception { + super.testGetMaxIndexLength(); + } + + /* + * @testName: testGetMaxSchemaNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1008; JDBC:JAVADOC:1009; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxSchemaNameLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxSchemaNameLength() throws Exception { + super.testGetMaxSchemaNameLength(); + } + + /* + * @testName: testGetMaxProcedureNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1010; JDBC:JAVADOC:1011; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxProcedureNameLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxProcedureNameLength() throws Exception { + super.testGetMaxProcedureNameLength(); + } + + /* + * @testName: testGetMaxCatalogNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1012; JDBC:JAVADOC:1013; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxCatalogNameLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxCatalogNameLength() throws Exception { + super.testGetMaxCatalogNameLength(); + } + + /* + * @testName: testGetMaxRowSize + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1014; JDBC:JAVADOC:1015; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxRowSize() method on that object. It should + * return an integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxRowSize() throws Exception { + super.testGetMaxRowSize(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7EJB.java new file mode 100644 index 0000000000..cccc46ffac --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7EJB.java @@ -0,0 +1,460 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient7.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta7; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient7 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient7EJB extends dbMetaClient7 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta7"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dbMeta7_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dbMetaClient7EJB.class, dbMetaClient7.class); + + URL resURL = dbMetaClient7EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dbMetaClient7EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMeta7_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dbMeta7_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dbMetaClient7EJB.class, dbMetaClient7.class); + + + resURL = dbMetaClient7EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMeta7_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dbMetaClient7EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta7_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient7EJB theTests = new dbMetaClient7EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsUnionAll + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:976; JDBC:JAVADOC:977; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsUnionAll() method on that object. It should + * return a boolean value; eithet true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsUnionAll() throws Exception { + super.testSupportsUnionAll(); + } + + /* + * @testName: testSupportsOpenCursorsAcrossCommit + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:978; JDBC:JAVADOC:979; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenCursorsAcrossCommit() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsOpenCursorsAcrossCommit() throws Exception { + super.testSupportsOpenCursorsAcrossCommit(); + } + + /* + * @testName: testSupportsOpenCursorsAcrossRollback + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:980; JDBC:JAVADOC:981; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenCursorsAcrossRollback() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsOpenCursorsAcrossRollback() throws Exception { + super.testSupportsOpenCursorsAcrossRollback(); + } + + /* + * @testName: testSupportsOpenStatementsAcrossCommit + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:982; JDBC:JAVADOC:983; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenStatementsAcrossCommit() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsOpenStatementsAcrossCommit() throws Exception { + super.testSupportsOpenStatementsAcrossCommit(); + } + + /* + * @testName: testSupportsOpenStatementsAcrossRollback + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:984; JDBC:JAVADOC:985; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenStatementsAcrossRollback() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsOpenStatementsAcrossRollback() throws Exception { + super.testSupportsOpenStatementsAcrossRollback(); + } + + /* + * @testName: testGetMaxBinaryLiteralLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:986; JDBC:JAVADOC:987; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxBinaryLiteralLength() method on that object. It + * should return an integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxBinaryLiteralLength() throws Exception { + super.testGetMaxBinaryLiteralLength(); + } + + /* + * @testName: testGetMaxCharLiteralLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:988; JDBC:JAVADOC:989; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxCharLiteralLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxCharLiteralLength() throws Exception { + super.testGetMaxCharLiteralLength(); + } + + /* + * @testName: testGetMaxColumnNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:990; JDBC:JAVADOC:991; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnNameLength() method on that object. It + * should return an integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxColumnNameLength() throws Exception { + super.testGetMaxColumnNameLength(); + } + + /* + * @testName: testGetMaxColumnsInGroupBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:992; JDBC:JAVADOC:993; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInGroupBy() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxColumnsInGroupBy() throws Exception { + super.testGetMaxColumnsInGroupBy(); + } + + /* + * @testName: testGetMaxColumnsInIndex + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:994; JDBC:JAVADOC:995; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInIndex() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxColumnsInIndex() throws Exception { + super.testGetMaxColumnsInIndex(); + } + + /* + * @testName: testGetMaxColumnsInOrderBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:996; JDBC:JAVADOC:997; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInOrderBy() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxColumnsInOrderBy() throws Exception { + super.testGetMaxColumnsInOrderBy(); + } + + /* + * @testName: testGetMaxColumnsInSelect + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:998; JDBC:JAVADOC:999; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInSelect() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxColumnsInSelect() throws Exception { + super.testGetMaxColumnsInSelect(); + } + + /* + * @testName: testGetMaxColumnsInTable + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1000; JDBC:JAVADOC:1001; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInTable() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxColumnsInTable() throws Exception { + super.testGetMaxColumnsInTable(); + } + + /* + * @testName: testGetMaxConnections + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1002; JDBC:JAVADOC:1003; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxConnections() method on that object. It should + * return an integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxConnections() throws Exception { + super.testGetMaxConnections(); + } + + /* + * @testName: testGetMaxCursorNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1004; JDBC:JAVADOC:1005; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxCursorNameLength() method on that object. It + * should return an integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxCursorNameLength() throws Exception { + super.testGetMaxCursorNameLength(); + } + + /* + * @testName: testGetMaxIndexLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1006; JDBC:JAVADOC:1007; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxIndexLength() method on that object. It should + * return an integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxIndexLength() throws Exception { + super.testGetMaxIndexLength(); + } + + /* + * @testName: testGetMaxSchemaNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1008; JDBC:JAVADOC:1009; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxSchemaNameLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxSchemaNameLength() throws Exception { + super.testGetMaxSchemaNameLength(); + } + + /* + * @testName: testGetMaxProcedureNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1010; JDBC:JAVADOC:1011; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxProcedureNameLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxProcedureNameLength() throws Exception { + super.testGetMaxProcedureNameLength(); + } + + /* + * @testName: testGetMaxCatalogNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1012; JDBC:JAVADOC:1013; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxCatalogNameLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxCatalogNameLength() throws Exception { + super.testGetMaxCatalogNameLength(); + } + + /* + * @testName: testGetMaxRowSize + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1014; JDBC:JAVADOC:1015; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxRowSize() method on that object. It should + * return an integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxRowSize() throws Exception { + super.testGetMaxRowSize(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7JSP.java new file mode 100644 index 0000000000..7a213d1680 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7JSP.java @@ -0,0 +1,444 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient7.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta7; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient7 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient7JSP extends dbMetaClient7 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta7"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta7_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(dbMetaClient7JSP.class, dbMetaClient7.class); + + // The jsp descriptor + URL jspUrl = dbMetaClient7JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dbMetaClient7JSP.class.getResource("dbMeta7_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, dbMetaClient7JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(dbMetaClient7JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient7JSP theTests = new dbMetaClient7JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsUnionAll + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:976; JDBC:JAVADOC:977; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsUnionAll() method on that object. It should + * return a boolean value; eithet true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsUnionAll() throws Exception { + super.testSupportsUnionAll(); + } + + /* + * @testName: testSupportsOpenCursorsAcrossCommit + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:978; JDBC:JAVADOC:979; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenCursorsAcrossCommit() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsOpenCursorsAcrossCommit() throws Exception { + super.testSupportsOpenCursorsAcrossCommit(); + } + + /* + * @testName: testSupportsOpenCursorsAcrossRollback + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:980; JDBC:JAVADOC:981; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenCursorsAcrossRollback() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsOpenCursorsAcrossRollback() throws Exception { + super.testSupportsOpenCursorsAcrossRollback(); + } + + /* + * @testName: testSupportsOpenStatementsAcrossCommit + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:982; JDBC:JAVADOC:983; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenStatementsAcrossCommit() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsOpenStatementsAcrossCommit() throws Exception { + super.testSupportsOpenStatementsAcrossCommit(); + } + + /* + * @testName: testSupportsOpenStatementsAcrossRollback + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:984; JDBC:JAVADOC:985; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenStatementsAcrossRollback() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsOpenStatementsAcrossRollback() throws Exception { + super.testSupportsOpenStatementsAcrossRollback(); + } + + /* + * @testName: testGetMaxBinaryLiteralLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:986; JDBC:JAVADOC:987; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxBinaryLiteralLength() method on that object. It + * should return an integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxBinaryLiteralLength() throws Exception { + super.testGetMaxBinaryLiteralLength(); + } + + /* + * @testName: testGetMaxCharLiteralLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:988; JDBC:JAVADOC:989; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxCharLiteralLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxCharLiteralLength() throws Exception { + super.testGetMaxCharLiteralLength(); + } + + /* + * @testName: testGetMaxColumnNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:990; JDBC:JAVADOC:991; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnNameLength() method on that object. It + * should return an integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxColumnNameLength() throws Exception { + super.testGetMaxColumnNameLength(); + } + + /* + * @testName: testGetMaxColumnsInGroupBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:992; JDBC:JAVADOC:993; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInGroupBy() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxColumnsInGroupBy() throws Exception { + super.testGetMaxColumnsInGroupBy(); + } + + /* + * @testName: testGetMaxColumnsInIndex + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:994; JDBC:JAVADOC:995; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInIndex() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxColumnsInIndex() throws Exception { + super.testGetMaxColumnsInIndex(); + } + + /* + * @testName: testGetMaxColumnsInOrderBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:996; JDBC:JAVADOC:997; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInOrderBy() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxColumnsInOrderBy() throws Exception { + super.testGetMaxColumnsInOrderBy(); + } + + /* + * @testName: testGetMaxColumnsInSelect + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:998; JDBC:JAVADOC:999; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInSelect() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxColumnsInSelect() throws Exception { + super.testGetMaxColumnsInSelect(); + } + + /* + * @testName: testGetMaxColumnsInTable + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1000; JDBC:JAVADOC:1001; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInTable() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxColumnsInTable() throws Exception { + super.testGetMaxColumnsInTable(); + } + + /* + * @testName: testGetMaxConnections + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1002; JDBC:JAVADOC:1003; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxConnections() method on that object. It should + * return an integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxConnections() throws Exception { + super.testGetMaxConnections(); + } + + /* + * @testName: testGetMaxCursorNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1004; JDBC:JAVADOC:1005; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxCursorNameLength() method on that object. It + * should return an integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxCursorNameLength() throws Exception { + super.testGetMaxCursorNameLength(); + } + + /* + * @testName: testGetMaxIndexLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1006; JDBC:JAVADOC:1007; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxIndexLength() method on that object. It should + * return an integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxIndexLength() throws Exception { + super.testGetMaxIndexLength(); + } + + /* + * @testName: testGetMaxSchemaNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1008; JDBC:JAVADOC:1009; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxSchemaNameLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxSchemaNameLength() throws Exception { + super.testGetMaxSchemaNameLength(); + } + + /* + * @testName: testGetMaxProcedureNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1010; JDBC:JAVADOC:1011; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxProcedureNameLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxProcedureNameLength() throws Exception { + super.testGetMaxProcedureNameLength(); + } + + /* + * @testName: testGetMaxCatalogNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1012; JDBC:JAVADOC:1013; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxCatalogNameLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxCatalogNameLength() throws Exception { + super.testGetMaxCatalogNameLength(); + } + + /* + * @testName: testGetMaxRowSize + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1014; JDBC:JAVADOC:1015; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxRowSize() method on that object. It should + * return an integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxRowSize() throws Exception { + super.testGetMaxRowSize(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7Servlet.java new file mode 100644 index 0000000000..4727c0685a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta7/dbMetaClient7Servlet.java @@ -0,0 +1,432 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient7.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta7; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient7 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient7Servlet extends dbMetaClient7 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta7"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta7_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient7Servlet.class, dbMetaClient7.class); + // The servlet descriptor +URL servletUrl = dbMetaClient7Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dbMetaClient7Servlet.class.getResource("dbMeta7_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dbMetaClient7Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient7Servlet theTests = new dbMetaClient7Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSupportsUnionAll + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:976; JDBC:JAVADOC:977; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsUnionAll() method on that object. It should + * return a boolean value; eithet true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsUnionAll() throws Exception { + super.testSupportsUnionAll(); + } + + /* + * @testName: testSupportsOpenCursorsAcrossCommit + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:978; JDBC:JAVADOC:979; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenCursorsAcrossCommit() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsOpenCursorsAcrossCommit() throws Exception { + super.testSupportsOpenCursorsAcrossCommit(); + } + + /* + * @testName: testSupportsOpenCursorsAcrossRollback + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:980; JDBC:JAVADOC:981; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenCursorsAcrossRollback() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsOpenCursorsAcrossRollback() throws Exception { + super.testSupportsOpenCursorsAcrossRollback(); + } + + /* + * @testName: testSupportsOpenStatementsAcrossCommit + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:982; JDBC:JAVADOC:983; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenStatementsAcrossCommit() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsOpenStatementsAcrossCommit() throws Exception { + super.testSupportsOpenStatementsAcrossCommit(); + } + + /* + * @testName: testSupportsOpenStatementsAcrossRollback + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:984; JDBC:JAVADOC:985; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsOpenStatementsAcrossRollback() method on that + * object. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsOpenStatementsAcrossRollback() throws Exception { + super.testSupportsOpenStatementsAcrossRollback(); + } + + /* + * @testName: testGetMaxBinaryLiteralLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:986; JDBC:JAVADOC:987; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxBinaryLiteralLength() method on that object. It + * should return an integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxBinaryLiteralLength() throws Exception { + super.testGetMaxBinaryLiteralLength(); + } + + /* + * @testName: testGetMaxCharLiteralLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:988; JDBC:JAVADOC:989; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxCharLiteralLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxCharLiteralLength() throws Exception { + super.testGetMaxCharLiteralLength(); + } + + /* + * @testName: testGetMaxColumnNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:990; JDBC:JAVADOC:991; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnNameLength() method on that object. It + * should return an integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxColumnNameLength() throws Exception { + super.testGetMaxColumnNameLength(); + } + + /* + * @testName: testGetMaxColumnsInGroupBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:992; JDBC:JAVADOC:993; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInGroupBy() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxColumnsInGroupBy() throws Exception { + super.testGetMaxColumnsInGroupBy(); + } + + /* + * @testName: testGetMaxColumnsInIndex + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:994; JDBC:JAVADOC:995; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInIndex() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxColumnsInIndex() throws Exception { + super.testGetMaxColumnsInIndex(); + } + + /* + * @testName: testGetMaxColumnsInOrderBy + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:996; JDBC:JAVADOC:997; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInOrderBy() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxColumnsInOrderBy() throws Exception { + super.testGetMaxColumnsInOrderBy(); + } + + /* + * @testName: testGetMaxColumnsInSelect + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:998; JDBC:JAVADOC:999; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInSelect() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxColumnsInSelect() throws Exception { + super.testGetMaxColumnsInSelect(); + } + + /* + * @testName: testGetMaxColumnsInTable + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1000; JDBC:JAVADOC:1001; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxColumnsInTable() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxColumnsInTable() throws Exception { + super.testGetMaxColumnsInTable(); + } + + /* + * @testName: testGetMaxConnections + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1002; JDBC:JAVADOC:1003; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxConnections() method on that object. It should + * return an integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxConnections() throws Exception { + super.testGetMaxConnections(); + } + + /* + * @testName: testGetMaxCursorNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1004; JDBC:JAVADOC:1005; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxCursorNameLength() method on that object. It + * should return an integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxCursorNameLength() throws Exception { + super.testGetMaxCursorNameLength(); + } + + /* + * @testName: testGetMaxIndexLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1006; JDBC:JAVADOC:1007; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxIndexLength() method on that object. It should + * return an integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxIndexLength() throws Exception { + super.testGetMaxIndexLength(); + } + + /* + * @testName: testGetMaxSchemaNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1008; JDBC:JAVADOC:1009; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxSchemaNameLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxSchemaNameLength() throws Exception { + super.testGetMaxSchemaNameLength(); + } + + /* + * @testName: testGetMaxProcedureNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1010; JDBC:JAVADOC:1011; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxProcedureNameLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxProcedureNameLength() throws Exception { + super.testGetMaxProcedureNameLength(); + } + + /* + * @testName: testGetMaxCatalogNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1012; JDBC:JAVADOC:1013; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxCatalogNameLength() method on that object. It + * should return an integer value. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxCatalogNameLength() throws Exception { + super.testGetMaxCatalogNameLength(); + } + + /* + * @testName: testGetMaxRowSize + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1014; JDBC:JAVADOC:1015; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxRowSize() method on that object. It should + * return an integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxRowSize() throws Exception { + super.testGetMaxRowSize(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/build.xml deleted file mode 100644 index 14a9aab96a..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8.java index bf74471f7c..97228848e6 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8.java @@ -30,8 +30,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -50,6 +54,11 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + + public class dbMetaClient8 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dbMeta.dbMeta8"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8AppClient.java new file mode 100644 index 0000000000..cd5ef15827 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8AppClient.java @@ -0,0 +1,434 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient8.java 1.28 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta8; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient8 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient8AppClient extends dbMetaClient8 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta8"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dbMeta8_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient8AppClient.class, dbMetaClient8.class); + // The appclient-client descriptor + URL appClientUrl = dbMetaClient8AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dbMetaClient8AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dbMetaClient8AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta8_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient8AppClient theTests = new dbMetaClient8AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testDoesMaxRowSizeIncludeBlobs + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1016; JDBC:JAVADOC:1017; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the doesMaxRowSizeIncludeBlobs() method. It should return + * a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testDoesMaxRowSizeIncludeBlobs() throws Exception { + super.testDoesMaxRowSizeIncludeBlobs(); + } + + /* + * @testName: testGetMaxStatementLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1018; JDBC:JAVADOC:1019; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxStatementLength() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxStatementLength() throws Exception { + super.testGetMaxStatementLength(); + } + + /* + * @testName: testGetMaxStatements + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1020; JDBC:JAVADOC:1021; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxStatements() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxStatements() throws Exception { + super.testGetMaxStatements(); + } + + /* + * @testName: testGetMaxTableNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1022; JDBC:JAVADOC:1023; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxTableNameLength() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxTableNameLength() throws Exception { + super.testGetMaxTableNameLength(); + } + + /* + * @testName: testGetMaxTablesInSelect + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1024; JDBC:JAVADOC:1025; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxTablesInSelect() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxTablesInSelect() throws Exception { + super.testGetMaxTablesInSelect(); + } + + /* + * @testName: testGetMaxUserNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1026; JDBC:JAVADOC:1027; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxUserNameLength() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxUserNameLength() throws Exception { + super.testGetMaxUserNameLength(); + } + + /* + * @testName: testGetDefaultTransactionIsolation + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1028; JDBC:JAVADOC:1029; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getDefaultTransactionIsolation() method. It should + * return an integer value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetDefaultTransactionIsolation() throws Exception { + super.testGetDefaultTransactionIsolation(); + } + + /* + * @testName: testSupportsTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1030; JDBC:JAVADOC:1031; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactions() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsTransactions() throws Exception { + super.testSupportsTransactions(); + } + + /* + * @testName: testSupportsBatchUpdates + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1098; JDBC:JAVADOC:1099; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsBatchUpdates() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsBatchUpdates() throws Exception { + super.testSupportsBatchUpdates(); + } + + /* + * @testName: testSupportsDataDefinitionAndDataManipulationTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1034; JDBC:JAVADOC:1035; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the + * supportsDataDefinitionAndDataManipulationTransactions() method. It should + * return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsDataDefinitionAndDataManipulationTransactions() + throws Exception { + super.testSupportsDataDefinitionAndDataManipulationTransactions(); + } + + /* + * @testName: testSupportsDataManipulationTransactionsOnly + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1036; JDBC:JAVADOC:1037; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsDataManipulationTransactionsOnly() method. It + * should return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsDataManipulationTransactionsOnly() throws Exception { + super.testSupportsDataManipulationTransactionsOnly(); + } + + /* + * @testName: testDataDefinitionCausesTransactionCommit + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1038; JDBC:JAVADOC:1039; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the dataDefinitionCausesTransactionCommit() method. It + * should return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testDataDefinitionCausesTransactionCommit() throws Exception { + super.testDataDefinitionCausesTransactionCommit(); + } + + /* + * @testName: testDataDefinitionIgnoredInTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1040; JDBC:JAVADOC:1041; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the dataDefinitionIgnoredInTransactions() method. It + * should return a boolean value + * + */ + @Test + @TargetVehicle("appclient") + public void testDataDefinitionIgnoredInTransactions() throws Exception { + super.testDataDefinitionIgnoredInTransactions(); + } + + /* + * @testName: testGetProcedures + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1042; JDBC:JAVADOC:1043; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getProcedures() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetProcedures() throws Exception { + super.testGetProcedures(); + } + + /* + * @testName: testGetProcedureColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1044; JDBC:JAVADOC:1045; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getProcedureColumns() method. It should return a + * ResultSet object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetProcedureColumns() throws Exception { + super.testGetProcedureColumns(); + } + + /* + * @testName: testGetTables + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1046; JDBC:JAVADOC:1047; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTables() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetTables() throws Exception { + super.testGetTables(); + } + + /* + * @testName: testGetSchemas + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1048; JDBC:JAVADOC:1049; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getSchemas() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetSchemas() throws Exception { + super.testGetSchemas(); + } + + /* + * @testName: testGetCatalogs + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1050; JDBC:JAVADOC:1051; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getCatalogs() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetCatalogs() throws Exception { + super.testGetCatalogs(); + } + + /* + * @testName: testGetTableTypes + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1052; JDBC:JAVADOC:1053; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTableTypes() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetTableTypes() throws Exception { + super.testGetTableTypes(); + } + + /* + * @testName: testGetColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1054; JDBC:JAVADOC:1055; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getColumns() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetColumns() throws Exception { + super.testGetColumns(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8EJB.java new file mode 100644 index 0000000000..ef71f45e3a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8EJB.java @@ -0,0 +1,453 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient8.java 1.28 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta8; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient8 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient8EJB extends dbMetaClient8 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta8"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dbMeta8_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dbMetaClient8EJB.class, dbMetaClient8.class); + + URL resURL = dbMetaClient8EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dbMetaClient8EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMeta8_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dbMeta8_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dbMetaClient8EJB.class, dbMetaClient8.class); + + + resURL = dbMetaClient8EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMeta8_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dbMetaClient8EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta8_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient8EJB theTests = new dbMetaClient8EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testDoesMaxRowSizeIncludeBlobs + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1016; JDBC:JAVADOC:1017; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the doesMaxRowSizeIncludeBlobs() method. It should return + * a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testDoesMaxRowSizeIncludeBlobs() throws Exception { + super.testDoesMaxRowSizeIncludeBlobs(); + } + + /* + * @testName: testGetMaxStatementLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1018; JDBC:JAVADOC:1019; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxStatementLength() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxStatementLength() throws Exception { + super.testGetMaxStatementLength(); + } + + /* + * @testName: testGetMaxStatements + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1020; JDBC:JAVADOC:1021; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxStatements() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxStatements() throws Exception { + super.testGetMaxStatements(); + } + + /* + * @testName: testGetMaxTableNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1022; JDBC:JAVADOC:1023; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxTableNameLength() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxTableNameLength() throws Exception { + super.testGetMaxTableNameLength(); + } + + /* + * @testName: testGetMaxTablesInSelect + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1024; JDBC:JAVADOC:1025; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxTablesInSelect() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxTablesInSelect() throws Exception { + super.testGetMaxTablesInSelect(); + } + + /* + * @testName: testGetMaxUserNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1026; JDBC:JAVADOC:1027; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxUserNameLength() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxUserNameLength() throws Exception { + super.testGetMaxUserNameLength(); + } + + /* + * @testName: testGetDefaultTransactionIsolation + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1028; JDBC:JAVADOC:1029; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getDefaultTransactionIsolation() method. It should + * return an integer value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetDefaultTransactionIsolation() throws Exception { + super.testGetDefaultTransactionIsolation(); + } + + /* + * @testName: testSupportsTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1030; JDBC:JAVADOC:1031; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactions() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsTransactions() throws Exception { + super.testSupportsTransactions(); + } + + /* + * @testName: testSupportsBatchUpdates + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1098; JDBC:JAVADOC:1099; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsBatchUpdates() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsBatchUpdates() throws Exception { + super.testSupportsBatchUpdates(); + } + + /* + * @testName: testSupportsDataDefinitionAndDataManipulationTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1034; JDBC:JAVADOC:1035; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the + * supportsDataDefinitionAndDataManipulationTransactions() method. It should + * return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsDataDefinitionAndDataManipulationTransactions() + throws Exception { + super.testSupportsDataDefinitionAndDataManipulationTransactions(); + } + + /* + * @testName: testSupportsDataManipulationTransactionsOnly + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1036; JDBC:JAVADOC:1037; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsDataManipulationTransactionsOnly() method. It + * should return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsDataManipulationTransactionsOnly() throws Exception { + super.testSupportsDataManipulationTransactionsOnly(); + } + + /* + * @testName: testDataDefinitionCausesTransactionCommit + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1038; JDBC:JAVADOC:1039; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the dataDefinitionCausesTransactionCommit() method. It + * should return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testDataDefinitionCausesTransactionCommit() throws Exception { + super.testDataDefinitionCausesTransactionCommit(); + } + + /* + * @testName: testDataDefinitionIgnoredInTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1040; JDBC:JAVADOC:1041; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the dataDefinitionIgnoredInTransactions() method. It + * should return a boolean value + * + */ + @Test + @TargetVehicle("ejb") + public void testDataDefinitionIgnoredInTransactions() throws Exception { + super.testDataDefinitionIgnoredInTransactions(); + } + + /* + * @testName: testGetProcedures + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1042; JDBC:JAVADOC:1043; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getProcedures() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetProcedures() throws Exception { + super.testGetProcedures(); + } + + /* + * @testName: testGetProcedureColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1044; JDBC:JAVADOC:1045; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getProcedureColumns() method. It should return a + * ResultSet object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetProcedureColumns() throws Exception { + super.testGetProcedureColumns(); + } + + /* + * @testName: testGetTables + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1046; JDBC:JAVADOC:1047; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTables() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetTables() throws Exception { + super.testGetTables(); + } + + /* + * @testName: testGetSchemas + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1048; JDBC:JAVADOC:1049; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getSchemas() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetSchemas() throws Exception { + super.testGetSchemas(); + } + + /* + * @testName: testGetCatalogs + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1050; JDBC:JAVADOC:1051; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getCatalogs() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetCatalogs() throws Exception { + super.testGetCatalogs(); + } + + /* + * @testName: testGetTableTypes + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1052; JDBC:JAVADOC:1053; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTableTypes() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetTableTypes() throws Exception { + super.testGetTableTypes(); + } + + /* + * @testName: testGetColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1054; JDBC:JAVADOC:1055; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getColumns() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetColumns() throws Exception { + super.testGetColumns(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8JSP.java new file mode 100644 index 0000000000..e7c895e14a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8JSP.java @@ -0,0 +1,438 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient8.java 1.28 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta8; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient8 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient8JSP extends dbMetaClient8 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta8"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta8_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(dbMetaClient8JSP.class, dbMetaClient8.class); + + // The jsp descriptor + URL jspUrl = dbMetaClient8JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dbMetaClient8JSP.class.getResource("dbMeta8_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, dbMetaClient8JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(dbMetaClient8JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient8JSP theTests = new dbMetaClient8JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testDoesMaxRowSizeIncludeBlobs + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1016; JDBC:JAVADOC:1017; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the doesMaxRowSizeIncludeBlobs() method. It should return + * a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testDoesMaxRowSizeIncludeBlobs() throws Exception { + super.testDoesMaxRowSizeIncludeBlobs(); + } + + /* + * @testName: testGetMaxStatementLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1018; JDBC:JAVADOC:1019; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxStatementLength() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxStatementLength() throws Exception { + super.testGetMaxStatementLength(); + } + + /* + * @testName: testGetMaxStatements + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1020; JDBC:JAVADOC:1021; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxStatements() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxStatements() throws Exception { + super.testGetMaxStatements(); + } + + /* + * @testName: testGetMaxTableNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1022; JDBC:JAVADOC:1023; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxTableNameLength() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxTableNameLength() throws Exception { + super.testGetMaxTableNameLength(); + } + + /* + * @testName: testGetMaxTablesInSelect + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1024; JDBC:JAVADOC:1025; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxTablesInSelect() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxTablesInSelect() throws Exception { + super.testGetMaxTablesInSelect(); + } + + /* + * @testName: testGetMaxUserNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1026; JDBC:JAVADOC:1027; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxUserNameLength() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxUserNameLength() throws Exception { + super.testGetMaxUserNameLength(); + } + + /* + * @testName: testGetDefaultTransactionIsolation + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1028; JDBC:JAVADOC:1029; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getDefaultTransactionIsolation() method. It should + * return an integer value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetDefaultTransactionIsolation() throws Exception { + super.testGetDefaultTransactionIsolation(); + } + + /* + * @testName: testSupportsTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1030; JDBC:JAVADOC:1031; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactions() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsTransactions() throws Exception { + super.testSupportsTransactions(); + } + + /* + * @testName: testSupportsBatchUpdates + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1098; JDBC:JAVADOC:1099; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsBatchUpdates() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsBatchUpdates() throws Exception { + super.testSupportsBatchUpdates(); + } + + /* + * @testName: testSupportsDataDefinitionAndDataManipulationTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1034; JDBC:JAVADOC:1035; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the + * supportsDataDefinitionAndDataManipulationTransactions() method. It should + * return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsDataDefinitionAndDataManipulationTransactions() + throws Exception { + super.testSupportsDataDefinitionAndDataManipulationTransactions(); + } + + /* + * @testName: testSupportsDataManipulationTransactionsOnly + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1036; JDBC:JAVADOC:1037; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsDataManipulationTransactionsOnly() method. It + * should return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsDataManipulationTransactionsOnly() throws Exception { + super.testSupportsDataManipulationTransactionsOnly(); + } + + /* + * @testName: testDataDefinitionCausesTransactionCommit + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1038; JDBC:JAVADOC:1039; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the dataDefinitionCausesTransactionCommit() method. It + * should return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testDataDefinitionCausesTransactionCommit() throws Exception { + super.testDataDefinitionCausesTransactionCommit(); + } + + /* + * @testName: testDataDefinitionIgnoredInTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1040; JDBC:JAVADOC:1041; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the dataDefinitionIgnoredInTransactions() method. It + * should return a boolean value + * + */ + @Test + @TargetVehicle("jsp") + public void testDataDefinitionIgnoredInTransactions() throws Exception { + super.testDataDefinitionIgnoredInTransactions(); + } + + /* + * @testName: testGetProcedures + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1042; JDBC:JAVADOC:1043; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getProcedures() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetProcedures() throws Exception { + super.testGetProcedures(); + } + + /* + * @testName: testGetProcedureColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1044; JDBC:JAVADOC:1045; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getProcedureColumns() method. It should return a + * ResultSet object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetProcedureColumns() throws Exception { + super.testGetProcedureColumns(); + } + + /* + * @testName: testGetTables + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1046; JDBC:JAVADOC:1047; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTables() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetTables() throws Exception { + super.testGetTables(); + } + + /* + * @testName: testGetSchemas + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1048; JDBC:JAVADOC:1049; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getSchemas() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetSchemas() throws Exception { + super.testGetSchemas(); + } + + /* + * @testName: testGetCatalogs + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1050; JDBC:JAVADOC:1051; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getCatalogs() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetCatalogs() throws Exception { + super.testGetCatalogs(); + } + + /* + * @testName: testGetTableTypes + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1052; JDBC:JAVADOC:1053; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTableTypes() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetTableTypes() throws Exception { + super.testGetTableTypes(); + } + + /* + * @testName: testGetColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1054; JDBC:JAVADOC:1055; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getColumns() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetColumns() throws Exception { + super.testGetColumns(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8Servlet.java new file mode 100644 index 0000000000..d31e7c71a6 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta8/dbMetaClient8Servlet.java @@ -0,0 +1,426 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient8.java 1.28 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta8; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient8 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient8Servlet extends dbMetaClient8 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta8"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta8_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient8Servlet.class, dbMetaClient8.class); + // The servlet descriptor +URL servletUrl = dbMetaClient8Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dbMetaClient8Servlet.class.getResource("dbMeta8_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dbMetaClient8Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient8Servlet theTests = new dbMetaClient8Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testDoesMaxRowSizeIncludeBlobs + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1016; JDBC:JAVADOC:1017; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the doesMaxRowSizeIncludeBlobs() method. It should return + * a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testDoesMaxRowSizeIncludeBlobs() throws Exception { + super.testDoesMaxRowSizeIncludeBlobs(); + } + + /* + * @testName: testGetMaxStatementLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1018; JDBC:JAVADOC:1019; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxStatementLength() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxStatementLength() throws Exception { + super.testGetMaxStatementLength(); + } + + /* + * @testName: testGetMaxStatements + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1020; JDBC:JAVADOC:1021; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxStatements() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxStatements() throws Exception { + super.testGetMaxStatements(); + } + + /* + * @testName: testGetMaxTableNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1022; JDBC:JAVADOC:1023; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxTableNameLength() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxTableNameLength() throws Exception { + super.testGetMaxTableNameLength(); + } + + /* + * @testName: testGetMaxTablesInSelect + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1024; JDBC:JAVADOC:1025; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxTablesInSelect() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxTablesInSelect() throws Exception { + super.testGetMaxTablesInSelect(); + } + + /* + * @testName: testGetMaxUserNameLength + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1026; JDBC:JAVADOC:1027; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getMaxUserNameLength() method. It should return an + * integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxUserNameLength() throws Exception { + super.testGetMaxUserNameLength(); + } + + /* + * @testName: testGetDefaultTransactionIsolation + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1028; JDBC:JAVADOC:1029; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getDefaultTransactionIsolation() method. It should + * return an integer value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetDefaultTransactionIsolation() throws Exception { + super.testGetDefaultTransactionIsolation(); + } + + /* + * @testName: testSupportsTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1030; JDBC:JAVADOC:1031; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsTransactions() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsTransactions() throws Exception { + super.testSupportsTransactions(); + } + + /* + * @testName: testSupportsBatchUpdates + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1098; JDBC:JAVADOC:1099; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsBatchUpdates() method. It should return a + * boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsBatchUpdates() throws Exception { + super.testSupportsBatchUpdates(); + } + + /* + * @testName: testSupportsDataDefinitionAndDataManipulationTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1034; JDBC:JAVADOC:1035; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the + * supportsDataDefinitionAndDataManipulationTransactions() method. It should + * return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsDataDefinitionAndDataManipulationTransactions() + throws Exception { + super.testSupportsDataDefinitionAndDataManipulationTransactions(); + } + + /* + * @testName: testSupportsDataManipulationTransactionsOnly + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1036; JDBC:JAVADOC:1037; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsDataManipulationTransactionsOnly() method. It + * should return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsDataManipulationTransactionsOnly() throws Exception { + super.testSupportsDataManipulationTransactionsOnly(); + } + + /* + * @testName: testDataDefinitionCausesTransactionCommit + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1038; JDBC:JAVADOC:1039; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the dataDefinitionCausesTransactionCommit() method. It + * should return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testDataDefinitionCausesTransactionCommit() throws Exception { + super.testDataDefinitionCausesTransactionCommit(); + } + + /* + * @testName: testDataDefinitionIgnoredInTransactions + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1040; JDBC:JAVADOC:1041; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the dataDefinitionIgnoredInTransactions() method. It + * should return a boolean value + * + */ + @Test + @TargetVehicle("servlet") + public void testDataDefinitionIgnoredInTransactions() throws Exception { + super.testDataDefinitionIgnoredInTransactions(); + } + + /* + * @testName: testGetProcedures + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1042; JDBC:JAVADOC:1043; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getProcedures() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetProcedures() throws Exception { + super.testGetProcedures(); + } + + /* + * @testName: testGetProcedureColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1044; JDBC:JAVADOC:1045; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getProcedureColumns() method. It should return a + * ResultSet object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetProcedureColumns() throws Exception { + super.testGetProcedureColumns(); + } + + /* + * @testName: testGetTables + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1046; JDBC:JAVADOC:1047; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTables() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetTables() throws Exception { + super.testGetTables(); + } + + /* + * @testName: testGetSchemas + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1048; JDBC:JAVADOC:1049; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getSchemas() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetSchemas() throws Exception { + super.testGetSchemas(); + } + + /* + * @testName: testGetCatalogs + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1050; JDBC:JAVADOC:1051; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getCatalogs() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetCatalogs() throws Exception { + super.testGetCatalogs(); + } + + /* + * @testName: testGetTableTypes + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1052; JDBC:JAVADOC:1053; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTableTypes() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetTableTypes() throws Exception { + super.testGetTableTypes(); + } + + /* + * @testName: testGetColumns + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1054; JDBC:JAVADOC:1055; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getColumns() method. It should return a ResultSet + * object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetColumns() throws Exception { + super.testGetColumns(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/build.xml deleted file mode 100644 index 57275ab61d..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9.java index 484635135f..a1c5d57282 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9.java @@ -30,8 +30,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -50,6 +54,10 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + public class dbMetaClient9 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.dbMeta.dbMeta9"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9AppClient.java new file mode 100644 index 0000000000..ee5ed7da05 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9AppClient.java @@ -0,0 +1,459 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient9.java 1.28 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta9; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient9 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient9AppClient extends dbMetaClient9 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta9"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "dbMeta9_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient9AppClient.class, dbMetaClient9.class); + // The appclient-client descriptor + URL appClientUrl = dbMetaClient9AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = dbMetaClient9AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, dbMetaClient9AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta9_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient9AppClient theTests = new dbMetaClient9AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetTypeInfo + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1072; JDBC:JAVADOC:1073; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTypeInfo() method on that object. It should return + * a ResultSet object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("appclient") + public void testGetTypeInfo() throws Exception { + super.testGetTypeInfo(); + } + + /* + * @testName: testSupportsResultSetType1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1076; JDBC:JAVADOC:1077; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetType(int resType) method with Type + * TYPE_FORWARD_ONLY on that object.It should return a boolean value; either + * true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsResultSetType1() throws Exception { + super.testSupportsResultSetType1(); + } + + /* + * @testName: testSupportsResultSetType2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1076; JDBC:JAVADOC:1077; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetType() method with Type + * TYPE_SCROLL_INSENSITIVE on that object.It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsResultSetType2() throws Exception { + super.testSupportsResultSetType2(); + } + + /* + * @testName: testSupportsResultSetType3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1076; JDBC:JAVADOC:1077; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetType() method with Type + * TYPE_SCROLL_SENSITIVE on that object.It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsResultSetType3() throws Exception { + super.testSupportsResultSetType3(); + } + + /* + * @testName: testSupportsResultSetConcurrency1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_FORWARD_ONLY and + * CONCUR_READ_ONLY. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsResultSetConcurrency1() throws Exception { + super.testSupportsResultSetConcurrency1(); + } + + /* + * @testName: testSupportsResultSetConcurrency2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_FORWARD_ONLY and + * CONCUR_UPDATABLE. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsResultSetConcurrency2() throws Exception { + super.testSupportsResultSetConcurrency2(); + } + + /* + * @testName: testSupportsResultSetConcurrency3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_INSENSITIVE and + * CONCUR_READ_ONLY. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsResultSetConcurrency3() throws Exception { + super.testSupportsResultSetConcurrency3(); + } + + /* + * @testName: testSupportsResultSetConcurrency4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_INSENSITIVE and + * CONCUR_UPDATABLE. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsResultSetConcurrency4() throws Exception { + super.testSupportsResultSetConcurrency4(); + } + + /* + * @testName: testSupportsResultSetConcurrency5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_SENSITIVE and + * CONCUR_READ_ONLY. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsResultSetConcurrency5() throws Exception { + super.testSupportsResultSetConcurrency5(); + } + + /* + * @testName: testSupportsResultSetConcurrency6 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_SENSITIVE and + * CONCUR_UPDATABLE. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testSupportsResultSetConcurrency6() throws Exception { + super.testSupportsResultSetConcurrency6(); + } + + /* + * @testName: testOwnUpdatesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1080; JDBC:JAVADOC:1081; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOwnUpdatesAreVisible1() throws Exception { + super.testOwnUpdatesAreVisible1(); + } + + /* + * @testName: testOwnUpdatesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1080; JDBC:JAVADOC:1081; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOwnUpdatesAreVisible2() throws Exception { + super.testOwnUpdatesAreVisible2(); + } + + /* + * @testName: testOwnUpdatesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1080; JDBC:JAVADOC:1081; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOwnUpdatesAreVisible3() throws Exception { + super.testOwnUpdatesAreVisible3(); + } + + /* + * @testName: testOwnDeletesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1082; JDBC:JAVADOC:1083; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOwnDeletesAreVisible1() throws Exception { + super.testOwnDeletesAreVisible1(); + } + + /* + * @testName: testOwnDeletesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1082; JDBC:JAVADOC:1083; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOwnDeletesAreVisible2() throws Exception { + super.testOwnDeletesAreVisible2(); + } + + /* + * @testName: testOwnDeletesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1082; JDBC:JAVADOC:1083; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOwnDeletesAreVisible3() throws Exception { + super.testOwnDeletesAreVisible3(); + } + + /* + * @testName: testOwnInsertsAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1084; JDBC:JAVADOC:1085; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOwnInsertsAreVisible1() throws Exception { + super.testOwnInsertsAreVisible1(); + } + + /* + * @testName: testOwnInsertsAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1084; JDBC:JAVADOC:1085; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOwnInsertsAreVisible2() throws Exception { + super.testOwnInsertsAreVisible2(); + } + + /* + * @testName: testOwnInsertsAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1084; JDBC:JAVADOC:1085; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOwnInsertsAreVisible3() throws Exception { + super.testOwnInsertsAreVisible3(); + } + + /* + * @testName: testOthersUpdatesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1086; JDBC:JAVADOC:1087; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("appclient") + public void testOthersUpdatesAreVisible1() throws Exception { + super.testOthersUpdatesAreVisible1(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9EJB.java new file mode 100644 index 0000000000..dc6b9d7694 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9EJB.java @@ -0,0 +1,479 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient9.java 1.28 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta9; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient9 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class dbMetaClient9EJB extends dbMetaClient9 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta9"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "dbMeta9_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(dbMetaClient9EJB.class, dbMetaClient9.class); + + URL resURL = dbMetaClient9EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = dbMetaClient9EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMeta9_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "dbMeta9_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(dbMetaClient9EJB.class, dbMetaClient9.class); + + + resURL = dbMetaClient9EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMeta9_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = dbMetaClient9EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "dbMeta9_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient9EJB theTests = new dbMetaClient9EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetTypeInfo + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1072; JDBC:JAVADOC:1073; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTypeInfo() method on that object. It should return + * a ResultSet object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("ejb") + public void testGetTypeInfo() throws Exception { + super.testGetTypeInfo(); + } + + /* + * @testName: testSupportsResultSetType1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1076; JDBC:JAVADOC:1077; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetType(int resType) method with Type + * TYPE_FORWARD_ONLY on that object.It should return a boolean value; either + * true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsResultSetType1() throws Exception { + super.testSupportsResultSetType1(); + } + + /* + * @testName: testSupportsResultSetType2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1076; JDBC:JAVADOC:1077; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetType() method with Type + * TYPE_SCROLL_INSENSITIVE on that object.It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsResultSetType2() throws Exception { + super.testSupportsResultSetType2(); + } + + /* + * @testName: testSupportsResultSetType3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1076; JDBC:JAVADOC:1077; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetType() method with Type + * TYPE_SCROLL_SENSITIVE on that object.It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsResultSetType3() throws Exception { + super.testSupportsResultSetType3(); + } + + /* + * @testName: testSupportsResultSetConcurrency1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_FORWARD_ONLY and + * CONCUR_READ_ONLY. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsResultSetConcurrency1() throws Exception { + super.testSupportsResultSetConcurrency1(); + } + + /* + * @testName: testSupportsResultSetConcurrency2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_FORWARD_ONLY and + * CONCUR_UPDATABLE. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsResultSetConcurrency2() throws Exception { + super.testSupportsResultSetConcurrency2(); + } + + /* + * @testName: testSupportsResultSetConcurrency3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_INSENSITIVE and + * CONCUR_READ_ONLY. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsResultSetConcurrency3() throws Exception { + super.testSupportsResultSetConcurrency3(); + } + + /* + * @testName: testSupportsResultSetConcurrency4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_INSENSITIVE and + * CONCUR_UPDATABLE. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsResultSetConcurrency4() throws Exception { + super.testSupportsResultSetConcurrency4(); + } + + /* + * @testName: testSupportsResultSetConcurrency5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_SENSITIVE and + * CONCUR_READ_ONLY. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsResultSetConcurrency5() throws Exception { + super.testSupportsResultSetConcurrency5(); + } + + /* + * @testName: testSupportsResultSetConcurrency6 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_SENSITIVE and + * CONCUR_UPDATABLE. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testSupportsResultSetConcurrency6() throws Exception { + super.testSupportsResultSetConcurrency6(); + } + + /* + * @testName: testOwnUpdatesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1080; JDBC:JAVADOC:1081; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOwnUpdatesAreVisible1() throws Exception { + super.testOwnUpdatesAreVisible1(); + } + + /* + * @testName: testOwnUpdatesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1080; JDBC:JAVADOC:1081; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOwnUpdatesAreVisible2() throws Exception { + super.testOwnUpdatesAreVisible2(); + } + + /* + * @testName: testOwnUpdatesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1080; JDBC:JAVADOC:1081; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOwnUpdatesAreVisible3() throws Exception { + super.testOwnUpdatesAreVisible3(); + } + + /* + * @testName: testOwnDeletesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1082; JDBC:JAVADOC:1083; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOwnDeletesAreVisible1() throws Exception { + super.testOwnDeletesAreVisible1(); + } + + /* + * @testName: testOwnDeletesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1082; JDBC:JAVADOC:1083; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOwnDeletesAreVisible2() throws Exception { + super.testOwnDeletesAreVisible2(); + } + + /* + * @testName: testOwnDeletesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1082; JDBC:JAVADOC:1083; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOwnDeletesAreVisible3() throws Exception { + super.testOwnDeletesAreVisible3(); + } + + /* + * @testName: testOwnInsertsAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1084; JDBC:JAVADOC:1085; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOwnInsertsAreVisible1() throws Exception { + super.testOwnInsertsAreVisible1(); + } + + /* + * @testName: testOwnInsertsAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1084; JDBC:JAVADOC:1085; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOwnInsertsAreVisible2() throws Exception { + super.testOwnInsertsAreVisible2(); + } + + /* + * @testName: testOwnInsertsAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1084; JDBC:JAVADOC:1085; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOwnInsertsAreVisible3() throws Exception { + super.testOwnInsertsAreVisible3(); + } + + /* + * @testName: testOthersUpdatesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1086; JDBC:JAVADOC:1087; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("ejb") + public void testOthersUpdatesAreVisible1() throws Exception { + super.testOthersUpdatesAreVisible1(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9JSP.java new file mode 100644 index 0000000000..702e737b2a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9JSP.java @@ -0,0 +1,463 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient9.java 1.28 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta9; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient9 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient9JSP extends dbMetaClient9 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta9"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta9_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(dbMetaClient9JSP.class, dbMetaClient9.class); + + // The jsp descriptor + URL jspUrl = dbMetaClient9JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = dbMetaClient9JSP.class.getResource("dbMeta9_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, dbMetaClient9JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(dbMetaClient9JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient9JSP theTests = new dbMetaClient9JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetTypeInfo + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1072; JDBC:JAVADOC:1073; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTypeInfo() method on that object. It should return + * a ResultSet object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("jsp") + public void testGetTypeInfo() throws Exception { + super.testGetTypeInfo(); + } + + /* + * @testName: testSupportsResultSetType1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1076; JDBC:JAVADOC:1077; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetType(int resType) method with Type + * TYPE_FORWARD_ONLY on that object.It should return a boolean value; either + * true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsResultSetType1() throws Exception { + super.testSupportsResultSetType1(); + } + + /* + * @testName: testSupportsResultSetType2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1076; JDBC:JAVADOC:1077; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetType() method with Type + * TYPE_SCROLL_INSENSITIVE on that object.It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsResultSetType2() throws Exception { + super.testSupportsResultSetType2(); + } + + /* + * @testName: testSupportsResultSetType3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1076; JDBC:JAVADOC:1077; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetType() method with Type + * TYPE_SCROLL_SENSITIVE on that object.It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsResultSetType3() throws Exception { + super.testSupportsResultSetType3(); + } + + /* + * @testName: testSupportsResultSetConcurrency1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_FORWARD_ONLY and + * CONCUR_READ_ONLY. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsResultSetConcurrency1() throws Exception { + super.testSupportsResultSetConcurrency1(); + } + + /* + * @testName: testSupportsResultSetConcurrency2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_FORWARD_ONLY and + * CONCUR_UPDATABLE. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsResultSetConcurrency2() throws Exception { + super.testSupportsResultSetConcurrency2(); + } + + /* + * @testName: testSupportsResultSetConcurrency3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_INSENSITIVE and + * CONCUR_READ_ONLY. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsResultSetConcurrency3() throws Exception { + super.testSupportsResultSetConcurrency3(); + } + + /* + * @testName: testSupportsResultSetConcurrency4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_INSENSITIVE and + * CONCUR_UPDATABLE. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsResultSetConcurrency4() throws Exception { + super.testSupportsResultSetConcurrency4(); + } + + /* + * @testName: testSupportsResultSetConcurrency5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_SENSITIVE and + * CONCUR_READ_ONLY. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsResultSetConcurrency5() throws Exception { + super.testSupportsResultSetConcurrency5(); + } + + /* + * @testName: testSupportsResultSetConcurrency6 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_SENSITIVE and + * CONCUR_UPDATABLE. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testSupportsResultSetConcurrency6() throws Exception { + super.testSupportsResultSetConcurrency6(); + } + + /* + * @testName: testOwnUpdatesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1080; JDBC:JAVADOC:1081; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOwnUpdatesAreVisible1() throws Exception { + super.testOwnUpdatesAreVisible1(); + } + + /* + * @testName: testOwnUpdatesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1080; JDBC:JAVADOC:1081; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOwnUpdatesAreVisible2() throws Exception { + super.testOwnUpdatesAreVisible2(); + } + + /* + * @testName: testOwnUpdatesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1080; JDBC:JAVADOC:1081; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOwnUpdatesAreVisible3() throws Exception { + super.testOwnUpdatesAreVisible3(); + } + + /* + * @testName: testOwnDeletesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1082; JDBC:JAVADOC:1083; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOwnDeletesAreVisible1() throws Exception { + super.testOwnDeletesAreVisible1(); + } + + /* + * @testName: testOwnDeletesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1082; JDBC:JAVADOC:1083; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOwnDeletesAreVisible2() throws Exception { + super.testOwnDeletesAreVisible2(); + } + + /* + * @testName: testOwnDeletesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1082; JDBC:JAVADOC:1083; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOwnDeletesAreVisible3() throws Exception { + super.testOwnDeletesAreVisible3(); + } + + /* + * @testName: testOwnInsertsAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1084; JDBC:JAVADOC:1085; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOwnInsertsAreVisible1() throws Exception { + super.testOwnInsertsAreVisible1(); + } + + /* + * @testName: testOwnInsertsAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1084; JDBC:JAVADOC:1085; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOwnInsertsAreVisible2() throws Exception { + super.testOwnInsertsAreVisible2(); + } + + /* + * @testName: testOwnInsertsAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1084; JDBC:JAVADOC:1085; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOwnInsertsAreVisible3() throws Exception { + super.testOwnInsertsAreVisible3(); + } + + /* + * @testName: testOthersUpdatesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1086; JDBC:JAVADOC:1087; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("jsp") + public void testOthersUpdatesAreVisible1() throws Exception { + super.testOthersUpdatesAreVisible1(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9Servlet.java new file mode 100644 index 0000000000..2859a98718 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/dbMeta/dbMeta9/dbMetaClient9Servlet.java @@ -0,0 +1,451 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)dbMetaClient9.java 1.28 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.dbMeta.dbMeta9; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The dbMetaClient9 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class dbMetaClient9Servlet extends dbMetaClient9 implements Serializable { + private static final String testName = "jdbc.ee.dbMeta.dbMeta9"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "dbMeta9_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(dbMetaClient9Servlet.class, dbMetaClient9.class); + // The servlet descriptor +URL servletUrl = dbMetaClient9Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = dbMetaClient9Servlet.class.getResource("dbMeta9_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, dbMetaClient9Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + dbMetaClient9Servlet theTests = new dbMetaClient9Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetTypeInfo + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1072; JDBC:JAVADOC:1073; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the getTypeInfo() method on that object. It should return + * a ResultSet object Validate the column names and column ordering. + */ + @Test + @TargetVehicle("servlet") + public void testGetTypeInfo() throws Exception { + super.testGetTypeInfo(); + } + + /* + * @testName: testSupportsResultSetType1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1076; JDBC:JAVADOC:1077; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetType(int resType) method with Type + * TYPE_FORWARD_ONLY on that object.It should return a boolean value; either + * true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsResultSetType1() throws Exception { + super.testSupportsResultSetType1(); + } + + /* + * @testName: testSupportsResultSetType2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1076; JDBC:JAVADOC:1077; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetType() method with Type + * TYPE_SCROLL_INSENSITIVE on that object.It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsResultSetType2() throws Exception { + super.testSupportsResultSetType2(); + } + + /* + * @testName: testSupportsResultSetType3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1076; JDBC:JAVADOC:1077; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetType() method with Type + * TYPE_SCROLL_SENSITIVE on that object.It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsResultSetType3() throws Exception { + super.testSupportsResultSetType3(); + } + + /* + * @testName: testSupportsResultSetConcurrency1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_FORWARD_ONLY and + * CONCUR_READ_ONLY. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsResultSetConcurrency1() throws Exception { + super.testSupportsResultSetConcurrency1(); + } + + /* + * @testName: testSupportsResultSetConcurrency2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_FORWARD_ONLY and + * CONCUR_UPDATABLE. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsResultSetConcurrency2() throws Exception { + super.testSupportsResultSetConcurrency2(); + } + + /* + * @testName: testSupportsResultSetConcurrency3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_INSENSITIVE and + * CONCUR_READ_ONLY. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsResultSetConcurrency3() throws Exception { + super.testSupportsResultSetConcurrency3(); + } + + /* + * @testName: testSupportsResultSetConcurrency4 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_INSENSITIVE and + * CONCUR_UPDATABLE. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsResultSetConcurrency4() throws Exception { + super.testSupportsResultSetConcurrency4(); + } + + /* + * @testName: testSupportsResultSetConcurrency5 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_SENSITIVE and + * CONCUR_READ_ONLY. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsResultSetConcurrency5() throws Exception { + super.testSupportsResultSetConcurrency5(); + } + + /* + * @testName: testSupportsResultSetConcurrency6 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1078; JDBC:JAVADOC:1079; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the supportsResultSetConcurrency(int resType, int + * rsConcur) method on that object with TYPE_SCROLL_SENSITIVE and + * CONCUR_UPDATABLE. It should return a boolean value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testSupportsResultSetConcurrency6() throws Exception { + super.testSupportsResultSetConcurrency6(); + } + + /* + * @testName: testOwnUpdatesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1080; JDBC:JAVADOC:1081; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOwnUpdatesAreVisible1() throws Exception { + super.testOwnUpdatesAreVisible1(); + } + + /* + * @testName: testOwnUpdatesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1080; JDBC:JAVADOC:1081; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOwnUpdatesAreVisible2() throws Exception { + super.testOwnUpdatesAreVisible2(); + } + + /* + * @testName: testOwnUpdatesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1080; JDBC:JAVADOC:1081; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOwnUpdatesAreVisible3() throws Exception { + super.testOwnUpdatesAreVisible3(); + } + + /* + * @testName: testOwnDeletesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1082; JDBC:JAVADOC:1083; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOwnDeletesAreVisible1() throws Exception { + super.testOwnDeletesAreVisible1(); + } + + /* + * @testName: testOwnDeletesAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1082; JDBC:JAVADOC:1083; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOwnDeletesAreVisible2() throws Exception { + super.testOwnDeletesAreVisible2(); + } + + /* + * @testName: testOwnDeletesAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1082; JDBC:JAVADOC:1083; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownDeletesAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOwnDeletesAreVisible3() throws Exception { + super.testOwnDeletesAreVisible3(); + } + + /* + * @testName: testOwnInsertsAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1084; JDBC:JAVADOC:1085; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOwnInsertsAreVisible1() throws Exception { + super.testOwnInsertsAreVisible1(); + } + + /* + * @testName: testOwnInsertsAreVisible2 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1084; JDBC:JAVADOC:1085; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_INSENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOwnInsertsAreVisible2() throws Exception { + super.testOwnInsertsAreVisible2(); + } + + /* + * @testName: testOwnInsertsAreVisible3 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1084; JDBC:JAVADOC:1085; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the ownInsertsAreVisible(int resType) method on that + * object with ResultSet.TYPE_SCROLL_SENSITIVE. It should return a boolean + * value; either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOwnInsertsAreVisible3() throws Exception { + super.testOwnInsertsAreVisible3(); + } + + /* + * @testName: testOthersUpdatesAreVisible1 + * + * @assertion_ids: JDBC:SPEC:8; JDBC:JAVADOC:1086; JDBC:JAVADOC:1087; + * JavaEE:SPEC:193; + * + * @test_Strategy: Get a DatabaseMetadata object from the connection to the + * database and call the otherUpdatesAreVisible(int resType) method on that + * object with ResultSet.TYPE_FORWARD_ONLY. It should return a boolean value; + * either true or false. + * + */ + @Test + @TargetVehicle("servlet") + public void testOthersUpdatesAreVisible1() throws Exception { + super.testOthersUpdatesAreVisible1(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/build.xml deleted file mode 100644 index 50dd598c24..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/build.xml deleted file mode 100644 index 3ff1a4e40e..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/build.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1.java index a38a5b89a3..7b0a25ebbb 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1.java @@ -26,8 +26,12 @@ import java.sql.Statement; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; import com.sun.ts.tests.jdbc.ee.common.DriverManagerConnection; @@ -45,6 +49,12 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") +@Tag("web_profile") +@Tag("tck-javatest") + public class scalarClient1 extends ServiceEETest { private static final String testName = "jdbc.ee.escapeSyntax"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1AppClient.java new file mode 100644 index 0000000000..b219e63ff3 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1AppClient.java @@ -0,0 +1,412 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient1.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar1; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient1 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class scalarClient1AppClient extends scalarClient1 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "scalar1_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(scalarClient1AppClient.class, scalarClient1.class); + // The appclient-client descriptor + URL appClientUrl = scalarClient1AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = scalarClient1AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, scalarClient1AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "scalar1_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient1AppClient theTests = new scalarClient1AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testConcat + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call executeQuery(String) + * method. The query contains the concat scalar function. It should return the + * concatenated string. + * + */ + @Test + @TargetVehicle("appclient") + public void testConcat() throws Exception { + super.testConcat(); + } + + /* + * @testName: testAscii + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a statement object and call executeQuery method. The + * query contains the ascii function call. It should return an integer. + * + * + */ + @Test + @TargetVehicle("appclient") + public void testAscii() throws Exception { + super.testAscii(); + } + + /* + * @testName: testInsert + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function insert. It should return a + * string. + * + */ + @Test + @TargetVehicle("appclient") + public void testInsert() throws Exception { + super.testInsert(); + } + + /* + * @testName: testLcase + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statment object and call the method executeQuery. The + * query contains a call to the function lcase. It should return a string. + * + * + */ + @Test + @TargetVehicle("appclient") + public void testLcase() throws Exception { + super.testLcase(); + } + + /* + * @testName: testLeft + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function left. It should return a string. + * + * + */ + @Test + @TargetVehicle("appclient") + public void testLeft() throws Exception { + super.testLeft(); + } + + /* + * @testName: testLength + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function length. It should return a + * number. + * + * + */ + @Test + @TargetVehicle("appclient") + public void testLength() throws Exception { + super.testLength(); + } + + /* + * @testName: testLocate01 + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function locate. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testLocate01() throws Exception { + super.testLocate01(); + } + + /* + * @testName: testLtrim + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ltrim. It should return a string. + * + */ + @Test + @TargetVehicle("appclient") + public void testLtrim() throws Exception { + super.testLtrim(); + } + + /* + * @testName: testRepeat + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function repeat. It should return a + * string. + * + */ + @Test + @TargetVehicle("appclient") + public void testRepeat() throws Exception { + super.testRepeat(); + } + + /* + * @testName: testRight + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function right. It should return a string. + * + */ + @Test + @TargetVehicle("appclient") + public void testRight() throws Exception { + super.testRight(); + } + + /* + * @testName: testRtrim + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function rtrim. It should return a string. + * + * + */ + @Test + @TargetVehicle("appclient") + public void testRtrim() throws Exception { + super.testRtrim(); + } + + /* + * @testName: testSoundex + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function soundex. It should return a + * string. + * + */ + @Test + @TargetVehicle("appclient") + public void testSoundex() throws Exception { + super.testSoundex(); + } + + /* + * @testName: testSpace + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function space. It should return a string. + * + */ + @Test + @TargetVehicle("appclient") + public void testSpace() throws Exception { + super.testSpace(); + } + + /* + * @testName: testSubstring + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function substring. It should return a + * string. + * + */ + @Test + @TargetVehicle("appclient") + public void testSubstring() throws Exception { + super.testSubstring(); + } + + /* + * @testName: testUcase + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ucase. It should return a string. + * + */ + @Test + @TargetVehicle("appclient") + public void testUcase() throws Exception { + super.testUcase(); + } + + /* + * @testName: testChar + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function char. It should return a + * character. + * + */ + @Test + @TargetVehicle("appclient") + public void testChar() throws Exception { + super.testChar(); + } + + /* + * @testName: testReplace + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function replace. It should return a + * string. + * + */ + @Test + @TargetVehicle("appclient") + public void testReplace() throws Exception { + super.testReplace(); + } + + /* + * @testName: testUser + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function user. It should return a string. + * + */ + @Test + @TargetVehicle("appclient") + public void testUser() throws Exception { + super.testUser(); + } + + /* + * @testName: testIfNull + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ifnull. + * + */ + @Test + @TargetVehicle("appclient") + public void testIfNull() throws Exception { + super.testIfNull(); + } + + /* + * @testName: testSin + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function sin. It should return a numerical + * value. + */ + @Test + @TargetVehicle("appclient") + public void testSin() throws Exception { + super.testSin(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1EJB.java new file mode 100644 index 0000000000..b50bfdfd44 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1EJB.java @@ -0,0 +1,433 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient1.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar1; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient1 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class scalarClient1EJB extends scalarClient1 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "scalar1_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(scalarClient1EJB.class, scalarClient1.class); + + URL resURL = scalarClient1EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = scalarClient1EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalar1_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "scalar1_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(scalarClient1EJB.class, scalarClient1.class); + + + resURL = scalarClient1EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalar1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = scalarClient1EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "scalar1_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient1EJB theTests = new scalarClient1EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testConcat + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call executeQuery(String) + * method. The query contains the concat scalar function. It should return the + * concatenated string. + * + */ + @Test + @TargetVehicle("ejb") + public void testConcat() throws Exception { + super.testConcat(); + } + + /* + * @testName: testAscii + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a statement object and call executeQuery method. The + * query contains the ascii function call. It should return an integer. + * + * + */ + @Test + @TargetVehicle("ejb") + public void testAscii() throws Exception { + super.testAscii(); + } + + /* + * @testName: testInsert + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function insert. It should return a + * string. + * + */ + @Test + @TargetVehicle("ejb") + public void testInsert() throws Exception { + super.testInsert(); + } + + /* + * @testName: testLcase + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statment object and call the method executeQuery. The + * query contains a call to the function lcase. It should return a string. + * + * + */ + @Test + @TargetVehicle("ejb") + public void testLcase() throws Exception { + super.testLcase(); + } + + /* + * @testName: testLeft + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function left. It should return a string. + * + * + */ + @Test + @TargetVehicle("ejb") + public void testLeft() throws Exception { + super.testLeft(); + } + + /* + * @testName: testLength + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function length. It should return a + * number. + * + * + */ + @Test + @TargetVehicle("ejb") + public void testLength() throws Exception { + super.testLength(); + } + + /* + * @testName: testLocate01 + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function locate. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testLocate01() throws Exception { + super.testLocate01(); + } + + /* + * @testName: testLtrim + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ltrim. It should return a string. + * + */ + @Test + @TargetVehicle("ejb") + public void testLtrim() throws Exception { + super.testLtrim(); + } + + /* + * @testName: testRepeat + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function repeat. It should return a + * string. + * + */ + @Test + @TargetVehicle("ejb") + public void testRepeat() throws Exception { + super.testRepeat(); + } + + /* + * @testName: testRight + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function right. It should return a string. + * + */ + @Test + @TargetVehicle("ejb") + public void testRight() throws Exception { + super.testRight(); + } + + /* + * @testName: testRtrim + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function rtrim. It should return a string. + * + * + */ + @Test + @TargetVehicle("ejb") + public void testRtrim() throws Exception { + super.testRtrim(); + } + + /* + * @testName: testSoundex + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function soundex. It should return a + * string. + * + */ + @Test + @TargetVehicle("ejb") + public void testSoundex() throws Exception { + super.testSoundex(); + } + + /* + * @testName: testSpace + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function space. It should return a string. + * + */ + @Test + @TargetVehicle("ejb") + public void testSpace() throws Exception { + super.testSpace(); + } + + /* + * @testName: testSubstring + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function substring. It should return a + * string. + * + */ + @Test + @TargetVehicle("ejb") + public void testSubstring() throws Exception { + super.testSubstring(); + } + + /* + * @testName: testUcase + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ucase. It should return a string. + * + */ + @Test + @TargetVehicle("ejb") + public void testUcase() throws Exception { + super.testUcase(); + } + + /* + * @testName: testChar + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function char. It should return a + * character. + * + */ + @Test + @TargetVehicle("ejb") + public void testChar() throws Exception { + super.testChar(); + } + + /* + * @testName: testReplace + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function replace. It should return a + * string. + * + */ + @Test + @TargetVehicle("ejb") + public void testReplace() throws Exception { + super.testReplace(); + } + + /* + * @testName: testUser + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function user. It should return a string. + * + */ + @Test + @TargetVehicle("ejb") + public void testUser() throws Exception { + super.testUser(); + } + + /* + * @testName: testIfNull + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ifnull. + * + */ + @Test + @TargetVehicle("ejb") + public void testIfNull() throws Exception { + super.testIfNull(); + } + + /* + * @testName: testSin + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function sin. It should return a numerical + * value. + */ + @Test + @TargetVehicle("ejb") + public void testSin() throws Exception { + super.testSin(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1JSP.java new file mode 100644 index 0000000000..87eeb19b6d --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1JSP.java @@ -0,0 +1,416 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient1.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar1; + +import java.io.IOException; +import java.io.InputStream; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient1 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class scalarClient1JSP extends scalarClient1 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "scalar1_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(scalarClient1JSP.class, scalarClient1.class); + + // The jsp descriptor + URL jspUrl = scalarClient1JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = scalarClient1JSP.class.getResource("scalar1_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, scalarClient1JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(scalarClient1JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient1JSP theTests = new scalarClient1JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testConcat + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call executeQuery(String) + * method. The query contains the concat scalar function. It should return the + * concatenated string. + * + */ + @Test + @TargetVehicle("jsp") + public void testConcat() throws Exception { + super.testConcat(); + } + + /* + * @testName: testAscii + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a statement object and call executeQuery method. The + * query contains the ascii function call. It should return an integer. + * + * + */ + @Test + @TargetVehicle("jsp") + public void testAscii() throws Exception { + super.testAscii(); + } + + /* + * @testName: testInsert + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function insert. It should return a + * string. + * + */ + @Test + @TargetVehicle("jsp") + public void testInsert() throws Exception { + super.testInsert(); + } + + /* + * @testName: testLcase + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statment object and call the method executeQuery. The + * query contains a call to the function lcase. It should return a string. + * + * + */ + @Test + @TargetVehicle("jsp") + public void testLcase() throws Exception { + super.testLcase(); + } + + /* + * @testName: testLeft + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function left. It should return a string. + * + * + */ + @Test + @TargetVehicle("jsp") + public void testLeft() throws Exception { + super.testLeft(); + } + + /* + * @testName: testLength + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function length. It should return a + * number. + * + * + */ + @Test + @TargetVehicle("jsp") + public void testLength() throws Exception { + super.testLength(); + } + + /* + * @testName: testLocate01 + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function locate. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testLocate01() throws Exception { + super.testLocate01(); + } + + /* + * @testName: testLtrim + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ltrim. It should return a string. + * + */ + @Test + @TargetVehicle("jsp") + public void testLtrim() throws Exception { + super.testLtrim(); + } + + /* + * @testName: testRepeat + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function repeat. It should return a + * string. + * + */ + @Test + @TargetVehicle("jsp") + public void testRepeat() throws Exception { + super.testRepeat(); + } + + /* + * @testName: testRight + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function right. It should return a string. + * + */ + @Test + @TargetVehicle("jsp") + public void testRight() throws Exception { + super.testRight(); + } + + /* + * @testName: testRtrim + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function rtrim. It should return a string. + * + * + */ + @Test + @TargetVehicle("jsp") + public void testRtrim() throws Exception { + super.testRtrim(); + } + + /* + * @testName: testSoundex + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function soundex. It should return a + * string. + * + */ + @Test + @TargetVehicle("jsp") + public void testSoundex() throws Exception { + super.testSoundex(); + } + + /* + * @testName: testSpace + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function space. It should return a string. + * + */ + @Test + @TargetVehicle("jsp") + public void testSpace() throws Exception { + super.testSpace(); + } + + /* + * @testName: testSubstring + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function substring. It should return a + * string. + * + */ + @Test + @TargetVehicle("jsp") + public void testSubstring() throws Exception { + super.testSubstring(); + } + + /* + * @testName: testUcase + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ucase. It should return a string. + * + */ + @Test + @TargetVehicle("jsp") + public void testUcase() throws Exception { + super.testUcase(); + } + + /* + * @testName: testChar + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function char. It should return a + * character. + * + */ + @Test + @TargetVehicle("jsp") + public void testChar() throws Exception { + super.testChar(); + } + + /* + * @testName: testReplace + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function replace. It should return a + * string. + * + */ + @Test + @TargetVehicle("jsp") + public void testReplace() throws Exception { + super.testReplace(); + } + + /* + * @testName: testUser + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function user. It should return a string. + * + */ + @Test + @TargetVehicle("jsp") + public void testUser() throws Exception { + super.testUser(); + } + + /* + * @testName: testIfNull + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ifnull. + * + */ + @Test + @TargetVehicle("jsp") + public void testIfNull() throws Exception { + super.testIfNull(); + } + + /* + * @testName: testSin + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function sin. It should return a numerical + * value. + */ + @Test + @TargetVehicle("jsp") + public void testSin() throws Exception { + super.testSin(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1Servlet.java new file mode 100644 index 0000000000..34e0e20ca2 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar1/scalarClient1Servlet.java @@ -0,0 +1,404 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient1.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar1; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient1 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class scalarClient1Servlet extends scalarClient1 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "scalar1_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(scalarClient1Servlet.class, scalarClient1.class); + // The servlet descriptor +URL servletUrl = scalarClient1Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = scalarClient1Servlet.class.getResource("scalar1_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, scalarClient1Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient1Servlet theTests = new scalarClient1Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testConcat + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call executeQuery(String) + * method. The query contains the concat scalar function. It should return the + * concatenated string. + * + */ + @Test + @TargetVehicle("servlet") + public void testConcat() throws Exception { + super.testConcat(); + } + + /* + * @testName: testAscii + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a statement object and call executeQuery method. The + * query contains the ascii function call. It should return an integer. + * + * + */ + @Test + @TargetVehicle("servlet") + public void testAscii() throws Exception { + super.testAscii(); + } + + /* + * @testName: testInsert + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function insert. It should return a + * string. + * + */ + @Test + @TargetVehicle("servlet") + public void testInsert() throws Exception { + super.testInsert(); + } + + /* + * @testName: testLcase + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statment object and call the method executeQuery. The + * query contains a call to the function lcase. It should return a string. + * + * + */ + @Test + @TargetVehicle("servlet") + public void testLcase() throws Exception { + super.testLcase(); + } + + /* + * @testName: testLeft + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function left. It should return a string. + * + * + */ + @Test + @TargetVehicle("servlet") + public void testLeft() throws Exception { + super.testLeft(); + } + + /* + * @testName: testLength + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function length. It should return a + * number. + * + * + */ + @Test + @TargetVehicle("servlet") + public void testLength() throws Exception { + super.testLength(); + } + + /* + * @testName: testLocate01 + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function locate. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testLocate01() throws Exception { + super.testLocate01(); + } + + /* + * @testName: testLtrim + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ltrim. It should return a string. + * + */ + @Test + @TargetVehicle("servlet") + public void testLtrim() throws Exception { + super.testLtrim(); + } + + /* + * @testName: testRepeat + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function repeat. It should return a + * string. + * + */ + @Test + @TargetVehicle("servlet") + public void testRepeat() throws Exception { + super.testRepeat(); + } + + /* + * @testName: testRight + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function right. It should return a string. + * + */ + @Test + @TargetVehicle("servlet") + public void testRight() throws Exception { + super.testRight(); + } + + /* + * @testName: testRtrim + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function rtrim. It should return a string. + * + * + */ + @Test + @TargetVehicle("servlet") + public void testRtrim() throws Exception { + super.testRtrim(); + } + + /* + * @testName: testSoundex + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function soundex. It should return a + * string. + * + */ + @Test + @TargetVehicle("servlet") + public void testSoundex() throws Exception { + super.testSoundex(); + } + + /* + * @testName: testSpace + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function space. It should return a string. + * + */ + @Test + @TargetVehicle("servlet") + public void testSpace() throws Exception { + super.testSpace(); + } + + /* + * @testName: testSubstring + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function substring. It should return a + * string. + * + */ + @Test + @TargetVehicle("servlet") + public void testSubstring() throws Exception { + super.testSubstring(); + } + + /* + * @testName: testUcase + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ucase. It should return a string. + * + */ + @Test + @TargetVehicle("servlet") + public void testUcase() throws Exception { + super.testUcase(); + } + + /* + * @testName: testChar + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function char. It should return a + * character. + * + */ + @Test + @TargetVehicle("servlet") + public void testChar() throws Exception { + super.testChar(); + } + + /* + * @testName: testReplace + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function replace. It should return a + * string. + * + */ + @Test + @TargetVehicle("servlet") + public void testReplace() throws Exception { + super.testReplace(); + } + + /* + * @testName: testUser + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function user. It should return a string. + * + */ + @Test + @TargetVehicle("servlet") + public void testUser() throws Exception { + super.testUser(); + } + + /* + * @testName: testIfNull + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ifnull. + * + */ + @Test + @TargetVehicle("servlet") + public void testIfNull() throws Exception { + super.testIfNull(); + } + + /* + * @testName: testSin + * + * @assertion_ids: JDBC:SPEC:4; JDBC:SPEC:27; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function sin. It should return a numerical + * value. + */ + @Test + @TargetVehicle("servlet") + public void testSin() throws Exception { + super.testSin(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/build.xml deleted file mode 100644 index 750c5405ef..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/build.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2.java index 055a284c06..e1107b87d6 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2.java @@ -26,8 +26,12 @@ import java.sql.Statement; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; import com.sun.ts.tests.jdbc.ee.common.DriverManagerConnection; @@ -45,6 +49,11 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + + public class scalarClient2 extends ServiceEETest { private static final String testName = "jdbc.ee.escapeSyntax"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2AppClient.java new file mode 100644 index 0000000000..6d9f367b1a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2AppClient.java @@ -0,0 +1,421 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient2.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar2; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient2 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-appclient") + +public class scalarClient2AppClient extends scalarClient2 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "scalar2_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(scalarClient2AppClient.class, scalarClient2.class); + // The appclient-client descriptor + URL appClientUrl = scalarClient2AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + + + // The sun appclient-client descriptor + URL sunAppClientUrl = scalarClient2AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, scalarClient2AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "scalar2_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient2AppClient theTests = new scalarClient2AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testAbs + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function abs. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testAbs() throws Exception { + super.testAbs(); + } + + /* + * @testName: testPower + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function power. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testPower() throws Exception { + super.testPower(); + } + + /* + * @testName: testRound + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function round. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testRound() throws Exception { + super.testRound(); + } + + /* + * @testName: testSign + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function sign. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testSign() throws Exception { + super.testSign(); + } + + /* + * @testName: testSqrt + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function sqrt. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testSqrt() throws Exception { + super.testSqrt(); + } + + /* + * @testName: testTruncate + * + * @assertion_ids: JDBC:SPEC:4; + * + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function truncate. It should return a + * numeric value. + * + */ + @Test + @TargetVehicle("appclient") + public void testTruncate() throws Exception { + super.testTruncate(); + } + + /* + * @testName: testMod + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function mod. It should return an integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testMod() throws Exception { + super.testMod(); + } + + /* + * @testName: testFloor + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function floor. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testFloor() throws Exception { + super.testFloor(); + } + + /* + * @testName: testCeiling + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ceiling. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testCeiling() throws Exception { + super.testCeiling(); + } + + /* + * @testName: testLog10 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function log10. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testLog10() throws Exception { + super.testLog10(); + } + + /* + * @testName: testLog + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function log. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testLog() throws Exception { + super.testLog(); + } + + /* + * @testName: testExp + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function exp. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testExp() throws Exception { + super.testExp(); + } + + /* + * @testName: testCos + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function cos. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testCos() throws Exception { + super.testCos(); + } + + /* + * @testName: testTan + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function tan. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testTan() throws Exception { + super.testTan(); + } + + /* + * @testName: testCot + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function cot. It should return a numeric + * value. + * + * + */ + @Test + @TargetVehicle("appclient") + public void testCot() throws Exception { + super.testCot(); + } + + /* + * @testName: testCurdate + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function curdate. It should return a date + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testCurdate() throws Exception { + super.testCurdate(); + } + + /* + * @testName: testDayname + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayname. It should return a + * character string. + * + */ + @Test + @TargetVehicle("appclient") + public void testDayname() throws Exception { + super.testDayname(); + } + + /* + * @testName: testDayofmonth + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayofmonth. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testDayofmonth() throws Exception { + super.testDayofmonth(); + } + + /* + * @testName: testDayofweek + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayofweek. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testDayofweek() throws Exception { + super.testDayofweek(); + } + + /* + * @testName: testDayofyear + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayofyear. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testDayofyear() throws Exception { + super.testDayofyear(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2EJB.java new file mode 100644 index 0000000000..802eb8a9ee --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2EJB.java @@ -0,0 +1,439 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient2.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar2; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient2 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class scalarClient2EJB extends scalarClient2 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "scalar2_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(scalarClient2EJB.class, scalarClient2.class); + + URL resURL = scalarClient2EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = scalarClient2EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalar2_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "scalar2_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(scalarClient2EJB.class, scalarClient2.class); + + resURL = scalarClient2EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalar2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = scalarClient2EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "scalar2_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient2EJB theTests = new scalarClient2EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testAbs + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function abs. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testAbs() throws Exception { + super.testAbs(); + } + + /* + * @testName: testPower + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function power. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testPower() throws Exception { + super.testPower(); + } + + /* + * @testName: testRound + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function round. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testRound() throws Exception { + super.testRound(); + } + + /* + * @testName: testSign + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function sign. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testSign() throws Exception { + super.testSign(); + } + + /* + * @testName: testSqrt + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function sqrt. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testSqrt() throws Exception { + super.testSqrt(); + } + + /* + * @testName: testTruncate + * + * @assertion_ids: JDBC:SPEC:4; + * + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function truncate. It should return a + * numeric value. + * + */ + @Test + @TargetVehicle("ejb") + public void testTruncate() throws Exception { + super.testTruncate(); + } + + /* + * @testName: testMod + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function mod. It should return an integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testMod() throws Exception { + super.testMod(); + } + + /* + * @testName: testFloor + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function floor. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testFloor() throws Exception { + super.testFloor(); + } + + /* + * @testName: testCeiling + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ceiling. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testCeiling() throws Exception { + super.testCeiling(); + } + + /* + * @testName: testLog10 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function log10. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testLog10() throws Exception { + super.testLog10(); + } + + /* + * @testName: testLog + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function log. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testLog() throws Exception { + super.testLog(); + } + + /* + * @testName: testExp + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function exp. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testExp() throws Exception { + super.testExp(); + } + + /* + * @testName: testCos + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function cos. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testCos() throws Exception { + super.testCos(); + } + + /* + * @testName: testTan + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function tan. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testTan() throws Exception { + super.testTan(); + } + + /* + * @testName: testCot + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function cot. It should return a numeric + * value. + * + * + */ + @Test + @TargetVehicle("ejb") + public void testCot() throws Exception { + super.testCot(); + } + + /* + * @testName: testCurdate + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function curdate. It should return a date + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testCurdate() throws Exception { + super.testCurdate(); + } + + /* + * @testName: testDayname + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayname. It should return a + * character string. + * + */ + @Test + @TargetVehicle("ejb") + public void testDayname() throws Exception { + super.testDayname(); + } + + /* + * @testName: testDayofmonth + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayofmonth. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testDayofmonth() throws Exception { + super.testDayofmonth(); + } + + /* + * @testName: testDayofweek + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayofweek. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testDayofweek() throws Exception { + super.testDayofweek(); + } + + /* + * @testName: testDayofyear + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayofyear. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testDayofyear() throws Exception { + super.testDayofyear(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2JSP.java new file mode 100644 index 0000000000..19b2cbde1b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2JSP.java @@ -0,0 +1,422 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient2.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar2; + +import java.io.IOException; +import java.io.InputStream; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient2 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class scalarClient2JSP extends scalarClient2 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "scalar2_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(scalarClient2JSP.class, scalarClient2.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = scalarClient2JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = scalarClient2JSP.class.getResource("scalar2_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, scalarClient2JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(scalarClient2JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient2JSP theTests = new scalarClient2JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testAbs + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function abs. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testAbs() throws Exception { + super.testAbs(); + } + + /* + * @testName: testPower + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function power. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testPower() throws Exception { + super.testPower(); + } + + /* + * @testName: testRound + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function round. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testRound() throws Exception { + super.testRound(); + } + + /* + * @testName: testSign + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function sign. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testSign() throws Exception { + super.testSign(); + } + + /* + * @testName: testSqrt + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function sqrt. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testSqrt() throws Exception { + super.testSqrt(); + } + + /* + * @testName: testTruncate + * + * @assertion_ids: JDBC:SPEC:4; + * + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function truncate. It should return a + * numeric value. + * + */ + @Test + @TargetVehicle("jsp") + public void testTruncate() throws Exception { + super.testTruncate(); + } + + /* + * @testName: testMod + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function mod. It should return an integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testMod() throws Exception { + super.testMod(); + } + + /* + * @testName: testFloor + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function floor. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testFloor() throws Exception { + super.testFloor(); + } + + /* + * @testName: testCeiling + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ceiling. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testCeiling() throws Exception { + super.testCeiling(); + } + + /* + * @testName: testLog10 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function log10. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testLog10() throws Exception { + super.testLog10(); + } + + /* + * @testName: testLog + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function log. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testLog() throws Exception { + super.testLog(); + } + + /* + * @testName: testExp + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function exp. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testExp() throws Exception { + super.testExp(); + } + + /* + * @testName: testCos + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function cos. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testCos() throws Exception { + super.testCos(); + } + + /* + * @testName: testTan + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function tan. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testTan() throws Exception { + super.testTan(); + } + + /* + * @testName: testCot + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function cot. It should return a numeric + * value. + * + * + */ + @Test + @TargetVehicle("jsp") + public void testCot() throws Exception { + super.testCot(); + } + + /* + * @testName: testCurdate + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function curdate. It should return a date + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testCurdate() throws Exception { + super.testCurdate(); + } + + /* + * @testName: testDayname + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayname. It should return a + * character string. + * + */ + @Test + @TargetVehicle("jsp") + public void testDayname() throws Exception { + super.testDayname(); + } + + /* + * @testName: testDayofmonth + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayofmonth. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testDayofmonth() throws Exception { + super.testDayofmonth(); + } + + /* + * @testName: testDayofweek + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayofweek. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testDayofweek() throws Exception { + super.testDayofweek(); + } + + /* + * @testName: testDayofyear + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayofyear. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testDayofyear() throws Exception { + super.testDayofyear(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2Servlet.java new file mode 100644 index 0000000000..63d5deb655 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar2/scalarClient2Servlet.java @@ -0,0 +1,411 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient2.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar2; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient2 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class scalarClient2Servlet extends scalarClient2 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "scalar2_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(scalarClient2Servlet.class, scalarClient2.class); + // The servlet descriptor +URL servletUrl = scalarClient2Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = scalarClient2Servlet.class.getResource("scalar2_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, scalarClient2Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient2Servlet theTests = new scalarClient2Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testAbs + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function abs. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testAbs() throws Exception { + super.testAbs(); + } + + /* + * @testName: testPower + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function power. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testPower() throws Exception { + super.testPower(); + } + + /* + * @testName: testRound + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function round. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testRound() throws Exception { + super.testRound(); + } + + /* + * @testName: testSign + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function sign. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testSign() throws Exception { + super.testSign(); + } + + /* + * @testName: testSqrt + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function sqrt. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testSqrt() throws Exception { + super.testSqrt(); + } + + /* + * @testName: testTruncate + * + * @assertion_ids: JDBC:SPEC:4; + * + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function truncate. It should return a + * numeric value. + * + */ + @Test + @TargetVehicle("servlet") + public void testTruncate() throws Exception { + super.testTruncate(); + } + + /* + * @testName: testMod + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function mod. It should return an integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testMod() throws Exception { + super.testMod(); + } + + /* + * @testName: testFloor + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function floor. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testFloor() throws Exception { + super.testFloor(); + } + + /* + * @testName: testCeiling + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function ceiling. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testCeiling() throws Exception { + super.testCeiling(); + } + + /* + * @testName: testLog10 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function log10. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testLog10() throws Exception { + super.testLog10(); + } + + /* + * @testName: testLog + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function log. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testLog() throws Exception { + super.testLog(); + } + + /* + * @testName: testExp + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function exp. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testExp() throws Exception { + super.testExp(); + } + + /* + * @testName: testCos + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function cos. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testCos() throws Exception { + super.testCos(); + } + + /* + * @testName: testTan + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function tan. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testTan() throws Exception { + super.testTan(); + } + + /* + * @testName: testCot + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function cot. It should return a numeric + * value. + * + * + */ + @Test + @TargetVehicle("servlet") + public void testCot() throws Exception { + super.testCot(); + } + + /* + * @testName: testCurdate + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function curdate. It should return a date + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testCurdate() throws Exception { + super.testCurdate(); + } + + /* + * @testName: testDayname + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayname. It should return a + * character string. + * + */ + @Test + @TargetVehicle("servlet") + public void testDayname() throws Exception { + super.testDayname(); + } + + /* + * @testName: testDayofmonth + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayofmonth. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testDayofmonth() throws Exception { + super.testDayofmonth(); + } + + /* + * @testName: testDayofweek + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayofweek. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testDayofweek() throws Exception { + super.testDayofweek(); + } + + /* + * @testName: testDayofyear + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function dayofyear. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testDayofyear() throws Exception { + super.testDayofyear(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/build.xml deleted file mode 100644 index c7f6ddcf2c..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/build.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3.java index 4d404d16b5..91529ed430 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3.java @@ -26,8 +26,12 @@ import java.sql.Statement; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; import com.sun.ts.tests.jdbc.ee.common.DriverManagerConnection; @@ -45,6 +49,10 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + public class scalarClient3 extends ServiceEETest { private static final String testName = "jdbc.ee.escapeSyntax"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3AppClient.java new file mode 100644 index 0000000000..7d7e69b4b4 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3AppClient.java @@ -0,0 +1,418 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient3.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar3; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient3 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class scalarClient3AppClient extends scalarClient3 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "scalar3_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(scalarClient3AppClient.class, scalarClient3.class); + // The appclient-client descriptor + URL appClientUrl = scalarClient3AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = scalarClient3AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, scalarClient3AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "scalar3_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient3AppClient theTests = new scalarClient3AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testWeek + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function week. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testWeek() throws Exception { + super.testWeek(); + } + + /* + * @testName: testMonth + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function month. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testMonth() throws Exception { + super.testMonth(); + } + + /* + * @testName: testYear + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function year. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testYear() throws Exception { + super.testYear(); + } + + /* + * @testName: testMonthname + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function monthname. It should return a + * character string. + * + */ + @Test + @TargetVehicle("appclient") + public void testMonthname() throws Exception { + super.testMonthname(); + } + + /* + * @testName: testQuarter + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function quarter. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testQuarter() throws Exception { + super.testQuarter(); + } + + /* + * @testName: testNow + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function now. It should return a timestamp + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testNow() throws Exception { + super.testNow(); + } + + /* + * @testName: testHour + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function hour. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testHour() throws Exception { + super.testHour(); + } + + /* + * @testName: testMinute + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function minute. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testMinute() throws Exception { + super.testMinute(); + } + + /* + * @testName: testSecond + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function second. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testSecond() throws Exception { + super.testSecond(); + } + + /* + * @testName: testDatabase + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function database. It should return a + * string. + * + */ + @Test + @TargetVehicle("appclient") + public void testDatabase() throws Exception { + super.testDatabase(); + } + + /* + * @testName: testAcos + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function acos. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testAcos() throws Exception { + super.testAcos(); + } + + /* + * @testName: testAsin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function asin. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testAsin() throws Exception { + super.testAsin(); + } + + /* + * @testName: testAtan + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function atan. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testAtan() throws Exception { + super.testAtan(); + } + + /* + * @testName: testAtan2 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function atan2. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testAtan2() throws Exception { + super.testAtan2(); + } + + /* + * @testName: testDegrees + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function degrees. It should return a + * numeric value. + * + */ + @Test + @TargetVehicle("appclient") + public void testDegrees() throws Exception { + super.testDegrees(); + } + + /* + * @testName: testRadians + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function radians. It should return a + * numeric value. + * + */ + @Test + @TargetVehicle("appclient") + public void testRadians() throws Exception { + super.testRadians(); + } + + /* + * @testName: testPi + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function pi. It should return the constant + * value of PI. + * + */ + @Test + @TargetVehicle("appclient") + public void testPi() throws Exception { + super.testPi(); + } + + /* + * @testName: testRand + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function rand. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("appclient") + public void testRand() throws Exception { + super.testRand(); + } + + /* + * @testName: testDifference + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function difference. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testDifference() throws Exception { + super.testDifference(); + } + + /* + * @testName: testLocate02 + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function locate. It should return an + * integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testLocate02() throws Exception { + super.testLocate02(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3EJB.java new file mode 100644 index 0000000000..0b85c12490 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3EJB.java @@ -0,0 +1,437 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient3.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar3; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient3 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class scalarClient3EJB extends scalarClient3 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "scalar3_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(scalarClient3EJB.class, scalarClient3.class); + + URL resURL = scalarClient3EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = scalarClient3EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalar3_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "scalar3_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(scalarClient3EJB.class, scalarClient3.class); + + resURL = scalarClient3EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalar3_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = scalarClient3EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "scalar3_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient3EJB theTests = new scalarClient3EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testWeek + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function week. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testWeek() throws Exception { + super.testWeek(); + } + + /* + * @testName: testMonth + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function month. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testMonth() throws Exception { + super.testMonth(); + } + + /* + * @testName: testYear + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function year. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testYear() throws Exception { + super.testYear(); + } + + /* + * @testName: testMonthname + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function monthname. It should return a + * character string. + * + */ + @Test + @TargetVehicle("ejb") + public void testMonthname() throws Exception { + super.testMonthname(); + } + + /* + * @testName: testQuarter + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function quarter. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testQuarter() throws Exception { + super.testQuarter(); + } + + /* + * @testName: testNow + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function now. It should return a timestamp + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testNow() throws Exception { + super.testNow(); + } + + /* + * @testName: testHour + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function hour. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testHour() throws Exception { + super.testHour(); + } + + /* + * @testName: testMinute + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function minute. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testMinute() throws Exception { + super.testMinute(); + } + + /* + * @testName: testSecond + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function second. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testSecond() throws Exception { + super.testSecond(); + } + + /* + * @testName: testDatabase + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function database. It should return a + * string. + * + */ + @Test + @TargetVehicle("ejb") + public void testDatabase() throws Exception { + super.testDatabase(); + } + + /* + * @testName: testAcos + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function acos. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testAcos() throws Exception { + super.testAcos(); + } + + /* + * @testName: testAsin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function asin. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testAsin() throws Exception { + super.testAsin(); + } + + /* + * @testName: testAtan + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function atan. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testAtan() throws Exception { + super.testAtan(); + } + + /* + * @testName: testAtan2 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function atan2. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testAtan2() throws Exception { + super.testAtan2(); + } + + /* + * @testName: testDegrees + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function degrees. It should return a + * numeric value. + * + */ + @Test + @TargetVehicle("ejb") + public void testDegrees() throws Exception { + super.testDegrees(); + } + + /* + * @testName: testRadians + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function radians. It should return a + * numeric value. + * + */ + @Test + @TargetVehicle("ejb") + public void testRadians() throws Exception { + super.testRadians(); + } + + /* + * @testName: testPi + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function pi. It should return the constant + * value of PI. + * + */ + @Test + @TargetVehicle("ejb") + public void testPi() throws Exception { + super.testPi(); + } + + /* + * @testName: testRand + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function rand. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("ejb") + public void testRand() throws Exception { + super.testRand(); + } + + /* + * @testName: testDifference + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function difference. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testDifference() throws Exception { + super.testDifference(); + } + + /* + * @testName: testLocate02 + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function locate. It should return an + * integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testLocate02() throws Exception { + super.testLocate02(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3JSP.java new file mode 100644 index 0000000000..ef4a61e9c1 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3JSP.java @@ -0,0 +1,422 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient3.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar3; + +import java.io.IOException; +import java.io.InputStream; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient3 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class scalarClient3JSP extends scalarClient3 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "scalar3_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(scalarClient3JSP.class, scalarClient3.class); + + // The jsp descriptor + URL jspUrl = scalarClient3JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = scalarClient3JSP.class.getResource("scalar3_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, scalarClient3JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(scalarClient3JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient3JSP theTests = new scalarClient3JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testWeek + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function week. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testWeek() throws Exception { + super.testWeek(); + } + + /* + * @testName: testMonth + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function month. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testMonth() throws Exception { + super.testMonth(); + } + + /* + * @testName: testYear + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function year. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testYear() throws Exception { + super.testYear(); + } + + /* + * @testName: testMonthname + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function monthname. It should return a + * character string. + * + */ + @Test + @TargetVehicle("jsp") + public void testMonthname() throws Exception { + super.testMonthname(); + } + + /* + * @testName: testQuarter + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function quarter. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testQuarter() throws Exception { + super.testQuarter(); + } + + /* + * @testName: testNow + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function now. It should return a timestamp + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testNow() throws Exception { + super.testNow(); + } + + /* + * @testName: testHour + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function hour. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testHour() throws Exception { + super.testHour(); + } + + /* + * @testName: testMinute + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function minute. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testMinute() throws Exception { + super.testMinute(); + } + + /* + * @testName: testSecond + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function second. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testSecond() throws Exception { + super.testSecond(); + } + + /* + * @testName: testDatabase + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function database. It should return a + * string. + * + */ + @Test + @TargetVehicle("jsp") + public void testDatabase() throws Exception { + super.testDatabase(); + } + + /* + * @testName: testAcos + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function acos. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testAcos() throws Exception { + super.testAcos(); + } + + /* + * @testName: testAsin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function asin. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testAsin() throws Exception { + super.testAsin(); + } + + /* + * @testName: testAtan + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function atan. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testAtan() throws Exception { + super.testAtan(); + } + + /* + * @testName: testAtan2 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function atan2. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testAtan2() throws Exception { + super.testAtan2(); + } + + /* + * @testName: testDegrees + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function degrees. It should return a + * numeric value. + * + */ + @Test + @TargetVehicle("jsp") + public void testDegrees() throws Exception { + super.testDegrees(); + } + + /* + * @testName: testRadians + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function radians. It should return a + * numeric value. + * + */ + @Test + @TargetVehicle("jsp") + public void testRadians() throws Exception { + super.testRadians(); + } + + /* + * @testName: testPi + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function pi. It should return the constant + * value of PI. + * + */ + @Test + @TargetVehicle("jsp") + public void testPi() throws Exception { + super.testPi(); + } + + /* + * @testName: testRand + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function rand. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("jsp") + public void testRand() throws Exception { + super.testRand(); + } + + /* + * @testName: testDifference + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function difference. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testDifference() throws Exception { + super.testDifference(); + } + + /* + * @testName: testLocate02 + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function locate. It should return an + * integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testLocate02() throws Exception { + super.testLocate02(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3Servlet.java new file mode 100644 index 0000000000..02fa6e5125 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar3/scalarClient3Servlet.java @@ -0,0 +1,410 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient3.java 1.21 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar3; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient3 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class scalarClient3Servlet extends scalarClient3 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "scalar3_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(scalarClient3Servlet.class, scalarClient3.class); + // The servlet descriptor +URL servletUrl = scalarClient3Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = scalarClient3Servlet.class.getResource("scalar3_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, scalarClient3Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient3Servlet theTests = new scalarClient3Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testWeek + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function week. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testWeek() throws Exception { + super.testWeek(); + } + + /* + * @testName: testMonth + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function month. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testMonth() throws Exception { + super.testMonth(); + } + + /* + * @testName: testYear + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function year. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testYear() throws Exception { + super.testYear(); + } + + /* + * @testName: testMonthname + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function monthname. It should return a + * character string. + * + */ + @Test + @TargetVehicle("servlet") + public void testMonthname() throws Exception { + super.testMonthname(); + } + + /* + * @testName: testQuarter + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function quarter. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testQuarter() throws Exception { + super.testQuarter(); + } + + /* + * @testName: testNow + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function now. It should return a timestamp + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testNow() throws Exception { + super.testNow(); + } + + /* + * @testName: testHour + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function hour. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testHour() throws Exception { + super.testHour(); + } + + /* + * @testName: testMinute + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function minute. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testMinute() throws Exception { + super.testMinute(); + } + + /* + * @testName: testSecond + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function second. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testSecond() throws Exception { + super.testSecond(); + } + + /* + * @testName: testDatabase + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function database. It should return a + * string. + * + */ + @Test + @TargetVehicle("servlet") + public void testDatabase() throws Exception { + super.testDatabase(); + } + + /* + * @testName: testAcos + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function acos. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testAcos() throws Exception { + super.testAcos(); + } + + /* + * @testName: testAsin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function asin. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testAsin() throws Exception { + super.testAsin(); + } + + /* + * @testName: testAtan + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function atan. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testAtan() throws Exception { + super.testAtan(); + } + + /* + * @testName: testAtan2 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function atan2. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testAtan2() throws Exception { + super.testAtan2(); + } + + /* + * @testName: testDegrees + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function degrees. It should return a + * numeric value. + * + */ + @Test + @TargetVehicle("servlet") + public void testDegrees() throws Exception { + super.testDegrees(); + } + + /* + * @testName: testRadians + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function radians. It should return a + * numeric value. + * + */ + @Test + @TargetVehicle("servlet") + public void testRadians() throws Exception { + super.testRadians(); + } + + /* + * @testName: testPi + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function pi. It should return the constant + * value of PI. + * + */ + @Test + @TargetVehicle("servlet") + public void testPi() throws Exception { + super.testPi(); + } + + /* + * @testName: testRand + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function rand. It should return a numeric + * value. + * + */ + @Test + @TargetVehicle("servlet") + public void testRand() throws Exception { + super.testRand(); + } + + /* + * @testName: testDifference + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function difference. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testDifference() throws Exception { + super.testDifference(); + } + + /* + * @testName: testLocate02 + * + * @assertion_ids: JavaEE:SPEC:181; JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function locate. It should return an + * integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testLocate02() throws Exception { + super.testLocate02(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/build.xml deleted file mode 100644 index 76c4344c0b..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/build.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4.java index 82787792b8..71d33ff3c2 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4.java @@ -27,8 +27,12 @@ import java.sql.Statement; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; import com.sun.ts.tests.jdbc.ee.common.DriverManagerConnection; @@ -46,6 +50,10 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + public class scalarClient4 extends ServiceEETest { private static final String testName = "jdbc.ee.escapeSyntax"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4AppClient.java new file mode 100644 index 0000000000..6867685b89 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4AppClient.java @@ -0,0 +1,433 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient4.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar4; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient4 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + + +public class scalarClient4AppClient extends scalarClient4 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "scalar4_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(scalarClient4AppClient.class, scalarClient4.class); + // The appclient-client descriptor + URL appClientUrl = scalarClient4AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = scalarClient4AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, scalarClient4AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "scalar4_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient4AppClient theTests = new scalarClient4AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testTimestampAdd01 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_FRAC_SECOND. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampAdd01() throws Exception { + super.testTimestampAdd01(); + } + + /* + * @testName: testTimestampAdd02 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_SECOND. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampAdd02() throws Exception { + super.testTimestampAdd02(); + } + + /* + * @testName: testTimestampAdd03 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_MINUTE. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampAdd03() throws Exception { + super.testTimestampAdd03(); + } + + /* + * @testName: testTimestampAdd04 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_HOUR. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampAdd04() throws Exception { + super.testTimestampAdd04(); + } + + /* + * @testName: testTimestampAdd05 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_DAY. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampAdd05() throws Exception { + super.testTimestampAdd05(); + } + + /* + * @testName: testTimestampAdd06 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_WEEK. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampAdd06() throws Exception { + super.testTimestampAdd06(); + } + + /* + * @testName: testTimestampAdd07 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_MONTH. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampAdd07() throws Exception { + super.testTimestampAdd07(); + } + + /* + * @testName: testTimestampAdd08 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_QUARTER. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampAdd08() throws Exception { + super.testTimestampAdd08(); + } + + /* + * @testName: testTimestampAdd09 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_YEAR. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampAdd09() throws Exception { + super.testTimestampAdd09(); + } + + /* + * @testName: testTimestampDiff01 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_FRAC_SECOND. It should return an integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampDiff01() throws Exception { + super.testTimestampDiff01(); + } + + /* + * @testName: testTimestampDiff02 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_SECOND. It should return an integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampDiff02() throws Exception { + super.testTimestampDiff02(); + } + + /* + * @testName: testTimestampDiff03 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_MINUTE. It should return an integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampDiff03() throws Exception { + super.testTimestampDiff03(); + } + + /* + * @testName: testTimestampDiff04 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_HOUR. It should return an integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampDiff04() throws Exception { + super.testTimestampDiff04(); + } + + /* + * @testName: testTimestampDiff05 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_DAY. It should return an integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampDiff05() throws Exception { + super.testTimestampDiff05(); + } + + /* + * @testName: testTimestampDiff06 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_WEEK. It should return an integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampDiff06() throws Exception { + super.testTimestampDiff06(); + } + + /* + * @testName: testTimestampDiff07 + * + * @assertion_ids: JDBC:SPEC:4; + * + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_MONTH. It should return an integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampDiff07() throws Exception { + super.testTimestampDiff07(); + } + + /* + * @testName: testTimestampDiff08 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_QUARTER. It should return an integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampDiff08() throws Exception { + super.testTimestampDiff08(); + } + + /* + * @testName: testTimestampDiff09 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_YEAR. It should return an integer. + * + */ + @Test + @TargetVehicle("appclient") + public void testTimestampDiff09() throws Exception { + super.testTimestampDiff09(); + } + + /* + * @testName: testLeftOuterjoin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a left outer join. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("appclient") + public void testLeftOuterjoin() throws Exception { + super.testLeftOuterjoin(); + } + + /* + * @testName: testRightOuterjoin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a right outer join. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("appclient") + public void testRightOuterjoin() throws Exception { + super.testRightOuterjoin(); + } + + /* + * @testName: testFullOuterjoin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a full outer join. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("appclient") + public void testFullOuterjoin() throws Exception { + super.testFullOuterjoin(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4EJB.java new file mode 100644 index 0000000000..cded896049 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4EJB.java @@ -0,0 +1,452 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient4.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar4; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient4 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class scalarClient4EJB extends scalarClient4 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "scalar4_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(scalarClient4EJB.class, scalarClient4.class); + + URL resURL = scalarClient4EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = scalarClient4EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalar4_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "scalar4_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(scalarClient4EJB.class, scalarClient4.class); + + resURL = scalarClient4EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalar4_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = scalarClient4EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "scalar4_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient4EJB theTests = new scalarClient4EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testTimestampAdd01 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_FRAC_SECOND. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampAdd01() throws Exception { + super.testTimestampAdd01(); + } + + /* + * @testName: testTimestampAdd02 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_SECOND. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampAdd02() throws Exception { + super.testTimestampAdd02(); + } + + /* + * @testName: testTimestampAdd03 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_MINUTE. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampAdd03() throws Exception { + super.testTimestampAdd03(); + } + + /* + * @testName: testTimestampAdd04 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_HOUR. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampAdd04() throws Exception { + super.testTimestampAdd04(); + } + + /* + * @testName: testTimestampAdd05 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_DAY. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampAdd05() throws Exception { + super.testTimestampAdd05(); + } + + /* + * @testName: testTimestampAdd06 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_WEEK. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampAdd06() throws Exception { + super.testTimestampAdd06(); + } + + /* + * @testName: testTimestampAdd07 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_MONTH. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampAdd07() throws Exception { + super.testTimestampAdd07(); + } + + /* + * @testName: testTimestampAdd08 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_QUARTER. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampAdd08() throws Exception { + super.testTimestampAdd08(); + } + + /* + * @testName: testTimestampAdd09 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_YEAR. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampAdd09() throws Exception { + super.testTimestampAdd09(); + } + + /* + * @testName: testTimestampDiff01 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_FRAC_SECOND. It should return an integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampDiff01() throws Exception { + super.testTimestampDiff01(); + } + + /* + * @testName: testTimestampDiff02 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_SECOND. It should return an integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampDiff02() throws Exception { + super.testTimestampDiff02(); + } + + /* + * @testName: testTimestampDiff03 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_MINUTE. It should return an integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampDiff03() throws Exception { + super.testTimestampDiff03(); + } + + /* + * @testName: testTimestampDiff04 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_HOUR. It should return an integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampDiff04() throws Exception { + super.testTimestampDiff04(); + } + + /* + * @testName: testTimestampDiff05 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_DAY. It should return an integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampDiff05() throws Exception { + super.testTimestampDiff05(); + } + + /* + * @testName: testTimestampDiff06 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_WEEK. It should return an integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampDiff06() throws Exception { + super.testTimestampDiff06(); + } + + /* + * @testName: testTimestampDiff07 + * + * @assertion_ids: JDBC:SPEC:4; + * + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_MONTH. It should return an integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampDiff07() throws Exception { + super.testTimestampDiff07(); + } + + /* + * @testName: testTimestampDiff08 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_QUARTER. It should return an integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampDiff08() throws Exception { + super.testTimestampDiff08(); + } + + /* + * @testName: testTimestampDiff09 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_YEAR. It should return an integer. + * + */ + @Test + @TargetVehicle("ejb") + public void testTimestampDiff09() throws Exception { + super.testTimestampDiff09(); + } + + /* + * @testName: testLeftOuterjoin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a left outer join. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("ejb") + public void testLeftOuterjoin() throws Exception { + super.testLeftOuterjoin(); + } + + /* + * @testName: testRightOuterjoin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a right outer join. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("ejb") + public void testRightOuterjoin() throws Exception { + super.testRightOuterjoin(); + } + + /* + * @testName: testFullOuterjoin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a full outer join. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("ejb") + public void testFullOuterjoin() throws Exception { + super.testFullOuterjoin(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4JSP.java new file mode 100644 index 0000000000..34b75aa240 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4JSP.java @@ -0,0 +1,437 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient4.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar4; + +import java.io.IOException; +import java.io.InputStream; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient4 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class scalarClient4JSP extends scalarClient4 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "scalar4_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(scalarClient4JSP.class, scalarClient4.class); + + // The jsp descriptor + URL jspUrl = scalarClient4JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = scalarClient4JSP.class.getResource("scalar4_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, scalarClient4JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(scalarClient4JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient4JSP theTests = new scalarClient4JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testTimestampAdd01 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_FRAC_SECOND. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampAdd01() throws Exception { + super.testTimestampAdd01(); + } + + /* + * @testName: testTimestampAdd02 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_SECOND. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampAdd02() throws Exception { + super.testTimestampAdd02(); + } + + /* + * @testName: testTimestampAdd03 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_MINUTE. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampAdd03() throws Exception { + super.testTimestampAdd03(); + } + + /* + * @testName: testTimestampAdd04 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_HOUR. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampAdd04() throws Exception { + super.testTimestampAdd04(); + } + + /* + * @testName: testTimestampAdd05 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_DAY. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampAdd05() throws Exception { + super.testTimestampAdd05(); + } + + /* + * @testName: testTimestampAdd06 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_WEEK. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampAdd06() throws Exception { + super.testTimestampAdd06(); + } + + /* + * @testName: testTimestampAdd07 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_MONTH. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampAdd07() throws Exception { + super.testTimestampAdd07(); + } + + /* + * @testName: testTimestampAdd08 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_QUARTER. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampAdd08() throws Exception { + super.testTimestampAdd08(); + } + + /* + * @testName: testTimestampAdd09 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_YEAR. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampAdd09() throws Exception { + super.testTimestampAdd09(); + } + + /* + * @testName: testTimestampDiff01 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_FRAC_SECOND. It should return an integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampDiff01() throws Exception { + super.testTimestampDiff01(); + } + + /* + * @testName: testTimestampDiff02 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_SECOND. It should return an integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampDiff02() throws Exception { + super.testTimestampDiff02(); + } + + /* + * @testName: testTimestampDiff03 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_MINUTE. It should return an integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampDiff03() throws Exception { + super.testTimestampDiff03(); + } + + /* + * @testName: testTimestampDiff04 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_HOUR. It should return an integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampDiff04() throws Exception { + super.testTimestampDiff04(); + } + + /* + * @testName: testTimestampDiff05 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_DAY. It should return an integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampDiff05() throws Exception { + super.testTimestampDiff05(); + } + + /* + * @testName: testTimestampDiff06 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_WEEK. It should return an integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampDiff06() throws Exception { + super.testTimestampDiff06(); + } + + /* + * @testName: testTimestampDiff07 + * + * @assertion_ids: JDBC:SPEC:4; + * + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_MONTH. It should return an integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampDiff07() throws Exception { + super.testTimestampDiff07(); + } + + /* + * @testName: testTimestampDiff08 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_QUARTER. It should return an integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampDiff08() throws Exception { + super.testTimestampDiff08(); + } + + /* + * @testName: testTimestampDiff09 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_YEAR. It should return an integer. + * + */ + @Test + @TargetVehicle("jsp") + public void testTimestampDiff09() throws Exception { + super.testTimestampDiff09(); + } + + /* + * @testName: testLeftOuterjoin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a left outer join. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("jsp") + public void testLeftOuterjoin() throws Exception { + super.testLeftOuterjoin(); + } + + /* + * @testName: testRightOuterjoin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a right outer join. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("jsp") + public void testRightOuterjoin() throws Exception { + super.testRightOuterjoin(); + } + + /* + * @testName: testFullOuterjoin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a full outer join. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("jsp") + public void testFullOuterjoin() throws Exception { + super.testFullOuterjoin(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4Servlet.java new file mode 100644 index 0000000000..fbef350643 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/escapeSyntax/scalar4/scalarClient4Servlet.java @@ -0,0 +1,425 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)scalarClient4.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.escapeSyntax.scalar4; + +import java.io.IOException; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The scalarClient4 class tests methods of scalar Functions interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class scalarClient4Servlet extends scalarClient4 { + private static final String testName = "jdbc.ee.escapeSyntax"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "scalar4_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(scalarClient4Servlet.class, scalarClient4.class); + // The servlet descriptor +URL servletUrl = scalarClient4Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = scalarClient4Servlet.class.getResource("scalar4_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, scalarClient4Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + scalarClient4Servlet theTests = new scalarClient4Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testTimestampAdd01 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_FRAC_SECOND. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampAdd01() throws Exception { + super.testTimestampAdd01(); + } + + /* + * @testName: testTimestampAdd02 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_SECOND. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampAdd02() throws Exception { + super.testTimestampAdd02(); + } + + /* + * @testName: testTimestampAdd03 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_MINUTE. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampAdd03() throws Exception { + super.testTimestampAdd03(); + } + + /* + * @testName: testTimestampAdd04 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_HOUR. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampAdd04() throws Exception { + super.testTimestampAdd04(); + } + + /* + * @testName: testTimestampAdd05 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_DAY. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampAdd05() throws Exception { + super.testTimestampAdd05(); + } + + /* + * @testName: testTimestampAdd06 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_WEEK. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampAdd06() throws Exception { + super.testTimestampAdd06(); + } + + /* + * @testName: testTimestampAdd07 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_MONTH. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampAdd07() throws Exception { + super.testTimestampAdd07(); + } + + /* + * @testName: testTimestampAdd08 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_QUARTER. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampAdd08() throws Exception { + super.testTimestampAdd08(); + } + + /* + * @testName: testTimestampAdd09 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampadd with the interval + * value as SQL_TSI_YEAR. It should return a timestamp value. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampAdd09() throws Exception { + super.testTimestampAdd09(); + } + + /* + * @testName: testTimestampDiff01 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_FRAC_SECOND. It should return an integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampDiff01() throws Exception { + super.testTimestampDiff01(); + } + + /* + * @testName: testTimestampDiff02 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_SECOND. It should return an integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampDiff02() throws Exception { + super.testTimestampDiff02(); + } + + /* + * @testName: testTimestampDiff03 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_MINUTE. It should return an integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampDiff03() throws Exception { + super.testTimestampDiff03(); + } + + /* + * @testName: testTimestampDiff04 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_HOUR. It should return an integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampDiff04() throws Exception { + super.testTimestampDiff04(); + } + + /* + * @testName: testTimestampDiff05 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_DAY. It should return an integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampDiff05() throws Exception { + super.testTimestampDiff05(); + } + + /* + * @testName: testTimestampDiff06 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_WEEK. It should return an integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampDiff06() throws Exception { + super.testTimestampDiff06(); + } + + /* + * @testName: testTimestampDiff07 + * + * @assertion_ids: JDBC:SPEC:4; + * + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_MONTH. It should return an integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampDiff07() throws Exception { + super.testTimestampDiff07(); + } + + /* + * @testName: testTimestampDiff08 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_QUARTER. It should return an integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampDiff08() throws Exception { + super.testTimestampDiff08(); + } + + /* + * @testName: testTimestampDiff09 + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a call to the function timestampdiff with the interval + * value as SQL_TSI_YEAR. It should return an integer. + * + */ + @Test + @TargetVehicle("servlet") + public void testTimestampDiff09() throws Exception { + super.testTimestampDiff09(); + } + + /* + * @testName: testLeftOuterjoin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a left outer join. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("servlet") + public void testLeftOuterjoin() throws Exception { + super.testLeftOuterjoin(); + } + + /* + * @testName: testRightOuterjoin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a right outer join. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("servlet") + public void testRightOuterjoin() throws Exception { + super.testRightOuterjoin(); + } + + /* + * @testName: testFullOuterjoin + * + * @assertion_ids: JDBC:SPEC:4; + * + * @test_Strategy: Get a Statement object and call the method executeQuery. + * The query contains a full outer join. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("servlet") + public void testFullOuterjoin() throws Exception { + super.testFullOuterjoin(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClient.java index 64bf3cd067..e684655e16 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClient.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClient.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -52,6 +56,11 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + + public class batUpdExceptClient extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.exception.batUpdExcept"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientAppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientAppClient.java new file mode 100644 index 0000000000..c0f672def9 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientAppClient.java @@ -0,0 +1,204 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)batUpdExceptClient.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.exception.batUpdExcept; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +// import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The batUpdExceptClient class tests methods of BatchUpdateException using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class batUpdExceptClientAppClient extends batUpdExceptClient implements Serializable { + private static final String testName = "jdbc.ee.exception.batUpdExcept"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "batUpdExcept_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(batUpdExceptClientAppClient.class, batUpdExceptClient.class); + // The appclient-client descriptor + URL appClientUrl = batUpdExceptClientAppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = batUpdExceptClientAppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, batUpdExceptClientAppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "batUpdExcept_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + batUpdExceptClientAppClient theTests = new batUpdExceptClientAppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetUpdateCounts + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:121; + * + * @test_Strategy: Get a Statement object and call the addBatch() method with + * 4 SQL statements ,out of which first 3 statements are insert,update and + * delete statements followed by a select statement and call the + * executeBatch() method. This causes a BatchUpdateException being thrown and + * getUpdateCounts() method on this BatchUpdateException object should return + * an integer array of length 3 with each value indicating the number of + * corressponding rows affected by execution of 3 SQL statements in the same + * order as added to the batch. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetUpdateCounts() throws Exception { + super.testGetUpdateCounts(); + } + + + /* + * @testName: testBatchUpdateException01 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:120; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * no arguments and for that object the reason, SQLState,ErrorCode and + * updateCounts are checked for default values. + */ + @Test + @TargetVehicle("appclient") + public void testBatchUpdateException01() throws Exception { + super.testBatchUpdateException01(); + } + + /* + * @testName: testBatchUpdateException02 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:119; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * one argument and for that object the reason, SQLState,ErrorCode are checked + * for default values.The updateCount array is checked for whatever is been + * assigned while creating the new instance. + */ + + @Test + @TargetVehicle("appclient") + public void testBatchUpdateException02() throws Exception { + super.testBatchUpdateException02(); + } + + /* + * @testName: testBatchUpdateException03 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:118; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * two arguments and for that object. SQLState,ErrorCode are checked for + * default values.The reason and updateCount array is checked for whatever is + * been assigned while creating the new instance. + */ + + @Test + @TargetVehicle("appclient") + public void testBatchUpdateException03() throws Exception { + super.testBatchUpdateException03(); + } + + /* + * @testName: testBatchUpdateException04 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:117; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * three arguments and for that object. ErrorCode is checked for default + * values.The reason,SQLState and updateCount array is checked for whatever is + * been assigned while creating the new instance. + */ + + @Test + @TargetVehicle("appclient") + public void testBatchUpdateException04() throws Exception { + super.testBatchUpdateException04(); + } + + /* + * @testName: testBatchUpdateException05 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:116; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * four arguments The reason,SQLState ,ErrorCode and updateCount array is + * checked for whatever is been assigned while creating the new instance. + */ + + @Test + @TargetVehicle("appclient") + public void testBatchUpdateException05() throws Exception { + super.testBatchUpdateException05(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientEJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientEJB.java new file mode 100644 index 0000000000..e8576d3820 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientEJB.java @@ -0,0 +1,224 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)batUpdExceptClient.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.exception.batUpdExcept; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +// import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The batUpdExceptClient class tests methods of BatchUpdateException using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class batUpdExceptClientEJB extends batUpdExceptClient implements Serializable { + private static final String testName = "jdbc.ee.exception.batUpdExcept"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "batUpdExcept_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(batUpdExceptClientEJB.class, batUpdExceptClient.class); + + URL resURL = batUpdExceptClientEJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = batUpdExceptClientEJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExcept_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "batUpdExcept_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(batUpdExceptClientEJB.class, batUpdExceptClient.class); + + resURL = batUpdExceptClientEJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExcept_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = batUpdExceptClientEJB.class.getResource("/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "batUpdExcept_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + batUpdExceptClientEJB theTests = new batUpdExceptClientEJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetUpdateCounts + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:121; + * + * @test_Strategy: Get a Statement object and call the addBatch() method with + * 4 SQL statements ,out of which first 3 statements are insert,update and + * delete statements followed by a select statement and call the + * executeBatch() method. This causes a BatchUpdateException being thrown and + * getUpdateCounts() method on this BatchUpdateException object should return + * an integer array of length 3 with each value indicating the number of + * corressponding rows affected by execution of 3 SQL statements in the same + * order as added to the batch. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetUpdateCounts() throws Exception { + super.testGetUpdateCounts(); + } + + + /* + * @testName: testBatchUpdateException01 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:120; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * no arguments and for that object the reason, SQLState,ErrorCode and + * updateCounts are checked for default values. + */ + @Test + @TargetVehicle("ejb") + public void testBatchUpdateException01() throws Exception { + super.testBatchUpdateException01(); + } + + /* + * @testName: testBatchUpdateException02 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:119; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * one argument and for that object the reason, SQLState,ErrorCode are checked + * for default values.The updateCount array is checked for whatever is been + * assigned while creating the new instance. + */ + + @Test + @TargetVehicle("ejb") + public void testBatchUpdateException02() throws Exception { + super.testBatchUpdateException02(); + } + + /* + * @testName: testBatchUpdateException03 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:118; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * two arguments and for that object. SQLState,ErrorCode are checked for + * default values.The reason and updateCount array is checked for whatever is + * been assigned while creating the new instance. + */ + + @Test + @TargetVehicle("ejb") + public void testBatchUpdateException03() throws Exception { + super.testBatchUpdateException03(); + } + + /* + * @testName: testBatchUpdateException04 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:117; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * three arguments and for that object. ErrorCode is checked for default + * values.The reason,SQLState and updateCount array is checked for whatever is + * been assigned while creating the new instance. + */ + + @Test + @TargetVehicle("ejb") + public void testBatchUpdateException04() throws Exception { + super.testBatchUpdateException04(); + } + + /* + * @testName: testBatchUpdateException05 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:116; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * four arguments The reason,SQLState ,ErrorCode and updateCount array is + * checked for whatever is been assigned while creating the new instance. + */ + + @Test + @TargetVehicle("ejb") + public void testBatchUpdateException05() throws Exception { + super.testBatchUpdateException05(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientJSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientJSP.java new file mode 100644 index 0000000000..62ebaee56e --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientJSP.java @@ -0,0 +1,208 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)batUpdExceptClient.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.exception.batUpdExcept; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +// import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The batUpdExceptClient class tests methods of BatchUpdateException using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class batUpdExceptClientJSP extends batUpdExceptClient implements Serializable { + private static final String testName = "jdbc.ee.exception.batUpdExcept"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "batUpdExcept_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(batUpdExceptClientJSP.class, batUpdExceptClient.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = batUpdExceptClientJSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = batUpdExceptClientJSP.class.getResource("batUpdExcept_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, batUpdExceptClientJSP.class, sunJSPUrl); + + + archive.addAsWebInfResource(batUpdExceptClientJSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + batUpdExceptClientJSP theTests = new batUpdExceptClientJSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetUpdateCounts + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:121; + * + * @test_Strategy: Get a Statement object and call the addBatch() method with + * 4 SQL statements ,out of which first 3 statements are insert,update and + * delete statements followed by a select statement and call the + * executeBatch() method. This causes a BatchUpdateException being thrown and + * getUpdateCounts() method on this BatchUpdateException object should return + * an integer array of length 3 with each value indicating the number of + * corressponding rows affected by execution of 3 SQL statements in the same + * order as added to the batch. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetUpdateCounts() throws Exception { + super.testGetUpdateCounts(); + } + + + /* + * @testName: testBatchUpdateException01 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:120; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * no arguments and for that object the reason, SQLState,ErrorCode and + * updateCounts are checked for default values. + */ + @Test + @TargetVehicle("jsp") + public void testBatchUpdateException01() throws Exception { + super.testBatchUpdateException01(); + } + + /* + * @testName: testBatchUpdateException02 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:119; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * one argument and for that object the reason, SQLState,ErrorCode are checked + * for default values.The updateCount array is checked for whatever is been + * assigned while creating the new instance. + */ + + @Test + @TargetVehicle("jsp") + public void testBatchUpdateException02() throws Exception { + super.testBatchUpdateException02(); + } + + /* + * @testName: testBatchUpdateException03 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:118; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * two arguments and for that object. SQLState,ErrorCode are checked for + * default values.The reason and updateCount array is checked for whatever is + * been assigned while creating the new instance. + */ + + @Test + @TargetVehicle("jsp") + public void testBatchUpdateException03() throws Exception { + super.testBatchUpdateException03(); + } + + /* + * @testName: testBatchUpdateException04 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:117; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * three arguments and for that object. ErrorCode is checked for default + * values.The reason,SQLState and updateCount array is checked for whatever is + * been assigned while creating the new instance. + */ + + @Test + @TargetVehicle("jsp") + public void testBatchUpdateException04() throws Exception { + super.testBatchUpdateException04(); + } + + /* + * @testName: testBatchUpdateException05 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:116; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * four arguments The reason,SQLState ,ErrorCode and updateCount array is + * checked for whatever is been assigned while creating the new instance. + */ + + @Test + @TargetVehicle("jsp") + public void testBatchUpdateException05() throws Exception { + super.testBatchUpdateException05(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientServlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientServlet.java new file mode 100644 index 0000000000..3a3745452f --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/batUpdExceptClientServlet.java @@ -0,0 +1,196 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)batUpdExceptClient.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.exception.batUpdExcept; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +// import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The batUpdExceptClient class tests methods of BatchUpdateException using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class batUpdExceptClientServlet extends batUpdExceptClient implements Serializable { + private static final String testName = "jdbc.ee.exception.batUpdExcept"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "batUpdExcept_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(batUpdExceptClientServlet.class, batUpdExceptClient.class); + // The servlet descriptor +URL servletUrl = batUpdExceptClientServlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = batUpdExceptClientServlet.class.getResource("batUpdExcept_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, batUpdExceptClientServlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + batUpdExceptClientServlet theTests = new batUpdExceptClientServlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetUpdateCounts + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:121; + * + * @test_Strategy: Get a Statement object and call the addBatch() method with + * 4 SQL statements ,out of which first 3 statements are insert,update and + * delete statements followed by a select statement and call the + * executeBatch() method. This causes a BatchUpdateException being thrown and + * getUpdateCounts() method on this BatchUpdateException object should return + * an integer array of length 3 with each value indicating the number of + * corressponding rows affected by execution of 3 SQL statements in the same + * order as added to the batch. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetUpdateCounts() throws Exception { + super.testGetUpdateCounts(); + } + + + /* + * @testName: testBatchUpdateException01 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:120; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * no arguments and for that object the reason, SQLState,ErrorCode and + * updateCounts are checked for default values. + */ + @Test + @TargetVehicle("servlet") + public void testBatchUpdateException01() throws Exception { + super.testBatchUpdateException01(); + } + + /* + * @testName: testBatchUpdateException02 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:119; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * one argument and for that object the reason, SQLState,ErrorCode are checked + * for default values.The updateCount array is checked for whatever is been + * assigned while creating the new instance. + */ + + @Test + @TargetVehicle("servlet") + public void testBatchUpdateException02() throws Exception { + super.testBatchUpdateException02(); + } + + /* + * @testName: testBatchUpdateException03 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:118; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * two arguments and for that object. SQLState,ErrorCode are checked for + * default values.The reason and updateCount array is checked for whatever is + * been assigned while creating the new instance. + */ + + @Test + @TargetVehicle("servlet") + public void testBatchUpdateException03() throws Exception { + super.testBatchUpdateException03(); + } + + /* + * @testName: testBatchUpdateException04 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:117; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * three arguments and for that object. ErrorCode is checked for default + * values.The reason,SQLState and updateCount array is checked for whatever is + * been assigned while creating the new instance. + */ + + @Test + @TargetVehicle("servlet") + public void testBatchUpdateException04() throws Exception { + super.testBatchUpdateException04(); + } + + /* + * @testName: testBatchUpdateException05 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:116; + * + * @test_Strategy: This method constructs a BatchUpdateException Object with + * four arguments The reason,SQLState ,ErrorCode and updateCount array is + * checked for whatever is been assigned while creating the new instance. + */ + + @Test + @TargetVehicle("servlet") + public void testBatchUpdateException05() throws Exception { + super.testBatchUpdateException05(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/build.xml deleted file mode 100644 index 6638355953..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/batUpdExcept/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/build.xml deleted file mode 100644 index dc6a4e2a2e..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/build.xml deleted file mode 100644 index 66d42d1ebd..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClient.java index 50f6d922d2..9134fddd7c 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClient.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClient.java @@ -29,8 +29,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -50,6 +54,11 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + + public class sqlExceptionClient extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.exception.sqlException"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientAppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientAppClient.java new file mode 100644 index 0000000000..4019fae419 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientAppClient.java @@ -0,0 +1,228 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)sqlExceptionClient.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.exception.sqlException; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The sqlExceptionClient class tests methods of SQLException class using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class sqlExceptionClientAppClient extends sqlExceptionClient implements Serializable { + private static final String testName = "jdbc.ee.exception.sqlException"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "sqlException_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(sqlExceptionClientAppClient.class, sqlExceptionClient.class); + // The appclient-client descriptor + URL appClientUrl = sqlExceptionClientAppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/exception/sqlException/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = sqlExceptionClientAppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, sqlExceptionClientAppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "sqlException_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + sqlExceptionClientAppClient theTests = new sqlExceptionClientAppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSQLException01 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:68; + * + * @test_Strategy: This method constructs a SQLException Object with no + * arguments and for that object the reason,SQLState and ErrorCode are checked + * for default values. + * + */ + @Test + @TargetVehicle("appclient") + public void testSQLException01() throws Exception { + super.testSQLException01(); + } + + /* + * @testName: testSQLException02 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:67; + * + * @test_Strategy: This method constructs a SQLException Object with one + * argument and for that object the SQLState, ErrorCode are checked for + * default values.The reason is checked for whatever is been assigned while + * creating the new instance. + */ + + @Test + @TargetVehicle("appclient") + public void testSQLException02() throws Exception { + super.testSQLException02(); + } + + /* + * @testName: testSQLException03 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:66; + * + * @test_Strategy: This method constructs a SQLException Object with two + * arguments and for that object ErrorCode is checked for default values.The + * reason and SQLState are checked for whatever is been assigned while + * creating the new instance. + */ + @Test + @TargetVehicle("appclient") + public void testSQLException03() throws Exception { + super.testSQLException03(); + } + + /* + * @testName: testSQLException04 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:65; + * + * @test_Strategy: This method constructs a SQLException Object with three + * arguments .The reason,SQLState and Errorcode is checked for whatever is + * been assigned while creating the new instance. + */ + @Test + @TargetVehicle("appclient") + public void testSQLException04() throws Exception { + super.testSQLException04(); + } + + + /* + * @testName: testGetErrorCode + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:70; + * + * @testStartegy: The SQLException object is generated by executing an + * incomplete SQL Statement and the getErrorCode() method of that object is + * checked whether it returns an integer. + */ + @Test + @TargetVehicle("appclient") + public void testGetErrorCode() throws Exception { + super.testGetErrorCode(); + } + + /* + * @testName: testGetSQLState + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:69; + * + * @testStartegy: The SQLException object is generated by executing an + * incomplete SQL Statement and the getSQLState() method of that object is + * checked whether it is an instance of java.lang.String. + */ + + @Test + @TargetVehicle("appclient") + public void testGetSQLState() throws Exception { + super.testGetSQLState(); + } + + /* + * @testName: testGetNextException + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:71; + * + * @test_Strategy: SQLException object is generated by executing an incomplete + * SQL Statement and using setNextException method a SQLException object is + * chained. This is checked using the getNextException method which should + * return a instanceof SQLException object. + */ + @Test + @TargetVehicle("appclient") + public void testGetNextException() throws Exception { + super.testGetNextException(); + } + + /* + * @testName: testSetNextException + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:72; + * + * @test_Strategy: SQLException object is obtained by executing a incomplete + * SQLStatement and setNextException() method on the object will set a chain + * of SQLException on that object which can be checked by using + * getNextException() method. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetNextException() throws Exception { + super.testSetNextException(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientEJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientEJB.java new file mode 100644 index 0000000000..43afcf95f0 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientEJB.java @@ -0,0 +1,248 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)sqlExceptionClient.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.exception.sqlException; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The sqlExceptionClient class tests methods of SQLException class using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class sqlExceptionClientEJB extends sqlExceptionClient implements Serializable { + private static final String testName = "jdbc.ee.exception.sqlException"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "sqlException_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(sqlExceptionClientEJB.class, sqlExceptionClient.class); + + URL resURL = sqlExceptionClientEJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = sqlExceptionClientEJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlException_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "sqlException_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(sqlExceptionClientEJB.class, sqlExceptionClient.class); + + resURL = sqlExceptionClientEJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlException_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = sqlExceptionClientEJB.class.getResource("/com/sun/ts/tests/jdbc/ee/exception/sqlException/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "sqlException_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + sqlExceptionClientEJB theTests = new sqlExceptionClientEJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSQLException01 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:68; + * + * @test_Strategy: This method constructs a SQLException Object with no + * arguments and for that object the reason,SQLState and ErrorCode are checked + * for default values. + * + */ + @Test + @TargetVehicle("ejb") + public void testSQLException01() throws Exception { + super.testSQLException01(); + } + + /* + * @testName: testSQLException02 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:67; + * + * @test_Strategy: This method constructs a SQLException Object with one + * argument and for that object the SQLState, ErrorCode are checked for + * default values.The reason is checked for whatever is been assigned while + * creating the new instance. + */ + + @Test + @TargetVehicle("ejb") + public void testSQLException02() throws Exception { + super.testSQLException02(); + } + + /* + * @testName: testSQLException03 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:66; + * + * @test_Strategy: This method constructs a SQLException Object with two + * arguments and for that object ErrorCode is checked for default values.The + * reason and SQLState are checked for whatever is been assigned while + * creating the new instance. + */ + @Test + @TargetVehicle("ejb") + public void testSQLException03() throws Exception { + super.testSQLException03(); + } + + /* + * @testName: testSQLException04 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:65; + * + * @test_Strategy: This method constructs a SQLException Object with three + * arguments .The reason,SQLState and Errorcode is checked for whatever is + * been assigned while creating the new instance. + */ + @Test + @TargetVehicle("ejb") + public void testSQLException04() throws Exception { + super.testSQLException04(); + } + + + /* + * @testName: testGetErrorCode + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:70; + * + * @testStartegy: The SQLException object is generated by executing an + * incomplete SQL Statement and the getErrorCode() method of that object is + * checked whether it returns an integer. + */ + @Test + @TargetVehicle("ejb") + public void testGetErrorCode() throws Exception { + super.testGetErrorCode(); + } + + /* + * @testName: testGetSQLState + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:69; + * + * @testStartegy: The SQLException object is generated by executing an + * incomplete SQL Statement and the getSQLState() method of that object is + * checked whether it is an instance of java.lang.String. + */ + + @Test + @TargetVehicle("ejb") + public void testGetSQLState() throws Exception { + super.testGetSQLState(); + } + + /* + * @testName: testGetNextException + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:71; + * + * @test_Strategy: SQLException object is generated by executing an incomplete + * SQL Statement and using setNextException method a SQLException object is + * chained. This is checked using the getNextException method which should + * return a instanceof SQLException object. + */ + @Test + @TargetVehicle("ejb") + public void testGetNextException() throws Exception { + super.testGetNextException(); + } + + /* + * @testName: testSetNextException + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:72; + * + * @test_Strategy: SQLException object is obtained by executing a incomplete + * SQLStatement and setNextException() method on the object will set a chain + * of SQLException on that object which can be checked by using + * getNextException() method. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetNextException() throws Exception { + super.testSetNextException(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientJSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientJSP.java new file mode 100644 index 0000000000..0835e91188 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientJSP.java @@ -0,0 +1,232 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)sqlExceptionClient.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.exception.sqlException; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The sqlExceptionClient class tests methods of SQLException class using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class sqlExceptionClientJSP extends sqlExceptionClient implements Serializable { + private static final String testName = "jdbc.ee.exception.sqlException"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "sqlException_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(sqlExceptionClientJSP.class, sqlExceptionClient.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = sqlExceptionClientJSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = sqlExceptionClientJSP.class.getResource("sqlException_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, sqlExceptionClientJSP.class, sunJSPUrl); + + + archive.addAsWebInfResource(sqlExceptionClientJSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + sqlExceptionClientJSP theTests = new sqlExceptionClientJSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSQLException01 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:68; + * + * @test_Strategy: This method constructs a SQLException Object with no + * arguments and for that object the reason,SQLState and ErrorCode are checked + * for default values. + * + */ + @Test + @TargetVehicle("jsp") + public void testSQLException01() throws Exception { + super.testSQLException01(); + } + + /* + * @testName: testSQLException02 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:67; + * + * @test_Strategy: This method constructs a SQLException Object with one + * argument and for that object the SQLState, ErrorCode are checked for + * default values.The reason is checked for whatever is been assigned while + * creating the new instance. + */ + + @Test + @TargetVehicle("jsp") + public void testSQLException02() throws Exception { + super.testSQLException02(); + } + + /* + * @testName: testSQLException03 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:66; + * + * @test_Strategy: This method constructs a SQLException Object with two + * arguments and for that object ErrorCode is checked for default values.The + * reason and SQLState are checked for whatever is been assigned while + * creating the new instance. + */ + @Test + @TargetVehicle("jsp") + public void testSQLException03() throws Exception { + super.testSQLException03(); + } + + /* + * @testName: testSQLException04 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:65; + * + * @test_Strategy: This method constructs a SQLException Object with three + * arguments .The reason,SQLState and Errorcode is checked for whatever is + * been assigned while creating the new instance. + */ + @Test + @TargetVehicle("jsp") + public void testSQLException04() throws Exception { + super.testSQLException04(); + } + + + /* + * @testName: testGetErrorCode + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:70; + * + * @testStartegy: The SQLException object is generated by executing an + * incomplete SQL Statement and the getErrorCode() method of that object is + * checked whether it returns an integer. + */ + @Test + @TargetVehicle("jsp") + public void testGetErrorCode() throws Exception { + super.testGetErrorCode(); + } + + /* + * @testName: testGetSQLState + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:69; + * + * @testStartegy: The SQLException object is generated by executing an + * incomplete SQL Statement and the getSQLState() method of that object is + * checked whether it is an instance of java.lang.String. + */ + + @Test + @TargetVehicle("jsp") + public void testGetSQLState() throws Exception { + super.testGetSQLState(); + } + + /* + * @testName: testGetNextException + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:71; + * + * @test_Strategy: SQLException object is generated by executing an incomplete + * SQL Statement and using setNextException method a SQLException object is + * chained. This is checked using the getNextException method which should + * return a instanceof SQLException object. + */ + @Test + @TargetVehicle("jsp") + public void testGetNextException() throws Exception { + super.testGetNextException(); + } + + /* + * @testName: testSetNextException + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:72; + * + * @test_Strategy: SQLException object is obtained by executing a incomplete + * SQLStatement and setNextException() method on the object will set a chain + * of SQLException on that object which can be checked by using + * getNextException() method. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetNextException() throws Exception { + super.testSetNextException(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientServlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientServlet.java new file mode 100644 index 0000000000..7ba2c8bc47 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/exception/sqlException/sqlExceptionClientServlet.java @@ -0,0 +1,220 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)sqlExceptionClient.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.exception.sqlException; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The sqlExceptionClient class tests methods of SQLException class using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class sqlExceptionClientServlet extends sqlExceptionClient implements Serializable { + private static final String testName = "jdbc.ee.exception.sqlException"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "sqlException_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(sqlExceptionClientServlet.class, sqlExceptionClient.class); + // The servlet descriptor +URL servletUrl = sqlExceptionClientServlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = sqlExceptionClientServlet.class.getResource("sqlException_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, sqlExceptionClientServlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + sqlExceptionClientServlet theTests = new sqlExceptionClientServlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSQLException01 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:68; + * + * @test_Strategy: This method constructs a SQLException Object with no + * arguments and for that object the reason,SQLState and ErrorCode are checked + * for default values. + * + */ + @Test + @TargetVehicle("servlet") + public void testSQLException01() throws Exception { + super.testSQLException01(); + } + + /* + * @testName: testSQLException02 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:67; + * + * @test_Strategy: This method constructs a SQLException Object with one + * argument and for that object the SQLState, ErrorCode are checked for + * default values.The reason is checked for whatever is been assigned while + * creating the new instance. + */ + + @Test + @TargetVehicle("servlet") + public void testSQLException02() throws Exception { + super.testSQLException02(); + } + + /* + * @testName: testSQLException03 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:66; + * + * @test_Strategy: This method constructs a SQLException Object with two + * arguments and for that object ErrorCode is checked for default values.The + * reason and SQLState are checked for whatever is been assigned while + * creating the new instance. + */ + @Test + @TargetVehicle("servlet") + public void testSQLException03() throws Exception { + super.testSQLException03(); + } + + /* + * @testName: testSQLException04 + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:65; + * + * @test_Strategy: This method constructs a SQLException Object with three + * arguments .The reason,SQLState and Errorcode is checked for whatever is + * been assigned while creating the new instance. + */ + @Test + @TargetVehicle("servlet") + public void testSQLException04() throws Exception { + super.testSQLException04(); + } + + + /* + * @testName: testGetErrorCode + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:70; + * + * @testStartegy: The SQLException object is generated by executing an + * incomplete SQL Statement and the getErrorCode() method of that object is + * checked whether it returns an integer. + */ + @Test + @TargetVehicle("servlet") + public void testGetErrorCode() throws Exception { + super.testGetErrorCode(); + } + + /* + * @testName: testGetSQLState + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:69; + * + * @testStartegy: The SQLException object is generated by executing an + * incomplete SQL Statement and the getSQLState() method of that object is + * checked whether it is an instance of java.lang.String. + */ + + @Test + @TargetVehicle("servlet") + public void testGetSQLState() throws Exception { + super.testGetSQLState(); + } + + /* + * @testName: testGetNextException + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:71; + * + * @test_Strategy: SQLException object is generated by executing an incomplete + * SQL Statement and using setNextException method a SQLException object is + * chained. This is checked using the getNextException method which should + * return a instanceof SQLException object. + */ + @Test + @TargetVehicle("servlet") + public void testGetNextException() throws Exception { + super.testGetNextException(); + } + + /* + * @testName: testSetNextException + * + * @assertion_ids: JDBC:SPEC:6; JDBC:JAVADOC:72; + * + * @test_Strategy: SQLException object is obtained by executing a incomplete + * SQLStatement and setNextException() method on the object will set a chain + * of SQLException on that object which can be checked by using + * getNextException() method. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetNextException() throws Exception { + super.testSetNextException(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/build.xml deleted file mode 100644 index f7d6451377..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/build.xml deleted file mode 100644 index 47c0b75c02..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1.java index 53891ce24b..665ab5f717 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -54,6 +58,10 @@ * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + public class prepStmtClient1 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt1"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1AppClient.java new file mode 100644 index 0000000000..1209617053 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1AppClient.java @@ -0,0 +1,458 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient1 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-appclient") + +public class prepStmtClient1AppClient extends prepStmtClient1 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt1"; + + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt1_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient1AppClient.class, prepStmtClient1.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient1AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient1AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient1AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt1_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient1AppClient theTests = new prepStmtClient1AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetMetaData + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:712; + * JDBC:JAVADOC:713; JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:186; + * JavaEE:SPEC:186.2; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the getMetaData() method and get the number of columns + * using getColumnCount() method of ResultSetMetaData.Execute a query using + * executeQuery() method and get the number of columns. Both the values should + * be equal or it should throw an SQL exception. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMetaData() throws Exception { + super.testGetMetaData(); + } + + /* + * @testName: testClearParameters + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:690; + * JDBC:JAVADOC:691; JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:186; + * + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Call the clearParameters() method.Call the executeQuery() method to + * check if the call to clearParameters() clears the IN parameter set by the + * Prepared Statement object. + */ + @Test + @TargetVehicle("appclient") + public void testClearParameters() throws Exception { + super.testClearParameters(); + } + + /* + * @testName: testExecute01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:698; JDBC:JAVADOC:699; + * JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:182; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement of deleting a row. It should + * return a boolean value and the value should be equal to false. (See JDK + * 1.2.2 API documentation) + * + */ + @Test + @TargetVehicle("appclient") + + public void testExecute01() throws Exception { + super.testExecute01(); + } + + /* + * @testName: testExecute03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:698; JDBC:JAVADOC:699; + * JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:182; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling execute() method + * without setting the parameters.An SQL Exception must be thrown. (See JDK + * 1.2.2 API documentation) + * + */ + @Test + @TargetVehicle("appclient") + + public void testExecute03() throws Exception { + super.testExecute03(); + } + + /* + * @testName: testExecuteQuery01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:652; JDBC:JAVADOC:653; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement by calling executeQuery() + * method. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("appclient") + + public void testExecuteQuery01() throws Exception { + super.testExecuteQuery01(); + } + + /* + * @testName: testExecuteQuery02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:652; JDBC:JAVADOC:653; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement by calling executeQuery() + * method with a non existent row. A call to ResultSet.next() should return a + * false value. + */ + @Test + @TargetVehicle("appclient") + + public void testExecuteQuery02() throws Exception { + super.testExecuteQuery02(); + } + + /* + * @testName: testExecuteQuery03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:652; JDBC:JAVADOC:653; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling executeQuery() + * method without setting the parameters. It should throw a SQL Exception. + */ + @Test + @TargetVehicle("appclient") + + public void testExecuteQuery03() throws Exception { + super.testExecuteQuery03(); + } + + /* + * @testName: testExecuteUpdate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:654; JDBC:JAVADOC:655; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the PreparedStatement + * object. Execute the precompiled SQL Statement by calling executeUpdate() + * method. It should return an integer value indicating the number of rows + * that were affected. (The value could be zero if zero rows are affected). + */ + @Test + @TargetVehicle("appclient") + + public void testExecuteUpdate01() throws Exception { + super.testExecuteUpdate01(); + } + + /* + * @testName: testExecuteUpdate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:654; JDBC:JAVADOC:655; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement by calling executeUpdate() + * method with a non existent row. It should return an Integer value. + */ + @Test + @TargetVehicle("appclient") + + public void testExecuteUpdate02() throws Exception { + super.testExecuteUpdate02(); + } + + /* + * @testName: testExecuteUpdate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:654; JDBC:JAVADOC:655; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement without setting the IN + * parameter. It should throw an SQL exception. + */ + @Test + @TargetVehicle("appclient") + + public void testExecuteUpdate03() throws Exception { + super.testExecuteUpdate03(); + } + + /* + * @testName: testSetBigDecimal01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:672; JDBC:JAVADOC:673; + * JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled.SQL Statement by calling the + * setBigDecimal(int parameterindex, BigDecimal x) method for updating the + * value of column MIN_VAL in Numeric_Tab.Check first the return value of + * executeUpdate() method used is equal to 1. Call the + * ResultSet.getBigDecimal(int columnIndex)method. Check if returns the + * BigDecimal Value that has been set. + */ + @Test + @TargetVehicle("appclient") + + public void testSetBigDecimal01() throws Exception { + super.testSetBigDecimal01(); + } + + /* + * @testName: testSetBigDecimal02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:672; JDBC:JAVADOC:673; + * JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the + * setBigDecimal(int parameterindex, BigDecimal x) method for updating the + * value of column NULL_VAL in Numeric_Tab. Call the + * ResultSet.getBigDecimal(int columnIndex) method. Check if returns the + * BigDecimal Value that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testSetBigDecimal02() throws Exception { + super.testSetBigDecimal02(); + } + + /* + * @testName: testSetBoolean01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:658; JDBC:JAVADOC:659; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the + * setBoolean(int parameterIndex, boolean x) to set MAX_VAL column of Bit_tab + * with the MIN_VAL of Bit_Tab. Call the ResultSet.getBoolean(int columnIndex) + * method to check if it returns the boolean Value that has been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetBoolean01() throws Exception { + super.testSetBoolean01(); + } + + /* + * @testName: testSetBoolean02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:658; JDBC:JAVADOC:659; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the method + * setBoolean(int parameterIndex, boolean x) to set NULL_VAL column of Bit_tab + * with the Max_Val of Bit_Tab. Call the ResultSet.getBoolean(int columnIndex) + * method to check if it returns the boolean Value that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testSetBoolean02() throws Exception { + super.testSetBoolean02(); + } + + /* + * @testName: testSetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:660; JDBC:JAVADOC:661; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the setByte(int + * parameterindex, byte x) method for updating MAX_VAL column of Tinyint_Tab. + * Call the ResultSet.getByte(int columnIndex) method to check if it returns + * the byte Value that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testSetByte01() throws Exception { + super.testSetByte01(); + } + + /* + * @testName: testSetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:660; JDBC:JAVADOC:661; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the setByte(int + * parameterindex, byte x) method for updating NULL_VAL column of Tinyint_Tab. + * Call the ResultSet.getByte(int columnIndex) method,to check if it returns + * the byte Value that has been set. + */ + @Test + @TargetVehicle("appclient") + + public void testSetByte02() throws Exception { + super.testSetByte02(); + } + + /* + * @testName: testSetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:668; JDBC:JAVADOC:669; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling the setFloat(int + * parameterindex, float x) method for updating the MAX_VAL column of + * Float_Tab. Call the ResultSet.getFloat(int columnIndex) method to check if + * it returns the float Value that has been set. + * + */ + @Test + @TargetVehicle("appclient") + + public void testSetFloat01() throws Exception { + super.testSetFloat01(); + } + + /* + * @testName: testSetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:668; JDBC:JAVADOC:669; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling the setFloat(int + * parameterindex, float x) method for updating the NULL_VAL column of + * Float_Tab. Call the ResultSet.getFloat(int columnIndex) method to check if + * it returns the float Value that has been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetFloat02() throws Exception { + super.testSetFloat02(); + } + + /* + * @testName: testSetInt01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:664; JDBC:JAVADOC:665; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling the setInt(int + * parameterindex, int x) method for updating the MAX_VAL column of + * Integer_Tab. Call the ResultSet.getInt(int columnIndex) method to check if + * it returns the integer Value that has been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetInt01() throws Exception { + super.testSetInt01(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1EJB.java new file mode 100644 index 0000000000..ed957717fd --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1EJB.java @@ -0,0 +1,475 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient1 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-appclient") + +public class prepStmtClient1EJB extends prepStmtClient1 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt1"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt1_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient1EJB.class, prepStmtClient1.class); + + URL resURL = prepStmtClient1EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = prepStmtClient1EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmt1_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt1_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient1EJB.class, prepStmtClient1.class); + + resURL = prepStmtClient1EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmt1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient1EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt1_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient1EJB theTests = new prepStmtClient1EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetMetaData + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:712; + * JDBC:JAVADOC:713; JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:186; + * JavaEE:SPEC:186.2; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the getMetaData() method and get the number of columns + * using getColumnCount() method of ResultSetMetaData.Execute a query using + * executeQuery() method and get the number of columns. Both the values should + * be equal or it should throw an SQL exception. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMetaData() throws Exception { + super.testGetMetaData(); + } + + /* + * @testName: testClearParameters + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:690; + * JDBC:JAVADOC:691; JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:186; + * + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Call the clearParameters() method.Call the executeQuery() method to + * check if the call to clearParameters() clears the IN parameter set by the + * Prepared Statement object. + */ + @Test + @TargetVehicle("ejb") + public void testClearParameters() throws Exception { + super.testClearParameters(); + } + + /* + * @testName: testExecute01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:698; JDBC:JAVADOC:699; + * JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:182; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement of deleting a row. It should + * return a boolean value and the value should be equal to false. (See JDK + * 1.2.2 API documentation) + * + */ + @Test + @TargetVehicle("ejb") + + public void testExecute01() throws Exception { + super.testExecute01(); + } + + /* + * @testName: testExecute03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:698; JDBC:JAVADOC:699; + * JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:182; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling execute() method + * without setting the parameters.An SQL Exception must be thrown. (See JDK + * 1.2.2 API documentation) + * + */ + @Test + @TargetVehicle("ejb") + + public void testExecute03() throws Exception { + super.testExecute03(); + } + + /* + * @testName: testExecuteQuery01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:652; JDBC:JAVADOC:653; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement by calling executeQuery() + * method. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("ejb") + + public void testExecuteQuery01() throws Exception { + super.testExecuteQuery01(); + } + + /* + * @testName: testExecuteQuery02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:652; JDBC:JAVADOC:653; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement by calling executeQuery() + * method with a non existent row. A call to ResultSet.next() should return a + * false value. + */ + @Test + @TargetVehicle("ejb") + + public void testExecuteQuery02() throws Exception { + super.testExecuteQuery02(); + } + + /* + * @testName: testExecuteQuery03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:652; JDBC:JAVADOC:653; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling executeQuery() + * method without setting the parameters. It should throw a SQL Exception. + */ + @Test + @TargetVehicle("ejb") + + public void testExecuteQuery03() throws Exception { + super.testExecuteQuery03(); + } + + /* + * @testName: testExecuteUpdate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:654; JDBC:JAVADOC:655; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the PreparedStatement + * object. Execute the precompiled SQL Statement by calling executeUpdate() + * method. It should return an integer value indicating the number of rows + * that were affected. (The value could be zero if zero rows are affected). + */ + @Test + @TargetVehicle("ejb") + + public void testExecuteUpdate01() throws Exception { + super.testExecuteUpdate01(); + } + + /* + * @testName: testExecuteUpdate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:654; JDBC:JAVADOC:655; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement by calling executeUpdate() + * method with a non existent row. It should return an Integer value. + */ + @Test + @TargetVehicle("ejb") + + public void testExecuteUpdate02() throws Exception { + super.testExecuteUpdate02(); + } + + /* + * @testName: testExecuteUpdate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:654; JDBC:JAVADOC:655; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement without setting the IN + * parameter. It should throw an SQL exception. + */ + @Test + @TargetVehicle("ejb") + + public void testExecuteUpdate03() throws Exception { + super.testExecuteUpdate03(); + } + + /* + * @testName: testSetBigDecimal01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:672; JDBC:JAVADOC:673; + * JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled.SQL Statement by calling the + * setBigDecimal(int parameterindex, BigDecimal x) method for updating the + * value of column MIN_VAL in Numeric_Tab.Check first the return value of + * executeUpdate() method used is equal to 1. Call the + * ResultSet.getBigDecimal(int columnIndex)method. Check if returns the + * BigDecimal Value that has been set. + */ + @Test + @TargetVehicle("ejb") + + public void testSetBigDecimal01() throws Exception { + super.testSetBigDecimal01(); + } + + /* + * @testName: testSetBigDecimal02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:672; JDBC:JAVADOC:673; + * JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the + * setBigDecimal(int parameterindex, BigDecimal x) method for updating the + * value of column NULL_VAL in Numeric_Tab. Call the + * ResultSet.getBigDecimal(int columnIndex) method. Check if returns the + * BigDecimal Value that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testSetBigDecimal02() throws Exception { + super.testSetBigDecimal02(); + } + + /* + * @testName: testSetBoolean01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:658; JDBC:JAVADOC:659; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the + * setBoolean(int parameterIndex, boolean x) to set MAX_VAL column of Bit_tab + * with the MIN_VAL of Bit_Tab. Call the ResultSet.getBoolean(int columnIndex) + * method to check if it returns the boolean Value that has been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetBoolean01() throws Exception { + super.testSetBoolean01(); + } + + /* + * @testName: testSetBoolean02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:658; JDBC:JAVADOC:659; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the method + * setBoolean(int parameterIndex, boolean x) to set NULL_VAL column of Bit_tab + * with the Max_Val of Bit_Tab. Call the ResultSet.getBoolean(int columnIndex) + * method to check if it returns the boolean Value that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testSetBoolean02() throws Exception { + super.testSetBoolean02(); + } + + /* + * @testName: testSetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:660; JDBC:JAVADOC:661; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the setByte(int + * parameterindex, byte x) method for updating MAX_VAL column of Tinyint_Tab. + * Call the ResultSet.getByte(int columnIndex) method to check if it returns + * the byte Value that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testSetByte01() throws Exception { + super.testSetByte01(); + } + + /* + * @testName: testSetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:660; JDBC:JAVADOC:661; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the setByte(int + * parameterindex, byte x) method for updating NULL_VAL column of Tinyint_Tab. + * Call the ResultSet.getByte(int columnIndex) method,to check if it returns + * the byte Value that has been set. + */ + @Test + @TargetVehicle("ejb") + + public void testSetByte02() throws Exception { + super.testSetByte02(); + } + + /* + * @testName: testSetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:668; JDBC:JAVADOC:669; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling the setFloat(int + * parameterindex, float x) method for updating the MAX_VAL column of + * Float_Tab. Call the ResultSet.getFloat(int columnIndex) method to check if + * it returns the float Value that has been set. + * + */ + @Test + @TargetVehicle("ejb") + + public void testSetFloat01() throws Exception { + super.testSetFloat01(); + } + + /* + * @testName: testSetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:668; JDBC:JAVADOC:669; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling the setFloat(int + * parameterindex, float x) method for updating the NULL_VAL column of + * Float_Tab. Call the ResultSet.getFloat(int columnIndex) method to check if + * it returns the float Value that has been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetFloat02() throws Exception { + super.testSetFloat02(); + } + + /* + * @testName: testSetInt01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:664; JDBC:JAVADOC:665; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling the setInt(int + * parameterindex, int x) method for updating the MAX_VAL column of + * Integer_Tab. Call the ResultSet.getInt(int columnIndex) method to check if + * it returns the integer Value that has been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetInt01() throws Exception { + super.testSetInt01(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1JSP.java new file mode 100644 index 0000000000..1c81389a03 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1JSP.java @@ -0,0 +1,459 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt1; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient1 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-javatest") + +public class prepStmtClient1JSP extends prepStmtClient1 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt1"; + + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt1_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient1JSP.class, prepStmtClient1.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient1JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient1JSP.class.getResource("prepStmt1_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient1JSP.class, sunJSPUrl); + + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient1JSP theTests = new prepStmtClient1JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetMetaData + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:712; + * JDBC:JAVADOC:713; JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:186; + * JavaEE:SPEC:186.2; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the getMetaData() method and get the number of columns + * using getColumnCount() method of ResultSetMetaData.Execute a query using + * executeQuery() method and get the number of columns. Both the values should + * be equal or it should throw an SQL exception. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMetaData() throws Exception { + super.testGetMetaData(); + } + + /* + * @testName: testClearParameters + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:690; + * JDBC:JAVADOC:691; JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:186; + * + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Call the clearParameters() method.Call the executeQuery() method to + * check if the call to clearParameters() clears the IN parameter set by the + * Prepared Statement object. + */ + @Test + @TargetVehicle("jsp") + public void testClearParameters() throws Exception { + super.testClearParameters(); + } + + /* + * @testName: testExecute01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:698; JDBC:JAVADOC:699; + * JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:182; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement of deleting a row. It should + * return a boolean value and the value should be equal to false. (See JDK + * 1.2.2 API documentation) + * + */ + @Test + @TargetVehicle("jsp") + + public void testExecute01() throws Exception { + super.testExecute01(); + } + + /* + * @testName: testExecute03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:698; JDBC:JAVADOC:699; + * JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:182; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling execute() method + * without setting the parameters.An SQL Exception must be thrown. (See JDK + * 1.2.2 API documentation) + * + */ + @Test + @TargetVehicle("jsp") + + public void testExecute03() throws Exception { + super.testExecute03(); + } + + /* + * @testName: testExecuteQuery01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:652; JDBC:JAVADOC:653; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement by calling executeQuery() + * method. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("jsp") + + public void testExecuteQuery01() throws Exception { + super.testExecuteQuery01(); + } + + /* + * @testName: testExecuteQuery02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:652; JDBC:JAVADOC:653; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement by calling executeQuery() + * method with a non existent row. A call to ResultSet.next() should return a + * false value. + */ + @Test + @TargetVehicle("jsp") + + public void testExecuteQuery02() throws Exception { + super.testExecuteQuery02(); + } + + /* + * @testName: testExecuteQuery03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:652; JDBC:JAVADOC:653; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling executeQuery() + * method without setting the parameters. It should throw a SQL Exception. + */ + @Test + @TargetVehicle("jsp") + + public void testExecuteQuery03() throws Exception { + super.testExecuteQuery03(); + } + + /* + * @testName: testExecuteUpdate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:654; JDBC:JAVADOC:655; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the PreparedStatement + * object. Execute the precompiled SQL Statement by calling executeUpdate() + * method. It should return an integer value indicating the number of rows + * that were affected. (The value could be zero if zero rows are affected). + */ + @Test + @TargetVehicle("jsp") + + public void testExecuteUpdate01() throws Exception { + super.testExecuteUpdate01(); + } + + /* + * @testName: testExecuteUpdate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:654; JDBC:JAVADOC:655; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement by calling executeUpdate() + * method with a non existent row. It should return an Integer value. + */ + @Test + @TargetVehicle("jsp") + + public void testExecuteUpdate02() throws Exception { + super.testExecuteUpdate02(); + } + + /* + * @testName: testExecuteUpdate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:654; JDBC:JAVADOC:655; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement without setting the IN + * parameter. It should throw an SQL exception. + */ + @Test + @TargetVehicle("jsp") + + public void testExecuteUpdate03() throws Exception { + super.testExecuteUpdate03(); + } + + /* + * @testName: testSetBigDecimal01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:672; JDBC:JAVADOC:673; + * JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled.SQL Statement by calling the + * setBigDecimal(int parameterindex, BigDecimal x) method for updating the + * value of column MIN_VAL in Numeric_Tab.Check first the return value of + * executeUpdate() method used is equal to 1. Call the + * ResultSet.getBigDecimal(int columnIndex)method. Check if returns the + * BigDecimal Value that has been set. + */ + @Test + @TargetVehicle("jsp") + + public void testSetBigDecimal01() throws Exception { + super.testSetBigDecimal01(); + } + + /* + * @testName: testSetBigDecimal02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:672; JDBC:JAVADOC:673; + * JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the + * setBigDecimal(int parameterindex, BigDecimal x) method for updating the + * value of column NULL_VAL in Numeric_Tab. Call the + * ResultSet.getBigDecimal(int columnIndex) method. Check if returns the + * BigDecimal Value that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testSetBigDecimal02() throws Exception { + super.testSetBigDecimal02(); + } + + /* + * @testName: testSetBoolean01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:658; JDBC:JAVADOC:659; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the + * setBoolean(int parameterIndex, boolean x) to set MAX_VAL column of Bit_tab + * with the MIN_VAL of Bit_Tab. Call the ResultSet.getBoolean(int columnIndex) + * method to check if it returns the boolean Value that has been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetBoolean01() throws Exception { + super.testSetBoolean01(); + } + + /* + * @testName: testSetBoolean02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:658; JDBC:JAVADOC:659; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the method + * setBoolean(int parameterIndex, boolean x) to set NULL_VAL column of Bit_tab + * with the Max_Val of Bit_Tab. Call the ResultSet.getBoolean(int columnIndex) + * method to check if it returns the boolean Value that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testSetBoolean02() throws Exception { + super.testSetBoolean02(); + } + + /* + * @testName: testSetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:660; JDBC:JAVADOC:661; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the setByte(int + * parameterindex, byte x) method for updating MAX_VAL column of Tinyint_Tab. + * Call the ResultSet.getByte(int columnIndex) method to check if it returns + * the byte Value that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testSetByte01() throws Exception { + super.testSetByte01(); + } + + /* + * @testName: testSetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:660; JDBC:JAVADOC:661; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the setByte(int + * parameterindex, byte x) method for updating NULL_VAL column of Tinyint_Tab. + * Call the ResultSet.getByte(int columnIndex) method,to check if it returns + * the byte Value that has been set. + */ + @Test + @TargetVehicle("jsp") + + public void testSetByte02() throws Exception { + super.testSetByte02(); + } + + /* + * @testName: testSetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:668; JDBC:JAVADOC:669; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling the setFloat(int + * parameterindex, float x) method for updating the MAX_VAL column of + * Float_Tab. Call the ResultSet.getFloat(int columnIndex) method to check if + * it returns the float Value that has been set. + * + */ + @Test + @TargetVehicle("jsp") + + public void testSetFloat01() throws Exception { + super.testSetFloat01(); + } + + /* + * @testName: testSetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:668; JDBC:JAVADOC:669; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling the setFloat(int + * parameterindex, float x) method for updating the NULL_VAL column of + * Float_Tab. Call the ResultSet.getFloat(int columnIndex) method to check if + * it returns the float Value that has been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetFloat02() throws Exception { + super.testSetFloat02(); + } + + /* + * @testName: testSetInt01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:664; JDBC:JAVADOC:665; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling the setInt(int + * parameterindex, int x) method for updating the MAX_VAL column of + * Integer_Tab. Call the ResultSet.getInt(int columnIndex) method to check if + * it returns the integer Value that has been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetInt01() throws Exception { + super.testSetInt01(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1Servlet.java new file mode 100644 index 0000000000..e788f77ef2 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt1/prepStmtClient1Servlet.java @@ -0,0 +1,448 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient1 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-javatest") + +public class prepStmtClient1Servlet extends prepStmtClient1 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt1"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt1_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient1Servlet.class, prepStmtClient1.class); + // The servlet descriptor +URL servletUrl = prepStmtClient1Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient1Servlet.class.getResource("prepStmt1_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient1Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient1Servlet theTests = new prepStmtClient1Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetMetaData + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:712; + * JDBC:JAVADOC:713; JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:186; + * JavaEE:SPEC:186.2; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the getMetaData() method and get the number of columns + * using getColumnCount() method of ResultSetMetaData.Execute a query using + * executeQuery() method and get the number of columns. Both the values should + * be equal or it should throw an SQL exception. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMetaData() throws Exception { + super.testGetMetaData(); + } + + /* + * @testName: testClearParameters + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:690; + * JDBC:JAVADOC:691; JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:186; + * + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Call the clearParameters() method.Call the executeQuery() method to + * check if the call to clearParameters() clears the IN parameter set by the + * Prepared Statement object. + */ + @Test + @TargetVehicle("servlet") + public void testClearParameters() throws Exception { + super.testClearParameters(); + } + + /* + * @testName: testExecute01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:698; JDBC:JAVADOC:699; + * JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:182; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement of deleting a row. It should + * return a boolean value and the value should be equal to false. (See JDK + * 1.2.2 API documentation) + * + */ + @Test + @TargetVehicle("servlet") + + public void testExecute01() throws Exception { + super.testExecute01(); + } + + /* + * @testName: testExecute03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:698; JDBC:JAVADOC:699; + * JDBC:JAVADOC:1143; JDBC:JAVADOC:1144; JavaEE:SPEC:182; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling execute() method + * without setting the parameters.An SQL Exception must be thrown. (See JDK + * 1.2.2 API documentation) + * + */ + @Test + @TargetVehicle("servlet") + + public void testExecute03() throws Exception { + super.testExecute03(); + } + + /* + * @testName: testExecuteQuery01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:652; JDBC:JAVADOC:653; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement by calling executeQuery() + * method. It should return a ResultSet object. + * + */ + @Test + @TargetVehicle("servlet") + + public void testExecuteQuery01() throws Exception { + super.testExecuteQuery01(); + } + + /* + * @testName: testExecuteQuery02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:652; JDBC:JAVADOC:653; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement by calling executeQuery() + * method with a non existent row. A call to ResultSet.next() should return a + * false value. + */ + @Test + @TargetVehicle("servlet") + + public void testExecuteQuery02() throws Exception { + super.testExecuteQuery02(); + } + + /* + * @testName: testExecuteQuery03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:652; JDBC:JAVADOC:653; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling executeQuery() + * method without setting the parameters. It should throw a SQL Exception. + */ + @Test + @TargetVehicle("servlet") + + public void testExecuteQuery03() throws Exception { + super.testExecuteQuery03(); + } + + /* + * @testName: testExecuteUpdate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:654; JDBC:JAVADOC:655; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the PreparedStatement + * object. Execute the precompiled SQL Statement by calling executeUpdate() + * method. It should return an integer value indicating the number of rows + * that were affected. (The value could be zero if zero rows are affected). + */ + @Test + @TargetVehicle("servlet") + + public void testExecuteUpdate01() throws Exception { + super.testExecuteUpdate01(); + } + + /* + * @testName: testExecuteUpdate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:654; JDBC:JAVADOC:655; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Set the value for the IN parameter of the Prepared Statement + * object. Execute the precompiled SQL Statement by calling executeUpdate() + * method with a non existent row. It should return an Integer value. + */ + @Test + @TargetVehicle("servlet") + + public void testExecuteUpdate02() throws Exception { + super.testExecuteUpdate02(); + } + + /* + * @testName: testExecuteUpdate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:654; JDBC:JAVADOC:655; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement without setting the IN + * parameter. It should throw an SQL exception. + */ + @Test + @TargetVehicle("servlet") + + public void testExecuteUpdate03() throws Exception { + super.testExecuteUpdate03(); + } + + /* + * @testName: testSetBigDecimal01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:672; JDBC:JAVADOC:673; + * JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled.SQL Statement by calling the + * setBigDecimal(int parameterindex, BigDecimal x) method for updating the + * value of column MIN_VAL in Numeric_Tab.Check first the return value of + * executeUpdate() method used is equal to 1. Call the + * ResultSet.getBigDecimal(int columnIndex)method. Check if returns the + * BigDecimal Value that has been set. + */ + @Test + @TargetVehicle("servlet") + + public void testSetBigDecimal01() throws Exception { + super.testSetBigDecimal01(); + } + + /* + * @testName: testSetBigDecimal02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:672; JDBC:JAVADOC:673; + * JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the + * setBigDecimal(int parameterindex, BigDecimal x) method for updating the + * value of column NULL_VAL in Numeric_Tab. Call the + * ResultSet.getBigDecimal(int columnIndex) method. Check if returns the + * BigDecimal Value that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testSetBigDecimal02() throws Exception { + super.testSetBigDecimal02(); + } + + /* + * @testName: testSetBoolean01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:658; JDBC:JAVADOC:659; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the + * setBoolean(int parameterIndex, boolean x) to set MAX_VAL column of Bit_tab + * with the MIN_VAL of Bit_Tab. Call the ResultSet.getBoolean(int columnIndex) + * method to check if it returns the boolean Value that has been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetBoolean01() throws Exception { + super.testSetBoolean01(); + } + + /* + * @testName: testSetBoolean02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:658; JDBC:JAVADOC:659; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the method + * setBoolean(int parameterIndex, boolean x) to set NULL_VAL column of Bit_tab + * with the Max_Val of Bit_Tab. Call the ResultSet.getBoolean(int columnIndex) + * method to check if it returns the boolean Value that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testSetBoolean02() throws Exception { + super.testSetBoolean02(); + } + + /* + * @testName: testSetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:660; JDBC:JAVADOC:661; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the setByte(int + * parameterindex, byte x) method for updating MAX_VAL column of Tinyint_Tab. + * Call the ResultSet.getByte(int columnIndex) method to check if it returns + * the byte Value that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testSetByte01() throws Exception { + super.testSetByte01(); + } + + /* + * @testName: testSetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:660; JDBC:JAVADOC:661; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the precompiled SQL Statement by calling the setByte(int + * parameterindex, byte x) method for updating NULL_VAL column of Tinyint_Tab. + * Call the ResultSet.getByte(int columnIndex) method,to check if it returns + * the byte Value that has been set. + */ + @Test + @TargetVehicle("servlet") + + public void testSetByte02() throws Exception { + super.testSetByte02(); + } + + /* + * @testName: testSetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:668; JDBC:JAVADOC:669; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling the setFloat(int + * parameterindex, float x) method for updating the MAX_VAL column of + * Float_Tab. Call the ResultSet.getFloat(int columnIndex) method to check if + * it returns the float Value that has been set. + * + */ + @Test + @TargetVehicle("servlet") + + public void testSetFloat01() throws Exception { + super.testSetFloat01(); + } + + /* + * @testName: testSetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:668; JDBC:JAVADOC:669; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling the setFloat(int + * parameterindex, float x) method for updating the NULL_VAL column of + * Float_Tab. Call the ResultSet.getFloat(int columnIndex) method to check if + * it returns the float Value that has been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetFloat02() throws Exception { + super.testSetFloat02(); + } + + /* + * @testName: testSetInt01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:664; JDBC:JAVADOC:665; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling the setInt(int + * parameterindex, int x) method for updating the MAX_VAL column of + * Integer_Tab. Call the ResultSet.getInt(int columnIndex) method to check if + * it returns the integer Value that has been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetInt01() throws Exception { + super.testSetInt01(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/build.xml deleted file mode 100644 index 213d62e92a..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10.java index 5c0844043e..15bd24fd5d 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -53,6 +57,9 @@ * @author * @version 1.8, 11/27/00 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient10 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt10"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10AppClient.java new file mode 100644 index 0000000000..4a4f029f10 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10AppClient.java @@ -0,0 +1,476 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt10; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient10 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/27/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient10AppClient extends prepStmtClient10 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt10"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt10_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient10AppClient.class, prepStmtClient10.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient10AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient10AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient10AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt10_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient10AppClient theTests = new prepStmtClient10AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject123 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject123() throws Exception { + super.testSetObject123(); + } + + /* + * @testName: testSetObject124 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum (true) value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject124() throws Exception { + super.testSetObject124(); + } + + /* + * @testName: testSetObject125 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject125() throws Exception { + super.testSetObject125(); + } + + /* + * @testName: testSetObject126 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Double_Tab with the maximum (true) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject126() throws Exception { + super.testSetObject126(); + } + + /* + * @testName: testSetObject127 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Double_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject127() throws Exception { + super.testSetObject127(); + } + + /* + * @testName: testSetObject128 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Min_Val of Decimal_Tab with the maximum + * (true) value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (true) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject128() throws Exception { + super.testSetObject128(); + } + + /* + * @testName: testSetObject129 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * minimum (false) value of Integer_Tab. Call the getObject(int columnno) + * method to retrieve this value. Extract the minimum (false) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject129() throws Exception { + super.testSetObject129(); + } + + /* + * @testName: testSetObject130 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Min_Val of Numeric_Tab with the maximum + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject130() throws Exception { + super.testSetObject130(); + } + + /* + * @testName: testSetObject131 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject131() throws Exception { + super.testSetObject131(); + } + + /* + * @testName: testSetObject134 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject134() throws Exception { + super.testSetObject134(); + } + + /* + * @testName: testSetObject135 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject135() throws Exception { + super.testSetObject135(); + } + + /* + * @testName: testSetObject136 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject136() throws Exception { + super.testSetObject136(); + } + + /* + * @testName: testSetObject137 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject137() throws Exception { + super.testSetObject137(); + } + + /* + * @testName: testSetObject138 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject138() throws Exception { + super.testSetObject138(); + } + + /* + * @testName: testSetObject139 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject139() throws Exception { + super.testSetObject139(); + } + + /* + * @testName: testSetObject140 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject140() throws Exception { + super.testSetObject140(); + } + + /* + * @testName: testSetObject141 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject141() throws Exception { + super.testSetObject141(); + } + + /* + * @testName: testSetObject142 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Smallint_Tab with the maximum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("appclient") + + public void testSetObject142() throws Exception { + super.testSetObject142(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10EJB.java new file mode 100644 index 0000000000..c121669732 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10EJB.java @@ -0,0 +1,495 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt10; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient10 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/27/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient10EJB extends prepStmtClient10 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt10"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt10_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient10EJB.class, prepStmtClient10.class); + + URL resURL = prepStmtClient10EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = prepStmtClient10EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmt10_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt10_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient10EJB.class, prepStmtClient10.class); + + resURL = prepStmtClient10EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmt10_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient10EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt10_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient10EJB theTests = new prepStmtClient10EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject123 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject123() throws Exception { + super.testSetObject123(); + } + + /* + * @testName: testSetObject124 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum (true) value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject124() throws Exception { + super.testSetObject124(); + } + + /* + * @testName: testSetObject125 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject125() throws Exception { + super.testSetObject125(); + } + + /* + * @testName: testSetObject126 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Double_Tab with the maximum (true) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject126() throws Exception { + super.testSetObject126(); + } + + /* + * @testName: testSetObject127 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Double_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject127() throws Exception { + super.testSetObject127(); + } + + /* + * @testName: testSetObject128 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Min_Val of Decimal_Tab with the maximum + * (true) value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (true) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject128() throws Exception { + super.testSetObject128(); + } + + /* + * @testName: testSetObject129 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * minimum (false) value of Integer_Tab. Call the getObject(int columnno) + * method to retrieve this value. Extract the minimum (false) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject129() throws Exception { + super.testSetObject129(); + } + + /* + * @testName: testSetObject130 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Min_Val of Numeric_Tab with the maximum + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject130() throws Exception { + super.testSetObject130(); + } + + /* + * @testName: testSetObject131 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject131() throws Exception { + super.testSetObject131(); + } + + /* + * @testName: testSetObject134 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject134() throws Exception { + super.testSetObject134(); + } + + /* + * @testName: testSetObject135 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject135() throws Exception { + super.testSetObject135(); + } + + /* + * @testName: testSetObject136 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject136() throws Exception { + super.testSetObject136(); + } + + /* + * @testName: testSetObject137 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject137() throws Exception { + super.testSetObject137(); + } + + /* + * @testName: testSetObject138 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject138() throws Exception { + super.testSetObject138(); + } + + /* + * @testName: testSetObject139 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject139() throws Exception { + super.testSetObject139(); + } + + /* + * @testName: testSetObject140 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject140() throws Exception { + super.testSetObject140(); + } + + /* + * @testName: testSetObject141 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject141() throws Exception { + super.testSetObject141(); + } + + /* + * @testName: testSetObject142 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Smallint_Tab with the maximum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("ejb") + + public void testSetObject142() throws Exception { + super.testSetObject142(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10JSP.java new file mode 100644 index 0000000000..049af0d5d7 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10JSP.java @@ -0,0 +1,479 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt10; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient10 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/27/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient10JSP extends prepStmtClient10 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt10"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt10_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient10JSP.class, prepStmtClient10.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient10JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient10JSP.class.getResource("prepStmt10_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient10JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(prepStmtClient10JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient10JSP theTests = new prepStmtClient10JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject123 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject123() throws Exception { + super.testSetObject123(); + } + + /* + * @testName: testSetObject124 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum (true) value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject124() throws Exception { + super.testSetObject124(); + } + + /* + * @testName: testSetObject125 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject125() throws Exception { + super.testSetObject125(); + } + + /* + * @testName: testSetObject126 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Double_Tab with the maximum (true) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject126() throws Exception { + super.testSetObject126(); + } + + /* + * @testName: testSetObject127 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Double_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject127() throws Exception { + super.testSetObject127(); + } + + /* + * @testName: testSetObject128 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Min_Val of Decimal_Tab with the maximum + * (true) value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (true) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject128() throws Exception { + super.testSetObject128(); + } + + /* + * @testName: testSetObject129 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * minimum (false) value of Integer_Tab. Call the getObject(int columnno) + * method to retrieve this value. Extract the minimum (false) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject129() throws Exception { + super.testSetObject129(); + } + + /* + * @testName: testSetObject130 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Min_Val of Numeric_Tab with the maximum + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject130() throws Exception { + super.testSetObject130(); + } + + /* + * @testName: testSetObject131 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject131() throws Exception { + super.testSetObject131(); + } + + /* + * @testName: testSetObject134 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject134() throws Exception { + super.testSetObject134(); + } + + /* + * @testName: testSetObject135 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject135() throws Exception { + super.testSetObject135(); + } + + /* + * @testName: testSetObject136 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject136() throws Exception { + super.testSetObject136(); + } + + /* + * @testName: testSetObject137 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject137() throws Exception { + super.testSetObject137(); + } + + /* + * @testName: testSetObject138 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject138() throws Exception { + super.testSetObject138(); + } + + /* + * @testName: testSetObject139 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject139() throws Exception { + super.testSetObject139(); + } + + /* + * @testName: testSetObject140 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject140() throws Exception { + super.testSetObject140(); + } + + /* + * @testName: testSetObject141 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject141() throws Exception { + super.testSetObject141(); + } + + /* + * @testName: testSetObject142 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Smallint_Tab with the maximum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("jsp") + + public void testSetObject142() throws Exception { + super.testSetObject142(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10Servlet.java new file mode 100644 index 0000000000..c9e220ac7f --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt10/prepStmtClient10Servlet.java @@ -0,0 +1,468 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt10; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient10 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/27/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient10Servlet extends prepStmtClient10 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt10"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt10_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient10Servlet.class, prepStmtClient10.class); + // The servlet descriptor +URL servletUrl = prepStmtClient10Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient10Servlet.class.getResource("prepStmt10_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient10Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient10Servlet theTests = new prepStmtClient10Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject123 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject123() throws Exception { + super.testSetObject123(); + } + + /* + * @testName: testSetObject124 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum (true) value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject124() throws Exception { + super.testSetObject124(); + } + + /* + * @testName: testSetObject125 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject125() throws Exception { + super.testSetObject125(); + } + + /* + * @testName: testSetObject126 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Double_Tab with the maximum (true) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject126() throws Exception { + super.testSetObject126(); + } + + /* + * @testName: testSetObject127 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Double_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject127() throws Exception { + super.testSetObject127(); + } + + /* + * @testName: testSetObject128 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Min_Val of Decimal_Tab with the maximum + * (true) value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (true) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject128() throws Exception { + super.testSetObject128(); + } + + /* + * @testName: testSetObject129 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * minimum (false) value of Integer_Tab. Call the getObject(int columnno) + * method to retrieve this value. Extract the minimum (false) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject129() throws Exception { + super.testSetObject129(); + } + + /* + * @testName: testSetObject130 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Min_Val of Numeric_Tab with the maximum + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject130() throws Exception { + super.testSetObject130(); + } + + /* + * @testName: testSetObject131 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Integer_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject131() throws Exception { + super.testSetObject131(); + } + + /* + * @testName: testSetObject134 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject134() throws Exception { + super.testSetObject134(); + } + + /* + * @testName: testSetObject135 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject135() throws Exception { + super.testSetObject135(); + } + + /* + * @testName: testSetObject136 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject136() throws Exception { + super.testSetObject136(); + } + + /* + * @testName: testSetObject137 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject137() throws Exception { + super.testSetObject137(); + } + + /* + * @testName: testSetObject138 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject138() throws Exception { + super.testSetObject138(); + } + + /* + * @testName: testSetObject139 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject139() throws Exception { + super.testSetObject139(); + } + + /* + * @testName: testSetObject140 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject140() throws Exception { + super.testSetObject140(); + } + + /* + * @testName: testSetObject141 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject141() throws Exception { + super.testSetObject141(); + } + + /* + * @testName: testSetObject142 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Smallint_Tab with the maximum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("servlet") + + public void testSetObject142() throws Exception { + super.testSetObject142(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/build.xml deleted file mode 100644 index 56cbf19676..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11.java index a3c4ac7a49..b456f3cf57 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -53,6 +57,9 @@ * @author * @version 1.8, 11/27/00 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient11 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt11"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11AppClient.java new file mode 100644 index 0000000000..d8b1f3cacd --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11AppClient.java @@ -0,0 +1,476 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient11.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt11; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient11 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/27/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient11AppClient extends prepStmtClient11 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt11"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt11_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient11AppClient.class, prepStmtClient11.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient11AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient11AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient11AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt11_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient11AppClient theTests = new prepStmtClient11AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject143 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Smallint_Tab with the minimum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject143() throws Exception { + super.testSetObject143(); + } + + /* + * @testName: testSetObject144 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Integer_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject144() throws Exception { + super.testSetObject144(); + } + + /* + * @testName: testSetObject145 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Integer_Tab with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject145() throws Exception { + super.testSetObject145(); + } + + /* + * @testName: testSetObject146 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Bigint_Tab with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject146() throws Exception { + super.testSetObject146(); + } + + /* + * @testName: testSetObject147 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Bigint_Tab with the minimum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject147() throws Exception { + super.testSetObject147(); + } + + /* + * @testName: testSetObject148 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Real_Tab with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject148() throws Exception { + super.testSetObject148(); + } + + /* + * @testName: testSetObject149 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Real_Tab with the minimum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject149() throws Exception { + super.testSetObject149(); + } + + /* + * @testName: testSetObject150 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column min_Val of Float_Tab with the maximum value of Float_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject150() throws Exception { + super.testSetObject150(); + } + + /* + * @testName: testSetObject151 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Float_Tab with the minimum value of Float_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject151() throws Exception { + super.testSetObject151(); + } + + /* + * @testName: testSetObject152 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method, update + * the column Min_Val of Double_Tab with the maximum value of Double_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject152() throws Exception { + super.testSetObject152(); + } + + /* + * @testName: testSetObject153 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Double_Tab with the minimum value of Double_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject153() throws Exception { + super.testSetObject153(); + } + + /* + * @testName: testSetObject154 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Decimal_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject154() throws Exception { + super.testSetObject154(); + } + + /* + * @testName: testSetObject155 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Decimal_Tab with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject155() throws Exception { + super.testSetObject155(); + } + + /* + * @testName: testSetObject156 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Numeric_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject156() throws Exception { + super.testSetObject156(); + } + + /* + * @testName: testSetObject157 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Numeric_Tab with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject157() throws Exception { + super.testSetObject157(); + + } + + /* + * @testName: testSetObject160 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject160() throws Exception { + super.testSetObject160(); + } + + /* + * @testName: testSetObject161 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the minimum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject161() throws Exception { + super.testSetObject161(); + } + + /* + * @testName: testSetObject162 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject162() throws Exception { + super.testSetObject162(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11EJB.java new file mode 100644 index 0000000000..23d70b08df --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11EJB.java @@ -0,0 +1,496 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient11.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt11; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient11 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/27/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient11EJB extends prepStmtClient11 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt11"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt11_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient11EJB.class, prepStmtClient11.class); + + URL resURL = prepStmtClient11EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = prepStmtClient11EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmt11_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt11_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient11EJB.class, prepStmtClient11.class); + + resURL = prepStmtClient11EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmt11_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient11EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt11_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient11EJB theTests = new prepStmtClient11EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject143 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Smallint_Tab with the minimum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject143() throws Exception { + super.testSetObject143(); + } + + /* + * @testName: testSetObject144 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Integer_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject144() throws Exception { + super.testSetObject144(); + } + + /* + * @testName: testSetObject145 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Integer_Tab with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject145() throws Exception { + super.testSetObject145(); + } + + /* + * @testName: testSetObject146 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Bigint_Tab with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject146() throws Exception { + super.testSetObject146(); + } + + /* + * @testName: testSetObject147 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Bigint_Tab with the minimum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject147() throws Exception { + super.testSetObject147(); + } + + /* + * @testName: testSetObject148 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Real_Tab with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject148() throws Exception { + super.testSetObject148(); + } + + /* + * @testName: testSetObject149 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Real_Tab with the minimum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject149() throws Exception { + super.testSetObject149(); + } + + /* + * @testName: testSetObject150 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column min_Val of Float_Tab with the maximum value of Float_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject150() throws Exception { + super.testSetObject150(); + } + + /* + * @testName: testSetObject151 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Float_Tab with the minimum value of Float_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject151() throws Exception { + super.testSetObject151(); + } + + /* + * @testName: testSetObject152 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method, update + * the column Min_Val of Double_Tab with the maximum value of Double_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject152() throws Exception { + super.testSetObject152(); + } + + /* + * @testName: testSetObject153 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Double_Tab with the minimum value of Double_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject153() throws Exception { + super.testSetObject153(); + } + + /* + * @testName: testSetObject154 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Decimal_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject154() throws Exception { + super.testSetObject154(); + } + + /* + * @testName: testSetObject155 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Decimal_Tab with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject155() throws Exception { + super.testSetObject155(); + } + + /* + * @testName: testSetObject156 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Numeric_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject156() throws Exception { + super.testSetObject156(); + } + + /* + * @testName: testSetObject157 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Numeric_Tab with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject157() throws Exception { + super.testSetObject157(); + + } + + /* + * @testName: testSetObject160 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject160() throws Exception { + super.testSetObject160(); + } + + /* + * @testName: testSetObject161 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the minimum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject161() throws Exception { + super.testSetObject161(); + } + + /* + * @testName: testSetObject162 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject162() throws Exception { + super.testSetObject162(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11JSP.java new file mode 100644 index 0000000000..3e728a9813 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11JSP.java @@ -0,0 +1,480 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient11.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt11; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient11 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/27/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient11JSP extends prepStmtClient11 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt11"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt11_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient11JSP.class, prepStmtClient11.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient11JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient11JSP.class.getResource("prepStmt11_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient11JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(prepStmtClient11JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient11JSP theTests = new prepStmtClient11JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject143 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Smallint_Tab with the minimum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject143() throws Exception { + super.testSetObject143(); + } + + /* + * @testName: testSetObject144 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Integer_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject144() throws Exception { + super.testSetObject144(); + } + + /* + * @testName: testSetObject145 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Integer_Tab with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject145() throws Exception { + super.testSetObject145(); + } + + /* + * @testName: testSetObject146 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Bigint_Tab with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject146() throws Exception { + super.testSetObject146(); + } + + /* + * @testName: testSetObject147 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Bigint_Tab with the minimum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject147() throws Exception { + super.testSetObject147(); + } + + /* + * @testName: testSetObject148 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Real_Tab with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject148() throws Exception { + super.testSetObject148(); + } + + /* + * @testName: testSetObject149 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Real_Tab with the minimum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject149() throws Exception { + super.testSetObject149(); + } + + /* + * @testName: testSetObject150 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column min_Val of Float_Tab with the maximum value of Float_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject150() throws Exception { + super.testSetObject150(); + } + + /* + * @testName: testSetObject151 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Float_Tab with the minimum value of Float_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject151() throws Exception { + super.testSetObject151(); + } + + /* + * @testName: testSetObject152 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method, update + * the column Min_Val of Double_Tab with the maximum value of Double_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject152() throws Exception { + super.testSetObject152(); + } + + /* + * @testName: testSetObject153 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Double_Tab with the minimum value of Double_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject153() throws Exception { + super.testSetObject153(); + } + + /* + * @testName: testSetObject154 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Decimal_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject154() throws Exception { + super.testSetObject154(); + } + + /* + * @testName: testSetObject155 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Decimal_Tab with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject155() throws Exception { + super.testSetObject155(); + } + + /* + * @testName: testSetObject156 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Numeric_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject156() throws Exception { + super.testSetObject156(); + } + + /* + * @testName: testSetObject157 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Numeric_Tab with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject157() throws Exception { + super.testSetObject157(); + + } + + /* + * @testName: testSetObject160 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject160() throws Exception { + super.testSetObject160(); + } + + /* + * @testName: testSetObject161 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the minimum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject161() throws Exception { + super.testSetObject161(); + } + + /* + * @testName: testSetObject162 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject162() throws Exception { + super.testSetObject162(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11Servlet.java new file mode 100644 index 0000000000..61c38bdbaf --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt11/prepStmtClient11Servlet.java @@ -0,0 +1,469 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient11.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt11; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient11 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/27/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient11Servlet extends prepStmtClient11 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt11"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt11_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient11Servlet.class, prepStmtClient11.class); + // The servlet descriptor +URL servletUrl = prepStmtClient11Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient11Servlet.class.getResource("prepStmt11_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient11Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient11Servlet theTests = new prepStmtClient11Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject143 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Smallint_Tab with the minimum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject143() throws Exception { + super.testSetObject143(); + } + + /* + * @testName: testSetObject144 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Integer_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject144() throws Exception { + super.testSetObject144(); + } + + /* + * @testName: testSetObject145 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Integer_Tab with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject145() throws Exception { + super.testSetObject145(); + } + + /* + * @testName: testSetObject146 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Bigint_Tab with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject146() throws Exception { + super.testSetObject146(); + } + + /* + * @testName: testSetObject147 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Bigint_Tab with the minimum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject147() throws Exception { + super.testSetObject147(); + } + + /* + * @testName: testSetObject148 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Real_Tab with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject148() throws Exception { + super.testSetObject148(); + } + + /* + * @testName: testSetObject149 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Real_Tab with the minimum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject149() throws Exception { + super.testSetObject149(); + } + + /* + * @testName: testSetObject150 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column min_Val of Float_Tab with the maximum value of Float_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject150() throws Exception { + super.testSetObject150(); + } + + /* + * @testName: testSetObject151 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Float_Tab with the minimum value of Float_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject151() throws Exception { + super.testSetObject151(); + } + + /* + * @testName: testSetObject152 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method, update + * the column Min_Val of Double_Tab with the maximum value of Double_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject152() throws Exception { + super.testSetObject152(); + } + + /* + * @testName: testSetObject153 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Double_Tab with the minimum value of Double_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject153() throws Exception { + super.testSetObject153(); + } + + /* + * @testName: testSetObject154 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Decimal_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject154() throws Exception { + super.testSetObject154(); + } + + /* + * @testName: testSetObject155 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Decimal_Tab with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject155() throws Exception { + super.testSetObject155(); + } + + /* + * @testName: testSetObject156 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val of Numeric_Tab with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject156() throws Exception { + super.testSetObject156(); + } + + /* + * @testName: testSetObject157 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Numeric_Tab with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject157() throws Exception { + super.testSetObject157(); + + } + + /* + * @testName: testSetObject160 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject160() throws Exception { + super.testSetObject160(); + } + + /* + * @testName: testSetObject161 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the minimum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject161() throws Exception { + super.testSetObject161(); + } + + /* + * @testName: testSetObject162 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject162() throws Exception { + super.testSetObject162(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/build.xml deleted file mode 100644 index f2d2873d2b..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12.java index 405e06df19..93c2a1937d 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12.java @@ -31,8 +31,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -52,6 +56,9 @@ * @author * @version 1.8, 11/27/00 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient12 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt12"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12AppClient.java new file mode 100644 index 0000000000..60c4af48ac --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12AppClient.java @@ -0,0 +1,350 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt12; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient12 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/27/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient12AppClient extends prepStmtClient12 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt12"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt12_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient12AppClient.class, prepStmtClient12.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient12AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient12AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient12AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt12_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient12AppClient theTests = new prepStmtClient12AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject163 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the minimum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject163() throws Exception { + super.testSetObject163(); + } + + /* + * @testName: testSetObject164 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Bigint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject164() throws Exception { + super.testSetObject164(); + } + + /* + * @testName: testSetObject165 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Bigint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject165() throws Exception { + super.testSetObject165(); + } + + /* + * @testName: testSetObject166 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject166() throws Exception { + super.testSetObject166(); + } + + /* + * @testName: testSetObject167 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject167() throws Exception { + super.testSetObject167(); + } + + /* + * @testName: testSetObject168 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject168() throws Exception { + super.testSetObject168(); + } + + /* + * @testName: testSetObject169 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject169() throws Exception { + super.testSetObject169(); + } + + /* + * @testName: testSetObject170 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the some integer value + * after converting it to Float. Call the getObject(int columnno) method to + * retrieve this value. Compare this value with the value that is inserted + * into the databse using setObject method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject170() throws Exception { + super.testSetObject170(); + } + + /* + * @testName: testSetObject174 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject174() throws Exception { + super.testSetObject174(); + } + + /* + * @testName: testSetObject175 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject175() throws Exception { + super.testSetObject175(); + } + + /* + * @testName: testSetObject176 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject176() throws Exception { + super.testSetObject176(); + } + + /* + * @testName: testSetObject177 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject177() throws Exception { + super.testSetObject177(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12EJB.java new file mode 100644 index 0000000000..f45146bc3b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12EJB.java @@ -0,0 +1,370 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt12; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient12 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/27/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient12EJB extends prepStmtClient12 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt12"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt12_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient12EJB.class, prepStmtClient12.class); + + URL resURL = prepStmtClient12EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = prepStmtClient12EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmt12_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt12_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient12EJB.class, prepStmtClient12.class); + + resURL = prepStmtClient12EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmt12_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient12EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt12_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient12EJB theTests = new prepStmtClient12EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject163 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the minimum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject163() throws Exception { + super.testSetObject163(); + } + + /* + * @testName: testSetObject164 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Bigint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject164() throws Exception { + super.testSetObject164(); + } + + /* + * @testName: testSetObject165 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Bigint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject165() throws Exception { + super.testSetObject165(); + } + + /* + * @testName: testSetObject166 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject166() throws Exception { + super.testSetObject166(); + } + + /* + * @testName: testSetObject167 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject167() throws Exception { + super.testSetObject167(); + } + + /* + * @testName: testSetObject168 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject168() throws Exception { + super.testSetObject168(); + } + + /* + * @testName: testSetObject169 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject169() throws Exception { + super.testSetObject169(); + } + + /* + * @testName: testSetObject170 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the some integer value + * after converting it to Float. Call the getObject(int columnno) method to + * retrieve this value. Compare this value with the value that is inserted + * into the databse using setObject method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject170() throws Exception { + super.testSetObject170(); + } + + /* + * @testName: testSetObject174 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject174() throws Exception { + super.testSetObject174(); + } + + /* + * @testName: testSetObject175 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject175() throws Exception { + super.testSetObject175(); + } + + /* + * @testName: testSetObject176 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject176() throws Exception { + super.testSetObject176(); + } + + /* + * @testName: testSetObject177 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject177() throws Exception { + super.testSetObject177(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12JSP.java new file mode 100644 index 0000000000..2d658ea698 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12JSP.java @@ -0,0 +1,354 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt12; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient12 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/27/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient12JSP extends prepStmtClient12 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt12"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt12_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient12JSP.class, prepStmtClient12.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient12JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient12JSP.class.getResource("prepStmt12_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient12JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(prepStmtClient12JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient12JSP theTests = new prepStmtClient12JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject163 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the minimum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject163() throws Exception { + super.testSetObject163(); + } + + /* + * @testName: testSetObject164 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Bigint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject164() throws Exception { + super.testSetObject164(); + } + + /* + * @testName: testSetObject165 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Bigint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject165() throws Exception { + super.testSetObject165(); + } + + /* + * @testName: testSetObject166 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject166() throws Exception { + super.testSetObject166(); + } + + /* + * @testName: testSetObject167 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject167() throws Exception { + super.testSetObject167(); + } + + /* + * @testName: testSetObject168 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject168() throws Exception { + super.testSetObject168(); + } + + /* + * @testName: testSetObject169 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject169() throws Exception { + super.testSetObject169(); + } + + /* + * @testName: testSetObject170 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the some integer value + * after converting it to Float. Call the getObject(int columnno) method to + * retrieve this value. Compare this value with the value that is inserted + * into the databse using setObject method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject170() throws Exception { + super.testSetObject170(); + } + + /* + * @testName: testSetObject174 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject174() throws Exception { + super.testSetObject174(); + } + + /* + * @testName: testSetObject175 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject175() throws Exception { + super.testSetObject175(); + } + + /* + * @testName: testSetObject176 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject176() throws Exception { + super.testSetObject176(); + } + + /* + * @testName: testSetObject177 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject177() throws Exception { + super.testSetObject177(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12Servlet.java new file mode 100644 index 0000000000..c95bce6639 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt12/prepStmtClient12Servlet.java @@ -0,0 +1,343 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt12; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient12 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/27/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient12Servlet extends prepStmtClient12 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt12"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt12_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient12Servlet.class, prepStmtClient12.class); + // The servlet descriptor +URL servletUrl = prepStmtClient12Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient12Servlet.class.getResource("prepStmt12_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient12Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient12Servlet theTests = new prepStmtClient12Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject163 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the minimum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject163() throws Exception { + super.testSetObject163(); + } + + /* + * @testName: testSetObject164 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Bigint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject164() throws Exception { + super.testSetObject164(); + } + + /* + * @testName: testSetObject165 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Bigint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject165() throws Exception { + super.testSetObject165(); + } + + /* + * @testName: testSetObject166 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject166() throws Exception { + super.testSetObject166(); + } + + /* + * @testName: testSetObject167 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject167() throws Exception { + super.testSetObject167(); + } + + /* + * @testName: testSetObject168 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject168() throws Exception { + super.testSetObject168(); + } + + /* + * @testName: testSetObject169 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject169() throws Exception { + super.testSetObject169(); + } + + /* + * @testName: testSetObject170 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the some integer value + * after converting it to Float. Call the getObject(int columnno) method to + * retrieve this value. Compare this value with the value that is inserted + * into the databse using setObject method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject170() throws Exception { + super.testSetObject170(); + } + + /* + * @testName: testSetObject174 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject174() throws Exception { + super.testSetObject174(); + } + + /* + * @testName: testSetObject175 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject175() throws Exception { + super.testSetObject175(); + } + + /* + * @testName: testSetObject176 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject176() throws Exception { + super.testSetObject176(); + } + + /* + * @testName: testSetObject177 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject177() throws Exception { + super.testSetObject177(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/build.xml deleted file mode 100644 index de0afa879b..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/build.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13.java index 37e02ff8cf..ee1307e704 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -54,6 +58,9 @@ * @author * @version 1.8, 11/24/00 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient13 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt13"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13AppClient.java new file mode 100644 index 0000000000..a02ff65887 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13AppClient.java @@ -0,0 +1,452 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient13.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt13; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient13 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ +@Tag("tck-appclient") + +public class prepStmtClient13AppClient extends prepStmtClient13 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt13"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt13_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient13AppClient.class, prepStmtClient13.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient13AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient13AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient13AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt13_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient13AppClient theTests = new prepStmtClient13AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject183 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject183() throws Exception { + super.testSetObject183(); + } + + /* + * @testName: testSetObject186 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject186() throws Exception { + super.testSetObject186(); + } + + /* + * @testName: testSetObject187 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject187() throws Exception { + super.testSetObject187(); + } + + /* + * @testName: testSetObject188 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject188() throws Exception { + super.testSetObject188(); + } + + /* + * @testName: testSetObject189 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject189() throws Exception { + super.testSetObject189(); + } + + /* + * @testName: testSetObject190 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Float_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject190() throws Exception { + super.testSetObject190(); + } + + /* + * @testName: testSetObject191 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Float_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject191() throws Exception { + super.testSetObject191(); + } + + /* + * @testName: testSetObject192 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject192() throws Exception { + super.testSetObject192(); + } + + /* + * @testName: testSetObject193 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject193() throws Exception { + super.testSetObject193(); + } + + /* + * @testName: testSetObject194 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject194() throws Exception { + super.testSetObject194(); + } + + /* + * @testName: testSetObject195 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject195() throws Exception { + super.testSetObject195(); + } + + /* + * @testName: testSetObject196 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the maximum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject196() throws Exception { + super.testSetObject196(); + } + + /* + * @testName: testSetObject197 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Integer_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject197() throws Exception { + super.testSetObject197(); + } + + /* + * @testName: testSetObject198 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method, update the column Min_Val of Bigint_Tab with the a long value after + * converting that to a Double. Call the getObject(int columnno) method to + * retrieve this value. Compare this value with the value being sent to + * database. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject198() throws Exception { + super.testSetObject198(); + } + + /* + * @testName: testSetObject200 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject200() throws Exception { + super.testSetObject200(); + } + + /* + * @testName: testSetObject201 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject201() throws Exception { + super.testSetObject201(); + } + + /* + * @testName: testSetObject202 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject202() throws Exception { + super.testSetObject202(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13EJB.java new file mode 100644 index 0000000000..06617e35d3 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13EJB.java @@ -0,0 +1,473 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient13.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt13; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt12.prepStmtClient12EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient13 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ +@Tag("tck-appclient") + +public class prepStmtClient13EJB extends prepStmtClient13 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt13"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt13_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient13EJB.class, prepStmtClient13.class); + + URL resURL = prepStmtClient13EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = prepStmtClient13EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmt13_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt13_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient13EJB.class, prepStmtClient13.class); + + resURL = prepStmtClient13EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmt13_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient13EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt13_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient13EJB theTests = new prepStmtClient13EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject183 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject183() throws Exception { + super.testSetObject183(); + } + + /* + * @testName: testSetObject186 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject186() throws Exception { + super.testSetObject186(); + } + + /* + * @testName: testSetObject187 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject187() throws Exception { + super.testSetObject187(); + } + + /* + * @testName: testSetObject188 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject188() throws Exception { + super.testSetObject188(); + } + + /* + * @testName: testSetObject189 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject189() throws Exception { + super.testSetObject189(); + } + + /* + * @testName: testSetObject190 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Float_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject190() throws Exception { + super.testSetObject190(); + } + + /* + * @testName: testSetObject191 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Float_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject191() throws Exception { + super.testSetObject191(); + } + + /* + * @testName: testSetObject192 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject192() throws Exception { + super.testSetObject192(); + } + + /* + * @testName: testSetObject193 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject193() throws Exception { + super.testSetObject193(); + } + + /* + * @testName: testSetObject194 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject194() throws Exception { + super.testSetObject194(); + } + + /* + * @testName: testSetObject195 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject195() throws Exception { + super.testSetObject195(); + } + + /* + * @testName: testSetObject196 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the maximum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject196() throws Exception { + super.testSetObject196(); + } + + /* + * @testName: testSetObject197 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Integer_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject197() throws Exception { + super.testSetObject197(); + } + + /* + * @testName: testSetObject198 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method, update the column Min_Val of Bigint_Tab with the a long value after + * converting that to a Double. Call the getObject(int columnno) method to + * retrieve this value. Compare this value with the value being sent to + * database. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject198() throws Exception { + super.testSetObject198(); + } + + /* + * @testName: testSetObject200 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject200() throws Exception { + super.testSetObject200(); + } + + /* + * @testName: testSetObject201 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject201() throws Exception { + super.testSetObject201(); + } + + /* + * @testName: testSetObject202 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject202() throws Exception { + super.testSetObject202(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13JSP.java new file mode 100644 index 0000000000..55a60b8da6 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13JSP.java @@ -0,0 +1,457 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient13.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt13; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient13 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient13JSP extends prepStmtClient13 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt13"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt13_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient13JSP.class, prepStmtClient13.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient13JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient13JSP.class.getResource("prepStmt13_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient13JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(prepStmtClient13JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient13JSP theTests = new prepStmtClient13JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject183 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject183() throws Exception { + super.testSetObject183(); + } + + /* + * @testName: testSetObject186 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject186() throws Exception { + super.testSetObject186(); + } + + /* + * @testName: testSetObject187 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject187() throws Exception { + super.testSetObject187(); + } + + /* + * @testName: testSetObject188 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject188() throws Exception { + super.testSetObject188(); + } + + /* + * @testName: testSetObject189 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject189() throws Exception { + super.testSetObject189(); + } + + /* + * @testName: testSetObject190 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Float_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject190() throws Exception { + super.testSetObject190(); + } + + /* + * @testName: testSetObject191 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Float_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject191() throws Exception { + super.testSetObject191(); + } + + /* + * @testName: testSetObject192 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject192() throws Exception { + super.testSetObject192(); + } + + /* + * @testName: testSetObject193 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject193() throws Exception { + super.testSetObject193(); + } + + /* + * @testName: testSetObject194 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject194() throws Exception { + super.testSetObject194(); + } + + /* + * @testName: testSetObject195 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject195() throws Exception { + super.testSetObject195(); + } + + /* + * @testName: testSetObject196 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the maximum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject196() throws Exception { + super.testSetObject196(); + } + + /* + * @testName: testSetObject197 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Integer_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject197() throws Exception { + super.testSetObject197(); + } + + /* + * @testName: testSetObject198 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method, update the column Min_Val of Bigint_Tab with the a long value after + * converting that to a Double. Call the getObject(int columnno) method to + * retrieve this value. Compare this value with the value being sent to + * database. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject198() throws Exception { + super.testSetObject198(); + } + + /* + * @testName: testSetObject200 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject200() throws Exception { + super.testSetObject200(); + } + + /* + * @testName: testSetObject201 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject201() throws Exception { + super.testSetObject201(); + } + + /* + * @testName: testSetObject202 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject202() throws Exception { + super.testSetObject202(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13Servlet.java new file mode 100644 index 0000000000..2549aa531a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt13/prepStmtClient13Servlet.java @@ -0,0 +1,446 @@ +/* + * Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient13.java 1.19 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt13; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient13 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient13Servlet extends prepStmtClient13 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt13"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt13_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient13Servlet.class, prepStmtClient13.class); + // The servlet descriptor +URL servletUrl = prepStmtClient13Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient13Servlet.class.getResource("prepStmt13_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient13Servlet.class, sunServletUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient13Servlet theTests = new prepStmtClient13Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject183 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject183() throws Exception { + super.testSetObject183(); + } + + /* + * @testName: testSetObject186 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject186() throws Exception { + super.testSetObject186(); + } + + /* + * @testName: testSetObject187 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject187() throws Exception { + super.testSetObject187(); + } + + /* + * @testName: testSetObject188 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject188() throws Exception { + super.testSetObject188(); + } + + /* + * @testName: testSetObject189 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject189() throws Exception { + super.testSetObject189(); + } + + /* + * @testName: testSetObject190 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Float_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject190() throws Exception { + super.testSetObject190(); + } + + /* + * @testName: testSetObject191 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Float_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject191() throws Exception { + super.testSetObject191(); + } + + /* + * @testName: testSetObject192 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject192() throws Exception { + super.testSetObject192(); + } + + /* + * @testName: testSetObject193 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Tinyint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject193() throws Exception { + super.testSetObject193(); + } + + /* + * @testName: testSetObject194 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject194() throws Exception { + super.testSetObject194(); + } + + /* + * @testName: testSetObject195 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum value of + * Smallint_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject195() throws Exception { + super.testSetObject195(); + } + + /* + * @testName: testSetObject196 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the maximum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject196() throws Exception { + super.testSetObject196(); + } + + /* + * @testName: testSetObject197 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Integer_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject197() throws Exception { + super.testSetObject197(); + } + + /* + * @testName: testSetObject198 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method, update the column Min_Val of Bigint_Tab with the a long value after + * converting that to a Double. Call the getObject(int columnno) method to + * retrieve this value. Compare this value with the value being sent to + * database. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject198() throws Exception { + super.testSetObject198(); + } + + /* + * @testName: testSetObject200 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject200() throws Exception { + super.testSetObject200(); + } + + /* + * @testName: testSetObject201 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum value of + * Real_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject201() throws Exception { + super.testSetObject201(); + } + + /* + * @testName: testSetObject202 + * + * @assertion_ids: JDBC:SPEC:9;JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject202() throws Exception { + super.testSetObject202(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/build.xml deleted file mode 100644 index b7ec15cc66..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14.java index 587926ab0f..17b03daa37 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -53,6 +57,9 @@ * @author * @version 1.8, 11/24/00 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient14 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt14"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14AppClient.java new file mode 100644 index 0000000000..23ae987c00 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14AppClient.java @@ -0,0 +1,470 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient14.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt14; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient14 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-appclient") + + +public class prepStmtClient14AppClient extends prepStmtClient14 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt14"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt14_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient14AppClient.class, prepStmtClient14.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient14AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient14AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient14AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt14_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient14AppClient theTests = new prepStmtClient14AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject203 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject203() throws Exception { + super.testSetObject203(); + } + + /* + * @testName: testSetObject204 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Double_Tab with the maximum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject204() throws Exception { + super.testSetObject204(); + } + + /* + * @testName: testSetObject205 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Double_Tab with the minimum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject205() throws Exception { + super.testSetObject205(); + } + + /* + * @testName: testSetObject206 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject206() throws Exception { + super.testSetObject206(); + } + + /* + * @testName: testSetObject207 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * minimum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject207() throws Exception { + super.testSetObject207(); + } + + /* + * @testName: testSetObject208 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject208() throws Exception { + super.testSetObject208(); + } + + /* + * @testName: testSetObject209 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject209() throws Exception { + super.testSetObject209(); + } + + /* + * @testName: testSetObject212 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject212() throws Exception { + super.testSetObject212(); + } + + /* + * @testName: testSetObject213 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject213() throws Exception { + super.testSetObject213(); + } + + /* + * @testName: testSetObject214 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject214() throws Exception { + super.testSetObject214(); + } + + /* + * @testName: testSetObject215 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject215() throws Exception { + super.testSetObject215(); + } + + /* + * @testName: testSetObject216 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Double_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject216() throws Exception { + super.testSetObject216(); + } + + /* + * @testName: testSetObject217 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Double_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject217() throws Exception { + super.testSetObject217(); + } + + /* + * @testName: testSetObject218 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column value of Binary_Tab with a byte array. Call the + * getObject(int columnno) method to retrieve the Byte array. It should return + * the Byte array that has been set. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject218() throws Exception { + super.testSetObject218(); + } + + /* + * @testName: testSetObject219 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column value of Varbinary_Tab with a byte array. Call the + * getObject(int columnno) method to retrieve the Byte array. It should return + * the Byte array that has been set + * + */ + @Test + @TargetVehicle("appclient") + public void testSetObject219() throws Exception { + super.testSetObject219(); + } + + /* + * @testName: testSetObject220 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column value of Longvarbinary_Tab with a byte array. Call + * the getObject(int columnno) method to retrieve the Byte array. It should + * return the Byte array that has been set + * + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject220() throws Exception { + super.testSetObject220(); + } + + /* + * @testName: testSetObject221 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum (mfg date) + * value of Date_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (mfg date) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject221() throws Exception { + super.testSetObject221(); + } + + /* + * @testName: testSetObject222 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum (mfg + * date) value of Date_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (mfg date) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject222() throws Exception { + super.testSetObject222(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14EJB.java new file mode 100644 index 0000000000..d6156cd501 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14EJB.java @@ -0,0 +1,490 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient14.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt14; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt13.prepStmtClient13EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient14 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient14EJB extends prepStmtClient14 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt14"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt14_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient14EJB.class, prepStmtClient14.class); + + URL resURL = prepStmtClient14EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = prepStmtClient14EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmt14_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt14_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient14EJB.class, prepStmtClient14.class); + + resURL = prepStmtClient14EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmt14_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient14EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt14_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient14EJB theTests = new prepStmtClient14EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject203 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject203() throws Exception { + super.testSetObject203(); + } + + /* + * @testName: testSetObject204 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Double_Tab with the maximum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject204() throws Exception { + super.testSetObject204(); + } + + /* + * @testName: testSetObject205 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Double_Tab with the minimum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject205() throws Exception { + super.testSetObject205(); + } + + /* + * @testName: testSetObject206 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject206() throws Exception { + super.testSetObject206(); + } + + /* + * @testName: testSetObject207 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * minimum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject207() throws Exception { + super.testSetObject207(); + } + + /* + * @testName: testSetObject208 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject208() throws Exception { + super.testSetObject208(); + } + + /* + * @testName: testSetObject209 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject209() throws Exception { + super.testSetObject209(); + } + + /* + * @testName: testSetObject212 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject212() throws Exception { + super.testSetObject212(); + } + + /* + * @testName: testSetObject213 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject213() throws Exception { + super.testSetObject213(); + } + + /* + * @testName: testSetObject214 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject214() throws Exception { + super.testSetObject214(); + } + + /* + * @testName: testSetObject215 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject215() throws Exception { + super.testSetObject215(); + } + + /* + * @testName: testSetObject216 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Double_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject216() throws Exception { + super.testSetObject216(); + } + + /* + * @testName: testSetObject217 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Double_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject217() throws Exception { + super.testSetObject217(); + } + + /* + * @testName: testSetObject218 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column value of Binary_Tab with a byte array. Call the + * getObject(int columnno) method to retrieve the Byte array. It should return + * the Byte array that has been set. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject218() throws Exception { + super.testSetObject218(); + } + + /* + * @testName: testSetObject219 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column value of Varbinary_Tab with a byte array. Call the + * getObject(int columnno) method to retrieve the Byte array. It should return + * the Byte array that has been set + * + */ + @Test + @TargetVehicle("ejb") + public void testSetObject219() throws Exception { + super.testSetObject219(); + } + + /* + * @testName: testSetObject220 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column value of Longvarbinary_Tab with a byte array. Call + * the getObject(int columnno) method to retrieve the Byte array. It should + * return the Byte array that has been set + * + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject220() throws Exception { + super.testSetObject220(); + } + + /* + * @testName: testSetObject221 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum (mfg date) + * value of Date_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (mfg date) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject221() throws Exception { + super.testSetObject221(); + } + + /* + * @testName: testSetObject222 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum (mfg + * date) value of Date_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (mfg date) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject222() throws Exception { + super.testSetObject222(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14JSP.java new file mode 100644 index 0000000000..1786dde2ca --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14JSP.java @@ -0,0 +1,474 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient14.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt14; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient14 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + + +@Tag("tck-javatest") + +public class prepStmtClient14JSP extends prepStmtClient14 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt14"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt14_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient14JSP.class, prepStmtClient14.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient14JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient14JSP.class.getResource("prepStmt14_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient14JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(prepStmtClient14JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient14JSP theTests = new prepStmtClient14JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject203 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject203() throws Exception { + super.testSetObject203(); + } + + /* + * @testName: testSetObject204 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Double_Tab with the maximum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject204() throws Exception { + super.testSetObject204(); + } + + /* + * @testName: testSetObject205 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Double_Tab with the minimum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject205() throws Exception { + super.testSetObject205(); + } + + /* + * @testName: testSetObject206 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject206() throws Exception { + super.testSetObject206(); + } + + /* + * @testName: testSetObject207 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * minimum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject207() throws Exception { + super.testSetObject207(); + } + + /* + * @testName: testSetObject208 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject208() throws Exception { + super.testSetObject208(); + } + + /* + * @testName: testSetObject209 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject209() throws Exception { + super.testSetObject209(); + } + + /* + * @testName: testSetObject212 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject212() throws Exception { + super.testSetObject212(); + } + + /* + * @testName: testSetObject213 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject213() throws Exception { + super.testSetObject213(); + } + + /* + * @testName: testSetObject214 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject214() throws Exception { + super.testSetObject214(); + } + + /* + * @testName: testSetObject215 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject215() throws Exception { + super.testSetObject215(); + } + + /* + * @testName: testSetObject216 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Double_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject216() throws Exception { + super.testSetObject216(); + } + + /* + * @testName: testSetObject217 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Double_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject217() throws Exception { + super.testSetObject217(); + } + + /* + * @testName: testSetObject218 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column value of Binary_Tab with a byte array. Call the + * getObject(int columnno) method to retrieve the Byte array. It should return + * the Byte array that has been set. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject218() throws Exception { + super.testSetObject218(); + } + + /* + * @testName: testSetObject219 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column value of Varbinary_Tab with a byte array. Call the + * getObject(int columnno) method to retrieve the Byte array. It should return + * the Byte array that has been set + * + */ + @Test + @TargetVehicle("jsp") + public void testSetObject219() throws Exception { + super.testSetObject219(); + } + + /* + * @testName: testSetObject220 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column value of Longvarbinary_Tab with a byte array. Call + * the getObject(int columnno) method to retrieve the Byte array. It should + * return the Byte array that has been set + * + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject220() throws Exception { + super.testSetObject220(); + } + + /* + * @testName: testSetObject221 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum (mfg date) + * value of Date_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (mfg date) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject221() throws Exception { + super.testSetObject221(); + } + + /* + * @testName: testSetObject222 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum (mfg + * date) value of Date_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (mfg date) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject222() throws Exception { + super.testSetObject222(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14Servlet.java new file mode 100644 index 0000000000..b7d75a4b39 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt14/prepStmtClient14Servlet.java @@ -0,0 +1,462 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient14.java 1.20 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt14; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient14 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient14Servlet extends prepStmtClient14 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt14"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt14_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient14Servlet.class, prepStmtClient14.class); + // The servlet descriptor +URL servletUrl = prepStmtClient14Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient14Servlet.class.getResource("prepStmt14_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient14Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient14Servlet theTests = new prepStmtClient14Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject203 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum value of + * Float_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject203() throws Exception { + super.testSetObject203(); + } + + /* + * @testName: testSetObject204 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Double_Tab with the maximum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject204() throws Exception { + super.testSetObject204(); + } + + /* + * @testName: testSetObject205 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Double_Tab with the minimum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject205() throws Exception { + super.testSetObject205(); + } + + /* + * @testName: testSetObject206 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject206() throws Exception { + super.testSetObject206(); + } + + /* + * @testName: testSetObject207 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * minimum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject207() throws Exception { + super.testSetObject207(); + } + + /* + * @testName: testSetObject208 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject208() throws Exception { + super.testSetObject208(); + } + + /* + * @testName: testSetObject209 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:692; + * JDBC:JAVADOC:693; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject209() throws Exception { + super.testSetObject209(); + } + + /* + * @testName: testSetObject212 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject212() throws Exception { + super.testSetObject212(); + } + + /* + * @testName: testSetObject213 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject213() throws Exception { + super.testSetObject213(); + } + + /* + * @testName: testSetObject214 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject214() throws Exception { + super.testSetObject214(); + } + + /* + * @testName: testSetObject215 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Double_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject215() throws Exception { + super.testSetObject215(); + } + + /* + * @testName: testSetObject216 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Double_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject216() throws Exception { + super.testSetObject216(); + } + + /* + * @testName: testSetObject217 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Double_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject217() throws Exception { + super.testSetObject217(); + } + + /* + * @testName: testSetObject218 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column value of Binary_Tab with a byte array. Call the + * getObject(int columnno) method to retrieve the Byte array. It should return + * the Byte array that has been set. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject218() throws Exception { + super.testSetObject218(); + } + + /* + * @testName: testSetObject219 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column value of Varbinary_Tab with a byte array. Call the + * getObject(int columnno) method to retrieve the Byte array. It should return + * the Byte array that has been set + * + */ + @Test + @TargetVehicle("servlet") + public void testSetObject219() throws Exception { + super.testSetObject219(); + } + + /* + * @testName: testSetObject220 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column value of Longvarbinary_Tab with a byte array. Call + * the getObject(int columnno) method to retrieve the Byte array. It should + * return the Byte array that has been set + * + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject220() throws Exception { + super.testSetObject220(); + } + + /* + * @testName: testSetObject221 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum (mfg date) + * value of Date_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (mfg date) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject221() throws Exception { + super.testSetObject221(); + } + + /* + * @testName: testSetObject222 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum (mfg + * date) value of Date_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (mfg date) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject222() throws Exception { + super.testSetObject222(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/build.xml deleted file mode 100644 index c0dd958af7..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15.java index 66e5ab144d..9c55c85013 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -53,6 +57,9 @@ * @author * @version 1.8, 11/24/00 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient15 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt15"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15AppClient.java new file mode 100644 index 0000000000..99b5489c11 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15AppClient.java @@ -0,0 +1,373 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient15.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt15; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient15 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient15AppClient extends prepStmtClient15 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt15"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt15_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient15AppClient.class, prepStmtClient15.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient15AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient15AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient15AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt15_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient15AppClient theTests = new prepStmtClient15AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject223 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Longvarchar_Tab with the maximum (mfg date) value of + * Date_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg date) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject223() throws Exception { + super.testSetObject223(); + } + + /* + * @testName: testSetObject224 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Date_Tab with the maximum (mfg date) value of + * Date_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg date) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject224() throws Exception { + super.testSetObject224(); + } + + /* + * @testName: testSetObject225 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Timestamp_Tab with the maximum (mfg timestamp) value + * of Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (mfg timestamp) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject225() throws Exception { + super.testSetObject225(); + } + + /* + * @testName: testSetObject226 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the maximum (mfg time) value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject226() throws Exception { + super.testSetObject226(); + } + + /* + * @testName: testSetObject227 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum (mfg time)value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject227() throws Exception { + super.testSetObject228(); + } + + /* + * @testName: testSetObject228 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Longvarchar_Tab with the maximum (mfg time) value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject228() throws Exception { + super.testSetObject228(); + } + + /* + * @testName: testSetObject229 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Time_Tab with the maximum (mfg time) value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject229() throws Exception { + super.testSetObject229(); + } + + /* + * @testName: testSetObject230 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject230() throws Exception { + super.testSetObject230(); + } + + /* + * @testName: testSetObject231 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject231() throws Exception { + super.testSetObject231(); + } + + /* + * @testName: testSetObject232 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Longvarchar_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject232() throws Exception { + super.testSetObject232(); + } + + /* + * @testName: testSetObject233 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Date_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject233() throws Exception { + super.testSetObject233(); + } + + /* + * @testName: testSetObject234 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Time_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject234() throws Exception { + super.testSetObject234(); + } + + /* + * @testName: testSetObject235 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Timestamp_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject235() throws Exception { + super.testSetObject235(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15EJB.java new file mode 100644 index 0000000000..d5f28b3afe --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15EJB.java @@ -0,0 +1,392 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient15.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt15; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient15 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ +@Tag("tck-appclient") + + +public class prepStmtClient15EJB extends prepStmtClient15 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt15"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt15_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient15EJB.class, prepStmtClient15.class); + + URL resURL = prepStmtClient15EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = prepStmtClient15EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmt15_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt15_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient15EJB.class, prepStmtClient15.class); + + resURL = prepStmtClient15EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmt15_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient15EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt15_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient15EJB theTests = new prepStmtClient15EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject223 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Longvarchar_Tab with the maximum (mfg date) value of + * Date_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg date) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject223() throws Exception { + super.testSetObject223(); + } + + /* + * @testName: testSetObject224 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Date_Tab with the maximum (mfg date) value of + * Date_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg date) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject224() throws Exception { + super.testSetObject224(); + } + + /* + * @testName: testSetObject225 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Timestamp_Tab with the maximum (mfg timestamp) value + * of Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (mfg timestamp) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject225() throws Exception { + super.testSetObject225(); + } + + /* + * @testName: testSetObject226 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the maximum (mfg time) value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject226() throws Exception { + super.testSetObject226(); + } + + /* + * @testName: testSetObject227 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum (mfg time)value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject227() throws Exception { + super.testSetObject228(); + } + + /* + * @testName: testSetObject228 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Longvarchar_Tab with the maximum (mfg time) value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject228() throws Exception { + super.testSetObject228(); + } + + /* + * @testName: testSetObject229 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Time_Tab with the maximum (mfg time) value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject229() throws Exception { + super.testSetObject229(); + } + + /* + * @testName: testSetObject230 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject230() throws Exception { + super.testSetObject230(); + } + + /* + * @testName: testSetObject231 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject231() throws Exception { + super.testSetObject231(); + } + + /* + * @testName: testSetObject232 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Longvarchar_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject232() throws Exception { + super.testSetObject232(); + } + + /* + * @testName: testSetObject233 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Date_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject233() throws Exception { + super.testSetObject233(); + } + + /* + * @testName: testSetObject234 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Time_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject234() throws Exception { + super.testSetObject234(); + } + + /* + * @testName: testSetObject235 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Timestamp_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject235() throws Exception { + super.testSetObject235(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15JSP.java new file mode 100644 index 0000000000..178dc12042 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15JSP.java @@ -0,0 +1,376 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient15.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt15; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient15 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient15JSP extends prepStmtClient15 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt15"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt15_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient15JSP.class, prepStmtClient15.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient15JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient15JSP.class.getResource("prepStmt15_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient15JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(prepStmtClient15JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient15JSP theTests = new prepStmtClient15JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject223 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Longvarchar_Tab with the maximum (mfg date) value of + * Date_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg date) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject223() throws Exception { + super.testSetObject223(); + } + + /* + * @testName: testSetObject224 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Date_Tab with the maximum (mfg date) value of + * Date_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg date) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject224() throws Exception { + super.testSetObject224(); + } + + /* + * @testName: testSetObject225 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Timestamp_Tab with the maximum (mfg timestamp) value + * of Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (mfg timestamp) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject225() throws Exception { + super.testSetObject225(); + } + + /* + * @testName: testSetObject226 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the maximum (mfg time) value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject226() throws Exception { + super.testSetObject226(); + } + + /* + * @testName: testSetObject227 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum (mfg time)value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject227() throws Exception { + super.testSetObject228(); + } + + /* + * @testName: testSetObject228 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Longvarchar_Tab with the maximum (mfg time) value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject228() throws Exception { + super.testSetObject228(); + } + + /* + * @testName: testSetObject229 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Time_Tab with the maximum (mfg time) value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject229() throws Exception { + super.testSetObject229(); + } + + /* + * @testName: testSetObject230 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject230() throws Exception { + super.testSetObject230(); + } + + /* + * @testName: testSetObject231 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject231() throws Exception { + super.testSetObject231(); + } + + /* + * @testName: testSetObject232 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Longvarchar_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject232() throws Exception { + super.testSetObject232(); + } + + /* + * @testName: testSetObject233 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Date_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject233() throws Exception { + super.testSetObject233(); + } + + /* + * @testName: testSetObject234 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Time_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject234() throws Exception { + super.testSetObject234(); + } + + /* + * @testName: testSetObject235 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Timestamp_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject235() throws Exception { + super.testSetObject235(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15Servlet.java new file mode 100644 index 0000000000..fd3335bd49 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt15/prepStmtClient15Servlet.java @@ -0,0 +1,365 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient15.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt15; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient15 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient15Servlet extends prepStmtClient15 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt15"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt15_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient15Servlet.class, prepStmtClient15.class); + // The servlet descriptor +URL servletUrl = prepStmtClient15Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient15Servlet.class.getResource("prepStmt15_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient15Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient15Servlet theTests = new prepStmtClient15Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject223 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Longvarchar_Tab with the maximum (mfg date) value of + * Date_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg date) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject223() throws Exception { + super.testSetObject223(); + } + + /* + * @testName: testSetObject224 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Date_Tab with the maximum (mfg date) value of + * Date_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg date) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject224() throws Exception { + super.testSetObject224(); + } + + /* + * @testName: testSetObject225 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Timestamp_Tab with the maximum (mfg timestamp) value + * of Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (mfg timestamp) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject225() throws Exception { + super.testSetObject225(); + } + + /* + * @testName: testSetObject226 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the maximum (mfg time) value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject226() throws Exception { + super.testSetObject226(); + } + + /* + * @testName: testSetObject227 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum (mfg time)value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject227() throws Exception { + super.testSetObject228(); + } + + /* + * @testName: testSetObject228 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Longvarchar_Tab with the maximum (mfg time) value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject228() throws Exception { + super.testSetObject228(); + } + + /* + * @testName: testSetObject229 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Time_Tab with the maximum (mfg time) value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (mfg time) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject229() throws Exception { + super.testSetObject229(); + } + + /* + * @testName: testSetObject230 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Char_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject230() throws Exception { + super.testSetObject230(); + } + + /* + * @testName: testSetObject231 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Varchar_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject231() throws Exception { + super.testSetObject231(); + } + + /* + * @testName: testSetObject232 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Longvarchar_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject232() throws Exception { + super.testSetObject232(); + } + + /* + * @testName: testSetObject233 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Date_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject233() throws Exception { + super.testSetObject233(); + } + + /* + * @testName: testSetObject234 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Time_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject234() throws Exception { + super.testSetObject234(); + } + + /* + * @testName: testSetObject235 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:26; JDBC:JAVADOC:694; + * JDBC:JAVADOC:695; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val of Timestamp_Tab with the maximum (brktime) value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (brktime) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject235() throws Exception { + super.testSetObject235(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/build.xml deleted file mode 100644 index 83ddbce5b6..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16.java index fad0bdca7f..7468070181 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16.java @@ -41,8 +41,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -59,6 +63,9 @@ * @author * @version 1.0, 10/09/2002 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient16 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt16"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16AppClient.java new file mode 100644 index 0000000000..3c416acc4e --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16AppClient.java @@ -0,0 +1,184 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)prepStmtClient16.java 1.16 02/04/23 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt16; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient16 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.0, 10/09/2002 + */ + +@Tag("tck-appclient") + + +public class prepStmtClient16AppClient extends prepStmtClient16 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt16"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt16_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient16AppClient.class, prepStmtClient16.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient16AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient16AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient16AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt16_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient16AppClient theTests = new prepStmtClient16AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetParameterMetaData + * + * @assertion_ids: JavaEE:SPEC:186.3; JDBC:JAVADOC:724; JDBC:JAVADOC:725; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the method getParameterMetaData on the preparedStatement + * object. Get the information about the number of parameters by executing the + * method getParameterCount(). It should return the number of parameters. + * + */ + + @Test + @TargetVehicle("appclient") + public void testGetParameterMetaData() throws Exception { + super.testGetParameterMetaData(); + } + + /* + * @testName: testSetAsciiStream + * + * @assertion_ids: JavaEE:SPEC:186; JDBC:JAVADOC:684; JDBC:JAVADOC:685; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Get the InputStream object. Excecute the method + * preparedStatement.setAsciiStream to Update the Longvarchar_Tab_Name with + * the value extracted from the Char_Tab. Query the Longvarchar_Tab in the + * database to retrieve the value that is been set. Compare the value that is + * inserted with the value retrieved. These values should be equal. + * + */ + + @Test + @TargetVehicle("appclient") + public void testSetAsciiStream() throws Exception { + super.testSetAsciiStream(); + } + + /* + * @testName: testSetBinaryStream + * + * @assertion_ids: JavaEE:SPEC:186; JDBC:JAVADOC:688; JDBC:JAVADOC:689; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Get the InputStream object. Excecute the method + * preparedStatement.setBinaryStream to Update the Longvarbinary_Tab_Name with + * some byte array value. Query the Longvarbinary_Tab in the database to + * retrieve the value that is been set. Compare the byte array value that is + * inserted with the value retrieved. These cvalues should be equal. + * + */ + + @Test + @TargetVehicle("appclient") + public void testSetBinaryStream() throws Exception { + super.testSetBinaryStream(); + } + + /* + * @testName: testSetCharacterStream + * + * @assertion_ids: JavaEE:SPEC:186; JDBC:JAVADOC:702; JDBC:JAVADOC:703; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Get the InputStream object. Get a Reader object from this + * InputStream. Excecute the method preparedStatement.setCharacterStream to + * Update the Longvarchar_Tab_Name with the value extracted from Char_tab. + * Query the Longvarchar_Tab in the database to retrieve the value that is + * been set. Compare the byte array value that is inserted with the value + * retrieved. These values should be equal. + * + */ + + @Test + @TargetVehicle("appclient") + public void testSetCharacterStream() throws Exception { + super.testSetCharacterStream(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16EJB.java new file mode 100644 index 0000000000..d8f7c7816a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16EJB.java @@ -0,0 +1,204 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)prepStmtClient16.java 1.16 02/04/23 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt16; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt15.prepStmtClient15EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient16 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.0, 10/09/2002 + */ + +@Tag("tck-appclient") + +public class prepStmtClient16EJB extends prepStmtClient16 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt16"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt16_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient16EJB.class, prepStmtClient16.class); + + URL resURL = prepStmtClient16EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = prepStmtClient16EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmt16_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt16_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient16EJB.class, prepStmtClient16.class); + + resURL = prepStmtClient16EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmt16_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient16EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt16_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient16EJB theTests = new prepStmtClient16EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetParameterMetaData + * + * @assertion_ids: JavaEE:SPEC:186.3; JDBC:JAVADOC:724; JDBC:JAVADOC:725; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the method getParameterMetaData on the preparedStatement + * object. Get the information about the number of parameters by executing the + * method getParameterCount(). It should return the number of parameters. + * + */ + + @Test + @TargetVehicle("ejb") + public void testGetParameterMetaData() throws Exception { + super.testGetParameterMetaData(); + } + + /* + * @testName: testSetAsciiStream + * + * @assertion_ids: JavaEE:SPEC:186; JDBC:JAVADOC:684; JDBC:JAVADOC:685; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Get the InputStream object. Excecute the method + * preparedStatement.setAsciiStream to Update the Longvarchar_Tab_Name with + * the value extracted from the Char_Tab. Query the Longvarchar_Tab in the + * database to retrieve the value that is been set. Compare the value that is + * inserted with the value retrieved. These values should be equal. + * + */ + + @Test + @TargetVehicle("ejb") + public void testSetAsciiStream() throws Exception { + super.testSetAsciiStream(); + } + + /* + * @testName: testSetBinaryStream + * + * @assertion_ids: JavaEE:SPEC:186; JDBC:JAVADOC:688; JDBC:JAVADOC:689; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Get the InputStream object. Excecute the method + * preparedStatement.setBinaryStream to Update the Longvarbinary_Tab_Name with + * some byte array value. Query the Longvarbinary_Tab in the database to + * retrieve the value that is been set. Compare the byte array value that is + * inserted with the value retrieved. These cvalues should be equal. + * + */ + + @Test + @TargetVehicle("ejb") + public void testSetBinaryStream() throws Exception { + super.testSetBinaryStream(); + } + + /* + * @testName: testSetCharacterStream + * + * @assertion_ids: JavaEE:SPEC:186; JDBC:JAVADOC:702; JDBC:JAVADOC:703; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Get the InputStream object. Get a Reader object from this + * InputStream. Excecute the method preparedStatement.setCharacterStream to + * Update the Longvarchar_Tab_Name with the value extracted from Char_tab. + * Query the Longvarchar_Tab in the database to retrieve the value that is + * been set. Compare the byte array value that is inserted with the value + * retrieved. These values should be equal. + * + */ + + @Test + @TargetVehicle("ejb") + public void testSetCharacterStream() throws Exception { + super.testSetCharacterStream(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16JSP.java new file mode 100644 index 0000000000..1ab56104b3 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16JSP.java @@ -0,0 +1,187 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)prepStmtClient16.java 1.16 02/04/23 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt16; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient16 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.0, 10/09/2002 + */ + +@Tag("tck-javatest") + +public class prepStmtClient16JSP extends prepStmtClient16 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt16"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt16_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient16JSP.class, prepStmtClient16.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient16JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient16JSP.class.getResource("prepStmt16_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient16JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(prepStmtClient16JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient16JSP theTests = new prepStmtClient16JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetParameterMetaData + * + * @assertion_ids: JavaEE:SPEC:186.3; JDBC:JAVADOC:724; JDBC:JAVADOC:725; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the method getParameterMetaData on the preparedStatement + * object. Get the information about the number of parameters by executing the + * method getParameterCount(). It should return the number of parameters. + * + */ + + @Test + @TargetVehicle("jsp") + public void testGetParameterMetaData() throws Exception { + super.testGetParameterMetaData(); + } + + /* + * @testName: testSetAsciiStream + * + * @assertion_ids: JavaEE:SPEC:186; JDBC:JAVADOC:684; JDBC:JAVADOC:685; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Get the InputStream object. Excecute the method + * preparedStatement.setAsciiStream to Update the Longvarchar_Tab_Name with + * the value extracted from the Char_Tab. Query the Longvarchar_Tab in the + * database to retrieve the value that is been set. Compare the value that is + * inserted with the value retrieved. These values should be equal. + * + */ + + @Test + @TargetVehicle("jsp") + public void testSetAsciiStream() throws Exception { + super.testSetAsciiStream(); + } + + /* + * @testName: testSetBinaryStream + * + * @assertion_ids: JavaEE:SPEC:186; JDBC:JAVADOC:688; JDBC:JAVADOC:689; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Get the InputStream object. Excecute the method + * preparedStatement.setBinaryStream to Update the Longvarbinary_Tab_Name with + * some byte array value. Query the Longvarbinary_Tab in the database to + * retrieve the value that is been set. Compare the byte array value that is + * inserted with the value retrieved. These cvalues should be equal. + * + */ + + @Test + @TargetVehicle("jsp") + public void testSetBinaryStream() throws Exception { + super.testSetBinaryStream(); + } + + /* + * @testName: testSetCharacterStream + * + * @assertion_ids: JavaEE:SPEC:186; JDBC:JAVADOC:702; JDBC:JAVADOC:703; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Get the InputStream object. Get a Reader object from this + * InputStream. Excecute the method preparedStatement.setCharacterStream to + * Update the Longvarchar_Tab_Name with the value extracted from Char_tab. + * Query the Longvarchar_Tab in the database to retrieve the value that is + * been set. Compare the byte array value that is inserted with the value + * retrieved. These values should be equal. + * + */ + + @Test + @TargetVehicle("jsp") + public void testSetCharacterStream() throws Exception { + super.testSetCharacterStream(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16Servlet.java new file mode 100644 index 0000000000..47b8bd5f3b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt16/prepStmtClient16Servlet.java @@ -0,0 +1,178 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)prepStmtClient16.java 1.16 02/04/23 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt16; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient16 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.0, 10/09/2002 + */ + +@Tag("tck-javatest") + +public class prepStmtClient16Servlet extends prepStmtClient16 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt16"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt16_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient16Servlet.class, prepStmtClient16.class); + // The servlet descriptor +URL servletUrl = prepStmtClient16Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient16Servlet.class.getResource("prepStmt16_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient16Servlet.class, sunServletUrl); + + archive.addAsWebInfResource(prepStmtClient16Servlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient16Servlet theTests = new prepStmtClient16Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetParameterMetaData + * + * @assertion_ids: JavaEE:SPEC:186.3; JDBC:JAVADOC:724; JDBC:JAVADOC:725; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Execute the method getParameterMetaData on the preparedStatement + * object. Get the information about the number of parameters by executing the + * method getParameterCount(). It should return the number of parameters. + * + */ + + @Test + @TargetVehicle("servlet") + public void testGetParameterMetaData() throws Exception { + super.testGetParameterMetaData(); + } + + /* + * @testName: testSetAsciiStream + * + * @assertion_ids: JavaEE:SPEC:186; JDBC:JAVADOC:684; JDBC:JAVADOC:685; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Get the InputStream object. Excecute the method + * preparedStatement.setAsciiStream to Update the Longvarchar_Tab_Name with + * the value extracted from the Char_Tab. Query the Longvarchar_Tab in the + * database to retrieve the value that is been set. Compare the value that is + * inserted with the value retrieved. These values should be equal. + * + */ + + @Test + @TargetVehicle("servlet") + public void testSetAsciiStream() throws Exception { + super.testSetAsciiStream(); + } + + /* + * @testName: testSetBinaryStream + * + * @assertion_ids: JavaEE:SPEC:186; JDBC:JAVADOC:688; JDBC:JAVADOC:689; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Get the InputStream object. Excecute the method + * preparedStatement.setBinaryStream to Update the Longvarbinary_Tab_Name with + * some byte array value. Query the Longvarbinary_Tab in the database to + * retrieve the value that is been set. Compare the byte array value that is + * inserted with the value retrieved. These cvalues should be equal. + * + */ + + @Test + @TargetVehicle("servlet") + public void testSetBinaryStream() throws Exception { + super.testSetBinaryStream(); + } + + /* + * @testName: testSetCharacterStream + * + * @assertion_ids: JavaEE:SPEC:186; JDBC:JAVADOC:702; JDBC:JAVADOC:703; + * JDBC:SPEC:9; JDBC:SPEC:26; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Get the InputStream object. Get a Reader object from this + * InputStream. Excecute the method preparedStatement.setCharacterStream to + * Update the Longvarchar_Tab_Name with the value extracted from Char_tab. + * Query the Longvarchar_Tab in the database to retrieve the value that is + * been set. Compare the byte array value that is inserted with the value + * retrieved. These values should be equal. + * + */ + + @Test + @TargetVehicle("servlet") + public void testSetCharacterStream() throws Exception { + super.testSetCharacterStream(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/build.xml deleted file mode 100644 index fa70d5b532..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2.java index 064fdd671f..67a12ef142 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2.java @@ -35,8 +35,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; // Merant DataSource class @@ -56,6 +60,10 @@ * @version 1.8, 11/24/00 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") + public class prepStmtClient2 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt2"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2AppClient.java new file mode 100644 index 0000000000..eef8c5055d --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2AppClient.java @@ -0,0 +1,476 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient2.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient2 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient2AppClient extends prepStmtClient2 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt2"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt2_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient2AppClient.class, prepStmtClient2.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient2AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient2AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient2AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt2_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient2AppClient theTests = new prepStmtClient2AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetInt02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:664; JDBC:JAVADOC:665; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database Using setInt(int parameterIndex,int x),update the column with the + * maximum value of Integer_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal + */ + + @Test + @TargetVehicle("appclient") + public void testSetInt02() throws Exception { + super.testSetInt02(); + } + + /* + * @testName: testSetDate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:678; JDBC:JAVADOC:679; + * JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling setDate(int + * parameterIndex,Date x) method and call the ResultSet.getDate(int) method to + * check and it should return a String Value that it is been set + */ + + @Test + @TargetVehicle("appclient") + public void testSetDate01() throws Exception { + super.testSetDate01(); + } + + /* + * @testName: testSetDate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:714; JDBC:JAVADOC:715; + * JDBC:JAVADOC:612; JDBC:JAVADOC:613; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling setDate(int + * parameterIndex,Date x,Calendar cal) method and call the + * ResultSet.getDate(int) method to check and it should return a String Value + * that it is been set + */ + + @Test + @TargetVehicle("appclient") + public void testSetDate02() throws Exception { + super.testSetDate02(); + } + + /* + * @testName: testSetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:670; JDBC:JAVADOC:671; + * JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database Using setDouble(int parameterIndex,double x),update the column the + * minimum value of Double_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getDouble(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetDouble01() throws Exception { + super.testSetDouble01(); + } + + /* + * @testName: testSetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:678; JDBC:JAVADOC:679; + * JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setDouble(int parameterIndex,double x),update the column + * the maximum value of Double_Tab. Now execute a query to get the maximum + * value and retrieve the result of the query using the getDouble(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetDouble02() throws Exception { + super.testSetDouble02(); + } + + /* + * @testName: testSetLong01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:666; JDBC:JAVADOC:667; + * JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * minimum value of Bigint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getLong(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetLong01() throws Exception { + super.testSetLong01(); + } + + /* + * @testName: testSetLong02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:666; JDBC:JAVADOC:667; + * JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * maximum value of Bigint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getLong(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetLong02() throws Exception { + super.testSetLong02(); + } + + /* + * @testName: testSetShort01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:662; JDBC:JAVADOC:663; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * minimum value of Smallint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetShort01() throws Exception { + super.testSetShort01(); + } + + /* + * @testName: testSetShort02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:662; JDBC:JAVADOC:663; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * maximum value of Smallint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetShort02() throws Exception { + super.testSetShort02(); + } + + /* + * @testName: testSetNull01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:4; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for INTEGER Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull01() throws Exception { + super.testSetNull01(); + } + + /* + * @testName: testSetNull02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:6; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for FLOAT Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull02() throws Exception { + super.testSetNull02(); + } + + /* + * @testName: testSetNull03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:3; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for SMALLINT Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull03() throws Exception { + super.testSetNull03(); + } + + /* + * @testName: testSetNull04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:10; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for CHAR Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull04() throws Exception { + super.testSetNull04(); + } + + /* + * @testName: testSetNull05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:15; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for TIME Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull05() throws Exception { + super.testSetNull05(); + } + + /* + * @testName: testSetNull06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:16; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for TIMESTAMP Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull06() throws Exception { + super.testSetNull06(); + } + + /* + * @testName: testSetNull07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:14; JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for DATE Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull07() throws Exception { + super.testSetNull07(); + } + + /* + * @testName: testSetNull08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:9; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for NUMERIC Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull08() throws Exception { + super.testSetNull08(); + } + + /* + * @testName: testSetNull09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:2; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for TINYINT Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull09() throws Exception { + super.testSetNull09(); + } + + /* + * @testName: testSetNull10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:8; JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for DOUBLE Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull10() throws Exception { + super.testSetNull10(); + } + + /* + * @testName: testSetNull11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:5; JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for BIGINT Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull11() throws Exception { + super.testSetNull11(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2EJB.java new file mode 100644 index 0000000000..cb8b9d5bfd --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2EJB.java @@ -0,0 +1,497 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient2.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt15.prepStmtClient15EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient2 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient2EJB extends prepStmtClient2 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt2"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt2_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient2EJB.class, prepStmtClient2.class); + + URL resURL = prepStmtClient2EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = prepStmtClient2EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmt2_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt2_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient2EJB.class, prepStmtClient2.class); + + resURL = prepStmtClient2EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmt2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient2EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt2_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient2EJB theTests = new prepStmtClient2EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetInt02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:664; JDBC:JAVADOC:665; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database Using setInt(int parameterIndex,int x),update the column with the + * maximum value of Integer_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal + */ + + @Test + @TargetVehicle("ejb") + public void testSetInt02() throws Exception { + super.testSetInt02(); + } + + /* + * @testName: testSetDate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:678; JDBC:JAVADOC:679; + * JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling setDate(int + * parameterIndex,Date x) method and call the ResultSet.getDate(int) method to + * check and it should return a String Value that it is been set + */ + + @Test + @TargetVehicle("ejb") + public void testSetDate01() throws Exception { + super.testSetDate01(); + } + + /* + * @testName: testSetDate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:714; JDBC:JAVADOC:715; + * JDBC:JAVADOC:612; JDBC:JAVADOC:613; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling setDate(int + * parameterIndex,Date x,Calendar cal) method and call the + * ResultSet.getDate(int) method to check and it should return a String Value + * that it is been set + */ + + @Test + @TargetVehicle("ejb") + public void testSetDate02() throws Exception { + super.testSetDate02(); + } + + /* + * @testName: testSetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:670; JDBC:JAVADOC:671; + * JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database Using setDouble(int parameterIndex,double x),update the column the + * minimum value of Double_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getDouble(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetDouble01() throws Exception { + super.testSetDouble01(); + } + + /* + * @testName: testSetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:678; JDBC:JAVADOC:679; + * JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setDouble(int parameterIndex,double x),update the column + * the maximum value of Double_Tab. Now execute a query to get the maximum + * value and retrieve the result of the query using the getDouble(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetDouble02() throws Exception { + super.testSetDouble02(); + } + + /* + * @testName: testSetLong01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:666; JDBC:JAVADOC:667; + * JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * minimum value of Bigint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getLong(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetLong01() throws Exception { + super.testSetLong01(); + } + + /* + * @testName: testSetLong02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:666; JDBC:JAVADOC:667; + * JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * maximum value of Bigint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getLong(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetLong02() throws Exception { + super.testSetLong02(); + } + + /* + * @testName: testSetShort01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:662; JDBC:JAVADOC:663; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * minimum value of Smallint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetShort01() throws Exception { + super.testSetShort01(); + } + + /* + * @testName: testSetShort02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:662; JDBC:JAVADOC:663; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * maximum value of Smallint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetShort02() throws Exception { + super.testSetShort02(); + } + + /* + * @testName: testSetNull01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:4; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for INTEGER Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull01() throws Exception { + super.testSetNull01(); + } + + /* + * @testName: testSetNull02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:6; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for FLOAT Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull02() throws Exception { + super.testSetNull02(); + } + + /* + * @testName: testSetNull03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:3; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for SMALLINT Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull03() throws Exception { + super.testSetNull03(); + } + + /* + * @testName: testSetNull04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:10; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for CHAR Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull04() throws Exception { + super.testSetNull04(); + } + + /* + * @testName: testSetNull05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:15; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for TIME Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull05() throws Exception { + super.testSetNull05(); + } + + /* + * @testName: testSetNull06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:16; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for TIMESTAMP Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull06() throws Exception { + super.testSetNull06(); + } + + /* + * @testName: testSetNull07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:14; JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for DATE Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull07() throws Exception { + super.testSetNull07(); + } + + /* + * @testName: testSetNull08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:9; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for NUMERIC Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull08() throws Exception { + super.testSetNull08(); + } + + /* + * @testName: testSetNull09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:2; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for TINYINT Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull09() throws Exception { + super.testSetNull09(); + } + + /* + * @testName: testSetNull10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:8; JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for DOUBLE Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull10() throws Exception { + super.testSetNull10(); + } + + /* + * @testName: testSetNull11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:5; JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for BIGINT Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull11() throws Exception { + super.testSetNull11(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2JSP.java new file mode 100644 index 0000000000..2d5cc95d0f --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2JSP.java @@ -0,0 +1,481 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient2.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt2; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient2 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + + +@Tag("tck-javatest") + +public class prepStmtClient2JSP extends prepStmtClient2 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt2"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt2_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient2JSP.class, prepStmtClient2.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient2JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient2JSP.class.getResource("prepStmt2_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient2JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(prepStmtClient2JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient2JSP theTests = new prepStmtClient2JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetInt02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:664; JDBC:JAVADOC:665; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database Using setInt(int parameterIndex,int x),update the column with the + * maximum value of Integer_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal + */ + + @Test + @TargetVehicle("jsp") + public void testSetInt02() throws Exception { + super.testSetInt02(); + } + + /* + * @testName: testSetDate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:678; JDBC:JAVADOC:679; + * JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling setDate(int + * parameterIndex,Date x) method and call the ResultSet.getDate(int) method to + * check and it should return a String Value that it is been set + */ + + @Test + @TargetVehicle("jsp") + public void testSetDate01() throws Exception { + super.testSetDate01(); + } + + /* + * @testName: testSetDate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:714; JDBC:JAVADOC:715; + * JDBC:JAVADOC:612; JDBC:JAVADOC:613; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling setDate(int + * parameterIndex,Date x,Calendar cal) method and call the + * ResultSet.getDate(int) method to check and it should return a String Value + * that it is been set + */ + + @Test + @TargetVehicle("jsp") + public void testSetDate02() throws Exception { + super.testSetDate02(); + } + + /* + * @testName: testSetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:670; JDBC:JAVADOC:671; + * JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database Using setDouble(int parameterIndex,double x),update the column the + * minimum value of Double_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getDouble(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetDouble01() throws Exception { + super.testSetDouble01(); + } + + /* + * @testName: testSetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:678; JDBC:JAVADOC:679; + * JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setDouble(int parameterIndex,double x),update the column + * the maximum value of Double_Tab. Now execute a query to get the maximum + * value and retrieve the result of the query using the getDouble(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetDouble02() throws Exception { + super.testSetDouble02(); + } + + /* + * @testName: testSetLong01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:666; JDBC:JAVADOC:667; + * JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * minimum value of Bigint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getLong(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetLong01() throws Exception { + super.testSetLong01(); + } + + /* + * @testName: testSetLong02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:666; JDBC:JAVADOC:667; + * JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * maximum value of Bigint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getLong(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetLong02() throws Exception { + super.testSetLong02(); + } + + /* + * @testName: testSetShort01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:662; JDBC:JAVADOC:663; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * minimum value of Smallint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetShort01() throws Exception { + super.testSetShort01(); + } + + /* + * @testName: testSetShort02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:662; JDBC:JAVADOC:663; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * maximum value of Smallint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetShort02() throws Exception { + super.testSetShort02(); + } + + /* + * @testName: testSetNull01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:4; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for INTEGER Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull01() throws Exception { + super.testSetNull01(); + } + + /* + * @testName: testSetNull02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:6; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for FLOAT Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull02() throws Exception { + super.testSetNull02(); + } + + /* + * @testName: testSetNull03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:3; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for SMALLINT Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull03() throws Exception { + super.testSetNull03(); + } + + /* + * @testName: testSetNull04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:10; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for CHAR Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull04() throws Exception { + super.testSetNull04(); + } + + /* + * @testName: testSetNull05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:15; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for TIME Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull05() throws Exception { + super.testSetNull05(); + } + + /* + * @testName: testSetNull06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:16; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for TIMESTAMP Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull06() throws Exception { + super.testSetNull06(); + } + + /* + * @testName: testSetNull07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:14; JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for DATE Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull07() throws Exception { + super.testSetNull07(); + } + + /* + * @testName: testSetNull08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:9; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for NUMERIC Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull08() throws Exception { + super.testSetNull08(); + } + + /* + * @testName: testSetNull09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:2; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for TINYINT Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull09() throws Exception { + super.testSetNull09(); + } + + /* + * @testName: testSetNull10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:8; JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for DOUBLE Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull10() throws Exception { + super.testSetNull10(); + } + + /* + * @testName: testSetNull11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:5; JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for BIGINT Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull11() throws Exception { + super.testSetNull11(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2Servlet.java new file mode 100644 index 0000000000..8a8b5965fb --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt2/prepStmtClient2Servlet.java @@ -0,0 +1,471 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient2.java 1.16 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient2 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient2Servlet extends prepStmtClient2 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt2"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt2_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient2Servlet.class, prepStmtClient2.class); + // The servlet descriptor +URL servletUrl = prepStmtClient2Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient2Servlet.class.getResource("prepStmt2_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient2Servlet.class, sunServletUrl); + + archive.addAsWebInfResource(prepStmtClient2Servlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient2Servlet theTests = new prepStmtClient2Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetInt02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:664; JDBC:JAVADOC:665; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database Using setInt(int parameterIndex,int x),update the column with the + * maximum value of Integer_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getInt(int columnIndex) + * method Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal + */ + + @Test + @TargetVehicle("servlet") + public void testSetInt02() throws Exception { + super.testSetInt02(); + } + + /* + * @testName: testSetDate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:678; JDBC:JAVADOC:679; + * JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling setDate(int + * parameterIndex,Date x) method and call the ResultSet.getDate(int) method to + * check and it should return a String Value that it is been set + */ + + @Test + @TargetVehicle("servlet") + public void testSetDate01() throws Exception { + super.testSetDate01(); + } + + /* + * @testName: testSetDate02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:714; JDBC:JAVADOC:715; + * JDBC:JAVADOC:612; JDBC:JAVADOC:613; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database execute the precompiled SQL Statement by calling setDate(int + * parameterIndex,Date x,Calendar cal) method and call the + * ResultSet.getDate(int) method to check and it should return a String Value + * that it is been set + */ + + @Test + @TargetVehicle("servlet") + public void testSetDate02() throws Exception { + super.testSetDate02(); + } + + /* + * @testName: testSetDouble01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:670; JDBC:JAVADOC:671; + * JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database Using setDouble(int parameterIndex,double x),update the column the + * minimum value of Double_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getDouble(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetDouble01() throws Exception { + super.testSetDouble01(); + } + + /* + * @testName: testSetDouble02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:678; JDBC:JAVADOC:679; + * JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setDouble(int parameterIndex,double x),update the column + * the maximum value of Double_Tab. Now execute a query to get the maximum + * value and retrieve the result of the query using the getDouble(int + * columnIndex) method.Compare the returned value, with the maximum value + * extracted from the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetDouble02() throws Exception { + super.testSetDouble02(); + } + + /* + * @testName: testSetLong01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:666; JDBC:JAVADOC:667; + * JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * minimum value of Bigint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getLong(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetLong01() throws Exception { + super.testSetLong01(); + } + + /* + * @testName: testSetLong02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:666; JDBC:JAVADOC:667; + * JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setLong(int parameterIndex,long x),update the column the + * maximum value of Bigint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getLong(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetLong02() throws Exception { + super.testSetLong02(); + } + + /* + * @testName: testSetShort01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:662; JDBC:JAVADOC:663; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * minimum value of Smallint_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetShort01() throws Exception { + super.testSetShort01(); + } + + /* + * @testName: testSetShort02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:662; JDBC:JAVADOC:663; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setShort(int parameterIndex,short x),update the column the + * maximum value of Smallint_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getShort(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetShort02() throws Exception { + super.testSetShort02(); + } + + /* + * @testName: testSetNull01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:4; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for INTEGER Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull01() throws Exception { + super.testSetNull01(); + } + + /* + * @testName: testSetNull02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:6; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for FLOAT Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull02() throws Exception { + super.testSetNull02(); + } + + /* + * @testName: testSetNull03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:3; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for SMALLINT Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull03() throws Exception { + super.testSetNull03(); + } + + /* + * @testName: testSetNull04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:10; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for CHAR Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull04() throws Exception { + super.testSetNull04(); + } + + /* + * @testName: testSetNull05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:15; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for TIME Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull05() throws Exception { + super.testSetNull05(); + } + + /* + * @testName: testSetNull06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:16; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for TIMESTAMP Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull06() throws Exception { + super.testSetNull06(); + } + + /* + * @testName: testSetNull07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:14; JDBC:JAVADOC:392; JDBC:JAVADOC:393; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for DATE Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull07() throws Exception { + super.testSetNull07(); + } + + /* + * @testName: testSetNull08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:9; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for NUMERIC Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull08() throws Exception { + super.testSetNull08(); + } + + /* + * @testName: testSetNull09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:2; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for TINYINT Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull09() throws Exception { + super.testSetNull09(); + } + + /* + * @testName: testSetNull10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:8; JDBC:JAVADOC:386; JDBC:JAVADOC:387; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for DOUBLE Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull10() throws Exception { + super.testSetNull10(); + } + + /* + * @testName: testSetNull11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:5; JDBC:JAVADOC:382; JDBC:JAVADOC:383; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for BIGINT Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull11() throws Exception { + super.testSetNull11(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/build.xml deleted file mode 100644 index af3e1791e6..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3.java index 7fc8eb28e7..c2e26af7ff 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3.java @@ -35,8 +35,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; // Merant DataSource class @@ -55,6 +59,9 @@ * @author * @version 1.8, 11/24/00 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient3 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt3"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3AppClient.java new file mode 100644 index 0000000000..c50bb2f602 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3AppClient.java @@ -0,0 +1,493 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient3 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ +@Tag("tck-appclient") + +public class prepStmtClient3AppClient extends prepStmtClient3 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt3"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt3_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient3AppClient.class, prepStmtClient3.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient3AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient3AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient3AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt3_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient3AppClient theTests = new prepStmtClient3AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetString01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:674; JDBC:JAVADOC:675; + * JDBC:JAVADOC:372; JDBC:JAVADOC:373; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setString(int parameterIndex, String x) method,update + * the column value with the maximum value of Char_Tab. Call the + * getString(String columnName) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getString(String columnName) method. Both the values should + * be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetString01() throws Exception { + super.testSetString01(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:680; JDBC:JAVADOC:681; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x) method,update the + * column value with the Non-Null Time value. Call the getTime(int columnno) + * method to retrieve this value. Extract the Time value from the tssql.stmt + * file. Compare this value with the value returned by the getTime(int + * columnno) method. Both the values should be equal + */ + + @Test + @TargetVehicle("appclient") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:716; JDBC:JAVADOC:717; + * JDBC:JAVADOC:616; JDBC:JAVADOC:617; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Time value using the + * Calendar Object. Call the getTime(int columnno) method to retrieve this + * value. Extract the Time value from the tssql.stmt file. Compare this value + * with the value returned by the getTime(int columnno) method. Both the + * values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + + /* + * @testName: testSetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:682; JDBC:JAVADOC:683; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Timestamp x) + * method,update the column value with the Non-Null Timestamp value. Call the + * getTimestamp(int columnno) method to retrieve this value. Extract the + * Timestamp value from the tssql.stmt file. Compare this value with the value + * returned by the getTimestamp(int columnno) method. Both the values should + * be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetTimestamp01() throws Exception { + super.testSetTimestamp01(); + } + + /* + * @testName: testSetTimestamp02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:718; JDBC:JAVADOC:719; + * JDBC:JAVADOC:620; JDBC:JAVADOC:621; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Timestamp value using the + * Calendar Object. Call the getTimestamp(int columnno) method to retrieve + * this value. Extract the Timestamp value from the tssql.stmt file. Compare + * this value with the value returned by the getTimestamp(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetTimestamp02() throws Exception { + super.testSetTimestamp02(); + } + + /* + * @testName: testSetString02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:674; JDBC:JAVADOC:675; + * JDBC:JAVADOC:372; JDBC:JAVADOC:373; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setString(int parameterIndex, String x),update the column + * with the maximum value which is a SQL VARCHAR. Call the getString(int + * ColumnIndex) method to retrieve this value. Extract the maximum value as a + * String from the tssql.stmt file. Compare this value with the value returned + * by the getString method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetString02() throws Exception { + super.testSetString02(); + } + + /* + * @testName: testSetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:668; JDBC:JAVADOC:669; + * JDBC:JAVADOC:384; JDBC:JAVADOC:385; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column with + * the minimum value of Real_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetFloat01() throws Exception { + super.testSetFloat01(); + } + + /* + * @testName: testSetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:674; JDBC:JAVADOC:675; + * JDBC:JAVADOC:384; JDBC:JAVADOC:385; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column with + * the maximum value of Real_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetFloat02() throws Exception { + super.testSetFloat02(); + } + + /* + * @testName: testSetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:676; JDBC:JAVADOC:677; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement for updating Non-Null value + * from Binary_Tab by calling setBytes(int parameterIndex, byte[] x) and call + * the getBytes(int) method to check and it should return a Byte Array + */ + + @Test + @TargetVehicle("appclient") + public void testSetBytes01() throws Exception { + super.testSetBytes01(); + } + + /* + * @testName: testSetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:676; JDBC:JAVADOC:677; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement for updating Non-Null value + * from Varbinary_Tab by calling setBytes(int parameterIndex, byte[] x) and + * call the getBytes(int) method to check and it should return a Byte Array + */ + + @Test + @TargetVehicle("appclient") + public void testSetBytes02() throws Exception { + super.testSetBytes02(); + } + + /* + * @testName: testSetBytes03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:676; JDBC:JAVADOC:677; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement for updating Non-Null value + * from Longvarbinary_Tab by calling setBytes(int parameterIndex, byte[] x) + * and call the getBytes(int) method to check and it should return a Byte + * Array + */ + + @Test + @TargetVehicle("appclient") + public void testSetBytes03() throws Exception { + super.testSetBytes03(); + } + + /* + * @testName: testSetObject01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the maximum value of Char_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject01() throws Exception { + super.testSetObject01(); + } + + /* + * @testName: testSetObject02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Varchar_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject02() throws Exception { + super.testSetObject02(); + } + + /* + * @testName: testSetObject03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Longvarchar_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject03() throws Exception { + super.testSetObject03(); + } + + /* + * @testName: testSetObject04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Numeric_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject04() throws Exception { + super.testSetObject04(); + } + + /* + * @testName: testSetObject05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Numeric_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject05() throws Exception { + super.testSetObject05(); + } + + /* + * @testName: testSetObject06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Decimal_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject06() throws Exception { + super.testSetObject06(); + } + + /* + * @testName: testSetObject07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Decimal_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject07() throws Exception { + super.testSetObject07(); + } + + /* + * @testName: testSetObject08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JDBC:JAVADOC:374; JDBC:JAVADOC:375; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Bit_Tab. Call the + * getBoolean(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getBoolean(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject08() throws Exception { + super.testSetObject08(); + } + + /* + * @testName: testSetObject09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JDBC:JAVADOC:374; JDBC:JAVADOC:375; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Bit_Tab. Call the + * getBoolean(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getBoolean(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject09() throws Exception { + super.testSetObject09(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3EJB.java new file mode 100644 index 0000000000..1457a199eb --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3EJB.java @@ -0,0 +1,515 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt15.prepStmtClient15EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient3 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient3EJB extends prepStmtClient3 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt3"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt3_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient3EJB.class, prepStmtClient3.class); + + URL resURL = prepStmtClient3EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = prepStmtClient3EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmt3_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt3_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient3EJB.class, prepStmtClient3.class); + + resURL = prepStmtClient3EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmt3_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient3EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt3_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient3EJB theTests = new prepStmtClient3EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetString01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:674; JDBC:JAVADOC:675; + * JDBC:JAVADOC:372; JDBC:JAVADOC:373; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setString(int parameterIndex, String x) method,update + * the column value with the maximum value of Char_Tab. Call the + * getString(String columnName) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getString(String columnName) method. Both the values should + * be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetString01() throws Exception { + super.testSetString01(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:680; JDBC:JAVADOC:681; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x) method,update the + * column value with the Non-Null Time value. Call the getTime(int columnno) + * method to retrieve this value. Extract the Time value from the tssql.stmt + * file. Compare this value with the value returned by the getTime(int + * columnno) method. Both the values should be equal + */ + + @Test + @TargetVehicle("ejb") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:716; JDBC:JAVADOC:717; + * JDBC:JAVADOC:616; JDBC:JAVADOC:617; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Time value using the + * Calendar Object. Call the getTime(int columnno) method to retrieve this + * value. Extract the Time value from the tssql.stmt file. Compare this value + * with the value returned by the getTime(int columnno) method. Both the + * values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + + /* + * @testName: testSetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:682; JDBC:JAVADOC:683; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Timestamp x) + * method,update the column value with the Non-Null Timestamp value. Call the + * getTimestamp(int columnno) method to retrieve this value. Extract the + * Timestamp value from the tssql.stmt file. Compare this value with the value + * returned by the getTimestamp(int columnno) method. Both the values should + * be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetTimestamp01() throws Exception { + super.testSetTimestamp01(); + } + + /* + * @testName: testSetTimestamp02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:718; JDBC:JAVADOC:719; + * JDBC:JAVADOC:620; JDBC:JAVADOC:621; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Timestamp value using the + * Calendar Object. Call the getTimestamp(int columnno) method to retrieve + * this value. Extract the Timestamp value from the tssql.stmt file. Compare + * this value with the value returned by the getTimestamp(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetTimestamp02() throws Exception { + super.testSetTimestamp02(); + } + + /* + * @testName: testSetString02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:674; JDBC:JAVADOC:675; + * JDBC:JAVADOC:372; JDBC:JAVADOC:373; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setString(int parameterIndex, String x),update the column + * with the maximum value which is a SQL VARCHAR. Call the getString(int + * ColumnIndex) method to retrieve this value. Extract the maximum value as a + * String from the tssql.stmt file. Compare this value with the value returned + * by the getString method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetString02() throws Exception { + super.testSetString02(); + } + + /* + * @testName: testSetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:668; JDBC:JAVADOC:669; + * JDBC:JAVADOC:384; JDBC:JAVADOC:385; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column with + * the minimum value of Real_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetFloat01() throws Exception { + super.testSetFloat01(); + } + + /* + * @testName: testSetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:674; JDBC:JAVADOC:675; + * JDBC:JAVADOC:384; JDBC:JAVADOC:385; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column with + * the maximum value of Real_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetFloat02() throws Exception { + super.testSetFloat02(); + } + + /* + * @testName: testSetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:676; JDBC:JAVADOC:677; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement for updating Non-Null value + * from Binary_Tab by calling setBytes(int parameterIndex, byte[] x) and call + * the getBytes(int) method to check and it should return a Byte Array + */ + + @Test + @TargetVehicle("ejb") + public void testSetBytes01() throws Exception { + super.testSetBytes01(); + } + + /* + * @testName: testSetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:676; JDBC:JAVADOC:677; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement for updating Non-Null value + * from Varbinary_Tab by calling setBytes(int parameterIndex, byte[] x) and + * call the getBytes(int) method to check and it should return a Byte Array + */ + + @Test + @TargetVehicle("ejb") + public void testSetBytes02() throws Exception { + super.testSetBytes02(); + } + + /* + * @testName: testSetBytes03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:676; JDBC:JAVADOC:677; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement for updating Non-Null value + * from Longvarbinary_Tab by calling setBytes(int parameterIndex, byte[] x) + * and call the getBytes(int) method to check and it should return a Byte + * Array + */ + + @Test + @TargetVehicle("ejb") + public void testSetBytes03() throws Exception { + super.testSetBytes03(); + } + + /* + * @testName: testSetObject01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the maximum value of Char_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject01() throws Exception { + super.testSetObject01(); + } + + /* + * @testName: testSetObject02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Varchar_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject02() throws Exception { + super.testSetObject02(); + } + + /* + * @testName: testSetObject03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Longvarchar_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject03() throws Exception { + super.testSetObject03(); + } + + /* + * @testName: testSetObject04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Numeric_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject04() throws Exception { + super.testSetObject04(); + } + + /* + * @testName: testSetObject05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Numeric_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject05() throws Exception { + super.testSetObject05(); + } + + /* + * @testName: testSetObject06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Decimal_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject06() throws Exception { + super.testSetObject06(); + } + + /* + * @testName: testSetObject07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Decimal_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject07() throws Exception { + super.testSetObject07(); + } + + /* + * @testName: testSetObject08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JDBC:JAVADOC:374; JDBC:JAVADOC:375; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Bit_Tab. Call the + * getBoolean(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getBoolean(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject08() throws Exception { + super.testSetObject08(); + } + + /* + * @testName: testSetObject09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JDBC:JAVADOC:374; JDBC:JAVADOC:375; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Bit_Tab. Call the + * getBoolean(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getBoolean(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject09() throws Exception { + super.testSetObject09(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3JSP.java new file mode 100644 index 0000000000..01cf29f5d6 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3JSP.java @@ -0,0 +1,498 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt3; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient3 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient3JSP extends prepStmtClient3 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt3"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt3_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient3JSP.class, prepStmtClient3.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient3JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient3JSP.class.getResource("prepStmt3_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient3JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(prepStmtClient3JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient3JSP theTests = new prepStmtClient3JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetString01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:674; JDBC:JAVADOC:675; + * JDBC:JAVADOC:372; JDBC:JAVADOC:373; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setString(int parameterIndex, String x) method,update + * the column value with the maximum value of Char_Tab. Call the + * getString(String columnName) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getString(String columnName) method. Both the values should + * be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetString01() throws Exception { + super.testSetString01(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:680; JDBC:JAVADOC:681; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x) method,update the + * column value with the Non-Null Time value. Call the getTime(int columnno) + * method to retrieve this value. Extract the Time value from the tssql.stmt + * file. Compare this value with the value returned by the getTime(int + * columnno) method. Both the values should be equal + */ + + @Test + @TargetVehicle("jsp") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:716; JDBC:JAVADOC:717; + * JDBC:JAVADOC:616; JDBC:JAVADOC:617; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Time value using the + * Calendar Object. Call the getTime(int columnno) method to retrieve this + * value. Extract the Time value from the tssql.stmt file. Compare this value + * with the value returned by the getTime(int columnno) method. Both the + * values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + + /* + * @testName: testSetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:682; JDBC:JAVADOC:683; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Timestamp x) + * method,update the column value with the Non-Null Timestamp value. Call the + * getTimestamp(int columnno) method to retrieve this value. Extract the + * Timestamp value from the tssql.stmt file. Compare this value with the value + * returned by the getTimestamp(int columnno) method. Both the values should + * be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetTimestamp01() throws Exception { + super.testSetTimestamp01(); + } + + /* + * @testName: testSetTimestamp02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:718; JDBC:JAVADOC:719; + * JDBC:JAVADOC:620; JDBC:JAVADOC:621; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Timestamp value using the + * Calendar Object. Call the getTimestamp(int columnno) method to retrieve + * this value. Extract the Timestamp value from the tssql.stmt file. Compare + * this value with the value returned by the getTimestamp(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetTimestamp02() throws Exception { + super.testSetTimestamp02(); + } + + /* + * @testName: testSetString02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:674; JDBC:JAVADOC:675; + * JDBC:JAVADOC:372; JDBC:JAVADOC:373; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setString(int parameterIndex, String x),update the column + * with the maximum value which is a SQL VARCHAR. Call the getString(int + * ColumnIndex) method to retrieve this value. Extract the maximum value as a + * String from the tssql.stmt file. Compare this value with the value returned + * by the getString method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetString02() throws Exception { + super.testSetString02(); + } + + /* + * @testName: testSetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:668; JDBC:JAVADOC:669; + * JDBC:JAVADOC:384; JDBC:JAVADOC:385; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column with + * the minimum value of Real_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetFloat01() throws Exception { + super.testSetFloat01(); + } + + /* + * @testName: testSetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:674; JDBC:JAVADOC:675; + * JDBC:JAVADOC:384; JDBC:JAVADOC:385; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column with + * the maximum value of Real_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetFloat02() throws Exception { + super.testSetFloat02(); + } + + /* + * @testName: testSetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:676; JDBC:JAVADOC:677; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement for updating Non-Null value + * from Binary_Tab by calling setBytes(int parameterIndex, byte[] x) and call + * the getBytes(int) method to check and it should return a Byte Array + */ + + @Test + @TargetVehicle("jsp") + public void testSetBytes01() throws Exception { + super.testSetBytes01(); + } + + /* + * @testName: testSetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:676; JDBC:JAVADOC:677; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement for updating Non-Null value + * from Varbinary_Tab by calling setBytes(int parameterIndex, byte[] x) and + * call the getBytes(int) method to check and it should return a Byte Array + */ + + @Test + @TargetVehicle("jsp") + public void testSetBytes02() throws Exception { + super.testSetBytes02(); + } + + /* + * @testName: testSetBytes03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:676; JDBC:JAVADOC:677; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement for updating Non-Null value + * from Longvarbinary_Tab by calling setBytes(int parameterIndex, byte[] x) + * and call the getBytes(int) method to check and it should return a Byte + * Array + */ + + @Test + @TargetVehicle("jsp") + public void testSetBytes03() throws Exception { + super.testSetBytes03(); + } + + /* + * @testName: testSetObject01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the maximum value of Char_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject01() throws Exception { + super.testSetObject01(); + } + + /* + * @testName: testSetObject02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Varchar_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject02() throws Exception { + super.testSetObject02(); + } + + /* + * @testName: testSetObject03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Longvarchar_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject03() throws Exception { + super.testSetObject03(); + } + + /* + * @testName: testSetObject04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Numeric_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject04() throws Exception { + super.testSetObject04(); + } + + /* + * @testName: testSetObject05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Numeric_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject05() throws Exception { + super.testSetObject05(); + } + + /* + * @testName: testSetObject06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Decimal_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject06() throws Exception { + super.testSetObject06(); + } + + /* + * @testName: testSetObject07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Decimal_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject07() throws Exception { + super.testSetObject07(); + } + + /* + * @testName: testSetObject08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JDBC:JAVADOC:374; JDBC:JAVADOC:375; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Bit_Tab. Call the + * getBoolean(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getBoolean(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject08() throws Exception { + super.testSetObject08(); + } + + /* + * @testName: testSetObject09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JDBC:JAVADOC:374; JDBC:JAVADOC:375; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Bit_Tab. Call the + * getBoolean(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getBoolean(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject09() throws Exception { + super.testSetObject09(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3Servlet.java new file mode 100644 index 0000000000..322dc6f0ad --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt3/prepStmtClient3Servlet.java @@ -0,0 +1,489 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient3 class tests methods of DatabaseMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient3Servlet extends prepStmtClient3 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt3"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt3_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient3Servlet.class, prepStmtClient3.class); + // The servlet descriptor +URL servletUrl = prepStmtClient3Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient3Servlet.class.getResource("prepStmt3_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient3Servlet.class, sunServletUrl); + + archive.addAsWebInfResource(prepStmtClient3Servlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient3Servlet theTests = new prepStmtClient3Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetString01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:674; JDBC:JAVADOC:675; + * JDBC:JAVADOC:372; JDBC:JAVADOC:373; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setString(int parameterIndex, String x) method,update + * the column value with the maximum value of Char_Tab. Call the + * getString(String columnName) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getString(String columnName) method. Both the values should + * be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetString01() throws Exception { + super.testSetString01(); + } + + /* + * @testName: testSetTime01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:680; JDBC:JAVADOC:681; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x) method,update the + * column value with the Non-Null Time value. Call the getTime(int columnno) + * method to retrieve this value. Extract the Time value from the tssql.stmt + * file. Compare this value with the value returned by the getTime(int + * columnno) method. Both the values should be equal + */ + + @Test + @TargetVehicle("servlet") + public void testSetTime01() throws Exception { + super.testSetTime01(); + } + + /* + * @testName: testSetTime02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:716; JDBC:JAVADOC:717; + * JDBC:JAVADOC:616; JDBC:JAVADOC:617; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTime(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Time value using the + * Calendar Object. Call the getTime(int columnno) method to retrieve this + * value. Extract the Time value from the tssql.stmt file. Compare this value + * with the value returned by the getTime(int columnno) method. Both the + * values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetTime02() throws Exception { + super.testSetTime02(); + } + + /* + * @testName: testSetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:682; JDBC:JAVADOC:683; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Timestamp x) + * method,update the column value with the Non-Null Timestamp value. Call the + * getTimestamp(int columnno) method to retrieve this value. Extract the + * Timestamp value from the tssql.stmt file. Compare this value with the value + * returned by the getTimestamp(int columnno) method. Both the values should + * be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetTimestamp01() throws Exception { + super.testSetTimestamp01(); + } + + /* + * @testName: testSetTimestamp02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:718; JDBC:JAVADOC:719; + * JDBC:JAVADOC:620; JDBC:JAVADOC:621; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setTimestamp(int parameterIndex, Time x, Calendar cal) + * method,update the column value with the Non-Null Timestamp value using the + * Calendar Object. Call the getTimestamp(int columnno) method to retrieve + * this value. Extract the Timestamp value from the tssql.stmt file. Compare + * this value with the value returned by the getTimestamp(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetTimestamp02() throws Exception { + super.testSetTimestamp02(); + } + + /* + * @testName: testSetString02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:674; JDBC:JAVADOC:675; + * JDBC:JAVADOC:372; JDBC:JAVADOC:373; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setString(int parameterIndex, String x),update the column + * with the maximum value which is a SQL VARCHAR. Call the getString(int + * ColumnIndex) method to retrieve this value. Extract the maximum value as a + * String from the tssql.stmt file. Compare this value with the value returned + * by the getString method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetString02() throws Exception { + super.testSetString02(); + } + + /* + * @testName: testSetFloat01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:668; JDBC:JAVADOC:669; + * JDBC:JAVADOC:384; JDBC:JAVADOC:385; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column with + * the minimum value of Real_Tab. Now execute a query to get the minimum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the minimum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetFloat01() throws Exception { + super.testSetFloat01(); + } + + /* + * @testName: testSetFloat02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:674; JDBC:JAVADOC:675; + * JDBC:JAVADOC:384; JDBC:JAVADOC:385; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using setFloat(int parameterIndex,float x),update the column with + * the maximum value of Real_Tab. Now execute a query to get the maximum value + * and retrieve the result of the query using the getFloat(int columnIndex) + * method.Compare the returned value, with the maximum value extracted from + * the tssql.stmt file. Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetFloat02() throws Exception { + super.testSetFloat02(); + } + + /* + * @testName: testSetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:676; JDBC:JAVADOC:677; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement for updating Non-Null value + * from Binary_Tab by calling setBytes(int parameterIndex, byte[] x) and call + * the getBytes(int) method to check and it should return a Byte Array + */ + + @Test + @TargetVehicle("servlet") + public void testSetBytes01() throws Exception { + super.testSetBytes01(); + } + + /* + * @testName: testSetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:676; JDBC:JAVADOC:677; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement for updating Non-Null value + * from Varbinary_Tab by calling setBytes(int parameterIndex, byte[] x) and + * call the getBytes(int) method to check and it should return a Byte Array + */ + + @Test + @TargetVehicle("servlet") + public void testSetBytes02() throws Exception { + super.testSetBytes02(); + } + + /* + * @testName: testSetBytes03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:676; JDBC:JAVADOC:677; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement for updating Non-Null value + * from Longvarbinary_Tab by calling setBytes(int parameterIndex, byte[] x) + * and call the getBytes(int) method to check and it should return a Byte + * Array + */ + + @Test + @TargetVehicle("servlet") + public void testSetBytes03() throws Exception { + super.testSetBytes03(); + } + + /* + * @testName: testSetObject01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the maximum value of Char_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject01() throws Exception { + super.testSetObject01(); + } + + /* + * @testName: testSetObject02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Varchar_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject02() throws Exception { + super.testSetObject02(); + } + + /* + * @testName: testSetObject03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Longvarchar_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject03() throws Exception { + super.testSetObject03(); + } + + /* + * @testName: testSetObject04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Numeric_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject04() throws Exception { + super.testSetObject04(); + } + + /* + * @testName: testSetObject05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Numeric_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject05() throws Exception { + super.testSetObject05(); + } + + /* + * @testName: testSetObject06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Decimal_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject06() throws Exception { + super.testSetObject06(); + } + + /* + * @testName: testSetObject07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Decimal_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject07() throws Exception { + super.testSetObject07(); + } + + /* + * @testName: testSetObject08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JDBC:JAVADOC:374; JDBC:JAVADOC:375; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Bit_Tab. Call the + * getBoolean(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getBoolean(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject08() throws Exception { + super.testSetObject08(); + } + + /* + * @testName: testSetObject09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JDBC:JAVADOC:374; JDBC:JAVADOC:375; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Bit_Tab. Call the + * getBoolean(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getBoolean(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject09() throws Exception { + super.testSetObject09(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/build.xml deleted file mode 100644 index 4a57744bad..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4.java index e1269d7877..1d6701dfd2 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4.java @@ -31,8 +31,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; // Merant DataSource class @@ -51,6 +55,9 @@ * @author * @version 1.8, 11/24/00 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient4 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt4"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4AppClient.java new file mode 100644 index 0000000000..2ac2f91fe3 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4AppClient.java @@ -0,0 +1,491 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient4.java 1.15 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt4; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient4 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient4AppClient extends prepStmtClient4 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt4"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt4_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient4AppClient.class, prepStmtClient4.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient4AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient4AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient4AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt4_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient4AppClient theTests = new prepStmtClient4AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject10() throws Exception { + super.testSetObject10(); + } + + /* + * @testName: testSetObject11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject11() throws Exception { + super.testSetObject11(); + } + + /* + * @testName: testSetObject12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject12() throws Exception { + super.testSetObject12(); + } + + /* + * @testName: testSetObject13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject13() throws Exception { + super.testSetObject13(); + } + + /* + * @testName: testSetObject14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Double_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject14() throws Exception { + super.testSetObject14(); + } + + /* + * @testName: testSetObject15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Double_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject15() throws Exception { + super.testSetObject15(); + } + + /* + * @testName: testSetObject16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject16() throws Exception { + super.testSetObject16(); + } + + /* + * @testName: testSetObject17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject17() throws Exception { + super.testSetObject17(); + } + + /* + * @testName: testSetObject18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the Non Null value of Date_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the Non Null + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject18() throws Exception { + super.testSetObject18(); + } + + /* + * @testName: testSetObject19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the Non Null value of Time_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the Non Null + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject19() throws Exception { + super.testSetObject19(); + } + + /* + * @testName: testSetObject20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the Non Null value of Timestamp_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the Non Null + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject20() throws Exception { + super.testSetObject20(); + } + + /* + * @testName: testSetObject21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject21() throws Exception { + super.testSetObject21(); + } + + /* + * @testName: testSetObject22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject22() throws Exception { + super.testSetObject22(); + } + + /* + * @testName: testSetObject23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Tinyint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject23() throws Exception { + super.testSetObject23(); + } + + /* + * @testName: testSetObject24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Tinyint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject24() throws Exception { + super.testSetObject24(); + } + + /* + * @testName: testSetObject25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject25() throws Exception { + super.testSetObject25(); + } + + /* + * @testName: testSetObject26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject26() throws Exception { + super.testSetObject26(); + } + + /* + * @testName: testSetObject27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database.Update the column value of the Binary_Tab with a byte array using + * the PreparedStatement.setBytes(int columnIndex) method. Call the + * getObject(int parameterIndex) method.to retrieve the byte array. It should + * return the byte array object that has been set. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject27() throws Exception { + super.testSetObject27(); + } + + /* + * @testName: testSetObject28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database.Update the column value of the Varbinary_Tab with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method. Call the + * getObject(int parameterIndex) method.to retrieve the byte array. It should + * return the byte array object that has been set. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject28() throws Exception { + super.testSetObject28(); + } + + /* + * @testName: testSetObject29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database.Update the column value of the Longvarbinary_Tab with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method. Call the + * getObject(int parameterIndex) method to retrieve the byte array. It should + * return the byte array object that has been set. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject29() throws Exception { + super.testSetObject29(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4EJB.java new file mode 100644 index 0000000000..32f7dd20da --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4EJB.java @@ -0,0 +1,512 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient4.java 1.15 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt4; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt15.prepStmtClient15EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient4 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient4EJB extends prepStmtClient4 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt4"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt4_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient4EJB.class, prepStmtClient4.class); + + URL resURL = prepStmtClient4EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = prepStmtClient4EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmt4_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt4_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient4EJB.class, prepStmtClient4.class); + + resURL = prepStmtClient4EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmt4_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient4EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt4_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient4EJB theTests = new prepStmtClient4EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject10() throws Exception { + super.testSetObject10(); + } + + /* + * @testName: testSetObject11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject11() throws Exception { + super.testSetObject11(); + } + + /* + * @testName: testSetObject12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject12() throws Exception { + super.testSetObject12(); + } + + /* + * @testName: testSetObject13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject13() throws Exception { + super.testSetObject13(); + } + + /* + * @testName: testSetObject14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Double_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject14() throws Exception { + super.testSetObject14(); + } + + /* + * @testName: testSetObject15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Double_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject15() throws Exception { + super.testSetObject15(); + } + + /* + * @testName: testSetObject16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject16() throws Exception { + super.testSetObject16(); + } + + /* + * @testName: testSetObject17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject17() throws Exception { + super.testSetObject17(); + } + + /* + * @testName: testSetObject18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the Non Null value of Date_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the Non Null + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject18() throws Exception { + super.testSetObject18(); + } + + /* + * @testName: testSetObject19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the Non Null value of Time_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the Non Null + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject19() throws Exception { + super.testSetObject19(); + } + + /* + * @testName: testSetObject20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the Non Null value of Timestamp_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the Non Null + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject20() throws Exception { + super.testSetObject20(); + } + + /* + * @testName: testSetObject21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject21() throws Exception { + super.testSetObject21(); + } + + /* + * @testName: testSetObject22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject22() throws Exception { + super.testSetObject22(); + } + + /* + * @testName: testSetObject23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Tinyint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject23() throws Exception { + super.testSetObject23(); + } + + /* + * @testName: testSetObject24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Tinyint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject24() throws Exception { + super.testSetObject24(); + } + + /* + * @testName: testSetObject25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject25() throws Exception { + super.testSetObject25(); + } + + /* + * @testName: testSetObject26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject26() throws Exception { + super.testSetObject26(); + } + + /* + * @testName: testSetObject27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database.Update the column value of the Binary_Tab with a byte array using + * the PreparedStatement.setBytes(int columnIndex) method. Call the + * getObject(int parameterIndex) method.to retrieve the byte array. It should + * return the byte array object that has been set. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject27() throws Exception { + super.testSetObject27(); + } + + /* + * @testName: testSetObject28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database.Update the column value of the Varbinary_Tab with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method. Call the + * getObject(int parameterIndex) method.to retrieve the byte array. It should + * return the byte array object that has been set. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject28() throws Exception { + super.testSetObject28(); + } + + /* + * @testName: testSetObject29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database.Update the column value of the Longvarbinary_Tab with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method. Call the + * getObject(int parameterIndex) method to retrieve the byte array. It should + * return the byte array object that has been set. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject29() throws Exception { + super.testSetObject29(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4JSP.java new file mode 100644 index 0000000000..fd12916a42 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4JSP.java @@ -0,0 +1,496 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient4.java 1.15 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt4; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient4 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient4JSP extends prepStmtClient4 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt4"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt4_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient4JSP.class, prepStmtClient4.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient4JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient4JSP.class.getResource("prepStmt4_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient4JSP.class, sunJSPUrl); + + + archive.addAsWebInfResource(prepStmtClient4JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient4JSP theTests = new prepStmtClient4JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject10() throws Exception { + super.testSetObject10(); + } + + /* + * @testName: testSetObject11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject11() throws Exception { + super.testSetObject11(); + } + + /* + * @testName: testSetObject12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject12() throws Exception { + super.testSetObject12(); + } + + /* + * @testName: testSetObject13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject13() throws Exception { + super.testSetObject13(); + } + + /* + * @testName: testSetObject14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Double_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject14() throws Exception { + super.testSetObject14(); + } + + /* + * @testName: testSetObject15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Double_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject15() throws Exception { + super.testSetObject15(); + } + + /* + * @testName: testSetObject16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject16() throws Exception { + super.testSetObject16(); + } + + /* + * @testName: testSetObject17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject17() throws Exception { + super.testSetObject17(); + } + + /* + * @testName: testSetObject18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the Non Null value of Date_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the Non Null + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject18() throws Exception { + super.testSetObject18(); + } + + /* + * @testName: testSetObject19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the Non Null value of Time_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the Non Null + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject19() throws Exception { + super.testSetObject19(); + } + + /* + * @testName: testSetObject20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the Non Null value of Timestamp_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the Non Null + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject20() throws Exception { + super.testSetObject20(); + } + + /* + * @testName: testSetObject21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject21() throws Exception { + super.testSetObject21(); + } + + /* + * @testName: testSetObject22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject22() throws Exception { + super.testSetObject22(); + } + + /* + * @testName: testSetObject23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Tinyint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject23() throws Exception { + super.testSetObject23(); + } + + /* + * @testName: testSetObject24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Tinyint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject24() throws Exception { + super.testSetObject24(); + } + + /* + * @testName: testSetObject25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject25() throws Exception { + super.testSetObject25(); + } + + /* + * @testName: testSetObject26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject26() throws Exception { + super.testSetObject26(); + } + + /* + * @testName: testSetObject27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database.Update the column value of the Binary_Tab with a byte array using + * the PreparedStatement.setBytes(int columnIndex) method. Call the + * getObject(int parameterIndex) method.to retrieve the byte array. It should + * return the byte array object that has been set. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject27() throws Exception { + super.testSetObject27(); + } + + /* + * @testName: testSetObject28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database.Update the column value of the Varbinary_Tab with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method. Call the + * getObject(int parameterIndex) method.to retrieve the byte array. It should + * return the byte array object that has been set. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject28() throws Exception { + super.testSetObject28(); + } + + /* + * @testName: testSetObject29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database.Update the column value of the Longvarbinary_Tab with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method. Call the + * getObject(int parameterIndex) method to retrieve the byte array. It should + * return the byte array object that has been set. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject29() throws Exception { + super.testSetObject29(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4Servlet.java new file mode 100644 index 0000000000..38f2e86729 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt4/prepStmtClient4Servlet.java @@ -0,0 +1,486 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient4.java 1.15 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt4; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient4 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient4Servlet extends prepStmtClient4 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt4"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt4_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient4Servlet.class, prepStmtClient4.class); + // The servlet descriptor +URL servletUrl = prepStmtClient4Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient4Servlet.class.getResource("prepStmt4_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient4Servlet.class, sunServletUrl); + + archive.addAsWebInfResource(prepStmtClient4Servlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient4Servlet theTests = new prepStmtClient4Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject10() throws Exception { + super.testSetObject10(); + } + + /* + * @testName: testSetObject11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the minimum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject11() throws Exception { + super.testSetObject11(); + } + + /* + * @testName: testSetObject12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_val with the maximum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject12() throws Exception { + super.testSetObject12(); + } + + /* + * @testName: testSetObject13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_val with the maximum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject13() throws Exception { + super.testSetObject13(); + } + + /* + * @testName: testSetObject14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Double_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject14() throws Exception { + super.testSetObject14(); + } + + /* + * @testName: testSetObject15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Double_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject15() throws Exception { + super.testSetObject15(); + } + + /* + * @testName: testSetObject16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject16() throws Exception { + super.testSetObject16(); + } + + /* + * @testName: testSetObject17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject17() throws Exception { + super.testSetObject17(); + } + + /* + * @testName: testSetObject18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the Non Null value of Date_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the Non Null + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject18() throws Exception { + super.testSetObject18(); + } + + /* + * @testName: testSetObject19 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the Non Null value of Time_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the Non Null + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject19() throws Exception { + super.testSetObject19(); + } + + /* + * @testName: testSetObject20 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the Non Null value of Timestamp_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the Non Null + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject20() throws Exception { + super.testSetObject20(); + } + + /* + * @testName: testSetObject21 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject21() throws Exception { + super.testSetObject21(); + } + + /* + * @testName: testSetObject22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject22() throws Exception { + super.testSetObject22(); + } + + /* + * @testName: testSetObject23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Tinyint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject23() throws Exception { + super.testSetObject23(); + } + + /* + * @testName: testSetObject24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Tinyint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnNo) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject24() throws Exception { + super.testSetObject24(); + } + + /* + * @testName: testSetObject25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject25() throws Exception { + super.testSetObject25(); + } + + /* + * @testName: testSetObject26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject26() throws Exception { + super.testSetObject26(); + } + + /* + * @testName: testSetObject27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database.Update the column value of the Binary_Tab with a byte array using + * the PreparedStatement.setBytes(int columnIndex) method. Call the + * getObject(int parameterIndex) method.to retrieve the byte array. It should + * return the byte array object that has been set. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject27() throws Exception { + super.testSetObject27(); + } + + /* + * @testName: testSetObject28 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database.Update the column value of the Varbinary_Tab with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method. Call the + * getObject(int parameterIndex) method.to retrieve the byte array. It should + * return the byte array object that has been set. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject28() throws Exception { + super.testSetObject28(); + } + + /* + * @testName: testSetObject29 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:696; JDBC:JAVADOC:697; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database.Update the column value of the Longvarbinary_Tab with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method. Call the + * getObject(int parameterIndex) method to retrieve the byte array. It should + * return the byte array object that has been set. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject29() throws Exception { + super.testSetObject29(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/build.xml deleted file mode 100644 index f4eda9034c..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5.java index 1ec16bc2af..35dc585a69 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; //Merant DataSource class @@ -51,6 +55,9 @@ * @author * @version 1.8, 11/24/00 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient5 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt5"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5AppClient.java new file mode 100644 index 0000000000..5e23b88b4d --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5AppClient.java @@ -0,0 +1,493 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient5.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt5; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient5 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ +@Tag("tck-appclient") + +public class prepStmtClient5AppClient extends prepStmtClient5 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt5"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt5_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient5AppClient.class, prepStmtClient5.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient5AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient5AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient5AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt5_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient5AppClient theTests = new prepStmtClient5AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetNull12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:12;JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for Varchar Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull12() throws Exception { + super.testSetNull12(); + } + + /* + * @testName: testSetNull13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:13; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for LONGVARCHAR Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull13() throws Exception { + super.testSetNull13(); + } + + /* + * @testName: testSetNull14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:7; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for REAL Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + * + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull14() throws Exception { + super.testSetNull14(); + } + + /* + * @testName: testSetNull15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:10; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for DECIMAL Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull15() throws Exception { + super.testSetNull15(); + } + + /* + * @testName: testSetNull16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:17; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for BINARY Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + * + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull16() throws Exception { + super.testSetNull16(); + } + + /* + * @testName: testSetNull17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:18; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for VARBINARY Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull17() throws Exception { + super.testSetNull17(); + } + + /* + * @testName: testSetNull18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:19; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for LONGVARBINARY Type and retrieve the same value by executing a + * query. Call the ResultSet.wasNull() method to check it. It should return a + * true value. + * + */ + + @Test + @TargetVehicle("appclient") + public void testSetNull18() throws Exception { + super.testSetNull18(); + } + + /* + * @testName: testSetObject30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Tinyint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject30() throws Exception { + super.testSetObject30(); + } + + /* + * @testName: testSetObject31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject31() throws Exception { + super.testSetObject31(); + } + + /* + * @testName: testSetObject32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject32() throws Exception { + super.testSetObject32(); + } + + /* + * @testName: testSetObject33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject33() throws Exception { + super.testSetObject33(); + } + + /* + * @testName: testSetObject34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject34() throws Exception { + super.testSetObject34(); + } + + /* + * @testName: testSetObject35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject35() throws Exception { + super.testSetObject35(); + } + + /* + * @testName: testSetObject36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject36() throws Exception { + super.testSetObject36(); + } + + /* + * @testName: testSetObject37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject37() throws Exception { + super.testSetObject37(); + } + + /* + * @testName: testSetObject38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject38() throws Exception { + super.testSetObject38(); + } + + /* + * @testName: testSetObject39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject39() throws Exception { + super.testSetObject39(); + } + + /* + * @testName: testSetObject40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject40() throws Exception { + super.testSetObject40(); + } + + /* + * @testName: testSetObject41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject41() throws Exception { + super.testSetObject41(); + } + + /* + * @testName: testSetObject42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Double_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject42() throws Exception { + super.testSetObject42(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5EJB.java new file mode 100644 index 0000000000..1f1052f956 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5EJB.java @@ -0,0 +1,514 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient5.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt5; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt15.prepStmtClient15EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient5 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient5EJB extends prepStmtClient5 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt5"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt5_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient5EJB.class, prepStmtClient5.class); + + URL resURL = prepStmtClient5EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = prepStmtClient5EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmt5_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt5_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient5EJB.class, prepStmtClient5.class); + + resURL = prepStmtClient5EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmt5_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient5EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt5_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient5EJB theTests = new prepStmtClient5EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetNull12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:12;JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for Varchar Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull12() throws Exception { + super.testSetNull12(); + } + + /* + * @testName: testSetNull13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:13; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for LONGVARCHAR Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull13() throws Exception { + super.testSetNull13(); + } + + /* + * @testName: testSetNull14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:7; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for REAL Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + * + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull14() throws Exception { + super.testSetNull14(); + } + + /* + * @testName: testSetNull15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:10; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for DECIMAL Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull15() throws Exception { + super.testSetNull15(); + } + + /* + * @testName: testSetNull16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:17; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for BINARY Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + * + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull16() throws Exception { + super.testSetNull16(); + } + + /* + * @testName: testSetNull17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:18; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for VARBINARY Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull17() throws Exception { + super.testSetNull17(); + } + + /* + * @testName: testSetNull18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:19; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for LONGVARBINARY Type and retrieve the same value by executing a + * query. Call the ResultSet.wasNull() method to check it. It should return a + * true value. + * + */ + + @Test + @TargetVehicle("ejb") + public void testSetNull18() throws Exception { + super.testSetNull18(); + } + + /* + * @testName: testSetObject30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Tinyint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject30() throws Exception { + super.testSetObject30(); + } + + /* + * @testName: testSetObject31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject31() throws Exception { + super.testSetObject31(); + } + + /* + * @testName: testSetObject32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject32() throws Exception { + super.testSetObject32(); + } + + /* + * @testName: testSetObject33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject33() throws Exception { + super.testSetObject33(); + } + + /* + * @testName: testSetObject34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject34() throws Exception { + super.testSetObject34(); + } + + /* + * @testName: testSetObject35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject35() throws Exception { + super.testSetObject35(); + } + + /* + * @testName: testSetObject36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject36() throws Exception { + super.testSetObject36(); + } + + /* + * @testName: testSetObject37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject37() throws Exception { + super.testSetObject37(); + } + + /* + * @testName: testSetObject38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject38() throws Exception { + super.testSetObject38(); + } + + /* + * @testName: testSetObject39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject39() throws Exception { + super.testSetObject39(); + } + + /* + * @testName: testSetObject40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject40() throws Exception { + super.testSetObject40(); + } + + /* + * @testName: testSetObject41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject41() throws Exception { + super.testSetObject41(); + } + + /* + * @testName: testSetObject42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Double_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject42() throws Exception { + super.testSetObject42(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5JSP.java new file mode 100644 index 0000000000..fd1e685486 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5JSP.java @@ -0,0 +1,496 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient5.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt5; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient5 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + */ + +@Tag("tck-javatest") + +public class prepStmtClient5JSP extends prepStmtClient5 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt5"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt5_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient5JSP.class, prepStmtClient5.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient5JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient5JSP.class.getResource("prepStmt5_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient5JSP.class, sunJSPUrl); + + + archive.addAsWebInfResource(prepStmtClient5JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient5JSP theTests = new prepStmtClient5JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetNull12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:12;JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for Varchar Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull12() throws Exception { + super.testSetNull12(); + } + + /* + * @testName: testSetNull13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:13; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for LONGVARCHAR Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull13() throws Exception { + super.testSetNull13(); + } + + /* + * @testName: testSetNull14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:7; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for REAL Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + * + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull14() throws Exception { + super.testSetNull14(); + } + + /* + * @testName: testSetNull15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:10; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for DECIMAL Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull15() throws Exception { + super.testSetNull15(); + } + + /* + * @testName: testSetNull16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:17; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for BINARY Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + * + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull16() throws Exception { + super.testSetNull16(); + } + + /* + * @testName: testSetNull17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:18; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for VARBINARY Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull17() throws Exception { + super.testSetNull17(); + } + + /* + * @testName: testSetNull18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:19; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for LONGVARBINARY Type and retrieve the same value by executing a + * query. Call the ResultSet.wasNull() method to check it. It should return a + * true value. + * + */ + + @Test + @TargetVehicle("jsp") + public void testSetNull18() throws Exception { + super.testSetNull18(); + } + + /* + * @testName: testSetObject30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Tinyint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject30() throws Exception { + super.testSetObject30(); + } + + /* + * @testName: testSetObject31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject31() throws Exception { + super.testSetObject31(); + } + + /* + * @testName: testSetObject32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject32() throws Exception { + super.testSetObject32(); + } + + /* + * @testName: testSetObject33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject33() throws Exception { + super.testSetObject33(); + } + + /* + * @testName: testSetObject34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject34() throws Exception { + super.testSetObject34(); + } + + /* + * @testName: testSetObject35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject35() throws Exception { + super.testSetObject35(); + } + + /* + * @testName: testSetObject36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject36() throws Exception { + super.testSetObject36(); + } + + /* + * @testName: testSetObject37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject37() throws Exception { + super.testSetObject37(); + } + + /* + * @testName: testSetObject38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject38() throws Exception { + super.testSetObject38(); + } + + /* + * @testName: testSetObject39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject39() throws Exception { + super.testSetObject39(); + } + + /* + * @testName: testSetObject40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject40() throws Exception { + super.testSetObject40(); + } + + /* + * @testName: testSetObject41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject41() throws Exception { + super.testSetObject41(); + } + + /* + * @testName: testSetObject42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Double_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject42() throws Exception { + super.testSetObject42(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5Servlet.java new file mode 100644 index 0000000000..d291e39659 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt5/prepStmtClient5Servlet.java @@ -0,0 +1,489 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient5.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt5; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient5 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient5Servlet extends prepStmtClient5 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt5"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt5_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient5Servlet.class, prepStmtClient5.class); + + // The servlet descriptor +URL servletUrl = prepStmtClient5Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient5Servlet.class.getResource("prepStmt5_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient5Servlet.class, sunServletUrl); + + archive.addAsWebInfResource(prepStmtClient5Servlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient5Servlet theTests = new prepStmtClient5Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetNull12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:12;JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for Varchar Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull12() throws Exception { + super.testSetNull12(); + } + + /* + * @testName: testSetNull13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:13; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for LONGVARCHAR Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull13() throws Exception { + super.testSetNull13(); + } + + /* + * @testName: testSetNull14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:7; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for REAL Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + * + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull14() throws Exception { + super.testSetNull14(); + } + + /* + * @testName: testSetNull15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:10; JDBC:JAVADOC:454; JDBC:JAVADOC:455; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for DECIMAL Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull15() throws Exception { + super.testSetNull15(); + } + + /* + * @testName: testSetNull16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:17; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for BINARY Type and retrieve the same value by executing a query. Call + * the ResultSet.wasNull() method to check it. It should return a true value. + * + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull16() throws Exception { + super.testSetNull16(); + } + + /* + * @testName: testSetNull17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:18; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for VARBINARY Type and retrieve the same value by executing a query. + * Call the ResultSet.wasNull() method to check it. It should return a true + * value. + * + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull17() throws Exception { + super.testSetNull17(); + } + + /* + * @testName: testSetNull18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:656; JDBC:JAVADOC:657; + * JDBC:JAVADOC:19; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. execute the precompiled SQL Statement to set the value as SQL + * Null for LONGVARBINARY Type and retrieve the same value by executing a + * query. Call the ResultSet.wasNull() method to check it. It should return a + * true value. + * + */ + + @Test + @TargetVehicle("servlet") + public void testSetNull18() throws Exception { + super.testSetNull18(); + } + + /* + * @testName: testSetObject30 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Tinyint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject30() throws Exception { + super.testSetObject30(); + } + + /* + * @testName: testSetObject31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject31() throws Exception { + super.testSetObject31(); + } + + /* + * @testName: testSetObject32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject32() throws Exception { + super.testSetObject32(); + } + + /* + * @testName: testSetObject33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Smallint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject33() throws Exception { + super.testSetObject33(); + } + + /* + * @testName: testSetObject34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject34() throws Exception { + super.testSetObject34(); + } + + /* + * @testName: testSetObject35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Integer_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject35() throws Exception { + super.testSetObject35(); + } + + /* + * @testName: testSetObject36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject36() throws Exception { + super.testSetObject36(); + } + + /* + * @testName: testSetObject37 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Bigint_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject37() throws Exception { + super.testSetObject37(); + } + + /* + * @testName: testSetObject38 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject38() throws Exception { + super.testSetObject38(); + } + + /* + * @testName: testSetObject39 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Real_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject39() throws Exception { + super.testSetObject39(); + } + + /* + * @testName: testSetObject40 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject40() throws Exception { + super.testSetObject40(); + } + + /* + * @testName: testSetObject41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Null_Val with the minimum value of Float_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the minimum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject41() throws Exception { + super.testSetObject41(); + } + + /* + * @testName: testSetObject42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x) method,update + * the column Min_Val with the maximum value of Double_Tab. Call the + * getObject(int columnno) method to retrieve this value. Extract the maximum + * value from the tssql.stmt file. Compare this value with the value returned + * by the getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject42() throws Exception { + super.testSetObject42(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/build.xml deleted file mode 100644 index 14044415fd..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6.java index 0a90bb4cbe..4ea469f121 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6.java @@ -34,8 +34,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; // Merant DataSource class @@ -54,6 +58,9 @@ * @author * @version 1.8, 11/24/00 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient6 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt6"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6AppClient.java new file mode 100644 index 0000000000..64545eaa38 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6AppClient.java @@ -0,0 +1,430 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt6; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient6 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient6AppClient extends prepStmtClient6 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt6"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt6_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient6AppClient.class, prepStmtClient6.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient6AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient6AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient6AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt6_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient6AppClient theTests = new prepStmtClient6AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType, int scale) method,update the column Null_Val with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject43() throws Exception { + super.testSetObject43(); + } + + /* + * @testName: testSetObject44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType, int scale) method,update the column NUll_Val with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject44() throws Exception { + super.testSetObject44(); + } + + /* + * @testName: testSetObject45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject45() throws Exception { + super.testSetObject45(); + } + + /* + * @testName: testSetObject46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType, int scale) method,update the column Null_Val with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject46() throws Exception { + super.testSetObject46(); + } + + /* + * @testName: testSetObject47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Numeric_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject47() throws Exception { + super.testSetObject47(); + } + + /* + * @testName: testSetObject48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JDBC:JAVADOC:1;JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val with the maximum value of + * Bit_Tab. Call the getBoolean(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getBoolean(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject48() throws Exception { + super.testSetObject48(); + } + + /* + * @testName: testSetObject49 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JDBC:JAVADOC:1; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the minimum value of + * Bit_Tab. Call the getBoolean(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getBoolean(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject49() throws Exception { + super.testSetObject49(); + } + + /* + * @testName: testSetObject50 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the maximum value of + * Char_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject50() throws Exception { + super.testSetObject50(); + } + + /* + * @testName: testSetObject51 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the minimum value of + * Char_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject51() throws Exception { + super.testSetObject51(); + } + + /* + * @testName: testSetObject52 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the maximum value of + * Varchar_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject52() throws Exception { + super.testSetObject52(); + } + + /* + * @testName: testSetObject53 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the minimum value of + * Varchar_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject53() throws Exception { + super.testSetObject53(); + } + + /* + * @testName: testSetObject54 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the maximum value of + * Longvarchar_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject54() throws Exception { + super.testSetObject54(); + } + + /* + * @testName: testSetObject59 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the Non Null value of + * Date_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the Non Null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject59() throws Exception { + super.testSetObject59(); + } + + /* + * @testName: testSetObject60 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the Non Null value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the Non Null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject60() throws Exception { + super.testSetObject60(); + } + + /* + * @testName: testSetObject61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the Non Null value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the Non Null value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject61() throws Exception { + super.testSetObject61(); + } + + /* + * @testName: testSetObject62 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Tinyint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject62() throws Exception { + super.testSetObject62(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6EJB.java new file mode 100644 index 0000000000..709845b639 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6EJB.java @@ -0,0 +1,451 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt6; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt15.prepStmtClient15EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient6 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient6EJB extends prepStmtClient6 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt6"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt6_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient6EJB.class, prepStmtClient6.class); + + URL resURL = prepStmtClient6EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + resURL = prepStmtClient6EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmt6_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt1_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient6EJB.class, prepStmtClient6.class); + + resURL = prepStmtClient6EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmt6_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient6EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt6_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient6EJB theTests = new prepStmtClient6EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType, int scale) method,update the column Null_Val with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject43() throws Exception { + super.testSetObject43(); + } + + /* + * @testName: testSetObject44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType, int scale) method,update the column NUll_Val with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject44() throws Exception { + super.testSetObject44(); + } + + /* + * @testName: testSetObject45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject45() throws Exception { + super.testSetObject45(); + } + + /* + * @testName: testSetObject46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType, int scale) method,update the column Null_Val with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject46() throws Exception { + super.testSetObject46(); + } + + /* + * @testName: testSetObject47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Numeric_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject47() throws Exception { + super.testSetObject47(); + } + + /* + * @testName: testSetObject48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JDBC:JAVADOC:1;JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val with the maximum value of + * Bit_Tab. Call the getBoolean(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getBoolean(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject48() throws Exception { + super.testSetObject48(); + } + + /* + * @testName: testSetObject49 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JDBC:JAVADOC:1; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the minimum value of + * Bit_Tab. Call the getBoolean(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getBoolean(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject49() throws Exception { + super.testSetObject49(); + } + + /* + * @testName: testSetObject50 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the maximum value of + * Char_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject50() throws Exception { + super.testSetObject50(); + } + + /* + * @testName: testSetObject51 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the minimum value of + * Char_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject51() throws Exception { + super.testSetObject51(); + } + + /* + * @testName: testSetObject52 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the maximum value of + * Varchar_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject52() throws Exception { + super.testSetObject52(); + } + + /* + * @testName: testSetObject53 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the minimum value of + * Varchar_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject53() throws Exception { + super.testSetObject53(); + } + + /* + * @testName: testSetObject54 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the maximum value of + * Longvarchar_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject54() throws Exception { + super.testSetObject54(); + } + + /* + * @testName: testSetObject59 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the Non Null value of + * Date_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the Non Null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject59() throws Exception { + super.testSetObject59(); + } + + /* + * @testName: testSetObject60 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the Non Null value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the Non Null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject60() throws Exception { + super.testSetObject60(); + } + + /* + * @testName: testSetObject61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the Non Null value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the Non Null value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject61() throws Exception { + super.testSetObject61(); + } + + /* + * @testName: testSetObject62 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Tinyint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject62() throws Exception { + super.testSetObject62(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6JSP.java new file mode 100644 index 0000000000..b97f9e19f2 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6JSP.java @@ -0,0 +1,435 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt6; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient6 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient6JSP extends prepStmtClient6 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt6"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt6_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient6JSP.class, prepStmtClient6.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient6JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient6JSP.class.getResource("prepStmt6_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient6JSP.class, sunJSPUrl); + + + archive.addAsWebInfResource(prepStmtClient6JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient6JSP theTests = new prepStmtClient6JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType, int scale) method,update the column Null_Val with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject43() throws Exception { + super.testSetObject43(); + } + + /* + * @testName: testSetObject44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType, int scale) method,update the column NUll_Val with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject44() throws Exception { + super.testSetObject44(); + } + + /* + * @testName: testSetObject45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject45() throws Exception { + super.testSetObject45(); + } + + /* + * @testName: testSetObject46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType, int scale) method,update the column Null_Val with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject46() throws Exception { + super.testSetObject46(); + } + + /* + * @testName: testSetObject47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Numeric_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject47() throws Exception { + super.testSetObject47(); + } + + /* + * @testName: testSetObject48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JDBC:JAVADOC:1;JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val with the maximum value of + * Bit_Tab. Call the getBoolean(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getBoolean(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject48() throws Exception { + super.testSetObject48(); + } + + /* + * @testName: testSetObject49 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JDBC:JAVADOC:1; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the minimum value of + * Bit_Tab. Call the getBoolean(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getBoolean(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject49() throws Exception { + super.testSetObject49(); + } + + /* + * @testName: testSetObject50 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the maximum value of + * Char_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject50() throws Exception { + super.testSetObject50(); + } + + /* + * @testName: testSetObject51 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the minimum value of + * Char_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject51() throws Exception { + super.testSetObject51(); + } + + /* + * @testName: testSetObject52 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the maximum value of + * Varchar_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject52() throws Exception { + super.testSetObject52(); + } + + /* + * @testName: testSetObject53 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the minimum value of + * Varchar_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject53() throws Exception { + super.testSetObject53(); + } + + /* + * @testName: testSetObject54 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the maximum value of + * Longvarchar_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject54() throws Exception { + super.testSetObject54(); + } + + /* + * @testName: testSetObject59 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the Non Null value of + * Date_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the Non Null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject59() throws Exception { + super.testSetObject59(); + } + + /* + * @testName: testSetObject60 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the Non Null value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the Non Null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject60() throws Exception { + super.testSetObject60(); + } + + /* + * @testName: testSetObject61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the Non Null value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the Non Null value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject61() throws Exception { + super.testSetObject61(); + } + + /* + * @testName: testSetObject62 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Tinyint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject62() throws Exception { + super.testSetObject62(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6Servlet.java new file mode 100644 index 0000000000..fe9b83611d --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt6/prepStmtClient6Servlet.java @@ -0,0 +1,423 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt6; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient6 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient6Servlet extends prepStmtClient6 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt6"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt6_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient6Servlet.class, prepStmtClient6.class); + // The servlet descriptor +URL servletUrl = prepStmtClient6Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient6Servlet.class.getResource("prepStmt6_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient6Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient6Servlet theTests = new prepStmtClient6Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType, int scale) method,update the column Null_Val with the + * minimum value of Double_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject43() throws Exception { + super.testSetObject43(); + } + + /* + * @testName: testSetObject44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType, int scale) method,update the column NUll_Val with the + * maximum value of Decimal_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject44() throws Exception { + super.testSetObject44(); + } + + /* + * @testName: testSetObject45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject45() throws Exception { + super.testSetObject45(); + } + + /* + * @testName: testSetObject46 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType, int scale) method,update the column Null_Val with the + * maximum value of Numeric_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject46() throws Exception { + super.testSetObject46(); + } + + /* + * @testName: testSetObject47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Numeric_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject47() throws Exception { + super.testSetObject47(); + } + + /* + * @testName: testSetObject48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JDBC:JAVADOC:1;JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Min_Val with the maximum value of + * Bit_Tab. Call the getBoolean(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getBoolean(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject48() throws Exception { + super.testSetObject48(); + } + + /* + * @testName: testSetObject49 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JDBC:JAVADOC:1; JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the minimum value of + * Bit_Tab. Call the getBoolean(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getBoolean(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject49() throws Exception { + super.testSetObject49(); + } + + /* + * @testName: testSetObject50 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the maximum value of + * Char_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject50() throws Exception { + super.testSetObject50(); + } + + /* + * @testName: testSetObject51 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the minimum value of + * Char_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject51() throws Exception { + super.testSetObject51(); + } + + /* + * @testName: testSetObject52 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the maximum value of + * Varchar_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject52() throws Exception { + super.testSetObject52(); + } + + /* + * @testName: testSetObject53 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the minimum value of + * Varchar_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject53() throws Exception { + super.testSetObject53(); + } + + /* + * @testName: testSetObject54 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the maximum value of + * Longvarchar_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject54() throws Exception { + super.testSetObject54(); + } + + /* + * @testName: testSetObject59 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the Non Null value of + * Date_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the Non Null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject59() throws Exception { + super.testSetObject59(); + } + + /* + * @testName: testSetObject60 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the Non Null value of + * Time_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the Non Null value from the tssql.stmt file. Compare this value + * with the value returned by the getObject(int columnno) method. Both the + * values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject60() throws Exception { + super.testSetObject60(); + } + + /* + * @testName: testSetObject61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, int + * targetSqlType) method,update the column Null_Val with the Non Null value of + * Timestamp_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the Non Null value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject61() throws Exception { + super.testSetObject61(); + } + + /* + * @testName: testSetObject62 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Tinyint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject62() throws Exception { + super.testSetObject62(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/build.xml deleted file mode 100644 index 33dbd3fc03..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7.java index 33532036bc..973c140bb9 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; // Merant DataSource class @@ -52,6 +56,9 @@ * @author * @version 1.8, 11/24/00 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient7 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt7"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7AppClient.java new file mode 100644 index 0000000000..822f883a25 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7AppClient.java @@ -0,0 +1,472 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient7.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt7; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient7 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient7AppClient extends prepStmtClient7 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt7"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt7_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient7AppClient.class, prepStmtClient7.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient7AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient7AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient7AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt7_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient7AppClient theTests = new prepStmtClient7AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Tinyint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject63() throws Exception { + super.testSetObject63(); + } + + /* + * @testName: testSetObject64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject64() throws Exception { + super.testSetObject64(); + } + + /* + * @testName: testSetObject65 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,targetSqlType) + * method,update the column Null_Val with the minimum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject65() throws Exception { + super.testSetObject65(); + } + + /* + * @testName: testSetObject66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject66() throws Exception { + super.testSetObject66(); + } + + /* + * @testName: testSetObject67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject67() throws Exception { + super.testSetObject67(); + } + + /* + * @testName: testSetObject68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject68() throws Exception { + super.testSetObject68(); + } + + /* + * @testName: testSetObject69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject69() throws Exception { + super.testSetObject69(); + } + + /* + * @testName: testSetObject70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject70() throws Exception { + super.testSetObject70(); + } + + /* + * @testName: testSetObject71 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject71() throws Exception { + super.testSetObject71(); + } + + /* + * @testName: testSetObject72 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject72() throws Exception { + super.testSetObject72(); + } + + /* + * @testName: testSetObject73 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject73() throws Exception { + super.testSetObject73(); + } + + /* + * @testName: testSetObject74 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Double_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject74() throws Exception { + super.testSetObject74(); + } + + /* + * @testName: testSetObject75 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Double_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject75() throws Exception { + super.testSetObject75(); + } + + /* + * @testName: testSetObject76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Min_Val with the maximum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject76() throws Exception { + super.testSetObject76(); + } + + /* + * @testName: testSetObject77 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject77() throws Exception { + super.testSetObject77(); + } + + /* + * @testName: testSetObject78 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,targetSqlType, + * int scale),update the column Min_Val with the maximum value of NUmeric_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject78() throws Exception { + super.testSetObject78(); + } + + /* + * @testName: testSetObject79 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Numeric_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject79() throws Exception { + super.testSetObject79(); + } + + /* + * @testName: testSetObject82 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the maximum value of Decimal_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject82() throws Exception { + super.testSetObject82(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7EJB.java new file mode 100644 index 0000000000..abbefab00c --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7EJB.java @@ -0,0 +1,493 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient7.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt7; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt15.prepStmtClient15EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient7 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-appclient") + +public class prepStmtClient7EJB extends prepStmtClient7 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt7"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt7_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient7EJB.class, prepStmtClient7.class); + + URL resURL = prepStmtClient7EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = prepStmtClient7EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmt7_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt7_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient7EJB.class, prepStmtClient7.class); + + resURL = prepStmtClient7EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmt7_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient7EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt7_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient7EJB theTests = new prepStmtClient7EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Tinyint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject63() throws Exception { + super.testSetObject63(); + } + + /* + * @testName: testSetObject64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject64() throws Exception { + super.testSetObject64(); + } + + /* + * @testName: testSetObject65 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,targetSqlType) + * method,update the column Null_Val with the minimum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject65() throws Exception { + super.testSetObject65(); + } + + /* + * @testName: testSetObject66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject66() throws Exception { + super.testSetObject66(); + } + + /* + * @testName: testSetObject67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject67() throws Exception { + super.testSetObject67(); + } + + /* + * @testName: testSetObject68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject68() throws Exception { + super.testSetObject68(); + } + + /* + * @testName: testSetObject69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject69() throws Exception { + super.testSetObject69(); + } + + /* + * @testName: testSetObject70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject70() throws Exception { + super.testSetObject70(); + } + + /* + * @testName: testSetObject71 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject71() throws Exception { + super.testSetObject71(); + } + + /* + * @testName: testSetObject72 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject72() throws Exception { + super.testSetObject72(); + } + + /* + * @testName: testSetObject73 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject73() throws Exception { + super.testSetObject73(); + } + + /* + * @testName: testSetObject74 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Double_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject74() throws Exception { + super.testSetObject74(); + } + + /* + * @testName: testSetObject75 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Double_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject75() throws Exception { + super.testSetObject75(); + } + + /* + * @testName: testSetObject76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Min_Val with the maximum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject76() throws Exception { + super.testSetObject76(); + } + + /* + * @testName: testSetObject77 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject77() throws Exception { + super.testSetObject77(); + } + + /* + * @testName: testSetObject78 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,targetSqlType, + * int scale),update the column Min_Val with the maximum value of NUmeric_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject78() throws Exception { + super.testSetObject78(); + } + + /* + * @testName: testSetObject79 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Numeric_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject79() throws Exception { + super.testSetObject79(); + } + + /* + * @testName: testSetObject82 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the maximum value of Decimal_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject82() throws Exception { + super.testSetObject82(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7JSP.java new file mode 100644 index 0000000000..7e1550cf14 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7JSP.java @@ -0,0 +1,476 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient7.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt7; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient7 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient7JSP extends prepStmtClient7 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt7"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt7_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient7JSP.class, prepStmtClient7.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient7JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient7JSP.class.getResource("prepStmt7_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient7JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(prepStmtClient7JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient7JSP theTests = new prepStmtClient7JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Tinyint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject63() throws Exception { + super.testSetObject63(); + } + + /* + * @testName: testSetObject64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject64() throws Exception { + super.testSetObject64(); + } + + /* + * @testName: testSetObject65 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,targetSqlType) + * method,update the column Null_Val with the minimum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject65() throws Exception { + super.testSetObject65(); + } + + /* + * @testName: testSetObject66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject66() throws Exception { + super.testSetObject66(); + } + + /* + * @testName: testSetObject67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject67() throws Exception { + super.testSetObject67(); + } + + /* + * @testName: testSetObject68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject68() throws Exception { + super.testSetObject68(); + } + + /* + * @testName: testSetObject69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject69() throws Exception { + super.testSetObject69(); + } + + /* + * @testName: testSetObject70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject70() throws Exception { + super.testSetObject70(); + } + + /* + * @testName: testSetObject71 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject71() throws Exception { + super.testSetObject71(); + } + + /* + * @testName: testSetObject72 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject72() throws Exception { + super.testSetObject72(); + } + + /* + * @testName: testSetObject73 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject73() throws Exception { + super.testSetObject73(); + } + + /* + * @testName: testSetObject74 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Double_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject74() throws Exception { + super.testSetObject74(); + } + + /* + * @testName: testSetObject75 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Double_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject75() throws Exception { + super.testSetObject75(); + } + + /* + * @testName: testSetObject76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Min_Val with the maximum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject76() throws Exception { + super.testSetObject76(); + } + + /* + * @testName: testSetObject77 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject77() throws Exception { + super.testSetObject77(); + } + + /* + * @testName: testSetObject78 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,targetSqlType, + * int scale),update the column Min_Val with the maximum value of NUmeric_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject78() throws Exception { + super.testSetObject78(); + } + + /* + * @testName: testSetObject79 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Numeric_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject79() throws Exception { + super.testSetObject79(); + } + + /* + * @testName: testSetObject82 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the maximum value of Decimal_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject82() throws Exception { + super.testSetObject82(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7Servlet.java new file mode 100644 index 0000000000..358bdfc0ab --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt7/prepStmtClient7Servlet.java @@ -0,0 +1,465 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)prepStmtClient7.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt7; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +/** + * The prepStmtClient7 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 11/24/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient7Servlet extends prepStmtClient7 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt7"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt7_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient7Servlet.class, prepStmtClient7.class); + // The servlet descriptor +URL servletUrl = prepStmtClient7Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient7Servlet.class.getResource("prepStmt7_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient7Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient7Servlet theTests = new prepStmtClient7Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Tinyint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject63() throws Exception { + super.testSetObject63(); + } + + /* + * @testName: testSetObject64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject64() throws Exception { + super.testSetObject64(); + } + + /* + * @testName: testSetObject65 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,targetSqlType) + * method,update the column Null_Val with the minimum value of Smallint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject65() throws Exception { + super.testSetObject65(); + } + + /* + * @testName: testSetObject66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject66() throws Exception { + super.testSetObject66(); + } + + /* + * @testName: testSetObject67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Integer_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject67() throws Exception { + super.testSetObject67(); + } + + /* + * @testName: testSetObject68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Bigint_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject68() throws Exception { + super.testSetObject68(); + } + + /* + * @testName: testSetObject69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Bigint_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject69() throws Exception { + super.testSetObject69(); + } + + /* + * @testName: testSetObject70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject70() throws Exception { + super.testSetObject70(); + } + + /* + * @testName: testSetObject71 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum value of + * Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject71() throws Exception { + super.testSetObject71(); + } + + /* + * @testName: testSetObject72 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject72() throws Exception { + super.testSetObject72(); + } + + /* + * @testName: testSetObject73 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject73() throws Exception { + super.testSetObject73(); + } + + /* + * @testName: testSetObject74 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val with the maximum value of Double_Tab. Call + * the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject74() throws Exception { + super.testSetObject74(); + } + + /* + * @testName: testSetObject75 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the minimum value of Double_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * minimum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject75() throws Exception { + super.testSetObject75(); + } + + /* + * @testName: testSetObject76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Min_Val with the maximum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject76() throws Exception { + super.testSetObject76(); + } + + /* + * @testName: testSetObject77 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject77() throws Exception { + super.testSetObject77(); + } + + /* + * @testName: testSetObject78 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x,targetSqlType, + * int scale),update the column Min_Val with the maximum value of NUmeric_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject78() throws Exception { + super.testSetObject78(); + } + + /* + * @testName: testSetObject79 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val with the minimum value of + * Numeric_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject79() throws Exception { + super.testSetObject79(); + } + + /* + * @testName: testSetObject82 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val with the maximum value of Decimal_Tab. + * Call the getObject(int columnno) method to retrieve this value. Extract the + * maximum value from the tssql.stmt file. Compare this value with the value + * returned by the getObject(int columnno) method. Both the values should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject82() throws Exception { + super.testSetObject82(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/build.xml deleted file mode 100644 index 133fdf0a86..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8.java index 05da30291a..2ab50f226a 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -53,6 +57,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient8 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt8"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8AppClient.java new file mode 100644 index 0000000000..2c0f0e5e2f --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8AppClient.java @@ -0,0 +1,511 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt8; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient8 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class prepStmtClient8AppClient extends prepStmtClient8 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt8"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt8_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient8AppClient.class, prepStmtClient8.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient8AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient8AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient8AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt9_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient8AppClient theTests = new prepStmtClient8AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject83 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject83() throws Exception { + super.testSetObject83(); + } + + /* + * @testName: testSetObject84 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject84() throws Exception { + super.testSetObject84(); + } + + /* + * @testName: testSetObject85 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject85() throws Exception { + super.testSetObject85(); + } + + /* + * @testName: testSetObject86 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject86() throws Exception { + super.testSetObject86(); + } + + /* + * @testName: testSetObject87 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject87() throws Exception { + super.testSetObject87(); + } + + /* + * @testName: testSetObject88 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject88() throws Exception { + super.testSetObject88(); + } + + /* + * @testName: testSetObject89 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject89() throws Exception { + super.testSetObject89(); + } + + /* + * @testName: testSetObject90 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject90() throws Exception { + super.testSetObject90(); + } + + /* + * @testName: testSetObject91 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject91() throws Exception { + super.testSetObject91(); + } + + /* + * @testName: testSetObject92 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject92() throws Exception { + super.testSetObject92(); + } + + /* + * @testName: testSetObject93 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Integer_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject93() throws Exception { + super.testSetObject93(); + } + + /* + * @testName: testSetObject94 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Bigint_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject94() throws Exception { + super.testSetObject94(); + } + + /* + * @testName: testSetObject95 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Bigint_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject95() throws Exception { + super.testSetObject95(); + } + + /* + * @testName: testSetObject96 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum (true) value + * of Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (true) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject96() throws Exception { + super.testSetObject96(); + } + + /* + * @testName: testSetObject97 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject97() throws Exception { + super.testSetObject97(); + } + + /* + * @testName: testSetObject98 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum (true) value + * of Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (true) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject98() throws Exception { + super.testSetObject98(); + } + + /* + * @testName: testSetObject99 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject99() throws Exception { + super.testSetObject99(); + } + + /* + * @testName: testSetObject100 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Double_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject100() throws Exception { + super.testSetObject100(); + } + + /* + * @testName: testSetObject101 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Double_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject101() throws Exception { + super.testSetObject101(); + } + + /* + * @testName: testSetObject102 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Decimal_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testSetObject102() throws Exception { + super.testSetObject102(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8EJB.java new file mode 100644 index 0000000000..1916e05497 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8EJB.java @@ -0,0 +1,531 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt8; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt15.prepStmtClient15EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient8 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class prepStmtClient8EJB extends prepStmtClient8 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt8"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt8_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient8EJB.class, prepStmtClient8.class); + + URL resURL = prepStmtClient8EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = prepStmtClient8EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmt8_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt8_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient8EJB.class, prepStmtClient8.class); + + resURL = prepStmtClient8EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmt8_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient8EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt8_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient8EJB theTests = new prepStmtClient8EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject83 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject83() throws Exception { + super.testSetObject83(); + } + + /* + * @testName: testSetObject84 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject84() throws Exception { + super.testSetObject84(); + } + + /* + * @testName: testSetObject85 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject85() throws Exception { + super.testSetObject85(); + } + + /* + * @testName: testSetObject86 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject86() throws Exception { + super.testSetObject86(); + } + + /* + * @testName: testSetObject87 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject87() throws Exception { + super.testSetObject87(); + } + + /* + * @testName: testSetObject88 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject88() throws Exception { + super.testSetObject88(); + } + + /* + * @testName: testSetObject89 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject89() throws Exception { + super.testSetObject89(); + } + + /* + * @testName: testSetObject90 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject90() throws Exception { + super.testSetObject90(); + } + + /* + * @testName: testSetObject91 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject91() throws Exception { + super.testSetObject91(); + } + + /* + * @testName: testSetObject92 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject92() throws Exception { + super.testSetObject92(); + } + + /* + * @testName: testSetObject93 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Integer_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject93() throws Exception { + super.testSetObject93(); + } + + /* + * @testName: testSetObject94 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Bigint_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject94() throws Exception { + super.testSetObject94(); + } + + /* + * @testName: testSetObject95 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Bigint_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject95() throws Exception { + super.testSetObject95(); + } + + /* + * @testName: testSetObject96 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum (true) value + * of Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (true) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject96() throws Exception { + super.testSetObject96(); + } + + /* + * @testName: testSetObject97 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject97() throws Exception { + super.testSetObject97(); + } + + /* + * @testName: testSetObject98 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum (true) value + * of Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (true) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject98() throws Exception { + super.testSetObject98(); + } + + /* + * @testName: testSetObject99 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject99() throws Exception { + super.testSetObject99(); + } + + /* + * @testName: testSetObject100 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Double_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject100() throws Exception { + super.testSetObject100(); + } + + /* + * @testName: testSetObject101 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Double_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject101() throws Exception { + super.testSetObject101(); + } + + /* + * @testName: testSetObject102 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Decimal_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testSetObject102() throws Exception { + super.testSetObject102(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8JSP.java new file mode 100644 index 0000000000..4a57d7d207 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8JSP.java @@ -0,0 +1,514 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt8; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient8 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class prepStmtClient8JSP extends prepStmtClient8 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt8"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt8_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient8JSP.class, prepStmtClient8.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = prepStmtClient8JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient8JSP.class.getResource("prepStmt8_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient8JSP.class, sunJSPUrl); + + + archive.addAsWebInfResource(prepStmtClient8JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient8JSP theTests = new prepStmtClient8JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject83 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject83() throws Exception { + super.testSetObject83(); + } + + /* + * @testName: testSetObject84 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject84() throws Exception { + super.testSetObject84(); + } + + /* + * @testName: testSetObject85 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject85() throws Exception { + super.testSetObject85(); + } + + /* + * @testName: testSetObject86 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject86() throws Exception { + super.testSetObject86(); + } + + /* + * @testName: testSetObject87 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject87() throws Exception { + super.testSetObject87(); + } + + /* + * @testName: testSetObject88 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject88() throws Exception { + super.testSetObject88(); + } + + /* + * @testName: testSetObject89 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject89() throws Exception { + super.testSetObject89(); + } + + /* + * @testName: testSetObject90 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject90() throws Exception { + super.testSetObject90(); + } + + /* + * @testName: testSetObject91 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject91() throws Exception { + super.testSetObject91(); + } + + /* + * @testName: testSetObject92 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject92() throws Exception { + super.testSetObject92(); + } + + /* + * @testName: testSetObject93 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Integer_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject93() throws Exception { + super.testSetObject93(); + } + + /* + * @testName: testSetObject94 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Bigint_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject94() throws Exception { + super.testSetObject94(); + } + + /* + * @testName: testSetObject95 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Bigint_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject95() throws Exception { + super.testSetObject95(); + } + + /* + * @testName: testSetObject96 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum (true) value + * of Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (true) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject96() throws Exception { + super.testSetObject96(); + } + + /* + * @testName: testSetObject97 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject97() throws Exception { + super.testSetObject97(); + } + + /* + * @testName: testSetObject98 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum (true) value + * of Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (true) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject98() throws Exception { + super.testSetObject98(); + } + + /* + * @testName: testSetObject99 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject99() throws Exception { + super.testSetObject99(); + } + + /* + * @testName: testSetObject100 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Double_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject100() throws Exception { + super.testSetObject100(); + } + + /* + * @testName: testSetObject101 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Double_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject101() throws Exception { + super.testSetObject101(); + } + + /* + * @testName: testSetObject102 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Decimal_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testSetObject102() throws Exception { + super.testSetObject102(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8Servlet.java new file mode 100644 index 0000000000..11d52671c8 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt8/prepStmtClient8Servlet.java @@ -0,0 +1,502 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt8; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient8 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class prepStmtClient8Servlet extends prepStmtClient8 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt8"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt8_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient8Servlet.class, prepStmtClient8.class); + // The servlet descriptor +URL servletUrl = prepStmtClient8Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient8Servlet.class.getResource("prepStmt8_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient8Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient8Servlet theTests = new prepStmtClient8Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testSetObject83 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject83() throws Exception { + super.testSetObject83(); + } + + /* + * @testName: testSetObject84 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject84() throws Exception { + super.testSetObject84(); + } + + /* + * @testName: testSetObject85 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum value of + * Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject85() throws Exception { + super.testSetObject85(); + } + + /* + * @testName: testSetObject86 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum value + * of Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject86() throws Exception { + super.testSetObject86(); + } + + /* + * @testName: testSetObject87 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum value + * of Decimal_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject87() throws Exception { + super.testSetObject87(); + } + + /* + * @testName: testSetObject88 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum value of + * Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject88() throws Exception { + super.testSetObject88(); + } + + /* + * @testName: testSetObject89 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum value of + * Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the minimum value from the tssql.stmt file. Compare this value with + * the value returned by the getObject(int columnno) method. Both the values + * should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject89() throws Exception { + super.testSetObject89(); + } + + /* + * @testName: testSetObject90 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject90() throws Exception { + super.testSetObject90(); + } + + /* + * @testName: testSetObject91 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject91() throws Exception { + super.testSetObject91(); + } + + /* + * @testName: testSetObject92 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject92() throws Exception { + super.testSetObject92(); + } + + /* + * @testName: testSetObject93 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Integer_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject93() throws Exception { + super.testSetObject93(); + } + + /* + * @testName: testSetObject94 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Bigint_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject94() throws Exception { + super.testSetObject94(); + } + + /* + * @testName: testSetObject95 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Bigint_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject95() throws Exception { + super.testSetObject95(); + } + + /* + * @testName: testSetObject96 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum (true) value + * of Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (true) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject96() throws Exception { + super.testSetObject96(); + } + + /* + * @testName: testSetObject97 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Real_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject97() throws Exception { + super.testSetObject97(); + } + + /* + * @testName: testSetObject98 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Float_Tab with the maximum (true) value + * of Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (true) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject98() throws Exception { + super.testSetObject98(); + } + + /* + * @testName: testSetObject99 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Float_Tab with the minimum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject99() throws Exception { + super.testSetObject99(); + } + + /* + * @testName: testSetObject100 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Double_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject100() throws Exception { + super.testSetObject100(); + } + + /* + * @testName: testSetObject101 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Double_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject101() throws Exception { + super.testSetObject101(); + } + + /* + * @testName: testSetObject102 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Decimal_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testSetObject102() throws Exception { + super.testSetObject102(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/build.xml deleted file mode 100644 index d1ebc130e4..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9.java index 63cc382b81..b57cda521b 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -53,6 +57,9 @@ * @author * @version 1.8, 24/11/00 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class prepStmtClient9 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.prepStmt.prepStmt9"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9AppClient.java new file mode 100644 index 0000000000..a2a2abd4c1 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9AppClient.java @@ -0,0 +1,475 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt9; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient9 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 24/11/00 + */ +@Tag("tck-appclient") + + +public class prepStmtClient9AppClient extends prepStmtClient9 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt9"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "prepStmt9_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient9AppClient.class, prepStmtClient9.class); + // The appclient-client descriptor + URL appClientUrl = prepStmtClient9AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = prepStmtClient9AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, prepStmtClient9AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt9_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient9AppClient theTests = new prepStmtClient9AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject103 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * minimum (false) value of Bit_Tab. Call the getObject(int columnno) method + * to retrieve this value. Extract the minimum (false) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject103() throws Exception { + super.testSetObject103(); + } + + /* + * @testName: testSetObject104 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method, update the column Null_Val of Numeric_Tab with the + * maximum (true) value of Bit_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (true) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject104() throws Exception { + super.testSetObject104(); + } + + /* + * @testName: testSetObject105 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum (false) value of Bit_Tab. Call the getObject(int columnno) method + * to retrieve this value. Extract the minimum (false) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject105() throws Exception { + super.testSetObject105(); + } + + /* + * @testName: testSetObject108 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum (true) value + * of Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (true) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject108() throws Exception { + super.testSetObject108(); + } + + /* + * @testName: testSetObject109 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject109() throws Exception { + super.testSetObject109(); + } + + /* + * @testName: testSetObject110 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject110() throws Exception { + super.testSetObject110(); + } + + /* + * @testName: testSetObject111 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject111() throws Exception { + super.testSetObject111(); + } + + /* + * @testName: testSetObject112 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum + * (true) value of Bit_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (true) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject112() throws Exception { + super.testSetObject112(); + } + + /* + * @testName: testSetObject113 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum + * (false) value of Bit_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum (false) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject113() throws Exception { + super.testSetObject113(); + } + + /* + * @testName: testSetObject114 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum (true) + * value of Tinyint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject114() throws Exception { + super.testSetObject114(); + } + + /* + * @testName: testSetObject115 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum (false) + * value of Tinyint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject115() throws Exception { + super.testSetObject115(); + } + + /* + * @testName: testSetObject116 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum (true) + * value of Smallint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject116() throws Exception { + super.testSetObject116(); + } + + /* + * @testName: testSetObject117 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum (false) + * value of Smallint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject117() throws Exception { + super.testSetObject117(); + } + + /* + * @testName: testSetObject118 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the maximum (true) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject118() throws Exception { + super.testSetObject118(); + } + + /* + * @testName: testSetObject119 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Integer_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject119() throws Exception { + super.testSetObject119(); + } + + /* + * @testName: testSetObject120 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Bigint_Tab with the maximum (true) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject120() throws Exception { + super.testSetObject120(); + } + + /* + * @testName: testSetObject121 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Bigint_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject121() throws Exception { + super.testSetObject121(); + } + + /* + * @testName: testSetObject122 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum (true) value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testSetObject122() throws Exception { + super.testSetObject122(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9EJB.java new file mode 100644 index 0000000000..65eb20a3cf --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9EJB.java @@ -0,0 +1,496 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt9; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient9 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 24/11/00 + */ + +@Tag("tck-appclient") + + +public class prepStmtClient9EJB extends prepStmtClient9 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt9"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "prepStmt9_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(prepStmtClient9EJB.class, prepStmtClient9.class); + + URL resURL = prepStmtClient9EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = prepStmtClient9EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmt9_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "prepStmt9_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(prepStmtClient9EJB.class, prepStmtClient9.class); + + resURL = prepStmtClient9EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmt9_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = prepStmtClient9EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "prepStmt9_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient9EJB theTests = new prepStmtClient9EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject103 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * minimum (false) value of Bit_Tab. Call the getObject(int columnno) method + * to retrieve this value. Extract the minimum (false) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject103() throws Exception { + super.testSetObject103(); + } + + /* + * @testName: testSetObject104 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method, update the column Null_Val of Numeric_Tab with the + * maximum (true) value of Bit_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (true) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject104() throws Exception { + super.testSetObject104(); + } + + /* + * @testName: testSetObject105 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum (false) value of Bit_Tab. Call the getObject(int columnno) method + * to retrieve this value. Extract the minimum (false) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject105() throws Exception { + super.testSetObject105(); + } + + /* + * @testName: testSetObject108 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum (true) value + * of Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (true) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject108() throws Exception { + super.testSetObject108(); + } + + /* + * @testName: testSetObject109 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject109() throws Exception { + super.testSetObject109(); + } + + /* + * @testName: testSetObject110 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject110() throws Exception { + super.testSetObject110(); + } + + /* + * @testName: testSetObject111 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject111() throws Exception { + super.testSetObject111(); + } + + /* + * @testName: testSetObject112 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum + * (true) value of Bit_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (true) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject112() throws Exception { + super.testSetObject112(); + } + + /* + * @testName: testSetObject113 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum + * (false) value of Bit_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum (false) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject113() throws Exception { + super.testSetObject113(); + } + + /* + * @testName: testSetObject114 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum (true) + * value of Tinyint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject114() throws Exception { + super.testSetObject114(); + } + + /* + * @testName: testSetObject115 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum (false) + * value of Tinyint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject115() throws Exception { + super.testSetObject115(); + } + + /* + * @testName: testSetObject116 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum (true) + * value of Smallint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject116() throws Exception { + super.testSetObject116(); + } + + /* + * @testName: testSetObject117 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum (false) + * value of Smallint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject117() throws Exception { + super.testSetObject117(); + } + + /* + * @testName: testSetObject118 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the maximum (true) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject118() throws Exception { + super.testSetObject118(); + } + + /* + * @testName: testSetObject119 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Integer_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject119() throws Exception { + super.testSetObject119(); + } + + /* + * @testName: testSetObject120 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Bigint_Tab with the maximum (true) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject120() throws Exception { + super.testSetObject120(); + } + + /* + * @testName: testSetObject121 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Bigint_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject121() throws Exception { + super.testSetObject121(); + } + + /* + * @testName: testSetObject122 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum (true) value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testSetObject122() throws Exception { + super.testSetObject122(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9JSP.java new file mode 100644 index 0000000000..713a8d61f4 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9JSP.java @@ -0,0 +1,478 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt9; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient9 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 24/11/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient9JSP extends prepStmtClient9 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt9"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt9_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient9JSP.class, prepStmtClient9.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + // The jsp descriptor + URL jspUrl = prepStmtClient9JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = prepStmtClient9JSP.class.getResource("prepStmt9_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, prepStmtClient9JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(prepStmtClient9JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient9JSP theTests = new prepStmtClient9JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject103 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * minimum (false) value of Bit_Tab. Call the getObject(int columnno) method + * to retrieve this value. Extract the minimum (false) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject103() throws Exception { + super.testSetObject103(); + } + + /* + * @testName: testSetObject104 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method, update the column Null_Val of Numeric_Tab with the + * maximum (true) value of Bit_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (true) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject104() throws Exception { + super.testSetObject104(); + } + + /* + * @testName: testSetObject105 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum (false) value of Bit_Tab. Call the getObject(int columnno) method + * to retrieve this value. Extract the minimum (false) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject105() throws Exception { + super.testSetObject105(); + } + + /* + * @testName: testSetObject108 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum (true) value + * of Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (true) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject108() throws Exception { + super.testSetObject108(); + } + + /* + * @testName: testSetObject109 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject109() throws Exception { + super.testSetObject109(); + } + + /* + * @testName: testSetObject110 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject110() throws Exception { + super.testSetObject110(); + } + + /* + * @testName: testSetObject111 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject111() throws Exception { + super.testSetObject111(); + } + + /* + * @testName: testSetObject112 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum + * (true) value of Bit_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (true) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject112() throws Exception { + super.testSetObject112(); + } + + /* + * @testName: testSetObject113 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum + * (false) value of Bit_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum (false) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject113() throws Exception { + super.testSetObject113(); + } + + /* + * @testName: testSetObject114 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum (true) + * value of Tinyint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject114() throws Exception { + super.testSetObject114(); + } + + /* + * @testName: testSetObject115 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum (false) + * value of Tinyint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject115() throws Exception { + super.testSetObject115(); + } + + /* + * @testName: testSetObject116 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum (true) + * value of Smallint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject116() throws Exception { + super.testSetObject116(); + } + + /* + * @testName: testSetObject117 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum (false) + * value of Smallint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject117() throws Exception { + super.testSetObject117(); + } + + /* + * @testName: testSetObject118 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the maximum (true) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject118() throws Exception { + super.testSetObject118(); + } + + /* + * @testName: testSetObject119 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Integer_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject119() throws Exception { + super.testSetObject119(); + } + + /* + * @testName: testSetObject120 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Bigint_Tab with the maximum (true) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject120() throws Exception { + super.testSetObject120(); + } + + /* + * @testName: testSetObject121 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Bigint_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject121() throws Exception { + super.testSetObject121(); + } + + /* + * @testName: testSetObject122 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum (true) value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testSetObject122() throws Exception { + super.testSetObject122(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9Servlet.java new file mode 100644 index 0000000000..5777412442 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/prepStmt/prepStmt9/prepStmtClient9Servlet.java @@ -0,0 +1,468 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.prepStmt.prepStmt9; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The prepStmtClient9 class tests methods of PreparedStatement interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.8, 24/11/00 + */ + +@Tag("tck-javatest") + +public class prepStmtClient9Servlet extends prepStmtClient9 implements Serializable { + private static final String testName = "jdbc.ee.prepStmt.prepStmt9"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "prepStmt9_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(prepStmtClient9Servlet.class, prepStmtClient9.class); + // The servlet descriptor +URL servletUrl = prepStmtClient9Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = prepStmtClient9Servlet.class.getResource("prepStmt9_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, prepStmtClient9Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + prepStmtClient9Servlet theTests = new prepStmtClient9Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetObject103 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Decimal_Tab with the + * minimum (false) value of Bit_Tab. Call the getObject(int columnno) method + * to retrieve this value. Extract the minimum (false) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject103() throws Exception { + super.testSetObject103(); + } + + /* + * @testName: testSetObject104 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method, update the column Null_Val of Numeric_Tab with the + * maximum (true) value of Bit_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (true) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject104() throws Exception { + super.testSetObject104(); + } + + /* + * @testName: testSetObject105 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:692; JDBC:JAVADOC:693; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType, + * int scale) method,update the column Null_Val of Numeric_Tab with the + * minimum (false) value of Bit_Tab. Call the getObject(int columnno) method + * to retrieve this value. Extract the minimum (false) value from the + * tssql.stmt file. Compare this value with the value returned by the + * getObject(int columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject105() throws Exception { + super.testSetObject105(); + } + + /* + * @testName: testSetObject108 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the maximum (true) value + * of Bit_Tab. Call the getObject(int columnno) method to retrieve this value. + * Extract the maximum (true) value from the tssql.stmt file. Compare this + * value with the value returned by the getObject(int columnno) method. Both + * the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject108() throws Exception { + super.testSetObject108(); + } + + /* + * @testName: testSetObject109 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Char_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject109() throws Exception { + super.testSetObject109(); + } + + /* + * @testName: testSetObject110 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the maximum (true) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject110() throws Exception { + super.testSetObject110(); + } + + /* + * @testName: testSetObject111 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Varchar_Tab with the minimum (false) + * value of Bit_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the minimum (false) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject111() throws Exception { + super.testSetObject111(); + } + + /* + * @testName: testSetObject112 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the maximum + * (true) value of Bit_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the maximum (true) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject112() throws Exception { + super.testSetObject112(); + } + + /* + * @testName: testSetObject113 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Longvarchar_Tab with the minimum + * (false) value of Bit_Tab. Call the getObject(int columnno) method to + * retrieve this value. Extract the minimum (false) value from the tssql.stmt + * file. Compare this value with the value returned by the getObject(int + * columnno) method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject113() throws Exception { + super.testSetObject113(); + } + + /* + * @testName: testSetObject114 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Tinyint_Tab with the maximum (true) + * value of Tinyint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject114() throws Exception { + super.testSetObject114(); + } + + /* + * @testName: testSetObject115 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Tinyint_Tab with the minimum (false) + * value of Tinyint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject115() throws Exception { + super.testSetObject115(); + } + + /* + * @testName: testSetObject116 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Smallint_Tab with the maximum (true) + * value of Smallint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject116() throws Exception { + super.testSetObject116(); + } + + /* + * @testName: testSetObject117 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Smallint_Tab with the minimum (false) + * value of Smallint_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject117() throws Exception { + super.testSetObject117(); + } + + /* + * @testName: testSetObject118 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Integer_Tab with the maximum (true) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject118() throws Exception { + super.testSetObject118(); + } + + /* + * @testName: testSetObject119 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Integer_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject119() throws Exception { + super.testSetObject119(); + } + + /* + * @testName: testSetObject120 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Bigint_Tab with the maximum (true) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the maximum (true) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject120() throws Exception { + super.testSetObject120(); + } + + /* + * @testName: testSetObject121 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Null_Val of Bigint_Tab with the minimum (false) + * value of Integer_Tab. Call the getObject(int columnno) method to retrieve + * this value. Extract the minimum (false) value from the tssql.stmt file. + * Compare this value with the value returned by the getObject(int columnno) + * method. Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject121() throws Exception { + super.testSetObject121(); + } + + /* + * @testName: testSetObject122 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:694; JDBC:JAVADOC:695; + * JavaEE:SPEC:186; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using the setObject(int parameterIndex, Object x, targetSqlType) + * method,update the column Min_Val of Real_Tab with the maximum (true) value + * of Integer_Tab. Call the getObject(int columnno) method to retrieve this + * value. Extract the maximum (true) value from the tssql.stmt file. Compare + * this value with the value returned by the getObject(int columnno) method. + * Both the values should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testSetObject122() throws Exception { + super.testSetObject122(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/build.xml deleted file mode 100644 index f9cbf6dfd9..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/build.xml deleted file mode 100644 index 4561e08316..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1.java index 5d45b47018..ee1bfa7d21 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1.java @@ -29,8 +29,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -48,6 +52,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class resultSetClient1 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.resultSet.resultSet1"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1AppClient.java new file mode 100644 index 0000000000..0594a2d680 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1AppClient.java @@ -0,0 +1,244 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient1.java 1.32 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient1 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ +@Tag("tck-appclient") + +public class resultSetClient1AppClient extends resultSetClient1 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet1"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "resultSet1_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient1AppClient.class, resultSetClient1.class); + // The appclient-client descriptor + URL appClientUrl = resultSetClient1AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = resultSetClient1AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, resultSetClient1AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet1_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient1AppClient theTests = new resultSetClient1AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetConcurrency + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:492; + * JDBC:JAVADOC:493; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query and call the + * getConcurrency() method on that resultset object. It should return an + * Integer value and the value should be equal to any of the values + * CONCUR_READ_ONLY or CONCUR_UPDATABLE which are defined in the Resutset + * interface. + */ + + @Test + @TargetVehicle("appclient") + public void testGetConcurrency() throws Exception { + super.testGetConcurrency(); + } + + /* + * @testName: testGetFetchDirection + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:484; + * JDBC:JAVADOC:485; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query and call the + * getFetchDirection() method.It should return an Integer value and the value + * should be equal to any of the values FETCH_FORWARD or FETCH_REVERSE or + * FETCH_UNKNOWN which are defined in the Resultset interface. + * + */ + + @Test + @TargetVehicle("appclient") + public void testGetFetchDirection() throws Exception { + super.testGetFetchDirection(); + } + + /* + * @testName: testGetFetchSize + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:488; + * JDBC:JAVADOC:489; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the getFetchSize() method + * It should return a Integer value which should be greater than or equal to + * zero. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetFetchSize() throws Exception { + super.testGetFetchSize(); + } + + /* + * @testName: testGetType + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:490; + * JDBC:JAVADOC:491; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the getType() method on + * that object. It should return an Integer value and the value should be + * equal to any of the values TYPE_FORWARD_ONLY or TYPE_SCROLL_INSENSITIVE or + * TYPE_SCROLL_SENSITIVE which are defined in the Resultset interface. + * + */ + @Test + @TargetVehicle("appclient") + public void testGetType() throws Exception { + super.testGetType(); + } + + /* + * @testName: testSetFetchSize01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query and call the + * setFetchSize(int rows). Set the value of rows to zero. The JDBC driver is + * free to make its own best guess as to what the fetch size should be. Then + * call getFetchSize() method. + * + * + */ + @Test + @TargetVehicle("appclient") + public void testSetFetchSize01() throws Exception { + super.testSetFetchSize01(); + } + + /* + * @testName: testSetFetchSize02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the setFetchSize(int rows) + * on that obect. Call Statement's getMaxRows() before calling setFetchSize() + * method and pass the returned value from getMaxRows() method as the argument + * to the setFetchSize() method. Then call getFetchSize() method to check + * whether the returned value is the same that has been set. + * + */ + @Test + @TargetVehicle("appclient") + public void testSetFetchSize02() throws Exception { + super.testSetFetchSize02(); + } + + /* + * @testName: testSetFetchSize03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the setFetchSize(int rows) + * on that object with the value greater than the Statement's maximum possible + * rows as returned by getMaxRows() method and it should throw SQLException. + * In case if the getMaxRows() method returns 0 which means unlimited rows + * then appropriate message is displayed and test passes + */ + @Test + @TargetVehicle("appclient") + public void testSetFetchSize03() throws Exception { + super.testSetFetchSize03(); + } + + /* + * @testName: testSetFetchSize04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the setFetchSize(int rows) + * on that object. And try to set a negative value .It should throw + * SQLException. + */ + + @Test + @TargetVehicle("appclient") + public void testSetFetchSize04() throws Exception { + super.testSetFetchSize04(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1EJB.java new file mode 100644 index 0000000000..ea18177fb3 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1EJB.java @@ -0,0 +1,263 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient1.java 1.32 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient1 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class resultSetClient1EJB extends resultSetClient1 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet1"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "resultSet1_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(resultSetClient1EJB.class, resultSetClient1.class); + + URL resURL = resultSetClient1EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = resultSetClient1EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSet1_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "resultSet1_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(resultSetClient1EJB.class, resultSetClient1.class); + + resURL = resultSetClient1EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSet1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = resultSetClient1EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet1_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient1EJB theTests = new resultSetClient1EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetConcurrency + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:492; + * JDBC:JAVADOC:493; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query and call the + * getConcurrency() method on that resultset object. It should return an + * Integer value and the value should be equal to any of the values + * CONCUR_READ_ONLY or CONCUR_UPDATABLE which are defined in the Resutset + * interface. + */ + + @Test + @TargetVehicle("ejb") + public void testGetConcurrency() throws Exception { + super.testGetConcurrency(); + } + + /* + * @testName: testGetFetchDirection + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:484; + * JDBC:JAVADOC:485; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query and call the + * getFetchDirection() method.It should return an Integer value and the value + * should be equal to any of the values FETCH_FORWARD or FETCH_REVERSE or + * FETCH_UNKNOWN which are defined in the Resultset interface. + * + */ + + @Test + @TargetVehicle("ejb") + public void testGetFetchDirection() throws Exception { + super.testGetFetchDirection(); + } + + /* + * @testName: testGetFetchSize + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:488; + * JDBC:JAVADOC:489; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the getFetchSize() method + * It should return a Integer value which should be greater than or equal to + * zero. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetFetchSize() throws Exception { + super.testGetFetchSize(); + } + + /* + * @testName: testGetType + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:490; + * JDBC:JAVADOC:491; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the getType() method on + * that object. It should return an Integer value and the value should be + * equal to any of the values TYPE_FORWARD_ONLY or TYPE_SCROLL_INSENSITIVE or + * TYPE_SCROLL_SENSITIVE which are defined in the Resultset interface. + * + */ + @Test + @TargetVehicle("ejb") + public void testGetType() throws Exception { + super.testGetType(); + } + + /* + * @testName: testSetFetchSize01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query and call the + * setFetchSize(int rows). Set the value of rows to zero. The JDBC driver is + * free to make its own best guess as to what the fetch size should be. Then + * call getFetchSize() method. + * + * + */ + @Test + @TargetVehicle("ejb") + public void testSetFetchSize01() throws Exception { + super.testSetFetchSize01(); + } + + /* + * @testName: testSetFetchSize02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the setFetchSize(int rows) + * on that obect. Call Statement's getMaxRows() before calling setFetchSize() + * method and pass the returned value from getMaxRows() method as the argument + * to the setFetchSize() method. Then call getFetchSize() method to check + * whether the returned value is the same that has been set. + * + */ + @Test + @TargetVehicle("ejb") + public void testSetFetchSize02() throws Exception { + super.testSetFetchSize02(); + } + + /* + * @testName: testSetFetchSize03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the setFetchSize(int rows) + * on that object with the value greater than the Statement's maximum possible + * rows as returned by getMaxRows() method and it should throw SQLException. + * In case if the getMaxRows() method returns 0 which means unlimited rows + * then appropriate message is displayed and test passes + */ + @Test + @TargetVehicle("ejb") + public void testSetFetchSize03() throws Exception { + super.testSetFetchSize03(); + } + + /* + * @testName: testSetFetchSize04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the setFetchSize(int rows) + * on that object. And try to set a negative value .It should throw + * SQLException. + */ + + @Test + @TargetVehicle("ejb") + public void testSetFetchSize04() throws Exception { + super.testSetFetchSize04(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1JSP.java new file mode 100644 index 0000000000..d94b70e3ce --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1JSP.java @@ -0,0 +1,248 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient1.java 1.32 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet1; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient1 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + + +@Tag("tck-javatest") + +public class resultSetClient1JSP extends resultSetClient1 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet1"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet1_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient1JSP.class, resultSetClient1.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + // The jsp descriptor + URL jspUrl = resultSetClient1JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = resultSetClient1JSP.class.getResource("resultSet1_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, resultSetClient1JSP.class, sunJSPUrl); + + + archive.addAsWebInfResource(resultSetClient1JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient1JSP theTests = new resultSetClient1JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetConcurrency + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:492; + * JDBC:JAVADOC:493; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query and call the + * getConcurrency() method on that resultset object. It should return an + * Integer value and the value should be equal to any of the values + * CONCUR_READ_ONLY or CONCUR_UPDATABLE which are defined in the Resutset + * interface. + */ + + @Test + @TargetVehicle("jsp") + public void testGetConcurrency() throws Exception { + super.testGetConcurrency(); + } + + /* + * @testName: testGetFetchDirection + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:484; + * JDBC:JAVADOC:485; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query and call the + * getFetchDirection() method.It should return an Integer value and the value + * should be equal to any of the values FETCH_FORWARD or FETCH_REVERSE or + * FETCH_UNKNOWN which are defined in the Resultset interface. + * + */ + + @Test + @TargetVehicle("jsp") + public void testGetFetchDirection() throws Exception { + super.testGetFetchDirection(); + } + + /* + * @testName: testGetFetchSize + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:488; + * JDBC:JAVADOC:489; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the getFetchSize() method + * It should return a Integer value which should be greater than or equal to + * zero. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetFetchSize() throws Exception { + super.testGetFetchSize(); + } + + /* + * @testName: testGetType + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:490; + * JDBC:JAVADOC:491; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the getType() method on + * that object. It should return an Integer value and the value should be + * equal to any of the values TYPE_FORWARD_ONLY or TYPE_SCROLL_INSENSITIVE or + * TYPE_SCROLL_SENSITIVE which are defined in the Resultset interface. + * + */ + @Test + @TargetVehicle("jsp") + public void testGetType() throws Exception { + super.testGetType(); + } + + /* + * @testName: testSetFetchSize01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query and call the + * setFetchSize(int rows). Set the value of rows to zero. The JDBC driver is + * free to make its own best guess as to what the fetch size should be. Then + * call getFetchSize() method. + * + * + */ + @Test + @TargetVehicle("jsp") + public void testSetFetchSize01() throws Exception { + super.testSetFetchSize01(); + } + + /* + * @testName: testSetFetchSize02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the setFetchSize(int rows) + * on that obect. Call Statement's getMaxRows() before calling setFetchSize() + * method and pass the returned value from getMaxRows() method as the argument + * to the setFetchSize() method. Then call getFetchSize() method to check + * whether the returned value is the same that has been set. + * + */ + @Test + @TargetVehicle("jsp") + public void testSetFetchSize02() throws Exception { + super.testSetFetchSize02(); + } + + /* + * @testName: testSetFetchSize03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the setFetchSize(int rows) + * on that object with the value greater than the Statement's maximum possible + * rows as returned by getMaxRows() method and it should throw SQLException. + * In case if the getMaxRows() method returns 0 which means unlimited rows + * then appropriate message is displayed and test passes + */ + @Test + @TargetVehicle("jsp") + public void testSetFetchSize03() throws Exception { + super.testSetFetchSize03(); + } + + /* + * @testName: testSetFetchSize04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the setFetchSize(int rows) + * on that object. And try to set a negative value .It should throw + * SQLException. + */ + + @Test + @TargetVehicle("jsp") + public void testSetFetchSize04() throws Exception { + super.testSetFetchSize04(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1Servlet.java new file mode 100644 index 0000000000..6456d87569 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet1/resultSetClient1Servlet.java @@ -0,0 +1,236 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient1.java 1.32 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient1 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class resultSetClient1Servlet extends resultSetClient1 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet1"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet1_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient1Servlet.class, resultSetClient1.class); + // The servlet descriptor +URL servletUrl = resultSetClient1Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = resultSetClient1Servlet.class.getResource("resultSet1_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, resultSetClient1Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient1Servlet theTests = new resultSetClient1Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetConcurrency + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:492; + * JDBC:JAVADOC:493; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query and call the + * getConcurrency() method on that resultset object. It should return an + * Integer value and the value should be equal to any of the values + * CONCUR_READ_ONLY or CONCUR_UPDATABLE which are defined in the Resutset + * interface. + */ + + @Test + @TargetVehicle("servlet") + public void testGetConcurrency() throws Exception { + super.testGetConcurrency(); + } + + /* + * @testName: testGetFetchDirection + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:484; + * JDBC:JAVADOC:485; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query and call the + * getFetchDirection() method.It should return an Integer value and the value + * should be equal to any of the values FETCH_FORWARD or FETCH_REVERSE or + * FETCH_UNKNOWN which are defined in the Resultset interface. + * + */ + + @Test + @TargetVehicle("servlet") + public void testGetFetchDirection() throws Exception { + super.testGetFetchDirection(); + } + + /* + * @testName: testGetFetchSize + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:488; + * JDBC:JAVADOC:489; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the getFetchSize() method + * It should return a Integer value which should be greater than or equal to + * zero. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetFetchSize() throws Exception { + super.testGetFetchSize(); + } + + /* + * @testName: testGetType + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:490; + * JDBC:JAVADOC:491; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the getType() method on + * that object. It should return an Integer value and the value should be + * equal to any of the values TYPE_FORWARD_ONLY or TYPE_SCROLL_INSENSITIVE or + * TYPE_SCROLL_SENSITIVE which are defined in the Resultset interface. + * + */ + @Test + @TargetVehicle("servlet") + public void testGetType() throws Exception { + super.testGetType(); + } + + /* + * @testName: testSetFetchSize01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query and call the + * setFetchSize(int rows). Set the value of rows to zero. The JDBC driver is + * free to make its own best guess as to what the fetch size should be. Then + * call getFetchSize() method. + * + * + */ + @Test + @TargetVehicle("servlet") + public void testSetFetchSize01() throws Exception { + super.testSetFetchSize01(); + } + + /* + * @testName: testSetFetchSize02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the setFetchSize(int rows) + * on that obect. Call Statement's getMaxRows() before calling setFetchSize() + * method and pass the returned value from getMaxRows() method as the argument + * to the setFetchSize() method. Then call getFetchSize() method to check + * whether the returned value is the same that has been set. + * + */ + @Test + @TargetVehicle("servlet") + public void testSetFetchSize02() throws Exception { + super.testSetFetchSize02(); + } + + /* + * @testName: testSetFetchSize03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the setFetchSize(int rows) + * on that object with the value greater than the Statement's maximum possible + * rows as returned by getMaxRows() method and it should throw SQLException. + * In case if the getMaxRows() method returns 0 which means unlimited rows + * then appropriate message is displayed and test passes + */ + @Test + @TargetVehicle("servlet") + public void testSetFetchSize03() throws Exception { + super.testSetFetchSize03(); + } + + /* + * @testName: testSetFetchSize04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:486; + * JDBC:JAVADOC:487; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object and call the setFetchSize(int rows) + * on that object. And try to set a negative value .It should throw + * SQLException. + */ + + @Test + @TargetVehicle("servlet") + public void testSetFetchSize04() throws Exception { + super.testSetFetchSize04(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/build.xml deleted file mode 100644 index ddce93902a..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10.java index 720a014e47..92c64f35c3 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -52,6 +56,9 @@ * @author * @version 1.7, 99/10/12 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class resultSetClient10 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.resultSet.resultSet10"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10AppClient.java new file mode 100644 index 0000000000..0333f501de --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10AppClient.java @@ -0,0 +1,430 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient10.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet10; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient10 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + +public class resultSetClient10AppClient extends resultSetClient10 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet10"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "resultSet10_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient10AppClient.class, resultSetClient10.class); + // The appclient-client descriptor + URL appClientUrl = resultSetClient10AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = resultSetClient10AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, resultSetClient10AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet10_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient10AppClient theTests = new resultSetClient10AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Tinyint_Tab.Call the getByte(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte01() throws Exception { + super.testGetByte01(); + } + + /* + * @testName: testGetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Tinyint_Tab.Call the getByte(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the minimum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte02() throws Exception { + super.testGetByte02(); + } + + /* + * @testName: testGetByte03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Tinyint_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte03() throws Exception { + super.testGetByte03(); + } + + /* + * @testName: testGetByte76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:408; + * JDBC:JAVADOC:409; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Tinyint_Tab.Call the getByte(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte76() throws Exception { + super.testGetByte76(); + } + + /* + * @testName: testGetByte77 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:408; + * JDBC:JAVADOC:409; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Tinyint_Tab.Call the getByte(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the minimum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte77() throws Exception { + super.testGetByte77(); + } + + /* + * @testName: testGetByte78 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:408; + * JDBC:JAVADOC:409; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Tinyint_Tab.Call the getByte(String columnName) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte78() throws Exception { + super.testGetByte78(); + } + + /* + * @testName: testGetByte04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Smallint_Tab with + * the maximum value of table Tinyint_Tab.Now execute a query to get the + * maximum value of Smallint_Tab table and retrieve the result of the query + * using the getByte(int columnIndex) method.Compare the returned value, with + * the maximum value of table Tinyint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte04() throws Exception { + super.testGetByte04(); + } + + /* + * @testName: testGetByte05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Smallint_Tab with + * the minimum value of table Tinyint_Tab.Now execute a query to get the + * minimum value of Smallint_Tab table and retrieve the result of the query + * using the getByte(int columnIndex) method.Compare the returned value, with + * the minimum value of table Tinyint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testGetByte05() throws Exception { + super.testGetByte05(); + } + + /* + * @testName: testGetByte06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte06() throws Exception { + super.testGetByte06(); + } + + /* + * @testName: testGetByte07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Integer_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Integer_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testGetByte07() throws Exception { + super.testGetByte07(); + } + + + /* + * @testName: testGetByte08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Integer_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Integer_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte08() throws Exception { + super.testGetByte08(); + } + + /* + * @testName: testGetByte09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Integer_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte09() throws Exception { + super.testGetByte09(); + } + + /* + * @testName: testGetByte13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Real_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Real_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testGetByte13() throws Exception { + super.testGetByte13(); + } + + /* + * @testName: testGetByte14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Real_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Real_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte14() throws Exception { + super.testGetByte14(); + } + + /* + * @testName: testGetByte15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Real_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte15() throws Exception { + super.testGetByte15(); + } + + /* + * @testName: testGetByte16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Float_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Float_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte16() throws Exception { + super.testGetByte16(); + } + + /* + * @testName: testGetByte17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Float_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Float_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte17() throws Exception { + super.testGetByte17(); + } + + /* + * @testName: testGetByte18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Float_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte18() throws Exception { + super.testGetByte18(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10EJB.java new file mode 100644 index 0000000000..cb76e20e82 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10EJB.java @@ -0,0 +1,450 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient10.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet10; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.resultSet.resultSet1.resultSetClient1EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient10 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + +public class resultSetClient10EJB extends resultSetClient10 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet10"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "resultSet10_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(resultSetClient10EJB.class, resultSetClient10.class); + + URL resURL = resultSetClient10EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = resultSetClient10EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSet10_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "resultSet10_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(resultSetClient10EJB.class, resultSetClient10.class); + + resURL = resultSetClient10EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSet10_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = resultSetClient10EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet10_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient10EJB theTests = new resultSetClient10EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Tinyint_Tab.Call the getByte(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte01() throws Exception { + super.testGetByte01(); + } + + /* + * @testName: testGetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Tinyint_Tab.Call the getByte(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the minimum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte02() throws Exception { + super.testGetByte02(); + } + + /* + * @testName: testGetByte03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Tinyint_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte03() throws Exception { + super.testGetByte03(); + } + + /* + * @testName: testGetByte76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:408; + * JDBC:JAVADOC:409; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Tinyint_Tab.Call the getByte(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte76() throws Exception { + super.testGetByte76(); + } + + /* + * @testName: testGetByte77 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:408; + * JDBC:JAVADOC:409; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Tinyint_Tab.Call the getByte(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the minimum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte77() throws Exception { + super.testGetByte77(); + } + + /* + * @testName: testGetByte78 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:408; + * JDBC:JAVADOC:409; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Tinyint_Tab.Call the getByte(String columnName) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte78() throws Exception { + super.testGetByte78(); + } + + /* + * @testName: testGetByte04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Smallint_Tab with + * the maximum value of table Tinyint_Tab.Now execute a query to get the + * maximum value of Smallint_Tab table and retrieve the result of the query + * using the getByte(int columnIndex) method.Compare the returned value, with + * the maximum value of table Tinyint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte04() throws Exception { + super.testGetByte04(); + } + + /* + * @testName: testGetByte05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Smallint_Tab with + * the minimum value of table Tinyint_Tab.Now execute a query to get the + * minimum value of Smallint_Tab table and retrieve the result of the query + * using the getByte(int columnIndex) method.Compare the returned value, with + * the minimum value of table Tinyint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testGetByte05() throws Exception { + super.testGetByte05(); + } + + /* + * @testName: testGetByte06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte06() throws Exception { + super.testGetByte06(); + } + + /* + * @testName: testGetByte07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Integer_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Integer_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testGetByte07() throws Exception { + super.testGetByte07(); + } + + + /* + * @testName: testGetByte08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Integer_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Integer_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte08() throws Exception { + super.testGetByte08(); + } + + /* + * @testName: testGetByte09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Integer_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte09() throws Exception { + super.testGetByte09(); + } + + /* + * @testName: testGetByte13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Real_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Real_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testGetByte13() throws Exception { + super.testGetByte13(); + } + + /* + * @testName: testGetByte14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Real_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Real_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte14() throws Exception { + super.testGetByte14(); + } + + /* + * @testName: testGetByte15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Real_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte15() throws Exception { + super.testGetByte15(); + } + + /* + * @testName: testGetByte16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Float_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Float_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte16() throws Exception { + super.testGetByte16(); + } + + /* + * @testName: testGetByte17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Float_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Float_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte17() throws Exception { + super.testGetByte17(); + } + + /* + * @testName: testGetByte18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Float_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte18() throws Exception { + super.testGetByte18(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10JSP.java new file mode 100644 index 0000000000..b9d48616a8 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10JSP.java @@ -0,0 +1,432 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient10.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet10; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient10 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient10JSP extends resultSetClient10 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet10"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet10_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient10JSP.class, resultSetClient10.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + // The jsp descriptor + URL jspUrl = resultSetClient10JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = resultSetClient10JSP.class.getResource("resultSet10_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, resultSetClient10JSP.class, sunJSPUrl); + + + archive.addAsWebInfResource(resultSetClient10JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient10JSP theTests = new resultSetClient10JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Tinyint_Tab.Call the getByte(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte01() throws Exception { + super.testGetByte01(); + } + + /* + * @testName: testGetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Tinyint_Tab.Call the getByte(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the minimum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte02() throws Exception { + super.testGetByte02(); + } + + /* + * @testName: testGetByte03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Tinyint_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte03() throws Exception { + super.testGetByte03(); + } + + /* + * @testName: testGetByte76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:408; + * JDBC:JAVADOC:409; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Tinyint_Tab.Call the getByte(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte76() throws Exception { + super.testGetByte76(); + } + + /* + * @testName: testGetByte77 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:408; + * JDBC:JAVADOC:409; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Tinyint_Tab.Call the getByte(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the minimum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte77() throws Exception { + super.testGetByte77(); + } + + /* + * @testName: testGetByte78 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:408; + * JDBC:JAVADOC:409; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Tinyint_Tab.Call the getByte(String columnName) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte78() throws Exception { + super.testGetByte78(); + } + + /* + * @testName: testGetByte04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Smallint_Tab with + * the maximum value of table Tinyint_Tab.Now execute a query to get the + * maximum value of Smallint_Tab table and retrieve the result of the query + * using the getByte(int columnIndex) method.Compare the returned value, with + * the maximum value of table Tinyint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte04() throws Exception { + super.testGetByte04(); + } + + /* + * @testName: testGetByte05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Smallint_Tab with + * the minimum value of table Tinyint_Tab.Now execute a query to get the + * minimum value of Smallint_Tab table and retrieve the result of the query + * using the getByte(int columnIndex) method.Compare the returned value, with + * the minimum value of table Tinyint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testGetByte05() throws Exception { + super.testGetByte05(); + } + + /* + * @testName: testGetByte06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte06() throws Exception { + super.testGetByte06(); + } + + /* + * @testName: testGetByte07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Integer_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Integer_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testGetByte07() throws Exception { + super.testGetByte07(); + } + + + /* + * @testName: testGetByte08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Integer_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Integer_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte08() throws Exception { + super.testGetByte08(); + } + + /* + * @testName: testGetByte09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Integer_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte09() throws Exception { + super.testGetByte09(); + } + + /* + * @testName: testGetByte13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Real_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Real_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testGetByte13() throws Exception { + super.testGetByte13(); + } + + /* + * @testName: testGetByte14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Real_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Real_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte14() throws Exception { + super.testGetByte14(); + } + + /* + * @testName: testGetByte15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Real_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte15() throws Exception { + super.testGetByte15(); + } + + /* + * @testName: testGetByte16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Float_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Float_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte16() throws Exception { + super.testGetByte16(); + } + + /* + * @testName: testGetByte17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Float_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Float_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte17() throws Exception { + super.testGetByte17(); + } + + /* + * @testName: testGetByte18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Float_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte18() throws Exception { + super.testGetByte18(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10Servlet.java new file mode 100644 index 0000000000..6e7b8f9cb3 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet10/resultSetClient10Servlet.java @@ -0,0 +1,421 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient10.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet10; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient10 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient10Servlet extends resultSetClient10 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet10"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet10_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient10Servlet.class, resultSetClient10.class); + // The servlet descriptor +URL servletUrl = resultSetClient10Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = resultSetClient10Servlet.class.getResource("resultSet10_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, resultSetClient10Servlet.class, sunServletUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient10Servlet theTests = new resultSetClient10Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetByte01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Tinyint_Tab.Call the getByte(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte01() throws Exception { + super.testGetByte01(); + } + + /* + * @testName: testGetByte02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Tinyint_Tab.Call the getByte(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the minimum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte02() throws Exception { + super.testGetByte02(); + } + + /* + * @testName: testGetByte03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Tinyint_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte03() throws Exception { + super.testGetByte03(); + } + + /* + * @testName: testGetByte76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:408; + * JDBC:JAVADOC:409; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Tinyint_Tab.Call the getByte(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte76() throws Exception { + super.testGetByte76(); + } + + /* + * @testName: testGetByte77 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:408; + * JDBC:JAVADOC:409; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Tinyint_Tab.Call the getByte(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the minimum Value of JDBC Tinyint datatype. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte77() throws Exception { + super.testGetByte77(); + } + + /* + * @testName: testGetByte78 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:408; + * JDBC:JAVADOC:409; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Tinyint_Tab.Call the getByte(String columnName) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte78() throws Exception { + super.testGetByte78(); + } + + /* + * @testName: testGetByte04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Smallint_Tab with + * the maximum value of table Tinyint_Tab.Now execute a query to get the + * maximum value of Smallint_Tab table and retrieve the result of the query + * using the getByte(int columnIndex) method.Compare the returned value, with + * the maximum value of table Tinyint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte04() throws Exception { + super.testGetByte04(); + } + + /* + * @testName: testGetByte05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Smallint_Tab with + * the minimum value of table Tinyint_Tab.Now execute a query to get the + * minimum value of Smallint_Tab table and retrieve the result of the query + * using the getByte(int columnIndex) method.Compare the returned value, with + * the minimum value of table Tinyint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testGetByte05() throws Exception { + super.testGetByte05(); + } + + /* + * @testName: testGetByte06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte06() throws Exception { + super.testGetByte06(); + } + + /* + * @testName: testGetByte07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Integer_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Integer_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testGetByte07() throws Exception { + super.testGetByte07(); + } + + + /* + * @testName: testGetByte08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Integer_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Integer_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte08() throws Exception { + super.testGetByte08(); + } + + /* + * @testName: testGetByte09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Integer_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte09() throws Exception { + super.testGetByte09(); + } + + /* + * @testName: testGetByte13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Real_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Real_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testGetByte13() throws Exception { + super.testGetByte13(); + } + + /* + * @testName: testGetByte14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Real_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Real_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte14() throws Exception { + super.testGetByte14(); + } + + /* + * @testName: testGetByte15 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Real_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte15() throws Exception { + super.testGetByte15(); + } + + /* + * @testName: testGetByte16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Float_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Float_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte16() throws Exception { + super.testGetByte16(); + } + + /* + * @testName: testGetByte17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Float_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Float_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte17() throws Exception { + super.testGetByte17(); + } + + /* + * @testName: testGetByte18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Float_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte18() throws Exception { + super.testGetByte18(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/build.xml deleted file mode 100644 index 1ce7c94554..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11.java index 553270d1b5..6ad21e6745 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -52,6 +56,9 @@ * @author * @version 1.7, 99/10/12 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class resultSetClient11 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.resultSet.resultSet11"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11AppClient.java new file mode 100644 index 0000000000..3276313545 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11AppClient.java @@ -0,0 +1,326 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient11.java 1.23 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet11; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient11 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + +public class resultSetClient11AppClient extends resultSetClient11 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet11"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "resultSet11_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient11AppClient.class, resultSetClient11.class); + // The appclient-client descriptor + URL appClientUrl = resultSetClient11AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = resultSetClient11AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, resultSetClient11AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet11_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient11AppClient theTests = new resultSetClient11AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetByte22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Decimal_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Decimal_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte22() throws Exception { + super.testGetByte22(); + } + + /* + * @testName: testGetByte23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Decimal_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Decimal_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte23() throws Exception { + super.testGetByte23(); + } + + /* + * @testName: testGetByte24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Double_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte24() throws Exception { + super.testGetByte24(); + } + + /* + * @testName: testGetByte25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Numeric_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Numeric_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testGetByte25() throws Exception { + super.testGetByte25(); + } + + /* + * @testName: testGetByte26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Numeric_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Numeric_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte26() throws Exception { + super.testGetByte26(); + } + + /* + * @testName: testGetByte27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Numeric_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte27() throws Exception { + super.testGetByte27(); + } + + /* + * @testName: testGetByte31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Char_Tab with the maximum value of + * table Tinyint_Tab.Now execute a query to get that value from Char_Tab table + * and retrieve the result of the query using the getByte(int columnIndex) + * method.Compare the returned value, with the maximum value of table + * Tinyint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte31() throws Exception { + super.testGetByte31(); + } + + /* + * @testName: testGetByte32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Char_Tab with the minimum value of + * table Tinyint_Tab.Now execute a query to get that value from Char_Tab table + * and retrieve the result of the query using the getByte(int columnIndex) + * method.Compare the returned value, with the minimum value of table + * Tinyint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + + @Test + @TargetVehicle("appclient") + public void testGetByte32() throws Exception { + super.testGetByte32(); + } + + /* + * @testName: testGetByte33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Char_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("appclient") + public void testGetByte33() throws Exception { + super.testGetByte33(); + } + + /* + * @testName: testGetByte34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Varchar_Tab with the maximum value of + * table Tinyint_Tab.Now execute a query to get that value from Varchar_Tab + * table and retrieve the result of the query using the getByte(int + * columnIndex) method.Compare the returned value, with the maximum value of + * table Tinyint_Tab extracted from the tssql.stmt file. Both of them should + * be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte34() throws Exception { + super.testGetByte34(); + } + + /* + * @testName: testGetByte35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Varchar_Tab with the minimum value of + * table Tinyint_Tab.Now execute a query to get that value from Varchar_Tab + * table and retrieve the result of the query using the getByte(int + * columnIndex) method.Compare the returned value, with the minimum value of + * table Tinyint_Tab extracted from the tssql.stmt file. Both of them should + * be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetByte35() throws Exception { + super.testGetByte35(); + } + + /* + * @testName: testGetByte36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Varchar_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("appclient") + public void testGetByte36() throws Exception { + super.testGetByte36(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11EJB.java new file mode 100644 index 0000000000..bf03ab8d20 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11EJB.java @@ -0,0 +1,345 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient11.java 1.23 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet11; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient11 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + +public class resultSetClient11EJB extends resultSetClient11 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet11"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "resultSet11_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(resultSetClient11EJB.class, resultSetClient11.class); + + URL resURL = resultSetClient11EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = resultSetClient11EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSet11_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "resultSet11_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(resultSetClient11EJB.class, resultSetClient11.class); + + resURL = resultSetClient11EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSet11_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = resultSetClient11EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet11_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient11EJB theTests = new resultSetClient11EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetByte22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Decimal_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Decimal_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte22() throws Exception { + super.testGetByte22(); + } + + /* + * @testName: testGetByte23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Decimal_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Decimal_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte23() throws Exception { + super.testGetByte23(); + } + + /* + * @testName: testGetByte24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Double_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte24() throws Exception { + super.testGetByte24(); + } + + /* + * @testName: testGetByte25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Numeric_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Numeric_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testGetByte25() throws Exception { + super.testGetByte25(); + } + + /* + * @testName: testGetByte26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Numeric_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Numeric_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte26() throws Exception { + super.testGetByte26(); + } + + /* + * @testName: testGetByte27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Numeric_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte27() throws Exception { + super.testGetByte27(); + } + + /* + * @testName: testGetByte31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Char_Tab with the maximum value of + * table Tinyint_Tab.Now execute a query to get that value from Char_Tab table + * and retrieve the result of the query using the getByte(int columnIndex) + * method.Compare the returned value, with the maximum value of table + * Tinyint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte31() throws Exception { + super.testGetByte31(); + } + + /* + * @testName: testGetByte32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Char_Tab with the minimum value of + * table Tinyint_Tab.Now execute a query to get that value from Char_Tab table + * and retrieve the result of the query using the getByte(int columnIndex) + * method.Compare the returned value, with the minimum value of table + * Tinyint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + + @Test + @TargetVehicle("ejb") + public void testGetByte32() throws Exception { + super.testGetByte32(); + } + + /* + * @testName: testGetByte33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Char_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("ejb") + public void testGetByte33() throws Exception { + super.testGetByte33(); + } + + /* + * @testName: testGetByte34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Varchar_Tab with the maximum value of + * table Tinyint_Tab.Now execute a query to get that value from Varchar_Tab + * table and retrieve the result of the query using the getByte(int + * columnIndex) method.Compare the returned value, with the maximum value of + * table Tinyint_Tab extracted from the tssql.stmt file. Both of them should + * be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte34() throws Exception { + super.testGetByte34(); + } + + /* + * @testName: testGetByte35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Varchar_Tab with the minimum value of + * table Tinyint_Tab.Now execute a query to get that value from Varchar_Tab + * table and retrieve the result of the query using the getByte(int + * columnIndex) method.Compare the returned value, with the minimum value of + * table Tinyint_Tab extracted from the tssql.stmt file. Both of them should + * be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetByte35() throws Exception { + super.testGetByte35(); + } + + /* + * @testName: testGetByte36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Varchar_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("ejb") + public void testGetByte36() throws Exception { + super.testGetByte36(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11JSP.java new file mode 100644 index 0000000000..4a0a3e2575 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11JSP.java @@ -0,0 +1,330 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient11.java 1.23 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet11; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.batchUpdate.batchUpdateClientJSP; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient11 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient11JSP extends resultSetClient11 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet11"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet11_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient11JSP.class, resultSetClient11.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = resultSetClient11JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = resultSetClient11JSP.class.getResource("resultSet11_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, batchUpdateClientJSP.class, sunJSPUrl); + + + archive.addAsWebInfResource(resultSetClient11JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient11JSP theTests = new resultSetClient11JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetByte22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Decimal_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Decimal_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte22() throws Exception { + super.testGetByte22(); + } + + /* + * @testName: testGetByte23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Decimal_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Decimal_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte23() throws Exception { + super.testGetByte23(); + } + + /* + * @testName: testGetByte24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Double_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte24() throws Exception { + super.testGetByte24(); + } + + /* + * @testName: testGetByte25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Numeric_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Numeric_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testGetByte25() throws Exception { + super.testGetByte25(); + } + + /* + * @testName: testGetByte26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Numeric_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Numeric_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte26() throws Exception { + super.testGetByte26(); + } + + /* + * @testName: testGetByte27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Numeric_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte27() throws Exception { + super.testGetByte27(); + } + + /* + * @testName: testGetByte31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Char_Tab with the maximum value of + * table Tinyint_Tab.Now execute a query to get that value from Char_Tab table + * and retrieve the result of the query using the getByte(int columnIndex) + * method.Compare the returned value, with the maximum value of table + * Tinyint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte31() throws Exception { + super.testGetByte31(); + } + + /* + * @testName: testGetByte32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Char_Tab with the minimum value of + * table Tinyint_Tab.Now execute a query to get that value from Char_Tab table + * and retrieve the result of the query using the getByte(int columnIndex) + * method.Compare the returned value, with the minimum value of table + * Tinyint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + + @Test + @TargetVehicle("jsp") + public void testGetByte32() throws Exception { + super.testGetByte32(); + } + + /* + * @testName: testGetByte33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Char_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("jsp") + public void testGetByte33() throws Exception { + super.testGetByte33(); + } + + /* + * @testName: testGetByte34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Varchar_Tab with the maximum value of + * table Tinyint_Tab.Now execute a query to get that value from Varchar_Tab + * table and retrieve the result of the query using the getByte(int + * columnIndex) method.Compare the returned value, with the maximum value of + * table Tinyint_Tab extracted from the tssql.stmt file. Both of them should + * be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte34() throws Exception { + super.testGetByte34(); + } + + /* + * @testName: testGetByte35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Varchar_Tab with the minimum value of + * table Tinyint_Tab.Now execute a query to get that value from Varchar_Tab + * table and retrieve the result of the query using the getByte(int + * columnIndex) method.Compare the returned value, with the minimum value of + * table Tinyint_Tab extracted from the tssql.stmt file. Both of them should + * be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetByte35() throws Exception { + super.testGetByte35(); + } + + /* + * @testName: testGetByte36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Varchar_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("jsp") + public void testGetByte36() throws Exception { + super.testGetByte36(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11Servlet.java new file mode 100644 index 0000000000..fb45d13e73 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet11/resultSetClient11Servlet.java @@ -0,0 +1,317 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient11.java 1.23 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet11; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient11 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient11Servlet extends resultSetClient11 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet11"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet11_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient11Servlet.class, resultSetClient11.class); + // The servlet descriptor +URL servletUrl = resultSetClient11Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = resultSetClient11Servlet.class.getResource("resultSet11_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, resultSetClient11Servlet.class, sunServletUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient11Servlet theTests = new resultSetClient11Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetByte22 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Decimal_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Decimal_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte22() throws Exception { + super.testGetByte22(); + } + + /* + * @testName: testGetByte23 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Decimal_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Decimal_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte23() throws Exception { + super.testGetByte23(); + } + + /* + * @testName: testGetByte24 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Double_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte24() throws Exception { + super.testGetByte24(); + } + + /* + * @testName: testGetByte25 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Numeric_Tab with the + * maximum value of table Tinyint_Tab.Now execute a query to get the maximum + * value of Numeric_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * maximum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testGetByte25() throws Exception { + super.testGetByte25(); + } + + /* + * @testName: testGetByte26 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Numeric_Tab with the + * minimum value of table Tinyint_Tab.Now execute a query to get the minimum + * value of Numeric_Tab table and retrieve the result of the query using the + * getByte(int columnIndex) method.Compare the returned value, with the + * minimum value of table Tinyint_Tab extracted from the tssql.stmt file. Both + * of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte26() throws Exception { + super.testGetByte26(); + } + + /* + * @testName: testGetByte27 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Numeric_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte27() throws Exception { + super.testGetByte27(); + } + + /* + * @testName: testGetByte31 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Char_Tab with the maximum value of + * table Tinyint_Tab.Now execute a query to get that value from Char_Tab table + * and retrieve the result of the query using the getByte(int columnIndex) + * method.Compare the returned value, with the maximum value of table + * Tinyint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte31() throws Exception { + super.testGetByte31(); + } + + /* + * @testName: testGetByte32 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Char_Tab with the minimum value of + * table Tinyint_Tab.Now execute a query to get that value from Char_Tab table + * and retrieve the result of the query using the getByte(int columnIndex) + * method.Compare the returned value, with the minimum value of table + * Tinyint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + + @Test + @TargetVehicle("servlet") + public void testGetByte32() throws Exception { + super.testGetByte32(); + } + + /* + * @testName: testGetByte33 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Char_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("servlet") + public void testGetByte33() throws Exception { + super.testGetByte33(); + } + + /* + * @testName: testGetByte34 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Varchar_Tab with the maximum value of + * table Tinyint_Tab.Now execute a query to get that value from Varchar_Tab + * table and retrieve the result of the query using the getByte(int + * columnIndex) method.Compare the returned value, with the maximum value of + * table Tinyint_Tab extracted from the tssql.stmt file. Both of them should + * be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte34() throws Exception { + super.testGetByte34(); + } + + /* + * @testName: testGetByte35 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Varchar_Tab with the minimum value of + * table Tinyint_Tab.Now execute a query to get that value from Varchar_Tab + * table and retrieve the result of the query using the getByte(int + * columnIndex) method.Compare the returned value, with the minimum value of + * table Tinyint_Tab extracted from the tssql.stmt file. Both of them should + * be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetByte35() throws Exception { + super.testGetByte35(); + } + + /* + * @testName: testGetByte36 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:376; + * JDBC:JAVADOC:377; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Varchar_Tab.Call the getByte(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("servlet") + public void testGetByte36() throws Exception { + super.testGetByte36(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/build.xml deleted file mode 100644 index 1d88ea6f13..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14.java index 2257e2e59c..5242015ffb 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -52,6 +56,9 @@ * @author * @version 1.7, 99/10/12 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class resultSetClient14 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.resultSet.resultSet14"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14AppClient.java new file mode 100644 index 0000000000..0fb747fb79 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14AppClient.java @@ -0,0 +1,383 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient14.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet14; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient14 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + +public class resultSetClient14AppClient extends resultSetClient14 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet14"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "resultSet14_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient14AppClient.class, resultSetClient14.class); + // The appclient-client descriptor + URL appClientUrl = resultSetClient14AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = resultSetClient14AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, resultSetClient14AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet14_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient14AppClient theTests = new resultSetClient14AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetShort04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Smallint_Tab.Call the getShort(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort04() throws Exception { + super.testGetShort04(); + } + + /* + * @testName: testGetShort05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Smallint_Tab.Call the getShort(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the minimum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort05() throws Exception { + super.testGetShort05(); + } + + /* + * @testName: testGetShort06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort06() throws Exception { + super.testGetShort06(); + } + + /* + * @testName: testGetShort76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Smallint_Tab.Call the getShort(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort76() throws Exception { + super.testGetShort76(); + } + + /* + * @testName: testGetShort77 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Smallint_Tab.Call the getShort(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Minimum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort77() throws Exception { + super.testGetShort77(); + } + + /* + * @testName: testGetShort78 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort78() throws Exception { + super.testGetShort78(); + } + + /* + * @testName: testGetShort07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Integer_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Integer_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort07() throws Exception { + super.testGetShort07(); + } + + /* + * @testName: testGetShort08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Integer_Tab with the + * minimum value of table Smallint_Tab.Now execute a query to get the minimum + * value of Integer_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * minimum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort08() throws Exception { + super.testGetShort08(); + } + + /* + * @testName: testGetShort09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Integer_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort09() throws Exception { + super.testGetShort09(); + } + + /* + * @testName: testGetShort10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Real_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Real_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort10() throws Exception { + super.testGetShort10(); + } + + /* + * @testName: testGetShort11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Real_Tab with the + * minimum value of table Smallint_Tab.Now execute a query to get the minimum + * value of Real_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * minimum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort11() throws Exception { + super.testGetShort11(); + } + + /* + * @testName: testGetShort12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Real_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort12() throws Exception { + super.testGetShort12(); + } + + /* + * @testName: testGetShort16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Float_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Float_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort16() throws Exception { + super.testGetShort16(); + } + + /* + * @testName: testGetShort17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Float_Tab with the + * minimum value of table Smallint_Tab.Now execute a query to get the minimum + * value of Float_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * minimum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetShort17() throws Exception { + super.testGetShort17(); + } + + /* + * @testName: testGetShort18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Float_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("appclient") + public void testGetShort18() throws Exception { + super.testGetShort18(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14EJB.java new file mode 100644 index 0000000000..19bc30796f --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14EJB.java @@ -0,0 +1,403 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient14.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet14; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.resultSet.resultSet1.resultSetClient1EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient14 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + +public class resultSetClient14EJB extends resultSetClient14 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet14"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "resultSet14_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(resultSetClient14EJB.class, resultSetClient14.class); + + URL resURL = resultSetClient14EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = resultSetClient14EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSet14_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "resultSet14_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(resultSetClient14EJB.class, resultSetClient14.class); + + resURL = resultSetClient14EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSet14_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = resultSetClient14EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet14_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient14EJB theTests = new resultSetClient14EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetShort04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Smallint_Tab.Call the getShort(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort04() throws Exception { + super.testGetShort04(); + } + + /* + * @testName: testGetShort05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Smallint_Tab.Call the getShort(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the minimum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort05() throws Exception { + super.testGetShort05(); + } + + /* + * @testName: testGetShort06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort06() throws Exception { + super.testGetShort06(); + } + + /* + * @testName: testGetShort76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Smallint_Tab.Call the getShort(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort76() throws Exception { + super.testGetShort76(); + } + + /* + * @testName: testGetShort77 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Smallint_Tab.Call the getShort(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Minimum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort77() throws Exception { + super.testGetShort77(); + } + + /* + * @testName: testGetShort78 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort78() throws Exception { + super.testGetShort78(); + } + + /* + * @testName: testGetShort07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Integer_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Integer_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort07() throws Exception { + super.testGetShort07(); + } + + /* + * @testName: testGetShort08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Integer_Tab with the + * minimum value of table Smallint_Tab.Now execute a query to get the minimum + * value of Integer_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * minimum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort08() throws Exception { + super.testGetShort08(); + } + + /* + * @testName: testGetShort09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Integer_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort09() throws Exception { + super.testGetShort09(); + } + + /* + * @testName: testGetShort10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Real_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Real_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort10() throws Exception { + super.testGetShort10(); + } + + /* + * @testName: testGetShort11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Real_Tab with the + * minimum value of table Smallint_Tab.Now execute a query to get the minimum + * value of Real_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * minimum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort11() throws Exception { + super.testGetShort11(); + } + + /* + * @testName: testGetShort12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Real_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort12() throws Exception { + super.testGetShort12(); + } + + /* + * @testName: testGetShort16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Float_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Float_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort16() throws Exception { + super.testGetShort16(); + } + + /* + * @testName: testGetShort17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Float_Tab with the + * minimum value of table Smallint_Tab.Now execute a query to get the minimum + * value of Float_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * minimum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetShort17() throws Exception { + super.testGetShort17(); + } + + /* + * @testName: testGetShort18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Float_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("ejb") + public void testGetShort18() throws Exception { + super.testGetShort18(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14JSP.java new file mode 100644 index 0000000000..dba725b097 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14JSP.java @@ -0,0 +1,387 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient14.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet14; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient14 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient14JSP extends resultSetClient14 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet14"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet14_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(resultSetClient14JSP.class, resultSetClient14.class); + + // The jsp descriptor + URL jspUrl = resultSetClient14JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = resultSetClient14JSP.class.getResource("resultSet14_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, resultSetClient14JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(resultSetClient14JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient14JSP theTests = new resultSetClient14JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetShort04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Smallint_Tab.Call the getShort(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort04() throws Exception { + super.testGetShort04(); + } + + /* + * @testName: testGetShort05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Smallint_Tab.Call the getShort(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the minimum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort05() throws Exception { + super.testGetShort05(); + } + + /* + * @testName: testGetShort06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort06() throws Exception { + super.testGetShort06(); + } + + /* + * @testName: testGetShort76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Smallint_Tab.Call the getShort(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort76() throws Exception { + super.testGetShort76(); + } + + /* + * @testName: testGetShort77 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Smallint_Tab.Call the getShort(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Minimum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort77() throws Exception { + super.testGetShort77(); + } + + /* + * @testName: testGetShort78 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort78() throws Exception { + super.testGetShort78(); + } + + /* + * @testName: testGetShort07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Integer_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Integer_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort07() throws Exception { + super.testGetShort07(); + } + + /* + * @testName: testGetShort08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Integer_Tab with the + * minimum value of table Smallint_Tab.Now execute a query to get the minimum + * value of Integer_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * minimum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort08() throws Exception { + super.testGetShort08(); + } + + /* + * @testName: testGetShort09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Integer_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort09() throws Exception { + super.testGetShort09(); + } + + /* + * @testName: testGetShort10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Real_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Real_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort10() throws Exception { + super.testGetShort10(); + } + + /* + * @testName: testGetShort11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Real_Tab with the + * minimum value of table Smallint_Tab.Now execute a query to get the minimum + * value of Real_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * minimum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort11() throws Exception { + super.testGetShort11(); + } + + /* + * @testName: testGetShort12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Real_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort12() throws Exception { + super.testGetShort12(); + } + + /* + * @testName: testGetShort16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Float_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Float_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort16() throws Exception { + super.testGetShort16(); + } + + /* + * @testName: testGetShort17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Float_Tab with the + * minimum value of table Smallint_Tab.Now execute a query to get the minimum + * value of Float_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * minimum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetShort17() throws Exception { + super.testGetShort17(); + } + + /* + * @testName: testGetShort18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Float_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("jsp") + public void testGetShort18() throws Exception { + super.testGetShort18(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14Servlet.java new file mode 100644 index 0000000000..b4b0a3aa1b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet14/resultSetClient14Servlet.java @@ -0,0 +1,375 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient14.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet14; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient14 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient14Servlet extends resultSetClient14 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet14"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet14_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient14Servlet.class, resultSetClient14.class); + // The servlet descriptor +URL servletUrl = resultSetClient14Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = resultSetClient14Servlet.class.getResource("resultSet14_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, resultSetClient14Servlet.class, sunServletUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient14Servlet theTests = new resultSetClient14Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetShort04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Smallint_Tab.Call the getShort(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort04() throws Exception { + super.testGetShort04(); + } + + /* + * @testName: testGetShort05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Smallint_Tab.Call the getShort(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the minimum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort05() throws Exception { + super.testGetShort05(); + } + + /* + * @testName: testGetShort06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort06() throws Exception { + super.testGetShort06(); + } + + /* + * @testName: testGetShort76 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Smallint_Tab.Call the getShort(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort76() throws Exception { + super.testGetShort76(); + } + + /* + * @testName: testGetShort77 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Smallint_Tab.Call the getShort(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Minimum Value of JDBC Smallint datatype. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort77() throws Exception { + super.testGetShort77(); + } + + /* + * @testName: testGetShort78 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort78() throws Exception { + super.testGetShort78(); + } + + /* + * @testName: testGetShort07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Integer_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Integer_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort07() throws Exception { + super.testGetShort07(); + } + + /* + * @testName: testGetShort08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Integer_Tab with the + * minimum value of table Smallint_Tab.Now execute a query to get the minimum + * value of Integer_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * minimum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort08() throws Exception { + super.testGetShort08(); + } + + /* + * @testName: testGetShort09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Integer_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort09() throws Exception { + super.testGetShort09(); + } + + /* + * @testName: testGetShort10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Real_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Real_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort10() throws Exception { + super.testGetShort10(); + } + + /* + * @testName: testGetShort11 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Real_Tab with the + * minimum value of table Smallint_Tab.Now execute a query to get the minimum + * value of Real_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * minimum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort11() throws Exception { + super.testGetShort11(); + } + + /* + * @testName: testGetShort12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Real_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort12() throws Exception { + super.testGetShort12(); + } + + /* + * @testName: testGetShort16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Float_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Float_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort16() throws Exception { + super.testGetShort16(); + } + + /* + * @testName: testGetShort17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Float_Tab with the + * minimum value of table Smallint_Tab.Now execute a query to get the minimum + * value of Float_Tab table and retrieve the result of the query using the + * getShort(int columnIndex) method.Compare the returned value, with the + * minimum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetShort17() throws Exception { + super.testGetShort17(); + } + + /* + * @testName: testGetShort18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:378; + * JDBC:JAVADOC:379; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Float_Tab.Call the getShort(int columnIndex) + * method.Check if it returns the value zero. + */ + + @Test + @TargetVehicle("servlet") + public void testGetShort18() throws Exception { + super.testGetShort18(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/build.xml deleted file mode 100644 index 1063105501..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17.java index a4928a351e..c553f85651 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17.java @@ -33,8 +33,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -53,6 +57,11 @@ * @author * @version 1.7, 99/10/12 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") +@Tag("web_profile") +@Tag("tck-javatest") public class resultSetClient17 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.resultSet.resultSet17"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17AppClient.java new file mode 100644 index 0000000000..76bbdc7ba5 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17AppClient.java @@ -0,0 +1,281 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient17.java 1.22 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet17; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient17 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + +public class resultSetClient17AppClient extends resultSetClient17 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet17"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "resultSet17_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient17AppClient.class, resultSetClient17.class); + // The appclient-client descriptor + URL appClientUrl = resultSetClient17AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = resultSetClient17AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, resultSetClient17AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet17_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient17AppClient theTests = new resultSetClient17AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetShort61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Decimal_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Decimal_Tab table and retrieve the result of the query using the + * getShort(String columnName) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetShort61() throws Exception { + super.testGetShort61(); + } + + /* + * @testName: testGetShort63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Decimal_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetShort63() throws Exception { + super.testGetShort63(); + } + + /* + * @testName: testGetShort64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Numeric_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Numeric_Tab table and retrieve the result of the query using the + * getShort(String columnName) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetShort64() throws Exception { + super.testGetShort64(); + } + + /* + * @testName: testGetShort66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Numeric_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetShort66() throws Exception { + super.testGetShort66(); + } + + /* + * @testName: testGetShort70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Char_Tab with the maximum value of + * table Smallint_Tab.Now execute a query to get the maximum value of Char_Tab + * table and retrieve the result of the query using the getShort(String + * columnName) method.Compare the returned value, with the maximum value of + * table Smallint_Tab extracted from the tssql.stmt file. Both of them should + * be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetShort70() throws Exception { + super.testGetShort70(); + } + + /* + * @testName: testGetShort71 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the Char_Tab with the minimum value of table + * Smallint_Tab.Now execute a query to get the minimum value of Char_Tab table + * and retrieve the result of the query using the getShort(String columnName) + * method.Compare the returned value, with the minimum value of table + * Smallint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetShort71() throws Exception { + super.testGetShort71(); + } + + /* + * @testName: testGetShort72 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Char_Tab.Call the getShort(String columnName) method. + * Check if the value returned is zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetShort72() throws Exception { + super.testGetShort72(); + } + + /* + * @testName: testGetShort73 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the Varchar_Tab with the maximum value of table + * Smallint_Tab.Now execute a query to value from Varchar_Tab table and + * retrieve the result of the query using the getShort(String columnName) + * method.Compare the returned value, with the maximum value of table + * Smallint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetShort73() throws Exception { + super.testGetShort73(); + } + + /* + * @testName: testGetShort74 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Varchar_Tab with the minimum value of + * table Smallint_Tab.Now execute a query to value from Varchar_Tab table and + * retrieve the result of the query using the getShort(String columnName) + * method.Compare the returned value, with the minimum value of table + * Smallint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetShort74() throws Exception { + super.testGetShort74(); + } + + /* + * @testName: testGetShort75 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Varchar_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetShort75() throws Exception { + super.testGetShort75(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17EJB.java new file mode 100644 index 0000000000..1569fed371 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17EJB.java @@ -0,0 +1,302 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient17.java 1.22 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet17; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.resultSet.resultSet1.resultSetClient1EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient17 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ +@Tag("tck-appclient") + + +public class resultSetClient17EJB extends resultSetClient17 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet17"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "resultSet17_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(resultSetClient17EJB.class, resultSetClient17.class); + + URL resURL = resultSetClient17EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = resultSetClient17EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSet17_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "resultSet17_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(resultSetClient17EJB.class, resultSetClient17.class); + + resURL = resultSetClient17EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSet17_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = resultSetClient17EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet17_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient17EJB theTests = new resultSetClient17EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetShort61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Decimal_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Decimal_Tab table and retrieve the result of the query using the + * getShort(String columnName) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetShort61() throws Exception { + super.testGetShort61(); + } + + /* + * @testName: testGetShort63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Decimal_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetShort63() throws Exception { + super.testGetShort63(); + } + + /* + * @testName: testGetShort64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Numeric_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Numeric_Tab table and retrieve the result of the query using the + * getShort(String columnName) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetShort64() throws Exception { + super.testGetShort64(); + } + + /* + * @testName: testGetShort66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Numeric_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetShort66() throws Exception { + super.testGetShort66(); + } + + /* + * @testName: testGetShort70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Char_Tab with the maximum value of + * table Smallint_Tab.Now execute a query to get the maximum value of Char_Tab + * table and retrieve the result of the query using the getShort(String + * columnName) method.Compare the returned value, with the maximum value of + * table Smallint_Tab extracted from the tssql.stmt file. Both of them should + * be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetShort70() throws Exception { + super.testGetShort70(); + } + + /* + * @testName: testGetShort71 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the Char_Tab with the minimum value of table + * Smallint_Tab.Now execute a query to get the minimum value of Char_Tab table + * and retrieve the result of the query using the getShort(String columnName) + * method.Compare the returned value, with the minimum value of table + * Smallint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetShort71() throws Exception { + super.testGetShort71(); + } + + /* + * @testName: testGetShort72 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Char_Tab.Call the getShort(String columnName) method. + * Check if the value returned is zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetShort72() throws Exception { + super.testGetShort72(); + } + + /* + * @testName: testGetShort73 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the Varchar_Tab with the maximum value of table + * Smallint_Tab.Now execute a query to value from Varchar_Tab table and + * retrieve the result of the query using the getShort(String columnName) + * method.Compare the returned value, with the maximum value of table + * Smallint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetShort73() throws Exception { + super.testGetShort73(); + } + + /* + * @testName: testGetShort74 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Varchar_Tab with the minimum value of + * table Smallint_Tab.Now execute a query to value from Varchar_Tab table and + * retrieve the result of the query using the getShort(String columnName) + * method.Compare the returned value, with the minimum value of table + * Smallint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetShort74() throws Exception { + super.testGetShort74(); + } + + /* + * @testName: testGetShort75 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Varchar_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetShort75() throws Exception { + super.testGetShort75(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17JSP.java new file mode 100644 index 0000000000..ab209e5b7b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17JSP.java @@ -0,0 +1,284 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient17.java 1.22 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet17; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient17 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient17JSP extends resultSetClient17 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet17"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet17_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = resultSetClient17JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = resultSetClient17JSP.class.getResource("resultSet17_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, resultSetClient17JSP.class, sunJSPUrl); + + + archive.addClasses(resultSetClient17JSP.class, resultSetClient17.class); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient17JSP theTests = new resultSetClient17JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetShort61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Decimal_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Decimal_Tab table and retrieve the result of the query using the + * getShort(String columnName) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetShort61() throws Exception { + super.testGetShort61(); + } + + /* + * @testName: testGetShort63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Decimal_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetShort63() throws Exception { + super.testGetShort63(); + } + + /* + * @testName: testGetShort64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Numeric_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Numeric_Tab table and retrieve the result of the query using the + * getShort(String columnName) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetShort64() throws Exception { + super.testGetShort64(); + } + + /* + * @testName: testGetShort66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Numeric_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetShort66() throws Exception { + super.testGetShort66(); + } + + /* + * @testName: testGetShort70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Char_Tab with the maximum value of + * table Smallint_Tab.Now execute a query to get the maximum value of Char_Tab + * table and retrieve the result of the query using the getShort(String + * columnName) method.Compare the returned value, with the maximum value of + * table Smallint_Tab extracted from the tssql.stmt file. Both of them should + * be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetShort70() throws Exception { + super.testGetShort70(); + } + + /* + * @testName: testGetShort71 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the Char_Tab with the minimum value of table + * Smallint_Tab.Now execute a query to get the minimum value of Char_Tab table + * and retrieve the result of the query using the getShort(String columnName) + * method.Compare the returned value, with the minimum value of table + * Smallint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetShort71() throws Exception { + super.testGetShort71(); + } + + /* + * @testName: testGetShort72 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Char_Tab.Call the getShort(String columnName) method. + * Check if the value returned is zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetShort72() throws Exception { + super.testGetShort72(); + } + + /* + * @testName: testGetShort73 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the Varchar_Tab with the maximum value of table + * Smallint_Tab.Now execute a query to value from Varchar_Tab table and + * retrieve the result of the query using the getShort(String columnName) + * method.Compare the returned value, with the maximum value of table + * Smallint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetShort73() throws Exception { + super.testGetShort73(); + } + + /* + * @testName: testGetShort74 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Varchar_Tab with the minimum value of + * table Smallint_Tab.Now execute a query to value from Varchar_Tab table and + * retrieve the result of the query using the getShort(String columnName) + * method.Compare the returned value, with the minimum value of table + * Smallint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetShort74() throws Exception { + super.testGetShort74(); + } + + /* + * @testName: testGetShort75 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Varchar_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetShort75() throws Exception { + super.testGetShort75(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17Servlet.java new file mode 100644 index 0000000000..b016d5ab50 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet17/resultSetClient17Servlet.java @@ -0,0 +1,273 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient17.java 1.22 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet17; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient17 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient17Servlet extends resultSetClient17 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet17"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet17_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient17Servlet.class, resultSetClient17.class); + // The servlet descriptor +URL servletUrl = resultSetClient17Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = resultSetClient17Servlet.class.getResource("resultSet17_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, resultSetClient17Servlet.class, sunServletUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient17Servlet theTests = new resultSetClient17Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetShort61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Decimal_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Decimal_Tab table and retrieve the result of the query using the + * getShort(String columnName) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetShort61() throws Exception { + super.testGetShort61(); + } + + /* + * @testName: testGetShort63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Decimal_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetShort63() throws Exception { + super.testGetShort63(); + } + + /* + * @testName: testGetShort64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Numeric_Tab with the + * maximum value of table Smallint_Tab.Now execute a query to get the maximum + * value of Numeric_Tab table and retrieve the result of the query using the + * getShort(String columnName) method.Compare the returned value, with the + * maximum value of table Smallint_Tab extracted from the tssql.stmt file. + * Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetShort64() throws Exception { + super.testGetShort64(); + } + + /* + * @testName: testGetShort66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Numeric_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetShort66() throws Exception { + super.testGetShort66(); + } + + /* + * @testName: testGetShort70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Char_Tab with the maximum value of + * table Smallint_Tab.Now execute a query to get the maximum value of Char_Tab + * table and retrieve the result of the query using the getShort(String + * columnName) method.Compare the returned value, with the maximum value of + * table Smallint_Tab extracted from the tssql.stmt file. Both of them should + * be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetShort70() throws Exception { + super.testGetShort70(); + } + + /* + * @testName: testGetShort71 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the Char_Tab with the minimum value of table + * Smallint_Tab.Now execute a query to get the minimum value of Char_Tab table + * and retrieve the result of the query using the getShort(String columnName) + * method.Compare the returned value, with the minimum value of table + * Smallint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetShort71() throws Exception { + super.testGetShort71(); + } + + /* + * @testName: testGetShort72 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Char_Tab.Call the getShort(String columnName) method. + * Check if the value returned is zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetShort72() throws Exception { + super.testGetShort72(); + } + + /* + * @testName: testGetShort73 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the Varchar_Tab with the maximum value of table + * Smallint_Tab.Now execute a query to value from Varchar_Tab table and + * retrieve the result of the query using the getShort(String columnName) + * method.Compare the returned value, with the maximum value of table + * Smallint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetShort73() throws Exception { + super.testGetShort73(); + } + + /* + * @testName: testGetShort74 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the table Varchar_Tab with the minimum value of + * table Smallint_Tab.Now execute a query to value from Varchar_Tab table and + * retrieve the result of the query using the getShort(String columnName) + * method.Compare the returned value, with the minimum value of table + * Smallint_Tab extracted from the tssql.stmt file. Both of them should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetShort74() throws Exception { + super.testGetShort74(); + } + + /* + * @testName: testGetShort75 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:410; + * JDBC:JAVADOC:411; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Varchar_Tab.Call the getShort(String columnName) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetShort75() throws Exception { + super.testGetShort75(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/build.xml deleted file mode 100644 index 710209a572..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18.java index d2612aa9a7..7174b32631 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18.java @@ -31,8 +31,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -51,6 +55,9 @@ * @author * @version 1.7, 99/10/12 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class resultSetClient18 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.resultSet.resultSet18"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18AppClient.java new file mode 100644 index 0000000000..cf86c4830b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18AppClient.java @@ -0,0 +1,292 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient18.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet18; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient18 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + +public class resultSetClient18AppClient extends resultSetClient18 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet18"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "resultSet18_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient18AppClient.class, resultSetClient18.class); + // The appclient-client descriptor + URL appClientUrl = resultSetClient18AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = resultSetClient18AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, resultSetClient18AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet18_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient18AppClient theTests = new resultSetClient18AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetInt04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Smallint_Tab.Call the getInt(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Smallint datatype. + */ + @Test + @TargetVehicle("appclient") + public void testGetInt04() throws Exception { + super.testGetInt04(); + } + + /* + * @testName: testGetInt05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Smallint_Tab.Call the getInt(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Minimum Value of JDBC Smallint datatype. + */ + @Test + @TargetVehicle("appclient") + public void testGetInt05() throws Exception { + super.testGetInt05(); + } + + /* + * @testName: testGetInt06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetInt06() throws Exception { + super.testGetInt06(); + } + + /* + * @testName: testGetInt07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Integer_Tab.Call the getInt(int columnIndex) method. + * Compare the returned result with the value extracted from tssql.stmt + * file.Both of them should be equal and the returned result must be equal to + * the Maximum Value of JDBC Integer datatype. + */ + @Test + @TargetVehicle("appclient") + public void testGetInt07() throws Exception { + super.testGetInt07(); + } + + /* + * @testName: testGetInt08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Integer_Tab.Call the getInt(int columnIndex) method. + * Compare the returned result with the value extracted from tssql.stmt + * file.Both of them should be equal and the returned result must be equal to + * the Minimum Value of JDBC Integer datatype. + */ + @Test + @TargetVehicle("appclient") + public void testGetInt08() throws Exception { + super.testGetInt08(); + } + + /* + * @testName: testGetInt09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Integer_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetInt09() throws Exception { + super.testGetInt09(); + } + + /* + * @testName: testGetInt10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Real_Tab with an + * integer value. Retrieve the value updated in the table by executing a query + * in the Real_Tab. Compare the value inserted and the value retrieved. Both + * of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetInt10() throws Exception { + super.testGetInt10(); + } + + /* + * @testName: testGetInt12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Real_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetInt12() throws Exception { + super.testGetInt12(); + } + + /* + * @testName: testGetInt16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Float_Tab with the + * maximum value of table Integer_Tab.Now execute a query to get the maximum + * value of Float_Tab table and retrieve the result of the query using the + * getInt(int columnIndex) method.Compare the returned value, with the maximum + * value of table Integer_Tab extracted from the tssql.stmt file. Both of them + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetInt16() throws Exception { + super.testGetInt16(); + } + + /* + * @testName: testGetInt17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Float_Tab with the + * minimum value of table Integer_Tab.Now execute a query to get the minimum + * value of Float_Tab table and retrieve the result of the query using the + * getInt(int columnIndex) method.Compare the returned value, with the minimum + * value of table Integer_Tab extracted from the tssql.stmt file. Both of them + * should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetInt17() throws Exception { + super.testGetInt17(); + } + + /* + * @testName: testGetInt18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Float_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetInt18() throws Exception { + super.testGetInt18(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18EJB.java new file mode 100644 index 0000000000..48f261cd0a --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18EJB.java @@ -0,0 +1,313 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient18.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet18; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.resultSet.resultSet1.resultSetClient1EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient18 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + + +public class resultSetClient18EJB extends resultSetClient18 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet18"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "resultSet18_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(resultSetClient18EJB.class, resultSetClient18.class); + + URL resURL = resultSetClient18EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = resultSetClient1EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSet18_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "resultSet18_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(resultSetClient18EJB.class, resultSetClient18.class); + + resURL = resultSetClient18EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSet18_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = resultSetClient18EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet18_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient18EJB theTests = new resultSetClient18EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetInt04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Smallint_Tab.Call the getInt(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Smallint datatype. + */ + @Test + @TargetVehicle("ejb") + public void testGetInt04() throws Exception { + super.testGetInt04(); + } + + /* + * @testName: testGetInt05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Smallint_Tab.Call the getInt(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Minimum Value of JDBC Smallint datatype. + */ + @Test + @TargetVehicle("ejb") + public void testGetInt05() throws Exception { + super.testGetInt05(); + } + + /* + * @testName: testGetInt06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetInt06() throws Exception { + super.testGetInt06(); + } + + /* + * @testName: testGetInt07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Integer_Tab.Call the getInt(int columnIndex) method. + * Compare the returned result with the value extracted from tssql.stmt + * file.Both of them should be equal and the returned result must be equal to + * the Maximum Value of JDBC Integer datatype. + */ + @Test + @TargetVehicle("ejb") + public void testGetInt07() throws Exception { + super.testGetInt07(); + } + + /* + * @testName: testGetInt08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Integer_Tab.Call the getInt(int columnIndex) method. + * Compare the returned result with the value extracted from tssql.stmt + * file.Both of them should be equal and the returned result must be equal to + * the Minimum Value of JDBC Integer datatype. + */ + @Test + @TargetVehicle("ejb") + public void testGetInt08() throws Exception { + super.testGetInt08(); + } + + /* + * @testName: testGetInt09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Integer_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetInt09() throws Exception { + super.testGetInt09(); + } + + /* + * @testName: testGetInt10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Real_Tab with an + * integer value. Retrieve the value updated in the table by executing a query + * in the Real_Tab. Compare the value inserted and the value retrieved. Both + * of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetInt10() throws Exception { + super.testGetInt10(); + } + + /* + * @testName: testGetInt12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Real_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetInt12() throws Exception { + super.testGetInt12(); + } + + /* + * @testName: testGetInt16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Float_Tab with the + * maximum value of table Integer_Tab.Now execute a query to get the maximum + * value of Float_Tab table and retrieve the result of the query using the + * getInt(int columnIndex) method.Compare the returned value, with the maximum + * value of table Integer_Tab extracted from the tssql.stmt file. Both of them + * should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetInt16() throws Exception { + super.testGetInt16(); + } + + /* + * @testName: testGetInt17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Float_Tab with the + * minimum value of table Integer_Tab.Now execute a query to get the minimum + * value of Float_Tab table and retrieve the result of the query using the + * getInt(int columnIndex) method.Compare the returned value, with the minimum + * value of table Integer_Tab extracted from the tssql.stmt file. Both of them + * should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetInt17() throws Exception { + super.testGetInt17(); + } + + /* + * @testName: testGetInt18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Float_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetInt18() throws Exception { + super.testGetInt18(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18JSP.java new file mode 100644 index 0000000000..5ebb1376f9 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18JSP.java @@ -0,0 +1,295 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient18.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet18; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient18 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient18JSP extends resultSetClient18 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet18"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet18_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(resultSetClient18JSP.class, resultSetClient18.class); + + // The jsp descriptor + URL jspUrl = resultSetClient18JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = resultSetClient18JSP.class.getResource("resultSet18_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, resultSetClient18JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(resultSetClient18JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient18JSP theTests = new resultSetClient18JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetInt04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Smallint_Tab.Call the getInt(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Smallint datatype. + */ + @Test + @TargetVehicle("jsp") + public void testGetInt04() throws Exception { + super.testGetInt04(); + } + + /* + * @testName: testGetInt05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Smallint_Tab.Call the getInt(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Minimum Value of JDBC Smallint datatype. + */ + @Test + @TargetVehicle("jsp") + public void testGetInt05() throws Exception { + super.testGetInt05(); + } + + /* + * @testName: testGetInt06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetInt06() throws Exception { + super.testGetInt06(); + } + + /* + * @testName: testGetInt07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Integer_Tab.Call the getInt(int columnIndex) method. + * Compare the returned result with the value extracted from tssql.stmt + * file.Both of them should be equal and the returned result must be equal to + * the Maximum Value of JDBC Integer datatype. + */ + @Test + @TargetVehicle("jsp") + public void testGetInt07() throws Exception { + super.testGetInt07(); + } + + /* + * @testName: testGetInt08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Integer_Tab.Call the getInt(int columnIndex) method. + * Compare the returned result with the value extracted from tssql.stmt + * file.Both of them should be equal and the returned result must be equal to + * the Minimum Value of JDBC Integer datatype. + */ + @Test + @TargetVehicle("jsp") + public void testGetInt08() throws Exception { + super.testGetInt08(); + } + + /* + * @testName: testGetInt09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Integer_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetInt09() throws Exception { + super.testGetInt09(); + } + + /* + * @testName: testGetInt10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Real_Tab with an + * integer value. Retrieve the value updated in the table by executing a query + * in the Real_Tab. Compare the value inserted and the value retrieved. Both + * of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetInt10() throws Exception { + super.testGetInt10(); + } + + /* + * @testName: testGetInt12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Real_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetInt12() throws Exception { + super.testGetInt12(); + } + + /* + * @testName: testGetInt16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Float_Tab with the + * maximum value of table Integer_Tab.Now execute a query to get the maximum + * value of Float_Tab table and retrieve the result of the query using the + * getInt(int columnIndex) method.Compare the returned value, with the maximum + * value of table Integer_Tab extracted from the tssql.stmt file. Both of them + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetInt16() throws Exception { + super.testGetInt16(); + } + + /* + * @testName: testGetInt17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Float_Tab with the + * minimum value of table Integer_Tab.Now execute a query to get the minimum + * value of Float_Tab table and retrieve the result of the query using the + * getInt(int columnIndex) method.Compare the returned value, with the minimum + * value of table Integer_Tab extracted from the tssql.stmt file. Both of them + * should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetInt17() throws Exception { + super.testGetInt17(); + } + + /* + * @testName: testGetInt18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Float_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetInt18() throws Exception { + super.testGetInt18(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18Servlet.java new file mode 100644 index 0000000000..0cf095f312 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet18/resultSetClient18Servlet.java @@ -0,0 +1,283 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient18.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet18; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient18 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient18Servlet extends resultSetClient18 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet18"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet18_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient18Servlet.class, resultSetClient18.class); + // The servlet descriptor +URL servletUrl = resultSetClient18Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = resultSetClient18Servlet.class.getResource("resultSet18_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, resultSetClient18Servlet.class, sunServletUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient18Servlet theTests = new resultSetClient18Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetInt04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Smallint_Tab.Call the getInt(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Smallint datatype. + */ + @Test + @TargetVehicle("servlet") + public void testGetInt04() throws Exception { + super.testGetInt04(); + } + + /* + * @testName: testGetInt05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Smallint_Tab.Call the getInt(int columnIndex) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Minimum Value of JDBC Smallint datatype. + */ + @Test + @TargetVehicle("servlet") + public void testGetInt05() throws Exception { + super.testGetInt05(); + } + + /* + * @testName: testGetInt06 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Smallint_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetInt06() throws Exception { + super.testGetInt06(); + } + + /* + * @testName: testGetInt07 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Integer_Tab.Call the getInt(int columnIndex) method. + * Compare the returned result with the value extracted from tssql.stmt + * file.Both of them should be equal and the returned result must be equal to + * the Maximum Value of JDBC Integer datatype. + */ + @Test + @TargetVehicle("servlet") + public void testGetInt07() throws Exception { + super.testGetInt07(); + } + + /* + * @testName: testGetInt08 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Integer_Tab.Call the getInt(int columnIndex) method. + * Compare the returned result with the value extracted from tssql.stmt + * file.Both of them should be equal and the returned result must be equal to + * the Minimum Value of JDBC Integer datatype. + */ + @Test + @TargetVehicle("servlet") + public void testGetInt08() throws Exception { + super.testGetInt08(); + } + + /* + * @testName: testGetInt09 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Integer_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetInt09() throws Exception { + super.testGetInt09(); + } + + /* + * @testName: testGetInt10 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Real_Tab with an + * integer value. Retrieve the value updated in the table by executing a query + * in the Real_Tab. Compare the value inserted and the value retrieved. Both + * of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetInt10() throws Exception { + super.testGetInt10(); + } + + /* + * @testName: testGetInt12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Real_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetInt12() throws Exception { + super.testGetInt12(); + } + + /* + * @testName: testGetInt16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the maximum value of table Float_Tab with the + * maximum value of table Integer_Tab.Now execute a query to get the maximum + * value of Float_Tab table and retrieve the result of the query using the + * getInt(int columnIndex) method.Compare the returned value, with the maximum + * value of table Integer_Tab extracted from the tssql.stmt file. Both of them + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetInt16() throws Exception { + super.testGetInt16(); + } + + /* + * @testName: testGetInt17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the minimum value of table Float_Tab with the + * minimum value of table Integer_Tab.Now execute a query to get the minimum + * value of Float_Tab table and retrieve the result of the query using the + * getInt(int columnIndex) method.Compare the returned value, with the minimum + * value of table Integer_Tab extracted from the tssql.stmt file. Both of them + * should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetInt17() throws Exception { + super.testGetInt17(); + } + + /* + * @testName: testGetInt18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:380; + * JDBC:JAVADOC:381; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Float_Tab.Call the getInt(int columnIndex) + * method.Check if the value returned is zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetInt18() throws Exception { + super.testGetInt18(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/build.xml deleted file mode 100644 index b586fe6278..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41.java index 837e980535..cf1f2f5884 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -53,6 +57,9 @@ * @author * @version 1.7, 99/10/12 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class resultSetClient41 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.resultSet.resultSet41"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41AppClient.java new file mode 100644 index 0000000000..2b99c9f0a9 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41AppClient.java @@ -0,0 +1,151 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet41; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient41 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + +public class resultSetClient41AppClient extends resultSetClient41 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet41"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "resultSet41_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient41AppClient.class, resultSetClient41.class); + // The appclient-client descriptor + URL appClientUrl = resultSetClient41AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = resultSetClient41AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, resultSetClient41AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet41_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + + }; + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient41AppClient theTests = new resultSetClient41AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetBoolean67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:406; + * JDBC:JAVADOC:407; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Bit_Tab.Call the getBoolean(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Bit datatype. + */ + + @Test + @TargetVehicle("appclient") + public void testGetBoolean67() throws Exception { + super.testGetBoolean67(); + } + + /* + * @testName: testGetBoolean68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:406; + * JDBC:JAVADOC:407; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Bit_Tab.Call the getBoolean(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Minimum Value of JDBC Bit datatype. + */ + @Test + @TargetVehicle("appclient") + public void testGetBoolean68() throws Exception { + super.testGetBoolean68(); + } + + /* + * @testName: testGetBoolean69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:406; + * JDBC:JAVADOC:407; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Bit_Tab.Call the getBoolean(String columnName) + * method.Check if the value returned is boolean value false. + */ + @Test + @TargetVehicle("appclient") + public void testGetBoolean69() throws Exception { + super.testGetBoolean69(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41EJB.java new file mode 100644 index 0000000000..1532625fa6 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41EJB.java @@ -0,0 +1,170 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet41; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.resultSet.resultSet1.resultSetClient1EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient41 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ +@Tag("tck-appclient") + +public class resultSetClient41EJB extends resultSetClient41 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet41"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "resultSet41_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(resultSetClient41EJB.class, resultSetClient41.class); + + URL resURL = resultSetClient41EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = resultSetClient41EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSet41_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "resultSet41_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(resultSetClient41EJB.class, resultSetClient41.class); + + resURL = resultSetClient41EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSet41_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = resultSetClient41EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet41_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient41EJB theTests = new resultSetClient41EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetBoolean67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:406; + * JDBC:JAVADOC:407; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Bit_Tab.Call the getBoolean(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Bit datatype. + */ + + @Test + @TargetVehicle("ejb") + public void testGetBoolean67() throws Exception { + super.testGetBoolean67(); + } + + /* + * @testName: testGetBoolean68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:406; + * JDBC:JAVADOC:407; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Bit_Tab.Call the getBoolean(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Minimum Value of JDBC Bit datatype. + */ + @Test + @TargetVehicle("ejb") + public void testGetBoolean68() throws Exception { + super.testGetBoolean68(); + } + + /* + * @testName: testGetBoolean69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:406; + * JDBC:JAVADOC:407; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Bit_Tab.Call the getBoolean(String columnName) + * method.Check if the value returned is boolean value false. + */ + @Test + @TargetVehicle("ejb") + public void testGetBoolean69() throws Exception { + super.testGetBoolean69(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41JSP.java new file mode 100644 index 0000000000..3281b16e90 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41JSP.java @@ -0,0 +1,154 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet41; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient41 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient41JSP extends resultSetClient41 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet41"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet41_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(resultSetClient41JSP.class, resultSetClient41.class); + + // The jsp descriptor + URL jspUrl = resultSetClient41JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = resultSetClient41JSP.class.getResource("resultSet41_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, resultSetClient41JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(resultSetClient41JSP.class.getPackage(), "jsp_vehicle_web.xml","web.xml"); + + return archive; + }; + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient41JSP theTests = new resultSetClient41JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetBoolean67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:406; + * JDBC:JAVADOC:407; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Bit_Tab.Call the getBoolean(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Bit datatype. + */ + + @Test + @TargetVehicle("jsp") + public void testGetBoolean67() throws Exception { + super.testGetBoolean67(); + } + + /* + * @testName: testGetBoolean68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:406; + * JDBC:JAVADOC:407; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Bit_Tab.Call the getBoolean(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Minimum Value of JDBC Bit datatype. + */ + @Test + @TargetVehicle("jsp") + public void testGetBoolean68() throws Exception { + super.testGetBoolean68(); + } + + /* + * @testName: testGetBoolean69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:406; + * JDBC:JAVADOC:407; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Bit_Tab.Call the getBoolean(String columnName) + * method.Check if the value returned is boolean value false. + */ + @Test + @TargetVehicle("jsp") + public void testGetBoolean69() throws Exception { + super.testGetBoolean69(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41Servlet.java new file mode 100644 index 0000000000..1d2a8fc7f6 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet41/resultSetClient41Servlet.java @@ -0,0 +1,142 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * %W% %E% + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet41; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient41 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient41Servlet extends resultSetClient41 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet41"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet41_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient41Servlet.class, resultSetClient41.class); + // The servlet descriptor +URL servletUrl = resultSetClient41Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = resultSetClient41Servlet.class.getResource("resultSet41_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, resultSetClient41Servlet.class, sunServletUrl); + + return archive; + }; + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient41Servlet theTests = new resultSetClient41Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetBoolean67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:406; + * JDBC:JAVADOC:407; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * maximum value of table Bit_Tab.Call the getBoolean(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Maximum Value of JDBC Bit datatype. + */ + + @Test + @TargetVehicle("servlet") + public void testGetBoolean67() throws Exception { + super.testGetBoolean67(); + } + + /* + * @testName: testGetBoolean68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:406; + * JDBC:JAVADOC:407; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that gets the + * minimum value of table Bit_Tab.Call the getBoolean(String columnName) + * method. Compare the returned result with the value extracted from + * tssql.stmt file.Both of them should be equal and the returned result must + * be equal to the Minimum Value of JDBC Bit datatype. + */ + @Test + @TargetVehicle("servlet") + public void testGetBoolean68() throws Exception { + super.testGetBoolean68(); + } + + /* + * @testName: testGetBoolean69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:406; + * JDBC:JAVADOC:407; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * null value from table Bit_Tab.Call the getBoolean(String columnName) + * method.Check if the value returned is boolean value false. + */ + @Test + @TargetVehicle("servlet") + public void testGetBoolean69() throws Exception { + super.testGetBoolean69(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/build.xml deleted file mode 100644 index 618f00d33d..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45.java index b0e4853012..5e07a30da8 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45.java @@ -32,8 +32,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -52,6 +56,9 @@ * @author * @version 1.7, 99/10/12 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class resultSetClient45 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.resultSet.resultSet45"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45AppClient.java new file mode 100644 index 0000000000..8d8ab299a1 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45AppClient.java @@ -0,0 +1,309 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient45.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet45; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient45 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ +@Tag("tck-appclient") + +public class resultSetClient45AppClient extends resultSetClient45 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet45"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "resultSet45_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient45AppClient.class, resultSetClient45.class); + // The appclient-client descriptor + URL appClientUrl = resultSetClient45AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = resultSetClient45AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, resultSetClient45AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet45_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient45AppClient theTests = new resultSetClient45AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetString41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Smallint_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the minimum value of + * Smallint_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetString41() throws Exception { + super.testGetString41(); + } + + /* + * @testName: testGetString42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Smallint_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetString42() throws Exception { + super.testGetString42(); + } + + /* + * @testName: testGetString43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the maximum value of Integer_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the maximum value of + * Integer_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetString43() throws Exception { + super.testGetString43(); + } + + /* + * @testName: testGetString44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Integer_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the minimum value of + * Integer_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetString44() throws Exception { + super.testGetString44(); + } + + /* + * @testName: testGetString45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Integer_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetString45() throws Exception { + super.testGetString45(); + } + + /* + * @testName: testGetString47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Real_Tab table. Call the getString(String columnName) + * method to retrieve this value.Extract the minimum value of Real_Tab table + * as a String from the tssql.stmt file. Compare this value with the value + * returned by the getString method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetString47() throws Exception { + super.testGetString47(); + } + + /* + * @testName: testGetString48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Real_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetString48() throws Exception { + super.testGetString48(); + } + + /* + * @testName: testGetString53 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Float_Tab table. Call the getString(String columnName) + * method to retrieve this value.Extract the minimum value of Float_Tab table + * as a String from the tssql.stmt file. Compare this value with the value + * returned by the getString method. Both the values should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetString53() throws Exception { + super.testGetString53(); + } + + /* + * @testName: testGetString54 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Float_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetString54() throws Exception { + super.testGetString54(); + } + + /* + * @testName: testGetString58 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the maximum value of Decimal_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the maximum value of + * Decimal_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetString58() throws Exception { + super.testGetString58(); + } + + /* + * @testName: testGetString59 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Decimal_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the minimum value of + * Decimal_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetString59() throws Exception { + super.testGetString59(); + } + + /* + * @testName: testGetString60 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Decimal_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetString60() throws Exception { + super.testGetString60(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45EJB.java new file mode 100644 index 0000000000..5b946dd5be --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45EJB.java @@ -0,0 +1,330 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient45.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet45; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.resultSet.resultSet1.resultSetClient1EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient45 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ +@Tag("tck-appclient") + + +public class resultSetClient45EJB extends resultSetClient45 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet45"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "resultSet45_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(resultSetClient45EJB.class, resultSetClient45.class); + + URL resURL = resultSetClient45EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = resultSetClient45EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSet45_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "resultSet45_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(resultSetClient45EJB.class, resultSetClient45.class); + + resURL = resultSetClient45EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSet45_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = resultSetClient45EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet45_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient45EJB theTests = new resultSetClient45EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetString41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Smallint_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the minimum value of + * Smallint_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetString41() throws Exception { + super.testGetString41(); + } + + /* + * @testName: testGetString42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Smallint_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetString42() throws Exception { + super.testGetString42(); + } + + /* + * @testName: testGetString43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the maximum value of Integer_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the maximum value of + * Integer_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetString43() throws Exception { + super.testGetString43(); + } + + /* + * @testName: testGetString44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Integer_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the minimum value of + * Integer_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetString44() throws Exception { + super.testGetString44(); + } + + /* + * @testName: testGetString45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Integer_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetString45() throws Exception { + super.testGetString45(); + } + + /* + * @testName: testGetString47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Real_Tab table. Call the getString(String columnName) + * method to retrieve this value.Extract the minimum value of Real_Tab table + * as a String from the tssql.stmt file. Compare this value with the value + * returned by the getString method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetString47() throws Exception { + super.testGetString47(); + } + + /* + * @testName: testGetString48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Real_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetString48() throws Exception { + super.testGetString48(); + } + + /* + * @testName: testGetString53 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Float_Tab table. Call the getString(String columnName) + * method to retrieve this value.Extract the minimum value of Float_Tab table + * as a String from the tssql.stmt file. Compare this value with the value + * returned by the getString method. Both the values should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetString53() throws Exception { + super.testGetString53(); + } + + /* + * @testName: testGetString54 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Float_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetString54() throws Exception { + super.testGetString54(); + } + + /* + * @testName: testGetString58 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the maximum value of Decimal_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the maximum value of + * Decimal_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetString58() throws Exception { + super.testGetString58(); + } + + /* + * @testName: testGetString59 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Decimal_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the minimum value of + * Decimal_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetString59() throws Exception { + super.testGetString59(); + } + + /* + * @testName: testGetString60 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Decimal_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetString60() throws Exception { + super.testGetString60(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45JSP.java new file mode 100644 index 0000000000..a195e14fc3 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45JSP.java @@ -0,0 +1,313 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient45.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet45; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient45 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient45JSP extends resultSetClient45 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet45"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet45_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(resultSetClient45JSP.class, resultSetClient45.class); + + // The jsp descriptor + URL jspUrl = resultSetClient45JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = resultSetClient45JSP.class.getResource("resultSet45_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, resultSetClient45JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(resultSetClient45JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient45JSP theTests = new resultSetClient45JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetString41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Smallint_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the minimum value of + * Smallint_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetString41() throws Exception { + super.testGetString41(); + } + + /* + * @testName: testGetString42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Smallint_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetString42() throws Exception { + super.testGetString42(); + } + + /* + * @testName: testGetString43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the maximum value of Integer_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the maximum value of + * Integer_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetString43() throws Exception { + super.testGetString43(); + } + + /* + * @testName: testGetString44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Integer_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the minimum value of + * Integer_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetString44() throws Exception { + super.testGetString44(); + } + + /* + * @testName: testGetString45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Integer_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetString45() throws Exception { + super.testGetString45(); + } + + /* + * @testName: testGetString47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Real_Tab table. Call the getString(String columnName) + * method to retrieve this value.Extract the minimum value of Real_Tab table + * as a String from the tssql.stmt file. Compare this value with the value + * returned by the getString method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetString47() throws Exception { + super.testGetString47(); + } + + /* + * @testName: testGetString48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Real_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetString48() throws Exception { + super.testGetString48(); + } + + /* + * @testName: testGetString53 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Float_Tab table. Call the getString(String columnName) + * method to retrieve this value.Extract the minimum value of Float_Tab table + * as a String from the tssql.stmt file. Compare this value with the value + * returned by the getString method. Both the values should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetString53() throws Exception { + super.testGetString53(); + } + + /* + * @testName: testGetString54 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Float_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetString54() throws Exception { + super.testGetString54(); + } + + /* + * @testName: testGetString58 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the maximum value of Decimal_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the maximum value of + * Decimal_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetString58() throws Exception { + super.testGetString58(); + } + + /* + * @testName: testGetString59 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Decimal_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the minimum value of + * Decimal_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetString59() throws Exception { + super.testGetString59(); + } + + /* + * @testName: testGetString60 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Decimal_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetString60() throws Exception { + super.testGetString60(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45Servlet.java new file mode 100644 index 0000000000..0446c3af07 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet45/resultSetClient45Servlet.java @@ -0,0 +1,302 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient45.java 1.26 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet45; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.batchUpdate.batchUpdateClientServlet; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient45 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient45Servlet extends resultSetClient45 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet45"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet45_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient45Servlet.class, resultSetClient45.class); + // The servlet descriptor +URL servletUrl = batchUpdateClientServlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = batchUpdateClientServlet.class.getResource("batchUpdate_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, batchUpdateClientServlet.class, sunServletUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient45Servlet theTests = new resultSetClient45Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetString41 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Smallint_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the minimum value of + * Smallint_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetString41() throws Exception { + super.testGetString41(); + } + + /* + * @testName: testGetString42 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Smallint_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetString42() throws Exception { + super.testGetString42(); + } + + /* + * @testName: testGetString43 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the maximum value of Integer_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the maximum value of + * Integer_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetString43() throws Exception { + super.testGetString43(); + } + + /* + * @testName: testGetString44 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Integer_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the minimum value of + * Integer_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetString44() throws Exception { + super.testGetString44(); + } + + /* + * @testName: testGetString45 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Integer_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetString45() throws Exception { + super.testGetString45(); + } + + /* + * @testName: testGetString47 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Real_Tab table. Call the getString(String columnName) + * method to retrieve this value.Extract the minimum value of Real_Tab table + * as a String from the tssql.stmt file. Compare this value with the value + * returned by the getString method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetString47() throws Exception { + super.testGetString47(); + } + + /* + * @testName: testGetString48 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Real_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetString48() throws Exception { + super.testGetString48(); + } + + /* + * @testName: testGetString53 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Float_Tab table. Call the getString(String columnName) + * method to retrieve this value.Extract the minimum value of Float_Tab table + * as a String from the tssql.stmt file. Compare this value with the value + * returned by the getString method. Both the values should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetString53() throws Exception { + super.testGetString53(); + } + + /* + * @testName: testGetString54 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Float_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetString54() throws Exception { + super.testGetString54(); + } + + /* + * @testName: testGetString58 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the maximum value of Decimal_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the maximum value of + * Decimal_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetString58() throws Exception { + super.testGetString58(); + } + + /* + * @testName: testGetString59 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the minimum value of Decimal_Tab table. Call the getString(String + * columnName) method to retrieve this value.Extract the minimum value of + * Decimal_Tab table as a String from the tssql.stmt file. Compare this value + * with the value returned by the getString method. Both the values should be + * equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetString59() throws Exception { + super.testGetString59(); + } + + /* + * @testName: testGetString60 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing the query that returns + * the null column value from Decimal_Tab table. Call the getString(String + * columnName) method.Check if it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetString60() throws Exception { + super.testGetString60(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/build.xml deleted file mode 100644 index 54de1827ec..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47.java index e33d5ea7f5..b8cff9068f 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47.java @@ -31,8 +31,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -50,6 +54,9 @@ * @author * @version 1.7, 99/10/12 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class resultSetClient47 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.resultSet.resultSet47"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47AppClient.java new file mode 100644 index 0000000000..b01f8a69a9 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47AppClient.java @@ -0,0 +1,182 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient47.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet47; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient47 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + +public class resultSetClient47AppClient extends resultSetClient47 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet47"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "resultSet47_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient47AppClient.class, resultSetClient47.class); + // The appclient-client descriptor + URL appClientUrl = resultSetClient47AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = resultSetClient47AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, resultSetClient47AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet47_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient47AppClient theTests = new resultSetClient47AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetString84 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JDBC:JAVADOC:368; JDBC:JAVADOC:369; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getString(String columnName) method with the SQL null column of + * JDBC datatype TIMESTAMP.It should return null String object. + */ + @Test + @TargetVehicle("appclient") + public void testGetString84() throws Exception { + super.testGetString84(); + } + + /* + * @testName: testGetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JDBC:JAVADOC:368; JDBC:JAVADOC:369; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the + * database.Update the column value of Binary_Tab table with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method.Call the + * getBytes(int columnIndex) method with the SQL column of JDBC datatype + * BINARY.It should return the byte array object that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testGetBytes01() throws Exception { + super.testGetBytes01(); + } + + /* + * @testName: testGetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JDBC:JAVADOC:370; JDBC:JAVADOC:371; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getBytes(int columnIndex) method with the SQL null column of JDBC + * datatype BINARY.It should return null byte array object. + */ + @Test + @TargetVehicle("appclient") + public void testGetBytes02() throws Exception { + super.testGetBytes02(); + } + + /* + * @testName: testGetBytes03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the + * database.Update the column value of Varbinary_Tab table with a byte array + * using the PreparedStatement.setBytes(int columnIndex).Call the getBytes(int + * columnIndex) method with the SQL column of JDBC datatype VARBINARY.It + * should return the byte array object that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testGetBytes03() throws Exception { + super.testGetBytes03(); + } + + /* + * @testName: testGetBytes04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JDBC:JAVADOC:370; JDBC:JAVADOC:371; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getBytes(int columnIndex) method with the SQL null column of JDBC + * datatype VARBINARY.It should return null byte array object. + */ + @Test + @TargetVehicle("appclient") + public void testGetBytes04() throws Exception { + super.testGetBytes04(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47EJB.java new file mode 100644 index 0000000000..d0d7dc30c0 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47EJB.java @@ -0,0 +1,204 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient47.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet47; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.resultSet.resultSet1.resultSetClient1EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient47 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + +public class resultSetClient47EJB extends resultSetClient47 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet47"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "resultSet47_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(resultSetClient47EJB.class, resultSetClient47.class); + + URL resURL = resultSetClient47EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = resultSetClient47EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSet47_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "resultSet47_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(resultSetClient47EJB.class, resultSetClient47.class); + + resURL = resultSetClient47EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSet47_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = resultSetClient47EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet47_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient47EJB theTests = new resultSetClient47EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetString84 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JDBC:JAVADOC:368; JDBC:JAVADOC:369; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getString(String columnName) method with the SQL null column of + * JDBC datatype TIMESTAMP.It should return null String object. + */ + @Test + @TargetVehicle("ejb") + public void testGetString84() throws Exception { + super.testGetString84(); + } + + /* + * @testName: testGetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JDBC:JAVADOC:368; JDBC:JAVADOC:369; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the + * database.Update the column value of Binary_Tab table with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method.Call the + * getBytes(int columnIndex) method with the SQL column of JDBC datatype + * BINARY.It should return the byte array object that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testGetBytes01() throws Exception { + super.testGetBytes01(); + } + + /* + * @testName: testGetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JDBC:JAVADOC:370; JDBC:JAVADOC:371; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getBytes(int columnIndex) method with the SQL null column of JDBC + * datatype BINARY.It should return null byte array object. + */ + @Test + @TargetVehicle("ejb") + public void testGetBytes02() throws Exception { + super.testGetBytes02(); + } + + /* + * @testName: testGetBytes03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the + * database.Update the column value of Varbinary_Tab table with a byte array + * using the PreparedStatement.setBytes(int columnIndex).Call the getBytes(int + * columnIndex) method with the SQL column of JDBC datatype VARBINARY.It + * should return the byte array object that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testGetBytes03() throws Exception { + super.testGetBytes03(); + } + + /* + * @testName: testGetBytes04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JDBC:JAVADOC:370; JDBC:JAVADOC:371; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getBytes(int columnIndex) method with the SQL null column of JDBC + * datatype VARBINARY.It should return null byte array object. + */ + @Test + @TargetVehicle("ejb") + public void testGetBytes04() throws Exception { + super.testGetBytes04(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47JSP.java new file mode 100644 index 0000000000..e714dcbd36 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47JSP.java @@ -0,0 +1,186 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient47.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet47; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient47 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient47JSP extends resultSetClient47 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet47"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet47_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = resultSetClient47JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = resultSetClient47JSP.class.getResource("resultSet47_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, resultSetClient47JSP.class, sunJSPUrl); + + + archive.addClasses(resultSetClient47JSP.class, resultSetClient47.class); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient47JSP theTests = new resultSetClient47JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetString84 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JDBC:JAVADOC:368; JDBC:JAVADOC:369; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getString(String columnName) method with the SQL null column of + * JDBC datatype TIMESTAMP.It should return null String object. + */ + @Test + @TargetVehicle("jsp") + public void testGetString84() throws Exception { + super.testGetString84(); + } + + /* + * @testName: testGetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JDBC:JAVADOC:368; JDBC:JAVADOC:369; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the + * database.Update the column value of Binary_Tab table with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method.Call the + * getBytes(int columnIndex) method with the SQL column of JDBC datatype + * BINARY.It should return the byte array object that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testGetBytes01() throws Exception { + super.testGetBytes01(); + } + + /* + * @testName: testGetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JDBC:JAVADOC:370; JDBC:JAVADOC:371; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getBytes(int columnIndex) method with the SQL null column of JDBC + * datatype BINARY.It should return null byte array object. + */ + @Test + @TargetVehicle("jsp") + public void testGetBytes02() throws Exception { + super.testGetBytes02(); + } + + /* + * @testName: testGetBytes03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the + * database.Update the column value of Varbinary_Tab table with a byte array + * using the PreparedStatement.setBytes(int columnIndex).Call the getBytes(int + * columnIndex) method with the SQL column of JDBC datatype VARBINARY.It + * should return the byte array object that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testGetBytes03() throws Exception { + super.testGetBytes03(); + } + + /* + * @testName: testGetBytes04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JDBC:JAVADOC:370; JDBC:JAVADOC:371; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getBytes(int columnIndex) method with the SQL null column of JDBC + * datatype VARBINARY.It should return null byte array object. + */ + @Test + @TargetVehicle("jsp") + public void testGetBytes04() throws Exception { + super.testGetBytes04(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47Servlet.java new file mode 100644 index 0000000000..707241c983 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet47/resultSetClient47Servlet.java @@ -0,0 +1,175 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient47.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet47; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient47 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient47Servlet extends resultSetClient47 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet47"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet47_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient47Servlet.class, resultSetClient47.class); + // The servlet descriptor +URL servletUrl = resultSetClient47Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = resultSetClient47Servlet.class.getResource("resultSet47_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, resultSetClient47Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient47Servlet theTests = new resultSetClient47Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetString84 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:404; + * JDBC:JAVADOC:405; JDBC:JAVADOC:368; JDBC:JAVADOC:369; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getString(String columnName) method with the SQL null column of + * JDBC datatype TIMESTAMP.It should return null String object. + */ + @Test + @TargetVehicle("servlet") + public void testGetString84() throws Exception { + super.testGetString84(); + } + + /* + * @testName: testGetBytes01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JDBC:JAVADOC:368; JDBC:JAVADOC:369; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the + * database.Update the column value of Binary_Tab table with a byte array + * using the PreparedStatement.setBytes(int columnIndex) method.Call the + * getBytes(int columnIndex) method with the SQL column of JDBC datatype + * BINARY.It should return the byte array object that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testGetBytes01() throws Exception { + super.testGetBytes01(); + } + + /* + * @testName: testGetBytes02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JDBC:JAVADOC:370; JDBC:JAVADOC:371; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getBytes(int columnIndex) method with the SQL null column of JDBC + * datatype BINARY.It should return null byte array object. + */ + @Test + @TargetVehicle("servlet") + public void testGetBytes02() throws Exception { + super.testGetBytes02(); + } + + /* + * @testName: testGetBytes03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the + * database.Update the column value of Varbinary_Tab table with a byte array + * using the PreparedStatement.setBytes(int columnIndex).Call the getBytes(int + * columnIndex) method with the SQL column of JDBC datatype VARBINARY.It + * should return the byte array object that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testGetBytes03() throws Exception { + super.testGetBytes03(); + } + + /* + * @testName: testGetBytes04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:390; + * JDBC:JAVADOC:391; JDBC:JAVADOC:370; JDBC:JAVADOC:371; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getBytes(int columnIndex) method with the SQL null column of JDBC + * datatype VARBINARY.It should return null byte array object. + */ + @Test + @TargetVehicle("servlet") + public void testGetBytes04() throws Exception { + super.testGetBytes04(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/build.xml deleted file mode 100644 index f6ba3175e7..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49.java index c779c5c817..aee826aead 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49.java @@ -34,8 +34,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -54,6 +58,9 @@ * @author * @version 1.7, 99/10/12 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class resultSetClient49 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.resultSet.resultSet49"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49AppClient.java new file mode 100644 index 0000000000..9fb7fdd598 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49AppClient.java @@ -0,0 +1,275 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient49.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet49; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient49 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + + +public class resultSetClient49AppClient extends resultSetClient49 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet49"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "resultSet49_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient49AppClient.class, resultSetClient49.class); + // The appclient-client descriptor + URL appClientUrl = resultSetClient49AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = resultSetClient49AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, resultSetClient49AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet49_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient49AppClient theTests = new resultSetClient49AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetTime13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:394; + * JDBC:JAVADOC:395; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * the non-null column of Time_Tab as a Time object.Call the getTime(int + * columnIndex) method to retrieve this value.Extract the non-null value of + * Time_Tab from the tssql.stmt file as a String.Convert this value into a + * Time object.Compare this object with the object returned by the getTime(int + * columnIndex).Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetTime13() throws Exception { + super.testGetTime13(); + } + + /* + * @testName: testGetTime14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:394; + * JDBC:JAVADOC:395; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from Time_Tab as a Time object.Call the getTime(int columnIndex) + * method. Check if the value returned is null. + */ + @Test + @TargetVehicle("appclient") + public void testGetTime14() throws Exception { + super.testGetTime14(); + } + + /* + * @testName: testGetTime16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:394; + * JDBC:JAVADOC:395; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from Timestamp_Tab as a Time object.Call the getTime(int + * columnIndex) method. Check if the value returned is null. + */ + @Test + @TargetVehicle("appclient") + public void testGetTime16() throws Exception { + super.testGetTime16(); + } + + /* + * @testName: testGetTime17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:426; + * JDBC:JAVADOC:427; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * non null column of Time_Tab as a Time object.Call the getTime(String + * columnName) to retrieve this value.Extract the non-null value ofTime_Tab + * from the tssql.stmt file as a String.Convert this value into a Time + * object.Compare this object with the object returned by the getTime(String + * columnName) method. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetTime17() throws Exception { + super.testGetTime17(); + } + + /* + * @testName: testGetTime18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:426; + * JDBC:JAVADOC:427; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from Time_Tab as a Time object.Call the getTime(String + * columnName) method. Check if the value returned is null. + */ + @Test + @TargetVehicle("appclient") + public void testGetTime18() throws Exception { + super.testGetTime18(); + } + + /* + * @testName: testGetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the non-null column of Char_Tab table with the + * non-null value of Timestamp_Tab.Execute a query that returns the non-null + * column of Char_Tab. table.Call the getTimeStamp(int columnIndex) to + * retrieve this value.Compare the value returned with the non null column + * value of Timestamp_Tab table. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetTimestamp01() throws Exception { + super.testGetTimestamp01(); + } + + /* + * @testName: testGetTimestamp13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from from Char_Tab.Call the getTimestamp(String columnIndex) + * method.Check if it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetTimestamp13() throws Exception { + super.testGetTimestamp13(); + } + + /* + * @testName: testGetTimestamp03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the non-null column of Varchar_Tab table with + * the non-null value of Timestamp_Tab.Execute a query that returns the + * non-null column of Varchar_Tab. table.Call the getTimeStamp(int + * columnIndex) to retrieve this value.Compare the value returned with the non + * null column value of Timestamp_Tab table. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetTimestamp03() throws Exception { + super.testGetTimestamp03(); + } + + /* + * @testName: testGetTimestamp04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from from Varchar_Tab.Call the getTimestamp(int columnIndex) + * method.Check if it returns null. + */ + @Test + @TargetVehicle("appclient") + public void testGetTimestamp04() throws Exception { + super.testGetTimestamp04(); + } + + /* + * @testName: testGetTimestamp12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the non-null column of Longvarchar_Tab table + * with the non-null value of Timestamp_Tab.Execute a query that returns the + * non-null column of Longvarchar_Tab. table.Call the getTimeStamp(String + * columnIndex) to retrieve this value.Compare the value returned with the non + * null column value of Timestamp_Tab table. Both of them should be equal. + */ + @Test + @TargetVehicle("appclient") + public void testGetTimestamp12() throws Exception { + super.testGetTimestamp12(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49EJB.java new file mode 100644 index 0000000000..59189b94ec --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49EJB.java @@ -0,0 +1,296 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient49.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet49; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.resultSet.resultSet1.resultSetClient1EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient49 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-appclient") + + +public class resultSetClient49EJB extends resultSetClient49 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet49"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "resultSet49_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(resultSetClient49EJB.class, resultSetClient49.class); + + URL resURL = resultSetClient49EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = resultSetClient49EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSet49_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "resultSet49_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(resultSetClient49EJB.class, resultSetClient49.class); + + resURL = resultSetClient49EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSet49_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = resultSetClient49EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet49_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient49EJB theTests = new resultSetClient49EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetTime13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:394; + * JDBC:JAVADOC:395; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * the non-null column of Time_Tab as a Time object.Call the getTime(int + * columnIndex) method to retrieve this value.Extract the non-null value of + * Time_Tab from the tssql.stmt file as a String.Convert this value into a + * Time object.Compare this object with the object returned by the getTime(int + * columnIndex).Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetTime13() throws Exception { + super.testGetTime13(); + } + + /* + * @testName: testGetTime14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:394; + * JDBC:JAVADOC:395; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from Time_Tab as a Time object.Call the getTime(int columnIndex) + * method. Check if the value returned is null. + */ + @Test + @TargetVehicle("ejb") + public void testGetTime14() throws Exception { + super.testGetTime14(); + } + + /* + * @testName: testGetTime16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:394; + * JDBC:JAVADOC:395; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from Timestamp_Tab as a Time object.Call the getTime(int + * columnIndex) method. Check if the value returned is null. + */ + @Test + @TargetVehicle("ejb") + public void testGetTime16() throws Exception { + super.testGetTime16(); + } + + /* + * @testName: testGetTime17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:426; + * JDBC:JAVADOC:427; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * non null column of Time_Tab as a Time object.Call the getTime(String + * columnName) to retrieve this value.Extract the non-null value ofTime_Tab + * from the tssql.stmt file as a String.Convert this value into a Time + * object.Compare this object with the object returned by the getTime(String + * columnName) method. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetTime17() throws Exception { + super.testGetTime17(); + } + + /* + * @testName: testGetTime18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:426; + * JDBC:JAVADOC:427; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from Time_Tab as a Time object.Call the getTime(String + * columnName) method. Check if the value returned is null. + */ + @Test + @TargetVehicle("ejb") + public void testGetTime18() throws Exception { + super.testGetTime18(); + } + + /* + * @testName: testGetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the non-null column of Char_Tab table with the + * non-null value of Timestamp_Tab.Execute a query that returns the non-null + * column of Char_Tab. table.Call the getTimeStamp(int columnIndex) to + * retrieve this value.Compare the value returned with the non null column + * value of Timestamp_Tab table. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetTimestamp01() throws Exception { + super.testGetTimestamp01(); + } + + /* + * @testName: testGetTimestamp13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from from Char_Tab.Call the getTimestamp(String columnIndex) + * method.Check if it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetTimestamp13() throws Exception { + super.testGetTimestamp13(); + } + + /* + * @testName: testGetTimestamp03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the non-null column of Varchar_Tab table with + * the non-null value of Timestamp_Tab.Execute a query that returns the + * non-null column of Varchar_Tab. table.Call the getTimeStamp(int + * columnIndex) to retrieve this value.Compare the value returned with the non + * null column value of Timestamp_Tab table. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetTimestamp03() throws Exception { + super.testGetTimestamp03(); + } + + /* + * @testName: testGetTimestamp04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from from Varchar_Tab.Call the getTimestamp(int columnIndex) + * method.Check if it returns null. + */ + @Test + @TargetVehicle("ejb") + public void testGetTimestamp04() throws Exception { + super.testGetTimestamp04(); + } + + /* + * @testName: testGetTimestamp12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the non-null column of Longvarchar_Tab table + * with the non-null value of Timestamp_Tab.Execute a query that returns the + * non-null column of Longvarchar_Tab. table.Call the getTimeStamp(String + * columnIndex) to retrieve this value.Compare the value returned with the non + * null column value of Timestamp_Tab table. Both of them should be equal. + */ + @Test + @TargetVehicle("ejb") + public void testGetTimestamp12() throws Exception { + super.testGetTimestamp12(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49JSP.java new file mode 100644 index 0000000000..bdaf66d095 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49JSP.java @@ -0,0 +1,278 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient49.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet49; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.batchUpdate.batchUpdateClientJSP; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient49 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient49JSP extends resultSetClient49 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet49"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet49_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = resultSetClient49JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = resultSetClient49JSP.class.getResource("resultSet49_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, batchUpdateClientJSP.class, sunJSPUrl); + + + archive.addClasses(resultSetClient49JSP.class, resultSetClient49.class); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient49JSP theTests = new resultSetClient49JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetTime13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:394; + * JDBC:JAVADOC:395; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * the non-null column of Time_Tab as a Time object.Call the getTime(int + * columnIndex) method to retrieve this value.Extract the non-null value of + * Time_Tab from the tssql.stmt file as a String.Convert this value into a + * Time object.Compare this object with the object returned by the getTime(int + * columnIndex).Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetTime13() throws Exception { + super.testGetTime13(); + } + + /* + * @testName: testGetTime14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:394; + * JDBC:JAVADOC:395; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from Time_Tab as a Time object.Call the getTime(int columnIndex) + * method. Check if the value returned is null. + */ + @Test + @TargetVehicle("jsp") + public void testGetTime14() throws Exception { + super.testGetTime14(); + } + + /* + * @testName: testGetTime16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:394; + * JDBC:JAVADOC:395; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from Timestamp_Tab as a Time object.Call the getTime(int + * columnIndex) method. Check if the value returned is null. + */ + @Test + @TargetVehicle("jsp") + public void testGetTime16() throws Exception { + super.testGetTime16(); + } + + /* + * @testName: testGetTime17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:426; + * JDBC:JAVADOC:427; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * non null column of Time_Tab as a Time object.Call the getTime(String + * columnName) to retrieve this value.Extract the non-null value ofTime_Tab + * from the tssql.stmt file as a String.Convert this value into a Time + * object.Compare this object with the object returned by the getTime(String + * columnName) method. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetTime17() throws Exception { + super.testGetTime17(); + } + + /* + * @testName: testGetTime18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:426; + * JDBC:JAVADOC:427; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from Time_Tab as a Time object.Call the getTime(String + * columnName) method. Check if the value returned is null. + */ + @Test + @TargetVehicle("jsp") + public void testGetTime18() throws Exception { + super.testGetTime18(); + } + + /* + * @testName: testGetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the non-null column of Char_Tab table with the + * non-null value of Timestamp_Tab.Execute a query that returns the non-null + * column of Char_Tab. table.Call the getTimeStamp(int columnIndex) to + * retrieve this value.Compare the value returned with the non null column + * value of Timestamp_Tab table. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetTimestamp01() throws Exception { + super.testGetTimestamp01(); + } + + /* + * @testName: testGetTimestamp13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from from Char_Tab.Call the getTimestamp(String columnIndex) + * method.Check if it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetTimestamp13() throws Exception { + super.testGetTimestamp13(); + } + + /* + * @testName: testGetTimestamp03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the non-null column of Varchar_Tab table with + * the non-null value of Timestamp_Tab.Execute a query that returns the + * non-null column of Varchar_Tab. table.Call the getTimeStamp(int + * columnIndex) to retrieve this value.Compare the value returned with the non + * null column value of Timestamp_Tab table. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetTimestamp03() throws Exception { + super.testGetTimestamp03(); + } + + /* + * @testName: testGetTimestamp04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from from Varchar_Tab.Call the getTimestamp(int columnIndex) + * method.Check if it returns null. + */ + @Test + @TargetVehicle("jsp") + public void testGetTimestamp04() throws Exception { + super.testGetTimestamp04(); + } + + /* + * @testName: testGetTimestamp12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the non-null column of Longvarchar_Tab table + * with the non-null value of Timestamp_Tab.Execute a query that returns the + * non-null column of Longvarchar_Tab. table.Call the getTimeStamp(String + * columnIndex) to retrieve this value.Compare the value returned with the non + * null column value of Timestamp_Tab table. Both of them should be equal. + */ + @Test + @TargetVehicle("jsp") + public void testGetTimestamp12() throws Exception { + super.testGetTimestamp12(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49Servlet.java new file mode 100644 index 0000000000..2a6037adcd --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet49/resultSetClient49Servlet.java @@ -0,0 +1,266 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient49.java 1.24 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet49; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient49 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 99/10/12 + */ + +@Tag("tck-javatest") + +public class resultSetClient49Servlet extends resultSetClient49 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet49"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet49_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient49Servlet.class, resultSetClient49.class); + // The servlet descriptor +URL servletUrl = resultSetClient49Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = resultSetClient49Servlet.class.getResource("resultSet49_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, resultSetClient49Servlet.class, sunServletUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient49Servlet theTests = new resultSetClient49Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* + * @testName: testGetTime13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:394; + * JDBC:JAVADOC:395; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * the non-null column of Time_Tab as a Time object.Call the getTime(int + * columnIndex) method to retrieve this value.Extract the non-null value of + * Time_Tab from the tssql.stmt file as a String.Convert this value into a + * Time object.Compare this object with the object returned by the getTime(int + * columnIndex).Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetTime13() throws Exception { + super.testGetTime13(); + } + + /* + * @testName: testGetTime14 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:394; + * JDBC:JAVADOC:395; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from Time_Tab as a Time object.Call the getTime(int columnIndex) + * method. Check if the value returned is null. + */ + @Test + @TargetVehicle("servlet") + public void testGetTime14() throws Exception { + super.testGetTime14(); + } + + /* + * @testName: testGetTime16 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:394; + * JDBC:JAVADOC:395; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from Timestamp_Tab as a Time object.Call the getTime(int + * columnIndex) method. Check if the value returned is null. + */ + @Test + @TargetVehicle("servlet") + public void testGetTime16() throws Exception { + super.testGetTime16(); + } + + /* + * @testName: testGetTime17 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:426; + * JDBC:JAVADOC:427; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * non null column of Time_Tab as a Time object.Call the getTime(String + * columnName) to retrieve this value.Extract the non-null value ofTime_Tab + * from the tssql.stmt file as a String.Convert this value into a Time + * object.Compare this object with the object returned by the getTime(String + * columnName) method. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetTime17() throws Exception { + super.testGetTime17(); + } + + /* + * @testName: testGetTime18 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:426; + * JDBC:JAVADOC:427; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from Time_Tab as a Time object.Call the getTime(String + * columnName) method. Check if the value returned is null. + */ + @Test + @TargetVehicle("servlet") + public void testGetTime18() throws Exception { + super.testGetTime18(); + } + + /* + * @testName: testGetTimestamp01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the non-null column of Char_Tab table with the + * non-null value of Timestamp_Tab.Execute a query that returns the non-null + * column of Char_Tab. table.Call the getTimeStamp(int columnIndex) to + * retrieve this value.Compare the value returned with the non null column + * value of Timestamp_Tab table. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetTimestamp01() throws Exception { + super.testGetTimestamp01(); + } + + /* + * @testName: testGetTimestamp13 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from from Char_Tab.Call the getTimestamp(String columnIndex) + * method.Check if it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetTimestamp13() throws Exception { + super.testGetTimestamp13(); + } + + /* + * @testName: testGetTimestamp03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the non-null column of Varchar_Tab table with + * the non-null value of Timestamp_Tab.Execute a query that returns the + * non-null column of Varchar_Tab. table.Call the getTimeStamp(int + * columnIndex) to retrieve this value.Compare the value returned with the non + * null column value of Timestamp_Tab table. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetTimestamp03() throws Exception { + super.testGetTimestamp03(); + } + + /* + * @testName: testGetTimestamp04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object by executing a query that returns + * null value from from Varchar_Tab.Call the getTimestamp(int columnIndex) + * method.Check if it returns null. + */ + @Test + @TargetVehicle("servlet") + public void testGetTimestamp04() throws Exception { + super.testGetTimestamp04(); + } + + /* + * @testName: testGetTimestamp12 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:396; + * JDBC:JAVADOC:397; JavaEE:SPEC:191; + * + * @test_Strategy: Get a PreparedStatement object from the connection to the + * database. Using this,update the non-null column of Longvarchar_Tab table + * with the non-null value of Timestamp_Tab.Execute a query that returns the + * non-null column of Longvarchar_Tab. table.Call the getTimeStamp(String + * columnIndex) to retrieve this value.Compare the value returned with the non + * null column value of Timestamp_Tab table. Both of them should be equal. + */ + @Test + @TargetVehicle("servlet") + public void testGetTimestamp12() throws Exception { + super.testGetTimestamp12(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/build.xml deleted file mode 100644 index 7af3daf33a..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7.java index 7f908b0bc0..ae86f4f0e9 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7.java @@ -30,8 +30,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -49,6 +53,9 @@ * @author * @version 1.7, 9/9/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class resultSetClient7 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.resultSet.resultSet7"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7AppClient.java new file mode 100644 index 0000000000..49498c0b32 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7AppClient.java @@ -0,0 +1,263 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient7.java 1.25 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet7; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient7 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 9/9/99 + */ + +@Tag("tck-appclient") + +public class resultSetClient7AppClient extends resultSetClient7 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet7"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "resultSet7_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient7AppClient.class, resultSetClient7.class); + // The appclient-client descriptor + URL appClientUrl = resultSetClient7AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = resultSetClient7AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, resultSetClient7AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet7_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient7AppClient theTests = new resultSetClient7AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(int column index) method with the SQL null column of + * JDBC datatype SMALLINT. It should return null Integer object. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject61() throws Exception { + super.testGetObject61(); + } + + /* + * @testName: testGetObject69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String column index) method with the column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the maximum value of SMALLINT. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject69() throws Exception { + super.testGetObject69(); + } + + /* + * @testName: testGetObject70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String column index) method with the SQL column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the minimum value of SMALLINT. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject70() throws Exception { + super.testGetObject70(); + } + + /* + * @testName: testGetObject62 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JDBC:JAVADOC:442; + * JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the maximum value of SMALLINT. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject62() throws Exception { + super.testGetObject62(); + } + + /* + * @testName: testGetObject63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the minimum value of SMALLINT. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject63() throws Exception { + super.testGetObject63(); + } + + /* + * @testName: testGetObject64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL null column of + * JDBC datatype SMALLINT. It should return null Integer object. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject64() throws Exception { + super.testGetObject64(); + } + + /* + * @testName: testGetObject65 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(int columnIndex) method with the SQL column of JDBC + * datatype VARCHAR. It should return an String object that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject65() throws Exception { + super.testGetObject65(); + } + + /* + * @testName: testGetObject66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(int column index) method with the SQL null column of + * JDBC datatype VARCHAR. It should return null String object. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject66() throws Exception { + super.testGetObject66(); + } + + /* + * @testName: testGetObject67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL column of JDBC + * datatype VARCHAR. It should return an String object that has been set. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject67() throws Exception { + super.testGetObject67(); + } + + /* + * @testName: testGetObject68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL null column of + * JDBC datatype VARCHAR. It should return null String object. + */ + @Test + @TargetVehicle("appclient") + public void testGetObject68() throws Exception { + super.testGetObject68(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7EJB.java new file mode 100644 index 0000000000..915d77406b --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7EJB.java @@ -0,0 +1,283 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient7.java 1.25 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet7; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.resultSet.resultSet1.resultSetClient1EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient7 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 9/9/99 + */ + +@Tag("tck-appclient") + +public class resultSetClient7EJB extends resultSetClient7 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet7"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "resultSet7_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(resultSetClient7EJB.class, resultSetClient7.class); + + URL resURL = resultSetClient7EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = resultSetClient7EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSet7_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "resultSet7_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(resultSetClient7EJB.class, resultSetClient7.class); + + resURL = resultSetClient7EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSet7_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = resultSetClient7EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "resultSet7_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient7EJB theTests = new resultSetClient7EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(int column index) method with the SQL null column of + * JDBC datatype SMALLINT. It should return null Integer object. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject61() throws Exception { + super.testGetObject61(); + } + + /* + * @testName: testGetObject69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String column index) method with the column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the maximum value of SMALLINT. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject69() throws Exception { + super.testGetObject69(); + } + + /* + * @testName: testGetObject70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String column index) method with the SQL column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the minimum value of SMALLINT. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject70() throws Exception { + super.testGetObject70(); + } + + /* + * @testName: testGetObject62 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JDBC:JAVADOC:442; + * JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the maximum value of SMALLINT. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject62() throws Exception { + super.testGetObject62(); + } + + /* + * @testName: testGetObject63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the minimum value of SMALLINT. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject63() throws Exception { + super.testGetObject63(); + } + + /* + * @testName: testGetObject64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL null column of + * JDBC datatype SMALLINT. It should return null Integer object. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject64() throws Exception { + super.testGetObject64(); + } + + /* + * @testName: testGetObject65 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(int columnIndex) method with the SQL column of JDBC + * datatype VARCHAR. It should return an String object that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject65() throws Exception { + super.testGetObject65(); + } + + /* + * @testName: testGetObject66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(int column index) method with the SQL null column of + * JDBC datatype VARCHAR. It should return null String object. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject66() throws Exception { + super.testGetObject66(); + } + + /* + * @testName: testGetObject67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL column of JDBC + * datatype VARCHAR. It should return an String object that has been set. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject67() throws Exception { + super.testGetObject67(); + } + + /* + * @testName: testGetObject68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL null column of + * JDBC datatype VARCHAR. It should return null String object. + */ + @Test + @TargetVehicle("ejb") + public void testGetObject68() throws Exception { + super.testGetObject68(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7JSP.java new file mode 100644 index 0000000000..3e38ba8d62 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7JSP.java @@ -0,0 +1,267 @@ +/* + + + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient7.java 1.25 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet7; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient7 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 9/9/99 + */ + +@Tag("tck-javatest") + +public class resultSetClient7JSP extends resultSetClient7 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet7"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet7_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = resultSetClient7JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = resultSetClient7JSP.class.getResource("resultSet7_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, resultSetClient7JSP.class, sunJSPUrl); + + archive.addClasses(resultSetClient7JSP.class, resultSetClient7.class); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient7JSP theTests = new resultSetClient7JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(int column index) method with the SQL null column of + * JDBC datatype SMALLINT. It should return null Integer object. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject61() throws Exception { + super.testGetObject61(); + } + + /* + * @testName: testGetObject69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String column index) method with the column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the maximum value of SMALLINT. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject69() throws Exception { + super.testGetObject69(); + } + + /* + * @testName: testGetObject70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String column index) method with the SQL column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the minimum value of SMALLINT. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject70() throws Exception { + super.testGetObject70(); + } + + /* + * @testName: testGetObject62 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JDBC:JAVADOC:442; + * JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the maximum value of SMALLINT. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject62() throws Exception { + super.testGetObject62(); + } + + /* + * @testName: testGetObject63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the minimum value of SMALLINT. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject63() throws Exception { + super.testGetObject63(); + } + + /* + * @testName: testGetObject64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL null column of + * JDBC datatype SMALLINT. It should return null Integer object. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject64() throws Exception { + super.testGetObject64(); + } + + /* + * @testName: testGetObject65 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(int columnIndex) method with the SQL column of JDBC + * datatype VARCHAR. It should return an String object that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject65() throws Exception { + super.testGetObject65(); + } + + /* + * @testName: testGetObject66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(int column index) method with the SQL null column of + * JDBC datatype VARCHAR. It should return null String object. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject66() throws Exception { + super.testGetObject66(); + } + + /* + * @testName: testGetObject67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL column of JDBC + * datatype VARCHAR. It should return an String object that has been set. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject67() throws Exception { + super.testGetObject67(); + } + + /* + * @testName: testGetObject68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL null column of + * JDBC datatype VARCHAR. It should return null String object. + */ + @Test + @TargetVehicle("jsp") + public void testGetObject68() throws Exception { + super.testGetObject68(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7Servlet.java new file mode 100644 index 0000000000..dc540b1f9e --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/resultSet/resultSet7/resultSetClient7Servlet.java @@ -0,0 +1,255 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)resultSetClient7.java 1.25 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.resultSet.resultSet7; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The resultSetClient7 class tests methods of resultSet interface using Sun's + * J2EE Reference Implementation. + * + * @author + * @version 1.7, 9/9/99 + */ + +@Tag("tck-javatest") + +public class resultSetClient7Servlet extends resultSetClient7 implements Serializable { + private static final String testName = "jdbc.ee.resultSet.resultSet7"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "resultSet7_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(resultSetClient7Servlet.class, resultSetClient7.class); + // The servlet descriptor +URL servletUrl = resultSetClient7Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = resultSetClient7Servlet.class.getResource("resultSet7_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, resultSetClient7Servlet.class, sunServletUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + resultSetClient7Servlet theTests = new resultSetClient7Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetObject61 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(int column index) method with the SQL null column of + * JDBC datatype SMALLINT. It should return null Integer object. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject61() throws Exception { + super.testGetObject61(); + } + + /* + * @testName: testGetObject69 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String column index) method with the column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the maximum value of SMALLINT. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject69() throws Exception { + super.testGetObject69(); + } + + /* + * @testName: testGetObject70 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String column index) method with the SQL column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the minimum value of SMALLINT. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject70() throws Exception { + super.testGetObject70(); + } + + /* + * @testName: testGetObject62 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:366; JDBC:JAVADOC:367; JDBC:JAVADOC:442; + * JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the maximum value of SMALLINT. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject62() throws Exception { + super.testGetObject62(); + } + + /* + * @testName: testGetObject63 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL column of JDBC + * datatype SMALLINT. It should return an Integer object that has been set as + * the minimum value of SMALLINT. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject63() throws Exception { + super.testGetObject63(); + } + + /* + * @testName: testGetObject64 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL null column of + * JDBC datatype SMALLINT. It should return null Integer object. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject64() throws Exception { + super.testGetObject64(); + } + + /* + * @testName: testGetObject65 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(int columnIndex) method with the SQL column of JDBC + * datatype VARCHAR. It should return an String object that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject65() throws Exception { + super.testGetObject65(); + } + + /* + * @testName: testGetObject66 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:444; + * JDBC:JAVADOC:445; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(int column index) method with the SQL null column of + * JDBC datatype VARCHAR. It should return null String object. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject66() throws Exception { + super.testGetObject66(); + } + + /* + * @testName: testGetObject67 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JDBC:JAVADOC:442; JDBC:JAVADOC:443; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL column of JDBC + * datatype VARCHAR. It should return an String object that has been set. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject67() throws Exception { + super.testGetObject67(); + } + + /* + * @testName: testGetObject68 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:SPEC:10; JDBC:JAVADOC:446; + * JDBC:JAVADOC:447; JavaEE:SPEC:191; + * + * @test_Strategy: Get a ResultSet object from the Connection to the database. + * Call the getObject(String columnName) method with the SQL null column of + * JDBC datatype VARCHAR. It should return null String object. + */ + @Test + @TargetVehicle("servlet") + public void testGetObject68() throws Exception { + super.testGetObject68(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/build.xml deleted file mode 100644 index cf2092a716..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClient.java index 0fd79411d4..6a54f30a94 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClient.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClient.java @@ -31,8 +31,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -50,6 +54,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class rsMetaClient extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.rsMeta"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientAppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientAppClient.java new file mode 100644 index 0000000000..aec2c8c261 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientAppClient.java @@ -0,0 +1,423 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)rsMetaClient.java 1.25 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.rsMeta; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The rsMetaClient class tests methods of ResultSetMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class rsMetaClientAppClient extends rsMetaClient implements Serializable { + private static final String testName = "jdbc.ee.rsMeta"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "rsMeta_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(rsMetaClientAppClient.class, rsMetaClient.class); + // The appclient-client descriptor + URL appClientUrl = rsMetaClientAppClient.class.getResource("appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = rsMetaClientAppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, rsMetaClientAppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "rsMeta_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + rsMetaClientAppClient theTests = new rsMetaClientAppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetColumnCount + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:314; JDBC:JAVADOC:315; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnCount() method on the ResultSetMetaData object.It should return an + * integer value greater than or equal to zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetColumnCount() throws Exception { + super.testGetColumnCount(); + } + + /* + * @testName: testIsAutoIncrement + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:316; JDBC:JAVADOC:317; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isAutoIncrement(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("appclient") + public void testIsAutoIncrement() throws Exception { + super.testIsAutoIncrement(); + } + + /* + * /* @testName: testIsCaseSensitive + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:318; JDBC:JAVADOC:319; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isCaseSensitive(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("appclient") + public void testIsCaseSensitive() throws Exception { + super.testIsCaseSensitive(); + } + + /* + * @testName: testIsSearchable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:320; JDBC:JAVADOC:321; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isSearchable(int column) method.It should return a boolean value. + */ + + @Test + @TargetVehicle("appclient") + public void testIsSearchable() throws Exception { + super.testIsSearchable(); + } + + /* + * @testName: testIsCurrency + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:322; JDBC:JAVADOC:323; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isCurrency(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("appclient") + public void testIsCurrency() throws Exception { + super.testIsCurrency(); + } + + /* + * @testName: testIsNullable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:324; JDBC:JAVADOC:325; + * JDBC:JAVADOC:311; JDBC:JAVADOC:312; JDBC:JAVADOC:313; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isNullable(int column) method.It should return an integer value which is + * one of the constants columnNoNulls(0),columnNullable(1) and + * columnNullableUnknown(2). + */ + @Test + @TargetVehicle("appclient") + public void testIsNullable() throws Exception { + super.testIsNullable(); + } + + /* + * @testName: testIsSigned + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:326; JDBC:JAVADOC:327; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the isSigned(int + * column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("appclient") + public void testIsSigned() throws Exception { + super.testIsSigned(); + } + + /* + * @testName: testGetColumnDisplaySize + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:328; JDBC:JAVADOC:329; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnDisplaySize(int colindex) method.It should return an integer + * representing the normal maximum width in characters for column colindex. + */ + @Test + @TargetVehicle("appclient") + public void testGetColumnDisplaySize() throws Exception { + super.testGetColumnDisplaySize(); + } + + /* + * @testName: testGetColumnLabel + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:330; JDBC:JAVADOC:331; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnLabel(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("appclient") + public void testGetColumnLabel() throws Exception { + super.testGetColumnLabel(); + } + + /* + * @testName: testGetColumnName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:332; JDBC:JAVADOC:333; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("appclient") + public void testGetColumnName() throws Exception { + super.testGetColumnName(); + } + + /* + * @testName: testGetSchemaName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:334; JDBC:JAVADOC:335; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getSchemaName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("appclient") + public void testGetSchemaName() throws Exception { + super.testGetSchemaName(); + } + + /* + * @testName: testGetPrecision + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:336; JDBC:JAVADOC:337; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getPrecision(int colindex) method.It should return an integer greater than + * or equal to zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetPrecision() throws Exception { + super.testGetPrecision(); + } + + /* + * @testName: testGetScale + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:338; JDBC:JAVADOC:339; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the getScale(int + * colindex) method.It should return an integer greater than or equal to zero. + */ + @Test + @TargetVehicle("appclient") + public void testGetScale() throws Exception { + super.testGetScale(); + } + + /* + * @testName: testGetTableName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:340; JDBC:JAVADOC:341; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getTableName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("appclient") + public void testGetTableName() throws Exception { + super.testGetTableName(); + } + + /* + * @testName: testGetCatalogName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:342; JDBC:JAVADOC:343; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getCatalogName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("appclient") + public void testGetCatalogName() throws Exception { + super.testGetCatalogName(); + } + + /* + * @testName: testGetColumnType + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:344; JDBC:JAVADOC:345; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnType(int colindex) method.Check if an integer value is returned. + */ + @Test + @TargetVehicle("appclient") + public void testGetColumnType() throws Exception { + super.testGetColumnType(); + } + + /* + * @testName: testGetColumnTypeName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:346; JDBC:JAVADOC:347; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnTypeName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("appclient") + public void testGetColumnTypeName() throws Exception { + super.testGetColumnTypeName(); + } + + /* + * /* + * + * @testName: testIsReadOnly + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:348; JDBC:JAVADOC:349; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isReadOnly(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("appclient") + public void testIsReadOnly() throws Exception { + super.testIsReadOnly(); + } + + /* + * @testName: testIsWritable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:350; JDBC:JAVADOC:351; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isWritable(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("appclient") + public void testIsWritable() throws Exception { + super.testIsWritable(); + } + + /* + * /* + * + * @testName: testIsDefinitelyWritable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:352; JDBC:JAVADOC:353; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isDefinitelyWritable(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("appclient") + public void testIsDefinitelyWritable() throws Exception { + super.testIsDefinitelyWritable(); + } + + /* + * @testName: testGetColumnClassName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:354; JDBC:JAVADOC:355; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnClassName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("appclient") + public void testGetColumnClassName() throws Exception { + super.testGetColumnClassName(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientEJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientEJB.java new file mode 100644 index 0000000000..64758c94ab --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientEJB.java @@ -0,0 +1,444 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)rsMetaClient.java 1.25 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.rsMeta; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; +import com.sun.ts.tests.jdbc.ee.resultSet.resultSet1.resultSetClient1EJB; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The rsMetaClient class tests methods of ResultSetMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class rsMetaClientEJB extends rsMetaClient implements Serializable { + private static final String testName = "jdbc.ee.rsMeta"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "rsMeta_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(rsMetaClientEJB.class, rsMetaClient.class); + + URL resURL = rsMetaClientEJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = rsMetaClientEJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/rsMeta/rsMeta_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "rsMeta_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(rsMetaClientEJB.class, rsMetaClient.class); + + resURL = rsMetaClientEJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/rsMeta/rsMeta_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = rsMetaClientEJB.class.getResource("/com/sun/ts/tests/jdbc/ee/rsMeta/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "rsMeta_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + rsMetaClientEJB theTests = new rsMetaClientEJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetColumnCount + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:314; JDBC:JAVADOC:315; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnCount() method on the ResultSetMetaData object.It should return an + * integer value greater than or equal to zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetColumnCount() throws Exception { + super.testGetColumnCount(); + } + + /* + * @testName: testIsAutoIncrement + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:316; JDBC:JAVADOC:317; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isAutoIncrement(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("ejb") + public void testIsAutoIncrement() throws Exception { + super.testIsAutoIncrement(); + } + + /* + * /* @testName: testIsCaseSensitive + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:318; JDBC:JAVADOC:319; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isCaseSensitive(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("ejb") + public void testIsCaseSensitive() throws Exception { + super.testIsCaseSensitive(); + } + + /* + * @testName: testIsSearchable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:320; JDBC:JAVADOC:321; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isSearchable(int column) method.It should return a boolean value. + */ + + @Test + @TargetVehicle("ejb") + public void testIsSearchable() throws Exception { + super.testIsSearchable(); + } + + /* + * @testName: testIsCurrency + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:322; JDBC:JAVADOC:323; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isCurrency(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("ejb") + public void testIsCurrency() throws Exception { + super.testIsCurrency(); + } + + /* + * @testName: testIsNullable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:324; JDBC:JAVADOC:325; + * JDBC:JAVADOC:311; JDBC:JAVADOC:312; JDBC:JAVADOC:313; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isNullable(int column) method.It should return an integer value which is + * one of the constants columnNoNulls(0),columnNullable(1) and + * columnNullableUnknown(2). + */ + @Test + @TargetVehicle("ejb") + public void testIsNullable() throws Exception { + super.testIsNullable(); + } + + /* + * @testName: testIsSigned + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:326; JDBC:JAVADOC:327; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the isSigned(int + * column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("ejb") + public void testIsSigned() throws Exception { + super.testIsSigned(); + } + + /* + * @testName: testGetColumnDisplaySize + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:328; JDBC:JAVADOC:329; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnDisplaySize(int colindex) method.It should return an integer + * representing the normal maximum width in characters for column colindex. + */ + @Test + @TargetVehicle("ejb") + public void testGetColumnDisplaySize() throws Exception { + super.testGetColumnDisplaySize(); + } + + /* + * @testName: testGetColumnLabel + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:330; JDBC:JAVADOC:331; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnLabel(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("ejb") + public void testGetColumnLabel() throws Exception { + super.testGetColumnLabel(); + } + + /* + * @testName: testGetColumnName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:332; JDBC:JAVADOC:333; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("ejb") + public void testGetColumnName() throws Exception { + super.testGetColumnName(); + } + + /* + * @testName: testGetSchemaName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:334; JDBC:JAVADOC:335; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getSchemaName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("ejb") + public void testGetSchemaName() throws Exception { + super.testGetSchemaName(); + } + + /* + * @testName: testGetPrecision + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:336; JDBC:JAVADOC:337; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getPrecision(int colindex) method.It should return an integer greater than + * or equal to zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetPrecision() throws Exception { + super.testGetPrecision(); + } + + /* + * @testName: testGetScale + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:338; JDBC:JAVADOC:339; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the getScale(int + * colindex) method.It should return an integer greater than or equal to zero. + */ + @Test + @TargetVehicle("ejb") + public void testGetScale() throws Exception { + super.testGetScale(); + } + + /* + * @testName: testGetTableName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:340; JDBC:JAVADOC:341; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getTableName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("ejb") + public void testGetTableName() throws Exception { + super.testGetTableName(); + } + + /* + * @testName: testGetCatalogName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:342; JDBC:JAVADOC:343; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getCatalogName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("ejb") + public void testGetCatalogName() throws Exception { + super.testGetCatalogName(); + } + + /* + * @testName: testGetColumnType + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:344; JDBC:JAVADOC:345; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnType(int colindex) method.Check if an integer value is returned. + */ + @Test + @TargetVehicle("ejb") + public void testGetColumnType() throws Exception { + super.testGetColumnType(); + } + + /* + * @testName: testGetColumnTypeName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:346; JDBC:JAVADOC:347; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnTypeName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("ejb") + public void testGetColumnTypeName() throws Exception { + super.testGetColumnTypeName(); + } + + /* + * /* + * + * @testName: testIsReadOnly + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:348; JDBC:JAVADOC:349; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isReadOnly(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("ejb") + public void testIsReadOnly() throws Exception { + super.testIsReadOnly(); + } + + /* + * @testName: testIsWritable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:350; JDBC:JAVADOC:351; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isWritable(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("ejb") + public void testIsWritable() throws Exception { + super.testIsWritable(); + } + + /* + * /* + * + * @testName: testIsDefinitelyWritable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:352; JDBC:JAVADOC:353; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isDefinitelyWritable(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("ejb") + public void testIsDefinitelyWritable() throws Exception { + super.testIsDefinitelyWritable(); + } + + /* + * @testName: testGetColumnClassName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:354; JDBC:JAVADOC:355; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnClassName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("ejb") + public void testGetColumnClassName() throws Exception { + super.testGetColumnClassName(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientJSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientJSP.java new file mode 100644 index 0000000000..1d780c79ea --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientJSP.java @@ -0,0 +1,428 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)rsMetaClient.java 1.25 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.rsMeta; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The rsMetaClient class tests methods of ResultSetMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + + +public class rsMetaClientJSP extends rsMetaClient implements Serializable { + private static final String testName = "jdbc.ee.rsMeta"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "rsMeta_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = rsMetaClientJSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = rsMetaClientJSP.class.getResource("rsMeta_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, rsMetaClientJSP.class, sunJSPUrl); + + + archive.addClasses(rsMetaClientJSP.class, rsMetaClient.class); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + rsMetaClientJSP theTests = new rsMetaClientJSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetColumnCount + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:314; JDBC:JAVADOC:315; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnCount() method on the ResultSetMetaData object.It should return an + * integer value greater than or equal to zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetColumnCount() throws Exception { + super.testGetColumnCount(); + } + + /* + * @testName: testIsAutoIncrement + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:316; JDBC:JAVADOC:317; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isAutoIncrement(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("jsp") + public void testIsAutoIncrement() throws Exception { + super.testIsAutoIncrement(); + } + + /* + * /* @testName: testIsCaseSensitive + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:318; JDBC:JAVADOC:319; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isCaseSensitive(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("jsp") + public void testIsCaseSensitive() throws Exception { + super.testIsCaseSensitive(); + } + + /* + * @testName: testIsSearchable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:320; JDBC:JAVADOC:321; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isSearchable(int column) method.It should return a boolean value. + */ + + @Test + @TargetVehicle("jsp") + public void testIsSearchable() throws Exception { + super.testIsSearchable(); + } + + /* + * @testName: testIsCurrency + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:322; JDBC:JAVADOC:323; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isCurrency(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("jsp") + public void testIsCurrency() throws Exception { + super.testIsCurrency(); + } + + /* + * @testName: testIsNullable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:324; JDBC:JAVADOC:325; + * JDBC:JAVADOC:311; JDBC:JAVADOC:312; JDBC:JAVADOC:313; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isNullable(int column) method.It should return an integer value which is + * one of the constants columnNoNulls(0),columnNullable(1) and + * columnNullableUnknown(2). + */ + @Test + @TargetVehicle("jsp") + public void testIsNullable() throws Exception { + super.testIsNullable(); + } + + /* + * @testName: testIsSigned + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:326; JDBC:JAVADOC:327; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the isSigned(int + * column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("jsp") + public void testIsSigned() throws Exception { + super.testIsSigned(); + } + + /* + * @testName: testGetColumnDisplaySize + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:328; JDBC:JAVADOC:329; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnDisplaySize(int colindex) method.It should return an integer + * representing the normal maximum width in characters for column colindex. + */ + @Test + @TargetVehicle("jsp") + public void testGetColumnDisplaySize() throws Exception { + super.testGetColumnDisplaySize(); + } + + /* + * @testName: testGetColumnLabel + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:330; JDBC:JAVADOC:331; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnLabel(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("jsp") + public void testGetColumnLabel() throws Exception { + super.testGetColumnLabel(); + } + + /* + * @testName: testGetColumnName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:332; JDBC:JAVADOC:333; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("jsp") + public void testGetColumnName() throws Exception { + super.testGetColumnName(); + } + + /* + * @testName: testGetSchemaName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:334; JDBC:JAVADOC:335; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getSchemaName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("jsp") + public void testGetSchemaName() throws Exception { + super.testGetSchemaName(); + } + + /* + * @testName: testGetPrecision + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:336; JDBC:JAVADOC:337; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getPrecision(int colindex) method.It should return an integer greater than + * or equal to zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetPrecision() throws Exception { + super.testGetPrecision(); + } + + /* + * @testName: testGetScale + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:338; JDBC:JAVADOC:339; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the getScale(int + * colindex) method.It should return an integer greater than or equal to zero. + */ + @Test + @TargetVehicle("jsp") + public void testGetScale() throws Exception { + super.testGetScale(); + } + + /* + * @testName: testGetTableName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:340; JDBC:JAVADOC:341; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getTableName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("jsp") + public void testGetTableName() throws Exception { + super.testGetTableName(); + } + + /* + * @testName: testGetCatalogName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:342; JDBC:JAVADOC:343; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getCatalogName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("jsp") + public void testGetCatalogName() throws Exception { + super.testGetCatalogName(); + } + + /* + * @testName: testGetColumnType + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:344; JDBC:JAVADOC:345; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnType(int colindex) method.Check if an integer value is returned. + */ + @Test + @TargetVehicle("jsp") + public void testGetColumnType() throws Exception { + super.testGetColumnType(); + } + + /* + * @testName: testGetColumnTypeName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:346; JDBC:JAVADOC:347; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnTypeName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("jsp") + public void testGetColumnTypeName() throws Exception { + super.testGetColumnTypeName(); + } + + /* + * /* + * + * @testName: testIsReadOnly + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:348; JDBC:JAVADOC:349; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isReadOnly(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("jsp") + public void testIsReadOnly() throws Exception { + super.testIsReadOnly(); + } + + /* + * @testName: testIsWritable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:350; JDBC:JAVADOC:351; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isWritable(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("jsp") + public void testIsWritable() throws Exception { + super.testIsWritable(); + } + + /* + * /* + * + * @testName: testIsDefinitelyWritable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:352; JDBC:JAVADOC:353; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isDefinitelyWritable(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("jsp") + public void testIsDefinitelyWritable() throws Exception { + super.testIsDefinitelyWritable(); + } + + /* + * @testName: testGetColumnClassName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:354; JDBC:JAVADOC:355; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnClassName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("jsp") + public void testGetColumnClassName() throws Exception { + super.testGetColumnClassName(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientServlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientServlet.java new file mode 100644 index 0000000000..8faae79486 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/rsMeta/rsMetaClientServlet.java @@ -0,0 +1,416 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)rsMetaClient.java 1.25 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.rsMeta; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The rsMetaClient class tests methods of ResultSetMetaData interface using + * Sun's J2EE Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class rsMetaClientServlet extends rsMetaClient implements Serializable { + private static final String testName = "jdbc.ee.rsMeta"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "rsMeta_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(rsMetaClientServlet.class, rsMetaClient.class); + // The servlet descriptor +URL servletUrl = rsMetaClientServlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = rsMetaClientServlet.class.getResource("rsMeta_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, rsMetaClientServlet.class, sunServletUrl); + + return archive; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + rsMetaClientServlet theTests = new rsMetaClientServlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetColumnCount + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:314; JDBC:JAVADOC:315; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnCount() method on the ResultSetMetaData object.It should return an + * integer value greater than or equal to zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetColumnCount() throws Exception { + super.testGetColumnCount(); + } + + /* + * @testName: testIsAutoIncrement + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:316; JDBC:JAVADOC:317; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isAutoIncrement(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("servlet") + public void testIsAutoIncrement() throws Exception { + super.testIsAutoIncrement(); + } + + /* + * /* @testName: testIsCaseSensitive + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:318; JDBC:JAVADOC:319; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isCaseSensitive(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("servlet") + public void testIsCaseSensitive() throws Exception { + super.testIsCaseSensitive(); + } + + /* + * @testName: testIsSearchable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:320; JDBC:JAVADOC:321; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isSearchable(int column) method.It should return a boolean value. + */ + + @Test + @TargetVehicle("servlet") + public void testIsSearchable() throws Exception { + super.testIsSearchable(); + } + + /* + * @testName: testIsCurrency + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:322; JDBC:JAVADOC:323; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isCurrency(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("servlet") + public void testIsCurrency() throws Exception { + super.testIsCurrency(); + } + + /* + * @testName: testIsNullable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:324; JDBC:JAVADOC:325; + * JDBC:JAVADOC:311; JDBC:JAVADOC:312; JDBC:JAVADOC:313; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isNullable(int column) method.It should return an integer value which is + * one of the constants columnNoNulls(0),columnNullable(1) and + * columnNullableUnknown(2). + */ + @Test + @TargetVehicle("servlet") + public void testIsNullable() throws Exception { + super.testIsNullable(); + } + + /* + * @testName: testIsSigned + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:326; JDBC:JAVADOC:327; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the isSigned(int + * column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("servlet") + public void testIsSigned() throws Exception { + super.testIsSigned(); + } + + /* + * @testName: testGetColumnDisplaySize + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:328; JDBC:JAVADOC:329; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnDisplaySize(int colindex) method.It should return an integer + * representing the normal maximum width in characters for column colindex. + */ + @Test + @TargetVehicle("servlet") + public void testGetColumnDisplaySize() throws Exception { + super.testGetColumnDisplaySize(); + } + + /* + * @testName: testGetColumnLabel + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:330; JDBC:JAVADOC:331; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnLabel(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("servlet") + public void testGetColumnLabel() throws Exception { + super.testGetColumnLabel(); + } + + /* + * @testName: testGetColumnName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:332; JDBC:JAVADOC:333; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("servlet") + public void testGetColumnName() throws Exception { + super.testGetColumnName(); + } + + /* + * @testName: testGetSchemaName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:334; JDBC:JAVADOC:335; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getSchemaName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("servlet") + public void testGetSchemaName() throws Exception { + super.testGetSchemaName(); + } + + /* + * @testName: testGetPrecision + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:336; JDBC:JAVADOC:337; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getPrecision(int colindex) method.It should return an integer greater than + * or equal to zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetPrecision() throws Exception { + super.testGetPrecision(); + } + + /* + * @testName: testGetScale + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:338; JDBC:JAVADOC:339; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the getScale(int + * colindex) method.It should return an integer greater than or equal to zero. + */ + @Test + @TargetVehicle("servlet") + public void testGetScale() throws Exception { + super.testGetScale(); + } + + /* + * @testName: testGetTableName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:340; JDBC:JAVADOC:341; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getTableName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("servlet") + public void testGetTableName() throws Exception { + super.testGetTableName(); + } + + /* + * @testName: testGetCatalogName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:342; JDBC:JAVADOC:343; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getCatalogName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("servlet") + public void testGetCatalogName() throws Exception { + super.testGetCatalogName(); + } + + /* + * @testName: testGetColumnType + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:344; JDBC:JAVADOC:345; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnType(int colindex) method.Check if an integer value is returned. + */ + @Test + @TargetVehicle("servlet") + public void testGetColumnType() throws Exception { + super.testGetColumnType(); + } + + /* + * @testName: testGetColumnTypeName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:346; JDBC:JAVADOC:347; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnTypeName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("servlet") + public void testGetColumnTypeName() throws Exception { + super.testGetColumnTypeName(); + } + + /* + * /* + * + * @testName: testIsReadOnly + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:348; JDBC:JAVADOC:349; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isReadOnly(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("servlet") + public void testIsReadOnly() throws Exception { + super.testIsReadOnly(); + } + + /* + * @testName: testIsWritable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:350; JDBC:JAVADOC:351; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isWritable(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("servlet") + public void testIsWritable() throws Exception { + super.testIsWritable(); + } + + /* + * /* + * + * @testName: testIsDefinitelyWritable + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:352; JDBC:JAVADOC:353; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * isDefinitelyWritable(int column) method.It should return a boolean value. + */ + @Test + @TargetVehicle("servlet") + public void testIsDefinitelyWritable() throws Exception { + super.testIsDefinitelyWritable(); + } + + /* + * @testName: testGetColumnClassName + * + * @assertion_ids: JavaEE:SPEC:194; JDBC:JAVADOC:354; JDBC:JAVADOC:355; + * + * @test_Strategy: Get the ResultSetMetaData object from the corresponding + * ResultSet by using the ResultSet's getMetaData method.Call the + * getColumnClassName(int colindex) method.It should return a String object. + */ + @Test + @TargetVehicle("servlet") + public void testGetColumnClassName() throws Exception { + super.testGetColumnClassName(); + } +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/build.xml deleted file mode 100644 index b15014f927..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/build.xml deleted file mode 100644 index 2291fbcf3b..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1.java index 37057ba5da..594c1fc738 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1.java @@ -29,8 +29,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -49,6 +53,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class stmtClient1 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.stmt.stmt1"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1AppClient.java new file mode 100644 index 0000000000..b3bb97a428 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1AppClient.java @@ -0,0 +1,365 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)stmtClient1.java 1.23 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.stmt.stmt1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The stmtClient1 class tests methods of Statement interface using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class stmtClient1AppClient extends stmtClient1 implements Serializable { + private static final String testName = "jdbc.ee.stmt.stmt1"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "stmt1_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(stmtClient1AppClient.class, stmtClient1.class); + // The appclient-client descriptor + URL appClientUrl = stmtClient1AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/stmt/stmt1/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = stmtClient1AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, stmtClient1AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "stmt1_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + stmtClient1AppClient theTests = new stmtClient1AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testClose + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:139; JDBC:JAVADOC:140; + * + * @test_Strategy: Get a Statement object and call close() method and call + * executeQuery() method to check and it should throw SQLException + * + */ + @Test + @TargetVehicle("appclient") + public void testClose() throws Exception { + super.testClose(); + } + + /* + * @testName: testExecute01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:163; JDBC:JAVADOC:164; + * + * @test_Strategy: Call execute(String sql) of updating a row It should return + * a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("appclient") + public void testExecute01() throws Exception { + super.testExecute01(); + } + + /* + * @testName: testExecute02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:163; JDBC:JAVADOC:164; + * + * @test_Strategy: Get a Statement object and call execute(String sql) of + * selecting rows from the database It should return a boolean value and the + * value should be equal to true + * + */ + @Test + @TargetVehicle("appclient") + public void testExecute02() throws Exception { + super.testExecute02(); + } + + /* + * @testName: testExecuteQuery01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:135; JDBC:JAVADOC:136; + * + * @test_Strategy: Get a Statement object and call executeQuery(String sql) to + * select a row from the database It should return a ResultSet object + * + */ + @Test + @TargetVehicle("appclient") + public void testExecuteQuery01() throws Exception { + super.testExecuteQuery01(); + } + + /* + * @testName: testExecuteQuery02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:135; JDBC:JAVADOC:136; + * + * @test_Strategy: Get a Statement object and call executeQuery(String sql) to + * select a non-existent row from the database It should return a ResultSet + * object which is empty and call ResultSet.next() method to check and it + * should return a false + * + */ + @Test + @TargetVehicle("appclient") + public void testExecuteQuery02() throws Exception { + super.testExecuteQuery02(); + } + + /* + * @testName: testExecuteQuery03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:135; JDBC:JAVADOC:136; + * + * + * @test_Strategy: Get a Statement object and call executeQuery(String sql) to + * insert a row to the database It should throw SQLException + * + */ + @Test + @TargetVehicle("appclient") + public void testExecuteQuery03() throws Exception { + super.testExecuteQuery03(); + } + + /* + * @testName: testExecuteUpdate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:137; JDBC:JAVADOC:138; + * + * @test_Strategy: Get a Statement object and call executeUpdate(String sql) + * It should return an int value which is equal to row count + */ + @Test + @TargetVehicle("appclient") + public void testExecuteUpdate01() throws Exception { + super.testExecuteUpdate01(); + } + + /* + * @testName: testExecuteUpdate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:137; JDBC:JAVADOC:138; + * + * @test_Strategy: Get a Statement object and call executeUpdate(String sql) + * for selecting row from the table It should throw a SQL Exception + * + */ + @Test + @TargetVehicle("appclient") + public void testExecuteUpdate03() throws Exception { + super.testExecuteUpdate03(); + } + + /* + * @testName: testGetFetchDirection + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:173; JDBC:JAVADOC:174; + * JDBC:JAVADOC:356; + * + * @test_Strategy: Get a Statement object and call the getFetchDirection() + * method It should return a int value and the value should be equal to any of + * the values FETCH_FORWARD or FETCH_REVERSE or FETCH_UNKNOWN + * + */ + @Test + @TargetVehicle("appclient") + public void testGetFetchDirection() throws Exception { + super.testGetFetchDirection(); + } + + /* + * @testName: testGetFetchSize + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:177; JDBC:JAVADOC:178; + * + * @test_Strategy: Get a ResultSet object and call the getFetchSize() method + * It should return a int value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetFetchSize() throws Exception { + super.testGetFetchSize(); + } + + /* + * @testName: testGetMaxFieldSize + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:141; JDBC:JAVADOC:142; + * + * @test_Strategy: Get a Statement object and call the getMaxFieldSize() + * method It should return a int value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxFieldSize() throws Exception { + super.testGetMaxFieldSize(); + } + + /* + * @testName: testGetMaxRows + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:145; JDBC:JAVADOC:146; + * + * @test_Strategy: Get a Statement object and call the getMaxRows() method It + * should return a int value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMaxRows() throws Exception { + super.testGetMaxRows(); + } + + /* + * @testName: testGetMoreResults01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:169; JDBC:JAVADOC:170; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * selecting a row and call getMoreResults() method It should return a boolean + * value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMoreResults01() throws Exception { + super.testGetMoreResults01(); + } + + /* + * @testName: testGetMoreResults02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:169; JDBC:JAVADOC:170; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * selecting a non-existent row and call getMoreResults() method It should + * return a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMoreResults02() throws Exception { + super.testGetMoreResults02(); + } + + /* + * @testName: testGetMoreResults03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:169; JDBC:JAVADOC:170; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * updating a row and call getMoreResults() method It should return a boolean + * value and the value should be equal to false + * + */ + @Test + @TargetVehicle("appclient") + public void testGetMoreResults03() throws Exception { + super.testGetMoreResults03(); + } + + /* + * @testName: testGetQueryTimeout + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:151; JDBC:JAVADOC:152; + * + * @test_Strategy: Get a Statement object and call getQueryTimeout() method It + * should return a int value + * + */ + @Test + @TargetVehicle("appclient") + public void testGetQueryTimeout() throws Exception { + super.testGetQueryTimeout(); + } + + /* + * @testName: testGetResultSet01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:165; JDBC:JAVADOC:166; + * + * @test_Strategy: Get a Statement object and call execute() method for + * selecting a row and call getResultSet() method It should return a ResultSet + * object + * + */ + @Test + @TargetVehicle("appclient") + public void testGetResultSet01() throws Exception { + super.testGetResultSet01(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1EJB.java new file mode 100644 index 0000000000..5ad8debd39 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1EJB.java @@ -0,0 +1,383 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)stmtClient1.java 1.23 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.stmt.stmt1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The stmtClient1 class tests methods of Statement interface using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class stmtClient1EJB extends stmtClient1 implements Serializable { + private static final String testName = "jdbc.ee.stmt.stmt1"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "stmt1_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(stmtClient1EJB.class, stmtClient1.class); + + URL resURL = stmtClient1EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = stmtClient1EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmt1_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "stmt1_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(stmtClient1EJB.class, stmtClient1.class); + + resURL = stmtClient1EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmt1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = stmtClient1EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/stmt/stmt1/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "stmt1_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + stmtClient1EJB theTests = new stmtClient1EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testClose + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:139; JDBC:JAVADOC:140; + * + * @test_Strategy: Get a Statement object and call close() method and call + * executeQuery() method to check and it should throw SQLException + * + */ + @Test + @TargetVehicle("ejb") + public void testClose() throws Exception { + super.testClose(); + } + + /* + * @testName: testExecute01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:163; JDBC:JAVADOC:164; + * + * @test_Strategy: Call execute(String sql) of updating a row It should return + * a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("ejb") + public void testExecute01() throws Exception { + super.testExecute01(); + } + + /* + * @testName: testExecute02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:163; JDBC:JAVADOC:164; + * + * @test_Strategy: Get a Statement object and call execute(String sql) of + * selecting rows from the database It should return a boolean value and the + * value should be equal to true + * + */ + @Test + @TargetVehicle("ejb") + public void testExecute02() throws Exception { + super.testExecute02(); + } + + /* + * @testName: testExecuteQuery01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:135; JDBC:JAVADOC:136; + * + * @test_Strategy: Get a Statement object and call executeQuery(String sql) to + * select a row from the database It should return a ResultSet object + * + */ + @Test + @TargetVehicle("ejb") + public void testExecuteQuery01() throws Exception { + super.testExecuteQuery01(); + } + + /* + * @testName: testExecuteQuery02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:135; JDBC:JAVADOC:136; + * + * @test_Strategy: Get a Statement object and call executeQuery(String sql) to + * select a non-existent row from the database It should return a ResultSet + * object which is empty and call ResultSet.next() method to check and it + * should return a false + * + */ + @Test + @TargetVehicle("ejb") + public void testExecuteQuery02() throws Exception { + super.testExecuteQuery02(); + } + + /* + * @testName: testExecuteQuery03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:135; JDBC:JAVADOC:136; + * + * + * @test_Strategy: Get a Statement object and call executeQuery(String sql) to + * insert a row to the database It should throw SQLException + * + */ + @Test + @TargetVehicle("ejb") + public void testExecuteQuery03() throws Exception { + super.testExecuteQuery03(); + } + + /* + * @testName: testExecuteUpdate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:137; JDBC:JAVADOC:138; + * + * @test_Strategy: Get a Statement object and call executeUpdate(String sql) + * It should return an int value which is equal to row count + */ + @Test + @TargetVehicle("ejb") + public void testExecuteUpdate01() throws Exception { + super.testExecuteUpdate01(); + } + + /* + * @testName: testExecuteUpdate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:137; JDBC:JAVADOC:138; + * + * @test_Strategy: Get a Statement object and call executeUpdate(String sql) + * for selecting row from the table It should throw a SQL Exception + * + */ + @Test + @TargetVehicle("ejb") + public void testExecuteUpdate03() throws Exception { + super.testExecuteUpdate03(); + } + + /* + * @testName: testGetFetchDirection + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:173; JDBC:JAVADOC:174; + * JDBC:JAVADOC:356; + * + * @test_Strategy: Get a Statement object and call the getFetchDirection() + * method It should return a int value and the value should be equal to any of + * the values FETCH_FORWARD or FETCH_REVERSE or FETCH_UNKNOWN + * + */ + @Test + @TargetVehicle("ejb") + public void testGetFetchDirection() throws Exception { + super.testGetFetchDirection(); + } + + /* + * @testName: testGetFetchSize + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:177; JDBC:JAVADOC:178; + * + * @test_Strategy: Get a ResultSet object and call the getFetchSize() method + * It should return a int value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetFetchSize() throws Exception { + super.testGetFetchSize(); + } + + /* + * @testName: testGetMaxFieldSize + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:141; JDBC:JAVADOC:142; + * + * @test_Strategy: Get a Statement object and call the getMaxFieldSize() + * method It should return a int value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxFieldSize() throws Exception { + super.testGetMaxFieldSize(); + } + + /* + * @testName: testGetMaxRows + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:145; JDBC:JAVADOC:146; + * + * @test_Strategy: Get a Statement object and call the getMaxRows() method It + * should return a int value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMaxRows() throws Exception { + super.testGetMaxRows(); + } + + /* + * @testName: testGetMoreResults01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:169; JDBC:JAVADOC:170; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * selecting a row and call getMoreResults() method It should return a boolean + * value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMoreResults01() throws Exception { + super.testGetMoreResults01(); + } + + /* + * @testName: testGetMoreResults02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:169; JDBC:JAVADOC:170; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * selecting a non-existent row and call getMoreResults() method It should + * return a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMoreResults02() throws Exception { + super.testGetMoreResults02(); + } + + /* + * @testName: testGetMoreResults03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:169; JDBC:JAVADOC:170; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * updating a row and call getMoreResults() method It should return a boolean + * value and the value should be equal to false + * + */ + @Test + @TargetVehicle("ejb") + public void testGetMoreResults03() throws Exception { + super.testGetMoreResults03(); + } + + /* + * @testName: testGetQueryTimeout + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:151; JDBC:JAVADOC:152; + * + * @test_Strategy: Get a Statement object and call getQueryTimeout() method It + * should return a int value + * + */ + @Test + @TargetVehicle("ejb") + public void testGetQueryTimeout() throws Exception { + super.testGetQueryTimeout(); + } + + /* + * @testName: testGetResultSet01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:165; JDBC:JAVADOC:166; + * + * @test_Strategy: Get a Statement object and call execute() method for + * selecting a row and call getResultSet() method It should return a ResultSet + * object + * + */ + @Test + @TargetVehicle("ejb") + public void testGetResultSet01() throws Exception { + super.testGetResultSet01(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1JSP.java new file mode 100644 index 0000000000..bd86af3642 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1JSP.java @@ -0,0 +1,367 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)stmtClient1.java 1.23 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.stmt.stmt1; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The stmtClient1 class tests methods of Statement interface using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class stmtClient1JSP extends stmtClient1 implements Serializable { + private static final String testName = "jdbc.ee.stmt.stmt1"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "stmt1_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + // The jsp descriptor + URL jspUrl = stmtClient1JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = stmtClient1JSP.class.getResource("stmt1_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, stmtClient1JSP.class, sunJSPUrl); + + + archive.addClasses(stmtClient1JSP.class, stmtClient1.class); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + stmtClient1JSP theTests = new stmtClient1JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testClose + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:139; JDBC:JAVADOC:140; + * + * @test_Strategy: Get a Statement object and call close() method and call + * executeQuery() method to check and it should throw SQLException + * + */ + @Test + @TargetVehicle("jsp") + public void testClose() throws Exception { + super.testClose(); + } + + /* + * @testName: testExecute01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:163; JDBC:JAVADOC:164; + * + * @test_Strategy: Call execute(String sql) of updating a row It should return + * a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("jsp") + public void testExecute01() throws Exception { + super.testExecute01(); + } + + /* + * @testName: testExecute02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:163; JDBC:JAVADOC:164; + * + * @test_Strategy: Get a Statement object and call execute(String sql) of + * selecting rows from the database It should return a boolean value and the + * value should be equal to true + * + */ + @Test + @TargetVehicle("jsp") + public void testExecute02() throws Exception { + super.testExecute02(); + } + + /* + * @testName: testExecuteQuery01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:135; JDBC:JAVADOC:136; + * + * @test_Strategy: Get a Statement object and call executeQuery(String sql) to + * select a row from the database It should return a ResultSet object + * + */ + @Test + @TargetVehicle("jsp") + public void testExecuteQuery01() throws Exception { + super.testExecuteQuery01(); + } + + /* + * @testName: testExecuteQuery02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:135; JDBC:JAVADOC:136; + * + * @test_Strategy: Get a Statement object and call executeQuery(String sql) to + * select a non-existent row from the database It should return a ResultSet + * object which is empty and call ResultSet.next() method to check and it + * should return a false + * + */ + @Test + @TargetVehicle("jsp") + public void testExecuteQuery02() throws Exception { + super.testExecuteQuery02(); + } + + /* + * @testName: testExecuteQuery03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:135; JDBC:JAVADOC:136; + * + * + * @test_Strategy: Get a Statement object and call executeQuery(String sql) to + * insert a row to the database It should throw SQLException + * + */ + @Test + @TargetVehicle("jsp") + public void testExecuteQuery03() throws Exception { + super.testExecuteQuery03(); + } + + /* + * @testName: testExecuteUpdate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:137; JDBC:JAVADOC:138; + * + * @test_Strategy: Get a Statement object and call executeUpdate(String sql) + * It should return an int value which is equal to row count + */ + @Test + @TargetVehicle("jsp") + public void testExecuteUpdate01() throws Exception { + super.testExecuteUpdate01(); + } + + /* + * @testName: testExecuteUpdate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:137; JDBC:JAVADOC:138; + * + * @test_Strategy: Get a Statement object and call executeUpdate(String sql) + * for selecting row from the table It should throw a SQL Exception + * + */ + @Test + @TargetVehicle("jsp") + public void testExecuteUpdate03() throws Exception { + super.testExecuteUpdate03(); + } + + /* + * @testName: testGetFetchDirection + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:173; JDBC:JAVADOC:174; + * JDBC:JAVADOC:356; + * + * @test_Strategy: Get a Statement object and call the getFetchDirection() + * method It should return a int value and the value should be equal to any of + * the values FETCH_FORWARD or FETCH_REVERSE or FETCH_UNKNOWN + * + */ + @Test + @TargetVehicle("jsp") + public void testGetFetchDirection() throws Exception { + super.testGetFetchDirection(); + } + + /* + * @testName: testGetFetchSize + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:177; JDBC:JAVADOC:178; + * + * @test_Strategy: Get a ResultSet object and call the getFetchSize() method + * It should return a int value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetFetchSize() throws Exception { + super.testGetFetchSize(); + } + + /* + * @testName: testGetMaxFieldSize + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:141; JDBC:JAVADOC:142; + * + * @test_Strategy: Get a Statement object and call the getMaxFieldSize() + * method It should return a int value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxFieldSize() throws Exception { + super.testGetMaxFieldSize(); + } + + /* + * @testName: testGetMaxRows + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:145; JDBC:JAVADOC:146; + * + * @test_Strategy: Get a Statement object and call the getMaxRows() method It + * should return a int value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMaxRows() throws Exception { + super.testGetMaxRows(); + } + + /* + * @testName: testGetMoreResults01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:169; JDBC:JAVADOC:170; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * selecting a row and call getMoreResults() method It should return a boolean + * value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMoreResults01() throws Exception { + super.testGetMoreResults01(); + } + + /* + * @testName: testGetMoreResults02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:169; JDBC:JAVADOC:170; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * selecting a non-existent row and call getMoreResults() method It should + * return a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMoreResults02() throws Exception { + super.testGetMoreResults02(); + } + + /* + * @testName: testGetMoreResults03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:169; JDBC:JAVADOC:170; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * updating a row and call getMoreResults() method It should return a boolean + * value and the value should be equal to false + * + */ + @Test + @TargetVehicle("jsp") + public void testGetMoreResults03() throws Exception { + super.testGetMoreResults03(); + } + + /* + * @testName: testGetQueryTimeout + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:151; JDBC:JAVADOC:152; + * + * @test_Strategy: Get a Statement object and call getQueryTimeout() method It + * should return a int value + * + */ + @Test + @TargetVehicle("jsp") + public void testGetQueryTimeout() throws Exception { + super.testGetQueryTimeout(); + } + + /* + * @testName: testGetResultSet01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:165; JDBC:JAVADOC:166; + * + * @test_Strategy: Get a Statement object and call execute() method for + * selecting a row and call getResultSet() method It should return a ResultSet + * object + * + */ + @Test + @TargetVehicle("jsp") + public void testGetResultSet01() throws Exception { + super.testGetResultSet01(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1Servlet.java new file mode 100644 index 0000000000..d190e09a02 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt1/stmtClient1Servlet.java @@ -0,0 +1,356 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)stmtClient1.java 1.23 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.stmt.stmt1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The stmtClient1 class tests methods of Statement interface using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class stmtClient1Servlet extends stmtClient1 implements Serializable { + private static final String testName = "jdbc.ee.stmt.stmt1"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "stmt1_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(stmtClient1Servlet.class, stmtClient1.class); + // The servlet descriptor +URL servletUrl = stmtClient1Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = stmtClient1Servlet.class.getResource("stmt1_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, stmtClient1Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + stmtClient1Servlet theTests = new stmtClient1Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testClose + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:139; JDBC:JAVADOC:140; + * + * @test_Strategy: Get a Statement object and call close() method and call + * executeQuery() method to check and it should throw SQLException + * + */ + @Test + @TargetVehicle("servlet") + public void testClose() throws Exception { + super.testClose(); + } + + /* + * @testName: testExecute01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:163; JDBC:JAVADOC:164; + * + * @test_Strategy: Call execute(String sql) of updating a row It should return + * a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("servlet") + public void testExecute01() throws Exception { + super.testExecute01(); + } + + /* + * @testName: testExecute02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:163; JDBC:JAVADOC:164; + * + * @test_Strategy: Get a Statement object and call execute(String sql) of + * selecting rows from the database It should return a boolean value and the + * value should be equal to true + * + */ + @Test + @TargetVehicle("servlet") + public void testExecute02() throws Exception { + super.testExecute02(); + } + + /* + * @testName: testExecuteQuery01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:135; JDBC:JAVADOC:136; + * + * @test_Strategy: Get a Statement object and call executeQuery(String sql) to + * select a row from the database It should return a ResultSet object + * + */ + @Test + @TargetVehicle("servlet") + public void testExecuteQuery01() throws Exception { + super.testExecuteQuery01(); + } + + /* + * @testName: testExecuteQuery02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:135; JDBC:JAVADOC:136; + * + * @test_Strategy: Get a Statement object and call executeQuery(String sql) to + * select a non-existent row from the database It should return a ResultSet + * object which is empty and call ResultSet.next() method to check and it + * should return a false + * + */ + @Test + @TargetVehicle("servlet") + public void testExecuteQuery02() throws Exception { + super.testExecuteQuery02(); + } + + /* + * @testName: testExecuteQuery03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:135; JDBC:JAVADOC:136; + * + * + * @test_Strategy: Get a Statement object and call executeQuery(String sql) to + * insert a row to the database It should throw SQLException + * + */ + @Test + @TargetVehicle("servlet") + public void testExecuteQuery03() throws Exception { + super.testExecuteQuery03(); + } + + /* + * @testName: testExecuteUpdate01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:137; JDBC:JAVADOC:138; + * + * @test_Strategy: Get a Statement object and call executeUpdate(String sql) + * It should return an int value which is equal to row count + */ + @Test + @TargetVehicle("servlet") + public void testExecuteUpdate01() throws Exception { + super.testExecuteUpdate01(); + } + + /* + * @testName: testExecuteUpdate03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:137; JDBC:JAVADOC:138; + * + * @test_Strategy: Get a Statement object and call executeUpdate(String sql) + * for selecting row from the table It should throw a SQL Exception + * + */ + @Test + @TargetVehicle("servlet") + public void testExecuteUpdate03() throws Exception { + super.testExecuteUpdate03(); + } + + /* + * @testName: testGetFetchDirection + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:173; JDBC:JAVADOC:174; + * JDBC:JAVADOC:356; + * + * @test_Strategy: Get a Statement object and call the getFetchDirection() + * method It should return a int value and the value should be equal to any of + * the values FETCH_FORWARD or FETCH_REVERSE or FETCH_UNKNOWN + * + */ + @Test + @TargetVehicle("servlet") + public void testGetFetchDirection() throws Exception { + super.testGetFetchDirection(); + } + + /* + * @testName: testGetFetchSize + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:177; JDBC:JAVADOC:178; + * + * @test_Strategy: Get a ResultSet object and call the getFetchSize() method + * It should return a int value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetFetchSize() throws Exception { + super.testGetFetchSize(); + } + + /* + * @testName: testGetMaxFieldSize + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:141; JDBC:JAVADOC:142; + * + * @test_Strategy: Get a Statement object and call the getMaxFieldSize() + * method It should return a int value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxFieldSize() throws Exception { + super.testGetMaxFieldSize(); + } + + /* + * @testName: testGetMaxRows + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:145; JDBC:JAVADOC:146; + * + * @test_Strategy: Get a Statement object and call the getMaxRows() method It + * should return a int value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMaxRows() throws Exception { + super.testGetMaxRows(); + } + + /* + * @testName: testGetMoreResults01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:169; JDBC:JAVADOC:170; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * selecting a row and call getMoreResults() method It should return a boolean + * value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMoreResults01() throws Exception { + super.testGetMoreResults01(); + } + + /* + * @testName: testGetMoreResults02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:169; JDBC:JAVADOC:170; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * selecting a non-existent row and call getMoreResults() method It should + * return a boolean value and the value should be equal to false + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMoreResults02() throws Exception { + super.testGetMoreResults02(); + } + + /* + * @testName: testGetMoreResults03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:169; JDBC:JAVADOC:170; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * updating a row and call getMoreResults() method It should return a boolean + * value and the value should be equal to false + * + */ + @Test + @TargetVehicle("servlet") + public void testGetMoreResults03() throws Exception { + super.testGetMoreResults03(); + } + + /* + * @testName: testGetQueryTimeout + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:151; JDBC:JAVADOC:152; + * + * @test_Strategy: Get a Statement object and call getQueryTimeout() method It + * should return a int value + * + */ + @Test + @TargetVehicle("servlet") + public void testGetQueryTimeout() throws Exception { + super.testGetQueryTimeout(); + } + + /* + * @testName: testGetResultSet01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:165; JDBC:JAVADOC:166; + * + * @test_Strategy: Get a Statement object and call execute() method for + * selecting a row and call getResultSet() method It should return a ResultSet + * object + * + */ + @Test + @TargetVehicle("servlet") + public void testGetResultSet01() throws Exception { + super.testGetResultSet01(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/build.xml deleted file mode 100644 index 634c16e540..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2.java index d53bf3fca4..96a2d9f7d9 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2.java @@ -33,8 +33,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -53,6 +57,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class stmtClient2 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.stmt.stmt2"; diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2AppClient.java new file mode 100644 index 0000000000..5189694a08 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2AppClient.java @@ -0,0 +1,253 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)stmtClient2.java 1.25 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.stmt.stmt2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +//Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The stmtClient2 class tests methods of Statement interface using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class stmtClient2AppClient extends stmtClient2 implements Serializable { + private static final String testName = "jdbc.ee.stmt.stmt2"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "stmt2_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(stmtClient2AppClient.class, stmtClient2.class); + // The appclient-client descriptor + URL appClientUrl = stmtClient2AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/stmt/stmt2/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = stmtClient2AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, stmtClient2AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "stmt2_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + stmtClient2AppClient theTests = new stmtClient2AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetResultSet02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:165; JDBC:JAVADOC:166; + * + * @test_Strategy: Get a Statement object and call execute() method for + * updating a row.Then call getResultSet() method It should return a Null + * ResultSet object + */ + @Test + @TargetVehicle("appclient") + public void testGetResultSet02() throws Exception { + super.testGetResultSet02(); + } + + /* + * @testName: testGetResultSetConcurrency01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:179; JDBC:JAVADOC:180; + * JDBC:JAVADOC:362; + * + * @test_Strategy: Get a Statement object and call getResultSetConcurrency() + * method It should return an int value either CONCUR_READ_ONLY or + * CONCUR_UPDATABLE. + */ + @Test + @TargetVehicle("appclient") + public void testGetResultSetConcurrency01() throws Exception { + super.testGetResultSetConcurrency01(); + } + + + /* + * @testName: testGetResultSetType01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:181; JDBC:JAVADOC:182; + * + * @test_Strategy: Get a Statement object and call getResultSetType() method + * It should return an int value which should be either TYPE_FORWARD_ONLY or + * TYPE_SCROLL_INSENSITIVE or TYPE_SCROLL_SENSITIVE + */ + @Test + @TargetVehicle("appclient") + public void testGetResultSetType01() throws Exception { + super.testGetResultSetType01(); + } + + /* + * @testName: testGetResultSetType02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:181; JDBC:JAVADOC:182; + * JDBC:JAVADOC:1179; JDBC:JAVADOC:1180; JDBC:JAVADOC:359; + * + * @test_Strategy: Call Connection.createStatement with the Type mode as + * TYPE_FORWARD_ONLY and call getResultSetType() method It should return a int + * value and the value should be equal to ResultSet.TYPE_FORWARD_ONLY + */ + @Test + @TargetVehicle("appclient") + public void testGetResultSetType02() throws Exception { + super.testGetResultSetType02(); + } + + /* + * @testName: testGetResultSetType03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:181; JDBC:JAVADOC:182; + * JDBC:JAVADOC:1179; JDBC:JAVADOC:1180; + * + * @test_Strategy: Call Connection.createStatement with the Type mode as + * TYPE_SCROLL_INSENSITIVE and call getResultSetType() method It should return + * a int value and the value should be equal to + * ResultSet.TYPE_SCROLL_INSENSITIVE + */ + @Test + @TargetVehicle("appclient") + public void testGetResultSetType03() throws Exception { + super.testGetResultSetType03(); + } + + /* + * @testName: testGetUpdateCount01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:167; JDBC:JAVADOC:168; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * updating a row and call getUpdateCount() method It should return a int + * value and the value should be equal to number of rows with the specified + * condition for update + */ + @Test + @TargetVehicle("appclient") + public void testGetUpdateCount01() throws Exception { + super.testGetUpdateCount01(); + } + + /* + * @testName: testGetUpdateCount02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:167; JDBC:JAVADOC:168; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * selecting a non-existent row and call getUpdateCount() method It should + * return a int value and the value should be equal to -1 + */ + @Test + @TargetVehicle("appclient") + public void testGetUpdateCount02() throws Exception { + super.testGetUpdateCount02(); + } + + /* + * @testName: testGetWarnings + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:157; JDBC:JAVADOC:158; + * + * @test_Strategy: Get a Statement object and call getWarnings() method should + * return an SQLWarning object + */ + @Test + @TargetVehicle("appclient") + public void testGetWarnings() throws Exception { + super.testGetWarnings(); + } + + /* + * @testName: testSetFetchDirection04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:171; JDBC:JAVADOC:172; + * + * @test_Strategy: Get a Statement object and call the setFetchDirection(int + * direction) method with an invalid value and it should throw an SQLException + */ + @Test + @TargetVehicle("appclient") + public void testSetFetchDirection04() throws Exception { + super.testSetFetchDirection04(); + } + + /* + * @testName: testSetFetchSize02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:175; JDBC:JAVADOC:176; + * + * @test_Strategy: Get a Statement object and call the setFetchSize(int rows) + * method with the value of Statement.getMaxRows and call getFetchSize() + * method and it should return a int value that is been set + */ + @Test + @TargetVehicle("appclient") + public void testSetFetchSize02() throws Exception { + super.testSetFetchSize02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2EJB.java new file mode 100644 index 0000000000..8527a61748 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2EJB.java @@ -0,0 +1,273 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)stmtClient2.java 1.25 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.stmt.stmt2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +//Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The stmtClient2 class tests methods of Statement interface using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class stmtClient2EJB extends stmtClient2 implements Serializable { + private static final String testName = "jdbc.ee.stmt.stmt2"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "stmt2_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(stmtClient2EJB.class, stmtClient2.class); + + URL resURL = stmtClient2EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = stmtClient2EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmt2_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "stmt2_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(stmtClient2EJB.class, stmtClient2.class); + + resURL = stmtClient2EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmt2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = stmtClient2EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/stmt/stmt2/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "stmt2_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + stmtClient2EJB theTests = new stmtClient2EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetResultSet02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:165; JDBC:JAVADOC:166; + * + * @test_Strategy: Get a Statement object and call execute() method for + * updating a row.Then call getResultSet() method It should return a Null + * ResultSet object + */ + @Test + @TargetVehicle("ejb") + public void testGetResultSet02() throws Exception { + super.testGetResultSet02(); + } + + /* + * @testName: testGetResultSetConcurrency01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:179; JDBC:JAVADOC:180; + * JDBC:JAVADOC:362; + * + * @test_Strategy: Get a Statement object and call getResultSetConcurrency() + * method It should return an int value either CONCUR_READ_ONLY or + * CONCUR_UPDATABLE. + */ + @Test + @TargetVehicle("ejb") + public void testGetResultSetConcurrency01() throws Exception { + super.testGetResultSetConcurrency01(); + } + + + /* + * @testName: testGetResultSetType01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:181; JDBC:JAVADOC:182; + * + * @test_Strategy: Get a Statement object and call getResultSetType() method + * It should return an int value which should be either TYPE_FORWARD_ONLY or + * TYPE_SCROLL_INSENSITIVE or TYPE_SCROLL_SENSITIVE + */ + @Test + @TargetVehicle("ejb") + public void testGetResultSetType01() throws Exception { + super.testGetResultSetType01(); + } + + /* + * @testName: testGetResultSetType02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:181; JDBC:JAVADOC:182; + * JDBC:JAVADOC:1179; JDBC:JAVADOC:1180; JDBC:JAVADOC:359; + * + * @test_Strategy: Call Connection.createStatement with the Type mode as + * TYPE_FORWARD_ONLY and call getResultSetType() method It should return a int + * value and the value should be equal to ResultSet.TYPE_FORWARD_ONLY + */ + @Test + @TargetVehicle("ejb") + public void testGetResultSetType02() throws Exception { + super.testGetResultSetType02(); + } + + /* + * @testName: testGetResultSetType03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:181; JDBC:JAVADOC:182; + * JDBC:JAVADOC:1179; JDBC:JAVADOC:1180; + * + * @test_Strategy: Call Connection.createStatement with the Type mode as + * TYPE_SCROLL_INSENSITIVE and call getResultSetType() method It should return + * a int value and the value should be equal to + * ResultSet.TYPE_SCROLL_INSENSITIVE + */ + @Test + @TargetVehicle("ejb") + public void testGetResultSetType03() throws Exception { + super.testGetResultSetType03(); + } + + /* + * @testName: testGetUpdateCount01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:167; JDBC:JAVADOC:168; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * updating a row and call getUpdateCount() method It should return a int + * value and the value should be equal to number of rows with the specified + * condition for update + */ + @Test + @TargetVehicle("ejb") + public void testGetUpdateCount01() throws Exception { + super.testGetUpdateCount01(); + } + + /* + * @testName: testGetUpdateCount02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:167; JDBC:JAVADOC:168; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * selecting a non-existent row and call getUpdateCount() method It should + * return a int value and the value should be equal to -1 + */ + @Test + @TargetVehicle("ejb") + public void testGetUpdateCount02() throws Exception { + super.testGetUpdateCount02(); + } + + /* + * @testName: testGetWarnings + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:157; JDBC:JAVADOC:158; + * + * @test_Strategy: Get a Statement object and call getWarnings() method should + * return an SQLWarning object + */ + @Test + @TargetVehicle("ejb") + public void testGetWarnings() throws Exception { + super.testGetWarnings(); + } + + /* + * @testName: testSetFetchDirection04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:171; JDBC:JAVADOC:172; + * + * @test_Strategy: Get a Statement object and call the setFetchDirection(int + * direction) method with an invalid value and it should throw an SQLException + */ + @Test + @TargetVehicle("ejb") + public void testSetFetchDirection04() throws Exception { + super.testSetFetchDirection04(); + } + + /* + * @testName: testSetFetchSize02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:175; JDBC:JAVADOC:176; + * + * @test_Strategy: Get a Statement object and call the setFetchSize(int rows) + * method with the value of Statement.getMaxRows and call getFetchSize() + * method and it should return a int value that is been set + */ + @Test + @TargetVehicle("ejb") + public void testSetFetchSize02() throws Exception { + super.testSetFetchSize02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2JSP.java new file mode 100644 index 0000000000..afe70e492c --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2JSP.java @@ -0,0 +1,256 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)stmtClient2.java 1.25 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.stmt.stmt2; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +//Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The stmtClient2 class tests methods of Statement interface using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class stmtClient2JSP extends stmtClient2 implements Serializable { + private static final String testName = "jdbc.ee.stmt.stmt2"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "stmt2_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(stmtClient2JSP.class, stmtClient2.class); + + // The jsp descriptor + URL jspUrl = stmtClient2JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = stmtClient2JSP.class.getResource("stmt2_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, stmtClient2JSP.class, sunJSPUrl); + + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + stmtClient2JSP theTests = new stmtClient2JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetResultSet02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:165; JDBC:JAVADOC:166; + * + * @test_Strategy: Get a Statement object and call execute() method for + * updating a row.Then call getResultSet() method It should return a Null + * ResultSet object + */ + @Test + @TargetVehicle("jsp") + public void testGetResultSet02() throws Exception { + super.testGetResultSet02(); + } + + /* + * @testName: testGetResultSetConcurrency01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:179; JDBC:JAVADOC:180; + * JDBC:JAVADOC:362; + * + * @test_Strategy: Get a Statement object and call getResultSetConcurrency() + * method It should return an int value either CONCUR_READ_ONLY or + * CONCUR_UPDATABLE. + */ + @Test + @TargetVehicle("jsp") + public void testGetResultSetConcurrency01() throws Exception { + super.testGetResultSetConcurrency01(); + } + + + /* + * @testName: testGetResultSetType01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:181; JDBC:JAVADOC:182; + * + * @test_Strategy: Get a Statement object and call getResultSetType() method + * It should return an int value which should be either TYPE_FORWARD_ONLY or + * TYPE_SCROLL_INSENSITIVE or TYPE_SCROLL_SENSITIVE + */ + @Test + @TargetVehicle("jsp") + public void testGetResultSetType01() throws Exception { + super.testGetResultSetType01(); + } + + /* + * @testName: testGetResultSetType02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:181; JDBC:JAVADOC:182; + * JDBC:JAVADOC:1179; JDBC:JAVADOC:1180; JDBC:JAVADOC:359; + * + * @test_Strategy: Call Connection.createStatement with the Type mode as + * TYPE_FORWARD_ONLY and call getResultSetType() method It should return a int + * value and the value should be equal to ResultSet.TYPE_FORWARD_ONLY + */ + @Test + @TargetVehicle("jsp") + public void testGetResultSetType02() throws Exception { + super.testGetResultSetType02(); + } + + /* + * @testName: testGetResultSetType03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:181; JDBC:JAVADOC:182; + * JDBC:JAVADOC:1179; JDBC:JAVADOC:1180; + * + * @test_Strategy: Call Connection.createStatement with the Type mode as + * TYPE_SCROLL_INSENSITIVE and call getResultSetType() method It should return + * a int value and the value should be equal to + * ResultSet.TYPE_SCROLL_INSENSITIVE + */ + @Test + @TargetVehicle("jsp") + public void testGetResultSetType03() throws Exception { + super.testGetResultSetType03(); + } + + /* + * @testName: testGetUpdateCount01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:167; JDBC:JAVADOC:168; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * updating a row and call getUpdateCount() method It should return a int + * value and the value should be equal to number of rows with the specified + * condition for update + */ + @Test + @TargetVehicle("jsp") + public void testGetUpdateCount01() throws Exception { + super.testGetUpdateCount01(); + } + + /* + * @testName: testGetUpdateCount02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:167; JDBC:JAVADOC:168; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * selecting a non-existent row and call getUpdateCount() method It should + * return a int value and the value should be equal to -1 + */ + @Test + @TargetVehicle("jsp") + public void testGetUpdateCount02() throws Exception { + super.testGetUpdateCount02(); + } + + /* + * @testName: testGetWarnings + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:157; JDBC:JAVADOC:158; + * + * @test_Strategy: Get a Statement object and call getWarnings() method should + * return an SQLWarning object + */ + @Test + @TargetVehicle("jsp") + public void testGetWarnings() throws Exception { + super.testGetWarnings(); + } + + /* + * @testName: testSetFetchDirection04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:171; JDBC:JAVADOC:172; + * + * @test_Strategy: Get a Statement object and call the setFetchDirection(int + * direction) method with an invalid value and it should throw an SQLException + */ + @Test + @TargetVehicle("jsp") + public void testSetFetchDirection04() throws Exception { + super.testSetFetchDirection04(); + } + + /* + * @testName: testSetFetchSize02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:175; JDBC:JAVADOC:176; + * + * @test_Strategy: Get a Statement object and call the setFetchSize(int rows) + * method with the value of Statement.getMaxRows and call getFetchSize() + * method and it should return a int value that is been set + */ + @Test + @TargetVehicle("jsp") + public void testSetFetchSize02() throws Exception { + super.testSetFetchSize02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2Servlet.java new file mode 100644 index 0000000000..1c0e4866a9 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt2/stmtClient2Servlet.java @@ -0,0 +1,245 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)stmtClient2.java 1.25 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.stmt.stmt2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +//Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The stmtClient2 class tests methods of Statement interface using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class stmtClient2Servlet extends stmtClient2 implements Serializable { + private static final String testName = "jdbc.ee.stmt.stmt2"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "stmt2_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(stmtClient2Servlet.class, stmtClient2.class); + // The servlet descriptor +URL servletUrl = stmtClient2Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = stmtClient2Servlet.class.getResource("stmt2_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, stmtClient2Servlet.class, sunServletUrl); + + return archive; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + stmtClient2Servlet theTests = new stmtClient2Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testGetResultSet02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:165; JDBC:JAVADOC:166; + * + * @test_Strategy: Get a Statement object and call execute() method for + * updating a row.Then call getResultSet() method It should return a Null + * ResultSet object + */ + @Test + @TargetVehicle("servlet") + public void testGetResultSet02() throws Exception { + super.testGetResultSet02(); + } + + /* + * @testName: testGetResultSetConcurrency01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:179; JDBC:JAVADOC:180; + * JDBC:JAVADOC:362; + * + * @test_Strategy: Get a Statement object and call getResultSetConcurrency() + * method It should return an int value either CONCUR_READ_ONLY or + * CONCUR_UPDATABLE. + */ + @Test + @TargetVehicle("servlet") + public void testGetResultSetConcurrency01() throws Exception { + super.testGetResultSetConcurrency01(); + } + + + /* + * @testName: testGetResultSetType01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:181; JDBC:JAVADOC:182; + * + * @test_Strategy: Get a Statement object and call getResultSetType() method + * It should return an int value which should be either TYPE_FORWARD_ONLY or + * TYPE_SCROLL_INSENSITIVE or TYPE_SCROLL_SENSITIVE + */ + @Test + @TargetVehicle("servlet") + public void testGetResultSetType01() throws Exception { + super.testGetResultSetType01(); + } + + /* + * @testName: testGetResultSetType02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:181; JDBC:JAVADOC:182; + * JDBC:JAVADOC:1179; JDBC:JAVADOC:1180; JDBC:JAVADOC:359; + * + * @test_Strategy: Call Connection.createStatement with the Type mode as + * TYPE_FORWARD_ONLY and call getResultSetType() method It should return a int + * value and the value should be equal to ResultSet.TYPE_FORWARD_ONLY + */ + @Test + @TargetVehicle("servlet") + public void testGetResultSetType02() throws Exception { + super.testGetResultSetType02(); + } + + /* + * @testName: testGetResultSetType03 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:181; JDBC:JAVADOC:182; + * JDBC:JAVADOC:1179; JDBC:JAVADOC:1180; + * + * @test_Strategy: Call Connection.createStatement with the Type mode as + * TYPE_SCROLL_INSENSITIVE and call getResultSetType() method It should return + * a int value and the value should be equal to + * ResultSet.TYPE_SCROLL_INSENSITIVE + */ + @Test + @TargetVehicle("servlet") + public void testGetResultSetType03() throws Exception { + super.testGetResultSetType03(); + } + + /* + * @testName: testGetUpdateCount01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:167; JDBC:JAVADOC:168; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * updating a row and call getUpdateCount() method It should return a int + * value and the value should be equal to number of rows with the specified + * condition for update + */ + @Test + @TargetVehicle("servlet") + public void testGetUpdateCount01() throws Exception { + super.testGetUpdateCount01(); + } + + /* + * @testName: testGetUpdateCount02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:167; JDBC:JAVADOC:168; + * + * @test_Strategy: Get a Statement object and call the execute() method for + * selecting a non-existent row and call getUpdateCount() method It should + * return a int value and the value should be equal to -1 + */ + @Test + @TargetVehicle("servlet") + public void testGetUpdateCount02() throws Exception { + super.testGetUpdateCount02(); + } + + /* + * @testName: testGetWarnings + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:157; JDBC:JAVADOC:158; + * + * @test_Strategy: Get a Statement object and call getWarnings() method should + * return an SQLWarning object + */ + @Test + @TargetVehicle("servlet") + public void testGetWarnings() throws Exception { + super.testGetWarnings(); + } + + /* + * @testName: testSetFetchDirection04 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:171; JDBC:JAVADOC:172; + * + * @test_Strategy: Get a Statement object and call the setFetchDirection(int + * direction) method with an invalid value and it should throw an SQLException + */ + @Test + @TargetVehicle("servlet") + public void testSetFetchDirection04() throws Exception { + super.testSetFetchDirection04(); + } + + /* + * @testName: testSetFetchSize02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:175; JDBC:JAVADOC:176; + * + * @test_Strategy: Get a Statement object and call the setFetchSize(int rows) + * method with the value of Statement.getMaxRows and call getFetchSize() + * method and it should return a int value that is been set + */ + @Test + @TargetVehicle("servlet") + public void testSetFetchSize02() throws Exception { + super.testSetFetchSize02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/build.xml b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/build.xml deleted file mode 100644 index ec2ea33bc5..0000000000 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3.java index 3e08fe91a0..ef67827096 100644 --- a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3.java +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3.java @@ -28,8 +28,12 @@ import javax.sql.DataSource; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContextInterface; import com.sun.ts.lib.util.TestUtil; import com.sun.ts.tests.jdbc.ee.common.DataSourceConnection; @@ -46,6 +50,9 @@ * @author * @version 1.7, 06/16/99 */ +@ExtendWith(ArquillianExtension.class) +@Tag("jdbc") +@Tag("platform") public class stmtClient3 extends ServiceEETest implements Serializable { private static final String testName = "jdbc.ee.stmt.stmt3"; @@ -111,6 +118,7 @@ public void setup(String[] args, Properties p) throws Exception { logErr("SQL Exception : " + ex.getMessage(), ex); } } catch (Exception e) { + e.printStackTrace(); logErr("Setup Failed!"); TestUtil.printStackTrace(e); } @@ -153,6 +161,7 @@ public void testSetFetchSize05() throws Exception { } msg.printTestMsg(); } catch (Exception e) { + e.printStackTrace(); msg.printError(e, "Call to setFetchSize is Failed!"); } @@ -200,6 +209,7 @@ public void testSetMaxFieldSize01() throws Exception { msg.printSQLError(sqle, "Call to setMaxFieldSize is Failed!"); } catch (Exception e) { + e.printStackTrace(); msg.printError(e, "Call to setMaxFieldSize is Failed!"); } @@ -245,6 +255,7 @@ public void testSetMaxFieldSize02() throws Exception { } msg.printTestMsg(); } catch (Exception e) { + e.printStackTrace(); msg.printError(e, "Call to setMaxFieldSize is Failed!"); } @@ -294,6 +305,7 @@ public void testSetMaxRows01() throws Exception { msg.printSQLError(sqle, "Call to setMaxRows is Failed!"); } catch (Exception e) { + e.printStackTrace(); msg.printError(e, "Call to setMaxRows is Failed!"); } @@ -338,6 +350,7 @@ public void testSetMaxRows02() throws Exception { } msg.printTestMsg(); } catch (Exception e) { + e.printStackTrace(); msg.printError(e, "Call to setMaxRows is Failed!"); } @@ -383,6 +396,7 @@ public void testSetQueryTimeout02() throws Exception { } msg.printTestMsg(); } catch (Exception e) { + e.printStackTrace(); msg.printError(e, "Call to setQueryTimeout is Failed!"); } diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3AppClient.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3AppClient.java new file mode 100644 index 0000000000..107e8cb3b1 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3AppClient.java @@ -0,0 +1,197 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)stmtClient3.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.stmt.stmt3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The stmtClient3 class tests methods of Statement interface using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class stmtClient3AppClient extends stmtClient3 implements Serializable { + private static final String testName = "jdbc.ee.stmt.stmt3"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "appclient", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "stmt3_appclient_vehicle_client.jar"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(stmtClient3AppClient.class, stmtClient3.class); + // The appclient-client descriptor + URL appClientUrl = stmtClient3AppClient.class.getResource("/com/sun/ts/tests/jdbc/ee/stmt/stmt3/appclient_vehicle_client.xml"); + if(appClientUrl != null) { + archive.addAsManifestResource(appClientUrl, "application-client.xml"); + } + // The sun appclient-client descriptor + URL sunAppClientUrl = stmtClient3AppClient.class.getResource("//com/sun/ts/tests/common/vehicle/appclient/appclient_vehicle_client.jar.sun-application-client.xml"); + if(sunAppClientUrl != null) { + archive.addAsManifestResource(sunAppClientUrl, "sun-application-client.xml"); + } + + archive.addAsManifestResource( + new StringAsset("Main-Class: " + "com.sun.ts.tests.common.vehicle.VehicleClient" + "\n"), + "MANIFEST.MF"); + + // Call the archive processor + archiveProcessor.processClientArchive(archive, stmtClient3AppClient.class, sunAppClientUrl); + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "stmt3_appclient_vehicle.ear"); + ear.addAsModule(archive); + + return ear; + + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + stmtClient3AppClient theTests = new stmtClient3AppClient(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetFetchSize05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:175; JDBC:JAVADOC:176; + * + * @test_Strategy: Get a Statement object and call the setFetchSize(int rows) + * method with the negative value and it should throw SQLException + * + */ + @Test + @TargetVehicle("appclient") + public void testSetFetchSize05() throws Exception { + super.testSetFetchSize05(); + } + + /* + * @testName: testSetMaxFieldSize01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:143; JDBC:JAVADOC:144; + * + * @test_Strategy: Get a Statement object and call the setMaxFieldSize(int + * max) method and call getMaxFieldSize() method and it should return an + * integer value that is been set + * + */ + @Test + @TargetVehicle("appclient") + public void testSetMaxFieldSize01() throws Exception { + super.testSetMaxFieldSize01(); + } + + /* + * @testName: testSetMaxFieldSize02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:143; JDBC:JAVADOC:144; + * + * @test_Strategy: Get a Statement object and call the setMaxFieldSize(int + * max) method with an invalid value (negative value) and It should throw a + * SQLException + * + */ + @Test + @TargetVehicle("appclient") + public void testSetMaxFieldSize02() throws Exception { + super.testSetMaxFieldSize02(); + } + + /* + * @testName: testSetMaxRows01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:147; JDBC:JAVADOC:148; + * + * @test_Strategy: Get a Statement object and call the setMaxRows(int rows) + * method and call getMaxRows() method and it should return a integer value + * that is been set + * + */ + @Test + @TargetVehicle("appclient") + public void testSetMaxRows01() throws Exception { + super.testSetMaxRows01(); + } + + /* + * @testName: testSetMaxRows02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:147; JDBC:JAVADOC:148; + * + * @test_Strategy: Get a Statement object and call the setMaxRows(int rows) + * method with an invalid value (negative value) and It should throw an + * SQLException + * + */ + @Test + @TargetVehicle("appclient") + public void testSetMaxRows02() throws Exception { + super.testSetMaxRows02(); + } + + /* + * @testName: testSetQueryTimeout02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:153; JDBC:JAVADOC:154; + * + * @test_Strategy: Get a Statement object and call the setQueryTimeout(int + * secval) method with an invalid value (negative value)and It should throw an + * SQLException + * + */ + @Test + @TargetVehicle("appclient") + public void testSetQueryTimeout02() throws Exception { + super.testSetQueryTimeout02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3EJB.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3EJB.java new file mode 100644 index 0000000000..ec462e36da --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3EJB.java @@ -0,0 +1,215 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)stmtClient3.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.stmt.stmt3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The stmtClient3 class tests methods of Statement interface using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-appclient") + +public class stmtClient3EJB extends stmtClient3 implements Serializable { + private static final String testName = "jdbc.ee.stmt.stmt3"; + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentejb(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "stmt3_ejb_vehicle_client.jar"); + ejbClient.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(stmtClient3EJB.class, stmtClient3.class); + + URL resURL = stmtClient3EJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = stmtClient3EJB.class + .getResource("/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmt3_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "stmt3_ejb_vehicle_ejb.jar"); + ejb.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(stmtClient3EJB.class, stmtClient3.class); + + resURL = stmtClient3EJB.class.getResource( + "/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmt3_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = stmtClient3EJB.class.getResource("/com/sun/ts/tests/jdbc/ee/stmt/stmt3/ejb_vehicle_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "stmt3_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejb); + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + stmtClient3EJB theTests = new stmtClient3EJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetFetchSize05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:175; JDBC:JAVADOC:176; + * + * @test_Strategy: Get a Statement object and call the setFetchSize(int rows) + * method with the negative value and it should throw SQLException + * + */ + @Test + @TargetVehicle("ejb") + public void testSetFetchSize05() throws Exception { + super.testSetFetchSize05(); + } + + /* + * @testName: testSetMaxFieldSize01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:143; JDBC:JAVADOC:144; + * + * @test_Strategy: Get a Statement object and call the setMaxFieldSize(int + * max) method and call getMaxFieldSize() method and it should return an + * integer value that is been set + * + */ + @Test + @TargetVehicle("ejb") + public void testSetMaxFieldSize01() throws Exception { + super.testSetMaxFieldSize01(); + } + + /* + * @testName: testSetMaxFieldSize02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:143; JDBC:JAVADOC:144; + * + * @test_Strategy: Get a Statement object and call the setMaxFieldSize(int + * max) method with an invalid value (negative value) and It should throw a + * SQLException + * + */ + @Test + @TargetVehicle("ejb") + public void testSetMaxFieldSize02() throws Exception { + super.testSetMaxFieldSize02(); + } + + /* + * @testName: testSetMaxRows01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:147; JDBC:JAVADOC:148; + * + * @test_Strategy: Get a Statement object and call the setMaxRows(int rows) + * method and call getMaxRows() method and it should return a integer value + * that is been set + * + */ + @Test + @TargetVehicle("ejb") + public void testSetMaxRows01() throws Exception { + super.testSetMaxRows01(); + } + + /* + * @testName: testSetMaxRows02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:147; JDBC:JAVADOC:148; + * + * @test_Strategy: Get a Statement object and call the setMaxRows(int rows) + * method with an invalid value (negative value) and It should throw an + * SQLException + * + */ + @Test + @TargetVehicle("ejb") + public void testSetMaxRows02() throws Exception { + super.testSetMaxRows02(); + } + + /* + * @testName: testSetQueryTimeout02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:153; JDBC:JAVADOC:154; + * + * @test_Strategy: Get a Statement object and call the setQueryTimeout(int + * secval) method with an invalid value (negative value)and It should throw an + * SQLException + * + */ + @Test + @TargetVehicle("ejb") + public void testSetQueryTimeout02() throws Exception { + super.testSetQueryTimeout02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3JSP.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3JSP.java new file mode 100644 index 0000000000..b87f9f11cc --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3JSP.java @@ -0,0 +1,199 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)stmtClient3.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.stmt.stmt3; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The stmtClient3 class tests methods of Statement interface using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class stmtClient3JSP extends stmtClient3 implements Serializable { + private static final String testName = "jdbc.ee.stmt.stmt3"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static WebArchive createDeploymentjsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "stmt3_jsp_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + archive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + archive.add(new ByteArrayAsset(clientHtml), "client.html"); + + archive.addClasses(stmtClient3JSP.class, stmtClient3.class); + + // The jsp descriptor + URL jspUrl = stmtClient3JSP.class.getResource("jsp_vehicle_web.xml"); + if(jspUrl != null) { + archive.addAsWebInfResource(jspUrl, "web.xml"); + } + // The sun jsp descriptor + URL sunJSPUrl = stmtClient3JSP.class.getResource("stmt3_jsp_vehicle_web.war.sun-web.xml"); + if(sunJSPUrl != null) { + archive.addAsWebInfResource(sunJSPUrl, "sun-web.xml"); + } + // Call the archive processor + archiveProcessor.processWebArchive(archive, stmtClient3JSP.class, sunJSPUrl); + + archive.addAsWebInfResource(stmtClient3JSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + stmtClient3JSP theTests = new stmtClient3JSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetFetchSize05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:175; JDBC:JAVADOC:176; + * + * @test_Strategy: Get a Statement object and call the setFetchSize(int rows) + * method with the negative value and it should throw SQLException + * + */ + @Test + @TargetVehicle("jsp") + public void testSetFetchSize05() throws Exception { + super.testSetFetchSize05(); + } + + /* + * @testName: testSetMaxFieldSize01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:143; JDBC:JAVADOC:144; + * + * @test_Strategy: Get a Statement object and call the setMaxFieldSize(int + * max) method and call getMaxFieldSize() method and it should return an + * integer value that is been set + * + */ + @Test + @TargetVehicle("jsp") + public void testSetMaxFieldSize01() throws Exception { + super.testSetMaxFieldSize01(); + } + + /* + * @testName: testSetMaxFieldSize02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:143; JDBC:JAVADOC:144; + * + * @test_Strategy: Get a Statement object and call the setMaxFieldSize(int + * max) method with an invalid value (negative value) and It should throw a + * SQLException + * + */ + @Test + @TargetVehicle("jsp") + public void testSetMaxFieldSize02() throws Exception { + super.testSetMaxFieldSize02(); + } + + /* + * @testName: testSetMaxRows01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:147; JDBC:JAVADOC:148; + * + * @test_Strategy: Get a Statement object and call the setMaxRows(int rows) + * method and call getMaxRows() method and it should return a integer value + * that is been set + * + */ + @Test + @TargetVehicle("jsp") + public void testSetMaxRows01() throws Exception { + super.testSetMaxRows01(); + } + + /* + * @testName: testSetMaxRows02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:147; JDBC:JAVADOC:148; + * + * @test_Strategy: Get a Statement object and call the setMaxRows(int rows) + * method with an invalid value (negative value) and It should throw an + * SQLException + * + */ + @Test + @TargetVehicle("jsp") + public void testSetMaxRows02() throws Exception { + super.testSetMaxRows02(); + } + + /* + * @testName: testSetQueryTimeout02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:153; JDBC:JAVADOC:154; + * + * @test_Strategy: Get a Statement object and call the setQueryTimeout(int + * secval) method with an invalid value (negative value)and It should throw an + * SQLException + * + */ + @Test + @TargetVehicle("jsp") + public void testSetQueryTimeout02() throws Exception { + super.testSetQueryTimeout02(); + } + +} diff --git a/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3Servlet.java b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3Servlet.java new file mode 100644 index 0000000000..178689a851 --- /dev/null +++ b/jdbc/src/main/java/com/sun/ts/tests/jdbc/ee/stmt/stmt3/stmtClient3Servlet.java @@ -0,0 +1,187 @@ +/* + * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)stmtClient3.java 1.18 03/05/16 + */ + +package com.sun.ts.tests.jdbc.ee.stmt.stmt3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +// Merant DataSource class +//import com.merant.sequelink.jdbcx.datasource.*; + +/** + * The stmtClient3 class tests methods of Statement interface using Sun's J2EE + * Reference Implementation. + * + * @author + * @version 1.7, 06/16/99 + */ + +@Tag("tck-javatest") + +public class stmtClient3Servlet extends stmtClient3 implements Serializable { + private static final String testName = "jdbc.ee.stmt.stmt3"; + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static WebArchive createDeploymentservlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive archive = ShrinkWrap.create(WebArchive.class, "stmt3_servlet_vehicle_web.war"); + archive.addPackages(true, "com.sun.ts.tests.jdbc.ee.common"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + archive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + archive.addPackages(true, "com.sun.ts.lib.harness"); + archive.addClasses(stmtClient3Servlet.class, stmtClient3.class); + // The servlet descriptor +URL servletUrl = stmtClient3Servlet.class.getResource("servlet_vehicle_web.xml"); +if(servletUrl != null) { + archive.addAsWebInfResource(servletUrl, "web.xml"); +} +// The sun servlet descriptor +URL sunServletUrl = stmtClient3Servlet.class.getResource("stmt3_servlet_vehicle_web.war.sun-web.xml"); +if(sunServletUrl != null) { + archive.addAsWebInfResource(sunServletUrl, "sun-web.xml"); +} +// Call the archive processor +archiveProcessor.processWebArchive(archive, stmtClient3Servlet.class, sunServletUrl); + + return archive; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + stmtClient3Servlet theTests = new stmtClient3Servlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* + * @testName: testSetFetchSize05 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:175; JDBC:JAVADOC:176; + * + * @test_Strategy: Get a Statement object and call the setFetchSize(int rows) + * method with the negative value and it should throw SQLException + * + */ + @Test + @TargetVehicle("servlet") + public void testSetFetchSize05() throws Exception { + super.testSetFetchSize05(); + } + + /* + * @testName: testSetMaxFieldSize01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:143; JDBC:JAVADOC:144; + * + * @test_Strategy: Get a Statement object and call the setMaxFieldSize(int + * max) method and call getMaxFieldSize() method and it should return an + * integer value that is been set + * + */ + @Test + @TargetVehicle("servlet") + public void testSetMaxFieldSize01() throws Exception { + super.testSetMaxFieldSize01(); + } + + /* + * @testName: testSetMaxFieldSize02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:143; JDBC:JAVADOC:144; + * + * @test_Strategy: Get a Statement object and call the setMaxFieldSize(int + * max) method with an invalid value (negative value) and It should throw a + * SQLException + * + */ + @Test + @TargetVehicle("servlet") + public void testSetMaxFieldSize02() throws Exception { + super.testSetMaxFieldSize02(); + } + + /* + * @testName: testSetMaxRows01 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:147; JDBC:JAVADOC:148; + * + * @test_Strategy: Get a Statement object and call the setMaxRows(int rows) + * method and call getMaxRows() method and it should return a integer value + * that is been set + * + */ + @Test + @TargetVehicle("servlet") + public void testSetMaxRows01() throws Exception { + super.testSetMaxRows01(); + } + + /* + * @testName: testSetMaxRows02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:147; JDBC:JAVADOC:148; + * + * @test_Strategy: Get a Statement object and call the setMaxRows(int rows) + * method with an invalid value (negative value) and It should throw an + * SQLException + * + */ + @Test + @TargetVehicle("servlet") + public void testSetMaxRows02() throws Exception { + super.testSetMaxRows02(); + } + + /* + * @testName: testSetQueryTimeout02 + * + * @assertion_ids: JDBC:SPEC:9; JDBC:JAVADOC:153; JDBC:JAVADOC:154; + * + * @test_Strategy: Get a Statement object and call the setQueryTimeout(int + * secval) method with an invalid value (negative value)and It should throw an + * SQLException + * + */ + @Test + @TargetVehicle("servlet") + public void testSetQueryTimeout02() throws Exception { + super.testSetQueryTimeout02(); + } + +} diff --git a/websocket/common/src/main/java/com/sun/ts/tests/websocket/common/client/WebSocketCommonClient.java b/websocket/common/src/main/java/com/sun/ts/tests/websocket/common/client/WebSocketCommonClient.java index 4caaa9310f..15a41cf326 100644 --- a/websocket/common/src/main/java/com/sun/ts/tests/websocket/common/client/WebSocketCommonClient.java +++ b/websocket/common/src/main/java/com/sun/ts/tests/websocket/common/client/WebSocketCommonClient.java @@ -56,7 +56,7 @@ */ @Tag("websocket") @Tag("platform") -@Tag("webprofile") +@Tag("web") public abstract class WebSocketCommonClient { diff --git a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/clientendpointconfig/WSClientIT.java b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/clientendpointconfig/WSClientIT.java index 0407807231..315274f484 100644 --- a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/clientendpointconfig/WSClientIT.java +++ b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/clientendpointconfig/WSClientIT.java @@ -40,7 +40,7 @@ @Tag("websocket") @Tag("platform") -@Tag("webprofile") +@Tag("web") public class WSClientIT { diff --git a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/closereason/WSClientIT.java b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/closereason/WSClientIT.java index 897c44caed..4b867197f5 100644 --- a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/closereason/WSClientIT.java +++ b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/closereason/WSClientIT.java @@ -31,7 +31,7 @@ @Tag("websocket") @Tag("platform") -@Tag("webprofile") +@Tag("web") public class WSClientIT { diff --git a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/decodeexception/WSClientIT.java b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/decodeexception/WSClientIT.java index 2c37b03007..a381887c12 100644 --- a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/decodeexception/WSClientIT.java +++ b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/decodeexception/WSClientIT.java @@ -30,7 +30,7 @@ @Tag("websocket") @Tag("platform") -@Tag("webprofile") +@Tag("web") public class WSClientIT { diff --git a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/deploymentException/WSClientIT.java b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/deploymentException/WSClientIT.java index 3f52740fe0..8dd08aa082 100644 --- a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/deploymentException/WSClientIT.java +++ b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/deploymentException/WSClientIT.java @@ -29,7 +29,7 @@ @Tag("websocket") @Tag("platform") -@Tag("webprofile") +@Tag("web") public class WSClientIT { diff --git a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/encodeexception/WSClientIT.java b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/encodeexception/WSClientIT.java index f0e659d707..ed1fb4c10e 100644 --- a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/encodeexception/WSClientIT.java +++ b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/encodeexception/WSClientIT.java @@ -30,7 +30,7 @@ @Tag("websocket") @Tag("platform") -@Tag("webprofile") +@Tag("web") public class WSClientIT { diff --git a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/server/serverendpointconfig/WSClientIT.java b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/server/serverendpointconfig/WSClientIT.java index 8448db1414..4de80a28c5 100644 --- a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/server/serverendpointconfig/WSClientIT.java +++ b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/server/serverendpointconfig/WSClientIT.java @@ -44,7 +44,7 @@ @ExtendWith(ArquillianExtension.class) @Tag("websocket") @Tag("platform") -@Tag("webprofile") +@Tag("web") public class WSClientIT { diff --git a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/websocketcontainer/WSClientIT.java b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/websocketcontainer/WSClientIT.java index 91f868a882..9b56c38d84 100644 --- a/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/websocketcontainer/WSClientIT.java +++ b/websocket/spec-tests/src/main/java/com/sun/ts/tests/websocket/api/jakarta/websocket/websocketcontainer/WSClientIT.java @@ -34,7 +34,7 @@ @Tag("websocket") @Tag("platform") -@Tag("webprofile") +@Tag("web") public class WSClientIT { diff --git a/xa/pom.xml b/xa/pom.xml index ec15bf26f0..f5aa3eb911 100644 --- a/xa/pom.xml +++ b/xa/pom.xml @@ -32,19 +32,94 @@ XA XA + + 1.9.1.Final + 11.0.0-SNAPSHOT + 5.9.1 + 17 + 1.0.0-M16 + + ${project.groupId} libutil + ${jakarta.ee.version} ${project.groupId} common + ${jakarta.ee.version} jakarta.ejb jakarta.ejb-api + + ${project.groupId}.arquillian + arquillian-protocol-common + ${version.jakarta.tck.arquillian} + + + ${project.groupId}.arquillian + arquillian-protocol-javatest + ${version.jakarta.tck.arquillian} + + + jakarta.mail + jakarta.mail-api + + + jakarta.activation + jakarta.activation-api + + + org.jboss.shrinkwrap + shrinkwrap-api + 1.2.6 + + + org.jboss.shrinkwrap.resolver + shrinkwrap-resolver-depchain + 3.1.4 + pom + + + org.jboss.arquillian.junit5 + arquillian-junit5-container + ${arquillian.junit} + + + org.jboss.arquillian.junit5 + arquillian-junit5-core + ${arquillian.junit} + + + jakarta.tck.arquillian + arquillian-protocol-appclient + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + arquillian-protocol-javatest + ${version.jakarta.tck.arquillian} + + + jakarta.tck.arquillian + tck-porting-lib + ${version.jakarta.tck.arquillian} + + + + + org.junit.jupiter + junit-jupiter + + + org.junit.jupiter + junit-jupiter-engine + + diff --git a/xa/src/main/java/com/sun/ts/tests/xa/build.xml b/xa/src/main/java/com/sun/ts/tests/xa/build.xml deleted file mode 100644 index 6240ffaef6..0000000000 --- a/xa/src/main/java/com/sun/ts/tests/xa/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/build.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/build.xml deleted file mode 100644 index 13e8bd64c1..0000000000 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/Client.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/Client.java index 67b03b10e1..074647417e 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/Client.java +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/Client.java @@ -28,19 +28,26 @@ import java.util.Properties; import java.util.Vector; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; import com.sun.ts.lib.util.TSNamingContext; import com.sun.ts.lib.util.TestUtil; import jakarta.transaction.UserTransaction; +@ExtendWith(ArquillianExtension.class) +@Tag("xa") +@Tag("platform") + public class Client extends ServiceEETest implements Serializable { private TSNamingContext nctx = null; private Properties testProps = null; - private static final String txRef = "java:comp/env/ejb/MyEjbReference"; + protected String txRef = "java:comp/env/ejb/MyEjbReference"; private TxBean beanRef = null; @@ -56,11 +63,6 @@ public class Client extends ServiceEETest implements Serializable { private Integer toKey2 = null; - public static void main(String[] args) { - Client client = new Client(); - Status s = client.run(args, System.out, System.err); - s.exit(); - } /* Test setup: */ @@ -83,6 +85,7 @@ public void setup(String args[], Properties p) throws Exception { TestUtil.logMsg("Lookup java:comp/UserTransaction"); ut = (UserTransaction) nctx.lookup("java:comp/UserTransaction"); + // Get the table names TestUtil.logMsg("Lookup environment variables"); @@ -115,7 +118,7 @@ public void setup(String args[], Properties p) throws Exception { throw new Exception("setup failed", e); } } - + /* Test cleanup */ public void cleanup() throws Exception { @@ -202,6 +205,7 @@ public void test1() throws Exception { testResult = true; // } catch (Exception e) { + e.printStackTrace(); TestUtil.logErr("Caught exception: " + e.getMessage()); TestUtil.printStackTrace(e); throw new Exception(testname + " failed", e); @@ -214,6 +218,7 @@ public void test1() throws Exception { beanRef.dbUnConnect(tName1); ut.commit(); } catch (Exception e) { + e.printStackTrace(); } ; if (!testResult) diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/ClientEJB.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/ClientEJB.java new file mode 100644 index 0000000000..ced338e815 --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/ClientEJB.java @@ -0,0 +1,214 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)Client.java + */ + +package com.sun.ts.tests.xa.ee.resXcomp1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") + +public class ClientEJB extends Client implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) + throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp1_ejb_vehicle_client.jar"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(ClientEJB.class, Client.class); + URL resURL = ClientEJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = ClientEJB.class.getResource( + "/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + + JavaArchive ejbVehicle = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp1_ejb_vehicle_ejb.jar"); + ejbVehicle.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbVehicle.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbVehicle.addPackages(true, "com.sun.ts.lib.harness"); + ejbVehicle.addClasses(TxBean.class, TxBeanEJB.class); + ejbVehicle.addClasses(ClientEJB.class, Client.class); + resURL = ClientEJB.class.getResource("/com/sun/ts/tests/xa/ee/resXcomp1/ejb_vehicle_ejb.xml"); + if (resURL != null) { + ejbVehicle.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + resURL = ClientEJB.class.getResource("/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + if (resURL != null) { + ejbVehicle.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp1_ee_txpropagate1_ejb.jar"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(false, "com.sun.ts.tests.common.util"); + ejb.addPackages(false, "com.sun.ts.tests.common.whitebox"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(TxBean.class, TxBeanEJB.class); + ejb.addClasses(ClientEJB.class, Client.class); + + resURL = ClientEJB.class + .getResource("/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = ClientEJB.class.getResource("/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate1_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_resXcomp1_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejbVehicle); + ear.addAsModule(ejb); + return ear; + }; + + public static void main(String[] args) { + ClientEJB client = new ClientEJB(); + Status s = client.run(args, System.out, System.err); + s.exit(); + } + + + public String getTxRef() { + return "java:comp/env/ejb/MyEjbReferenceEJB"; + } + + /* Run test */ + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:68 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the TxBean (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from TxBean EJB. + * + */ + @Test + @TargetVehicle("ejb") + public void test1() throws Exception { + super.test1(); + } + + /* + * @testName: test2 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:68 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the TxBean (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from TxBean EJB. + * + */ + @Test + @TargetVehicle("ejb") + public void test2() throws Exception { + super.test2(); + } + + /* + * @testName: test3 + * + * @assertion_ids: JavaEE:SPEC:74 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the TxBean (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from TxBean EJB. + * + */ + @Test + @TargetVehicle("ejb") + public void test3() throws Exception { + super.test3(); + } + + /* + * @testName: test4 + * + * @assertion_ids: JavaEE:SPEC:74 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the TxBean (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from TxBean EJB. + * + */ + @Test + @TargetVehicle("ejb") + public void test4() throws Exception { + super.test4(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/ClientJSP.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/ClientJSP.java new file mode 100644 index 0000000000..f4a8b87f40 --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/ClientJSP.java @@ -0,0 +1,177 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)Client.java + */ + +package com.sun.ts.tests.xa.ee.resXcomp1; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") +public class ClientJSP extends Client implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static EnterpriseArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive jspVehicleArchive = ShrinkWrap.create(WebArchive.class, "xa_resXcomp1_jsp_vehicle_web.war"); + jspVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + jspVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + jspVehicleArchive.addPackages(true, "com.sun.ts.lib.harness"); + jspVehicleArchive.addClasses(ClientServletTest.class, Client.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + jspVehicleArchive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + jspVehicleArchive.add(new ByteArrayAsset(clientHtml), "client.html"); + + jspVehicleArchive.addAsWebInfResource(ClientJSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + jspVehicleArchive.addAsWebInfResource(ClientJSP.class.getPackage(), "xa_resXcomp1_jsp_vehicle_web.war.sun-web.xml", "sun-web.xml"); + + JavaArchive javaAchive = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp1_ee_txpropagate3_ejb.jar"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.util"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.whitebox"); + javaAchive.addPackages(true, "com.sun.ts.lib.harness"); + javaAchive.addClasses(TxBean.class, TxBeanEJB.class); + javaAchive.addClasses(ClientServletTest.class, Client.class); + + javaAchive.addAsManifestResource(ClientJSP.class.getPackage(), "xa_resXcomp1_ee_txpropagate3_ejb.xml", "ejb-jar.xml"); + javaAchive.addAsManifestResource(ClientJSP.class.getPackage(), "xa_resXcomp1_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml", "sun-ejb-jar.xml"); + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_resXcomp1_jsp_vehicle.ear"); + ear.addAsModule(jspVehicleArchive); + ear.addAsModule(javaAchive); + + return ear; + }; + + + public static void main(String[] args) { + ClientJSP client = new ClientJSP(); + Status s = client.run(args, System.out, System.err); + s.exit(); + } + + + /* Run test */ + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:68 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the TxBean (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from TxBean EJB. + * + */ + @Test + @TargetVehicle("jsp") + public void test1() throws Exception { + super.test1(); + } + + /* + * @testName: test2 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:68 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the TxBean (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from TxBean EJB. + * + */ + @Test + @TargetVehicle("jsp") + public void test2() throws Exception { + super.test2(); + } + + /* + * @testName: test3 + * + * @assertion_ids: JavaEE:SPEC:74 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the TxBean (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from TxBean EJB. + * + */ + @Test + @TargetVehicle("jsp") + public void test3() throws Exception { + super.test3(); + } + + /* + * @testName: test4 + * + * @assertion_ids: JavaEE:SPEC:74 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the TxBean (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from TxBean EJB. + * + */ + @Test + @TargetVehicle("jsp") + public void test4() throws Exception { + super.test4(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/ClientServletTest.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/ClientServletTest.java new file mode 100644 index 0000000000..f788ea8b04 --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/ClientServletTest.java @@ -0,0 +1,166 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)Client.java + */ + +package com.sun.ts.tests.xa.ee.resXcomp1; + +import java.io.IOException; +import java.io.Serializable; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") +public class ClientServletTest extends Client implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static EnterpriseArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive servletVehicleArchive = ShrinkWrap.create(WebArchive.class, "xa_resXcomp1_servlet_vehicle_web.war"); + servletVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + servletVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + servletVehicleArchive.addPackages(true, "com.sun.ts.lib.harness"); + servletVehicleArchive.addClasses(ClientServletTest.class, Client.class); + servletVehicleArchive.addAsWebInfResource(ClientServletTest.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + servletVehicleArchive.addAsWebInfResource(ClientServletTest.class.getPackage(), "xa_resXcomp1_servlet_vehicle_web.war.sun-web.xml", "sun-web.xml"); + + JavaArchive javaAchive = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp1_ee_txpropagate2_ejb.jar"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.util"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.whitebox"); + javaAchive.addPackages(true, "com.sun.ts.lib.harness"); + javaAchive.addClasses(TxBean.class, TxBeanEJB.class); + javaAchive.addClasses(ClientServletTest.class, Client.class); + + javaAchive.addAsManifestResource(ClientServletTest.class.getPackage(), "xa_resXcomp1_ee_txpropagate2_ejb.xml", "ejb-jar.xml"); + javaAchive.addAsManifestResource(ClientServletTest.class.getPackage(), "xa_resXcomp1_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml", "sun-ejb-jar.xml"); + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_resXcomp1_servlet_vehicle.ear"); + ear.addAsModule(servletVehicleArchive); + ear.addAsModule(javaAchive); + + return ear; + }; + + public static void main(String[] args) { + ClientServletTest client = new ClientServletTest(); + Status s = client.run(args, System.out, System.err); + s.exit(); + } + + /* Run test */ + + /* + * @testName: test1 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:68 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the TxBean (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from TxBean EJB. + * + */ + @Test + @TargetVehicle("servlet") + public void test1() throws Exception { + super.test1(); + } + + /* + * @testName: test2 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:68 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the TxBean (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from TxBean EJB. + * + */ + @Test + @TargetVehicle("servlet") + public void test2() throws Exception { + super.test2(); + } + + /* + * @testName: test3 + * + * @assertion_ids: JavaEE:SPEC:74 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the TxBean (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from TxBean EJB. + * + */ + @Test + @TargetVehicle("servlet") + public void test3() throws Exception { + super.test3(); + } + + /* + * @testName: test4 + * + * @assertion_ids: JavaEE:SPEC:74 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the TxBean (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from TxBean EJB. + * + */ + @Test + @TargetVehicle("servlet") + public void test4() throws Exception { + super.test4(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/TxBeanEJB.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/TxBeanEJB.java index 5cc71f0f29..3b21abbb2a 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/TxBeanEJB.java +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/TxBeanEJB.java @@ -87,6 +87,7 @@ public void initialize() { ds2 = (TSEISDataSource) context.lookup("java:comp/env/eis/whitebox-tx"); TestUtil.logTrace("ds2: " + ds2); } catch (Exception e) { + e.printStackTrace(); TestUtil.logTrace(eMsg); TestUtil.logErr("Unexpected exception getting the DB DataSource", e); throw new EJBException(e.getMessage()); @@ -109,6 +110,7 @@ public void dbConnect(String tName) { TestUtil.logMsg("Made the connection to EIS"); } } catch (Exception e) { + e.printStackTrace(); TestUtil.logErr("Unexpected exception on JDBC connection", e); throw new EJBException(e.getMessage()); } @@ -126,6 +128,7 @@ public void createData(String tName) { TestUtil.logMsg("Created the EIS data"); } } catch (Exception e) { + e.printStackTrace(); TestUtil.logErr("Exception creating table", e); throw new EJBException(e.getMessage()); } @@ -161,6 +164,7 @@ public boolean insert(String tName, int key) { return true; } catch (Exception e) { + e.printStackTrace(); TestUtil.logErr("Exception inserting a row into table " + tName + ";\n" + e.getMessage(), e); return false; @@ -190,6 +194,7 @@ public void delete(String tName, int fromKey, int toKey) { .logTrace("Deleted row(s) from EIS " + fromKey + " thru " + toKey); } } catch (Exception e) { + e.printStackTrace(); TestUtil.logErr("Exception deleting row(s) " + fromKey + " thru " + toKey + " from the table " + tName, e); throw new EJBException(e.getMessage()); @@ -207,6 +212,7 @@ public void destroyData(String tName) { TestUtil.logMsg("Deleted all rows from EIS"); } } catch (Exception e) { + e.printStackTrace(); TestUtil.logErr("Exception occured trying to drop table", e); throw new EJBException(e.getMessage()); } @@ -226,6 +232,7 @@ public void dbUnConnect(String tName) { TestUtil.logTrace("Closed EIS connection"); } } catch (Exception e) { + e.printStackTrace(); TestUtil.logErr("Exception occured trying to close the DB connection", e); throw new EJBException(e.getMessage()); } @@ -262,6 +269,7 @@ public Vector getResults(String tName) { } } catch (Exception e) { + e.printStackTrace(); TestUtil.logErr("Exception obtaining " + tName + " table ResultSet", e); throw new EJBException(e.getMessage()); } @@ -278,6 +286,7 @@ public void initLogging(Properties p) { TestUtil.logMsg(dbTable1 + " initLogging OK!"); } catch (RemoteLoggingInitException e) { + e.printStackTrace(); TestUtil.printStackTrace(e); throw new EJBException(e.getMessage()); } @@ -299,6 +308,7 @@ public void listTableData(Vector dbResults) { TestUtil.logTrace(dbResults.elementAt(j).toString()); } } catch (Exception e) { + e.printStackTrace(); TestUtil.logErr("Exception occured trying to list table data", e); throw new EJBException(e.getMessage()); } @@ -312,9 +322,11 @@ private void conTable1() { con1 = ds1.getConnection(); TestUtil.logTrace("con1: " + con1.toString()); } catch (SQLException e) { + e.printStackTrace(); TestUtil.logErr("SQLException connecting to " + dbTable1 + " DB", e); throw new EJBException(e.getMessage()); } catch (Exception ee) { + ee.printStackTrace(); TestUtil.logErr("Exception connecting to " + dbTable1 + " DB", ee); throw new EJBException(ee.getMessage()); } @@ -327,6 +339,7 @@ private void conTable2() { con2 = ds2.getConnection(); TestUtil.logTrace("con2: " + con2.toString()); } catch (Exception ee) { + ee.printStackTrace(); TestUtil.logErr("Exception connecting to EIS ", ee); throw new EJBException(ee.getMessage()); } @@ -339,6 +352,7 @@ private void createTable1() { dropTable1(); TestUtil.logTrace("All rows deleted from table " + dbTable1); } catch (Exception e) { + e.printStackTrace(); TestUtil.printStackTrace(e); TestUtil.logMsg( "SQLException encountered in createTable1: " + e.getMessage()); @@ -363,6 +377,7 @@ private void createTable1() { pStmt.close(); } catch (SQLException e) { + e.printStackTrace(); TestUtil.logErr("SQLException creating " + dbTable1 + " table", e); throw new EJBException(e.getMessage()); } @@ -383,6 +398,7 @@ private void createTable2() { con2.insert((new Integer(i)).toString(), (new Integer(i)).toString()); } } catch (Exception e) { + e.printStackTrace(); TestUtil.logErr("SQLException creating " + dbTable1 + " table", e); throw new EJBException(e.getMessage()); } @@ -397,7 +413,7 @@ private void dropTable1() { stmt.executeUpdate(removeString); stmt.close(); } catch (SQLException e) { - // TestUtil.logErr("SQLException dropping "+dbTable1+" table", e); + TestUtil.logErr("SQLException dropping "+dbTable1+" table", e); throw new EJBException(e.getMessage()); } } @@ -408,6 +424,7 @@ private void dropTable2() { try { con2.dropTable(); } catch (Exception e) { + e.printStackTrace(); // TestUtil.logErr("SQLException dropping "+dbTable1+" table", e); throw new EJBException(e.getMessage()); } diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/build.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/build.xml deleted file mode 100644 index 95e194f819..0000000000 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/build.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml index 07993b8eba..c8eb87f95c 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml @@ -28,16 +28,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml index b7d18932a8..2adeba0027 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml @@ -28,16 +28,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml index 69b6603326..101a5b9287 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml @@ -28,16 +28,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml index b0651b5124..ae764034f1 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml @@ -25,23 +25,23 @@ com_sun_ts_tests_common_vehicle_ejb_EJBVehicle xa_resXcomp1_ejb_vehicle - ejb/MyEjbReference + ejb/MyEjbReferenceEJB xa_resXcomp1_ejb_TxRequired_TxBeanEJB1 eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_jsp_vehicle_web.war.sun-web.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_jsp_vehicle_web.war.sun-web.xml index e02380a1d2..11d62aefff 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_jsp_vehicle_web.war.sun-web.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_jsp_vehicle_web.war.sun-web.xml @@ -27,16 +27,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_servlet_vehicle_web.war.sun-web.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_servlet_vehicle_web.war.sun-web.xml index fac1ba235c..474974bc9f 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_servlet_vehicle_web.war.sun-web.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp1/xa_resXcomp1_servlet_vehicle_web.war.sun-web.xml @@ -27,16 +27,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/Client.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/Client.java index 1d7fcf37df..a827955128 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/Client.java +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/Client.java @@ -26,13 +26,21 @@ import java.io.Serializable; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContext; import com.sun.ts.lib.util.TestUtil; import jakarta.transaction.UserTransaction; +@ExtendWith(ArquillianExtension.class) +@Tag("xa") +@Tag("platform") + public class Client extends ServiceEETest implements Serializable { private TSNamingContext nctx = null; diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/ClientEJB.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/ClientEJB.java new file mode 100644 index 0000000000..bd2dcb5c12 --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/ClientEJB.java @@ -0,0 +1,211 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)Client.java 1.20 02/07/19 + */ +package com.sun.ts.tests.xa.ee.resXcomp2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") +public class ClientEJB extends Client implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) + throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp2_ejb_vehicle_client.jar"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(ClientEJB.class, Client.class); + URL resURL = ClientEJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = ClientEJB.class.getResource( + "/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejbVehicle = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp2_ejb_vehicle_ejb.jar"); + ejbVehicle.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbVehicle.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbVehicle.addPackages(true, "com.sun.ts.lib.harness"); + ejbVehicle.addClasses(Ejb1Test.class, Ejb1TestEJB.class, Ejb2Test.class, Ejb2TestEJB.class); + ejbVehicle.addClasses(ClientEJB.class, Client.class); + resURL = ClientEJB.class.getResource("/com/sun/ts/tests/xa/ee/resXcomp2/ejb_vehicle_ejb.xml"); + if (resURL != null) { + ejbVehicle.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + resURL = ClientEJB.class + .getResource("/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + if (resURL != null) { + ejbVehicle.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp2_ee_txpropagate1_ejb.jar"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(false, "com.sun.ts.tests.common.util"); + ejb.addPackages(false, "com.sun.ts.tests.common.whitebox"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(Ejb1Test.class, Ejb1TestEJB.class, Ejb2Test.class, Ejb2TestEJB.class); + ejb.addClasses(ClientEJB.class, Client.class); + + resURL = ClientEJB.class + .getResource("/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = ClientEJB.class.getResource("/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate1_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_resXcomp2_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejbVehicle); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + ClientEJB theTests = new ClientEJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* Run tests */ + /* + * @testName: test5 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:68; JavaEE:SPEC:69; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test5() throws Exception { + super.test5(); + } + + /* + * @testName: test6 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:68; JavaEE:SPEC:69; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_rollback + */ + @Test + @TargetVehicle("ejb") + public void test6() throws Exception { + super.test6(); + } + + /* + * @testName: test7 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:69; JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test7() throws Exception { + super.test7(); + } + + /* + * @testName: test8 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:69; JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_rollback + */ + @Test + @TargetVehicle("ejb") + public void test8() throws Exception { + super.test8(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/ClientJSP.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/ClientJSP.java new file mode 100644 index 0000000000..124c954b45 --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/ClientJSP.java @@ -0,0 +1,180 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)Client.java 1.20 02/07/19 + */ +package com.sun.ts.tests.xa.ee.resXcomp2; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") +public class ClientJSP extends Client implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static EnterpriseArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive jspVehicleArchive = ShrinkWrap.create(WebArchive.class, "xa_resXcomp2_jsp_vehicle_web.war"); + jspVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + jspVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + jspVehicleArchive.addPackages(true, "com.sun.ts.lib.harness"); + jspVehicleArchive.addClasses(ClientJSP.class, Client.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + jspVehicleArchive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + jspVehicleArchive.add(new ByteArrayAsset(clientHtml), "client.html"); + + jspVehicleArchive.addAsWebInfResource(ClientJSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + jspVehicleArchive.addAsWebInfResource(ClientJSP.class.getPackage(), "xa_resXcomp2_jsp_vehicle_web.war.sun-web.xml", "sun-web.xml"); + + JavaArchive javaAchive = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp2_ee_txpropagate3_ejb.jar"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.util"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.whitebox"); + javaAchive.addPackages(true, "com.sun.ts.lib.harness"); + javaAchive.addClasses(ClientServlet.class, Client.class); + javaAchive.addClasses(Ejb2Test.class, Ejb2TestEJB.class, Ejb1Test.class, Ejb1TestEJB.class); + javaAchive.addAsManifestResource(ClientJSP.class.getPackage(), "xa_resXcomp2_ee_txpropagate3_ejb.xml", "ejb-jar.xml"); + javaAchive.addAsManifestResource(ClientJSP.class.getPackage(), "xa_resXcomp2_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml", "sun-ejb-jar.xml"); + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_resXcomp2_jsp_vehicle.ear"); + ear.addAsModule(jspVehicleArchive); + ear.addAsModule(javaAchive); + + + return ear; + + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + ClientJSP theTests = new ClientJSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* Run tests */ + /* + * @testName: test5 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:68; JavaEE:SPEC:69; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test5() throws Exception { + super.test5(); + } + + /* + * @testName: test6 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:68; JavaEE:SPEC:69; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_rollback + */ + @Test + @TargetVehicle("jsp") + public void test6() throws Exception { + super.test6(); + } + + /* + * @testName: test7 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:69; JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test7() throws Exception { + super.test7(); + } + + /* + * @testName: test8 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:69; JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_rollback + */ + @Test + @TargetVehicle("jsp") + public void test8() throws Exception { + super.test8(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/ClientServlet.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/ClientServlet.java new file mode 100644 index 0000000000..9fef930b01 --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/ClientServlet.java @@ -0,0 +1,169 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)Client.java 1.20 02/07/19 + */ +package com.sun.ts.tests.xa.ee.resXcomp2; + +import java.io.IOException; +import java.io.Serializable; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") +public class ClientServlet extends Client implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static EnterpriseArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive servletVehicleArchive = ShrinkWrap.create(WebArchive.class, "xa_resXcomp2_servlet_vehicle_web.war"); + servletVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + servletVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + servletVehicleArchive.addPackages(true, "com.sun.ts.lib.harness"); + servletVehicleArchive.addClasses(ClientServlet.class, Client.class); + servletVehicleArchive.addAsWebInfResource(ClientServlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + servletVehicleArchive.addAsWebInfResource(ClientServlet.class.getPackage(), "xa_resXcomp2_servlet_vehicle_web.war.sun-web.xml", "sun-web.xml"); + + JavaArchive javaAchive = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp2_ee_txpropagate2_ejb.jar"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.util"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.whitebox"); + javaAchive.addPackages(true, "com.sun.ts.lib.harness"); + javaAchive.addClasses(ClientServlet.class, Client.class); + javaAchive.addClasses(Ejb2Test.class, Ejb2TestEJB.class, Ejb1Test.class, Ejb1TestEJB.class); + javaAchive.addAsManifestResource(ClientServlet.class.getPackage(), "xa_resXcomp2_ee_txpropagate2_ejb.xml", "ejb-jar.xml"); + javaAchive.addAsManifestResource(ClientServlet.class.getPackage(), "xa_resXcomp2_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml", "sun-ejb-jar.xml"); + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_resXcomp2_servlet_vehicle.ear"); + ear.addAsModule(servletVehicleArchive); + ear.addAsModule(javaAchive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + ClientServlet theTests = new ClientServlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* Run tests */ + /* + * @testName: test5 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:68; JavaEE:SPEC:69; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test5() throws Exception { + super.test5(); + } + + /* + * @testName: test6 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:68; JavaEE:SPEC:69; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_rollback + */ + @Test + @TargetVehicle("servlet") + public void test6() throws Exception { + super.test6(); + } + + /* + * @testName: test7 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:69; JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test7() throws Exception { + super.test7(); + } + + /* + * @testName: test8 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:69; JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_rollback + */ + @Test + @TargetVehicle("servlet") + public void test8() throws Exception { + super.test8(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/build.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/build.xml deleted file mode 100644 index 179c5ffe52..0000000000 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/build.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml index 06e54b6312..4e541cda38 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml @@ -32,16 +32,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 false @@ -72,16 +72,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml index 4ac9d89728..f452f1f2b4 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml @@ -32,16 +32,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 false @@ -72,16 +72,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml index 87c9943b01..724488df44 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml @@ -32,16 +32,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 false @@ -72,16 +72,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml index 701cd47bcf..463f7ca7fd 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml @@ -36,16 +36,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_jsp_vehicle_web.war.sun-web.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_jsp_vehicle_web.war.sun-web.xml index b3034e9b21..953d38ec13 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_jsp_vehicle_web.war.sun-web.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_jsp_vehicle_web.war.sun-web.xml @@ -31,16 +31,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_servlet_vehicle_web.war.sun-web.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_servlet_vehicle_web.war.sun-web.xml index f3afea3833..2dc51ec628 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_servlet_vehicle_web.war.sun-web.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp2/xa_resXcomp2_servlet_vehicle_web.war.sun-web.xml @@ -31,16 +31,16 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/Client.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/Client.java index 32f64a0d94..9931be10c8 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/Client.java +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/Client.java @@ -26,13 +26,21 @@ import java.io.Serializable; import java.util.Properties; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContext; import com.sun.ts.lib.util.TestUtil; import jakarta.transaction.UserTransaction; +@ExtendWith(ArquillianExtension.class) +@Tag("xa") +@Tag("platform") + public class Client extends ServiceEETest implements Serializable { private TSNamingContext nctx = null; diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/ClientEJB.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/ClientEJB.java new file mode 100644 index 0000000000..e9a5e1da8a --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/ClientEJB.java @@ -0,0 +1,235 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)Client.java 1.20 02/07/19 + */ +package com.sun.ts.tests.xa.ee.resXcomp3; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +@Tag("tck-appclient") + +public class ClientEJB extends Client implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) + throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp3_ejb_vehicle_client.jar"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(ClientEJB.class, Client.class); + URL resURL = ClientEJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = ClientEJB.class.getResource( + "/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejbVehicle = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp3_ejb_vehicle_ejb.jar"); + ejbVehicle.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbVehicle.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbVehicle.addPackages(true, "com.sun.ts.lib.harness"); + ejbVehicle.addClasses(Ejb1Test.class, Ejb1TestEJB.class, Ejb2Test.class, Ejb2TestEJB.class); + ejbVehicle.addClasses(ClientEJB.class, Client.class); + resURL = ClientEJB.class.getResource("/com/sun/ts/tests/xa/ee/resXcomp3/ejb_vehicle_ejb.xml"); + if (resURL != null) { + ejbVehicle.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + resURL = ClientEJB.class + .getResource("/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + if (resURL != null) { + ejbVehicle.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp3_ee_txpropagate1_ejb.jar"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(false, "com.sun.ts.tests.common.util"); + ejb.addPackages(false, "com.sun.ts.tests.common.whitebox"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(Ejb1Test.class, Ejb1TestEJB.class, Ejb2Test.class, Ejb2TestEJB.class); + ejb.addClasses(ClientEJB.class, Client.class); + + resURL = ClientEJB.class + .getResource("/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = ClientEJB.class.getResource("/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate1_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_resXcomp3_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejbVehicle); + ear.addAsModule(ejb); + return ear; + }; + + /* Run test in standalone mode */ + public static void main(String[] args) { + ClientEJB theTests = new ClientEJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* Run tests */ + /* + * @testName: test9 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test9() throws Exception { + super.test9(); + } + + /* + * @testName: test10 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_rollback + */ + @Test + @TargetVehicle("ejb") + public void test10() throws Exception { + super.test10(); + } + + /* + * @testName: test11 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test11() throws Exception { + super.test11(); + } + + /* + * @testName: test12 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_rollback + */ + @Test + @TargetVehicle("ejb") + public void test12() throws Exception { + super.test12(); + } + + /* + * @testName: test13 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test13() throws Exception { + super.test13(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/ClientJSP.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/ClientJSP.java new file mode 100644 index 0000000000..234370253c --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/ClientJSP.java @@ -0,0 +1,202 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)Client.java 1.20 02/07/19 + */ +package com.sun.ts.tests.xa.ee.resXcomp3; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") +public class ClientJSP extends Client implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static EnterpriseArchive createDeploymentJsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive jspVehicleArchive = ShrinkWrap.create(WebArchive.class, "xa_resXcomp3_jsp_vehicle_web.war"); + jspVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + jspVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + jspVehicleArchive.addPackages(true, "com.sun.ts.lib.harness"); + jspVehicleArchive.addClasses(ClientServlet.class, Client.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + jspVehicleArchive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + jspVehicleArchive.add(new ByteArrayAsset(clientHtml), "client.html"); + + jspVehicleArchive.addAsWebInfResource(ClientServlet.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + jspVehicleArchive.addAsWebInfResource(ClientServlet.class.getPackage(), "xa_resXcomp3_jsp_vehicle_web.war.sun-web.xml", "sun-web.xml"); + + JavaArchive javaAchive = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp3_ee_txpropagate3_ejb.jar"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.util"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.whitebox"); + javaAchive.addPackages(true, "com.sun.ts.lib.harness"); + javaAchive.addClasses(ClientServlet.class, Client.class); + javaAchive.addClasses(Ejb1Test.class, Ejb1TestEJB.class, Ejb2Test.class, Ejb2TestEJB.class); + javaAchive.addAsManifestResource(ClientServlet.class.getPackage(), "xa_resXcomp3_ee_txpropagate3_ejb.xml", "ejb-jar.xml"); + javaAchive.addAsManifestResource(ClientServlet.class.getPackage(), "xa_resXcomp3_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml", "sun-ejb-jar.xml"); + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_resXcomp3_jsp_vehicle.ear"); + ear.addAsModule(jspVehicleArchive); + ear.addAsModule(javaAchive); + + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + ClientJSP theTests = new ClientJSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* Run tests */ + /* + * @testName: test9 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test9() throws Exception { + super.test9(); + } + + /* + * @testName: test10 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_rollback + */ + @Test + @TargetVehicle("jsp") + public void test10() throws Exception { + super.test10(); + } + + /* + * @testName: test11 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test11() throws Exception { + super.test11(); + } + + /* + * @testName: test12 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_rollback + */ + @Test + @TargetVehicle("jsp") + public void test12() throws Exception { + super.test12(); + } + + /* + * @testName: test13 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test13() throws Exception { + super.test13(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/ClientServlet.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/ClientServlet.java new file mode 100644 index 0000000000..5dfb0b83c0 --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/ClientServlet.java @@ -0,0 +1,194 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * $Id$ + */ + +/* + * @(#)Client.java 1.20 02/07/19 + */ +package com.sun.ts.tests.xa.ee.resXcomp3; + +import java.io.IOException; +import java.io.Serializable; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + + +@Tag("tck-javatest") +public class ClientServlet extends Client implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static EnterpriseArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive servletVehicleArchive = ShrinkWrap.create(WebArchive.class, "xa_resXcomp3_servlet_vehicle_web.war"); + servletVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + servletVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + servletVehicleArchive.addPackages(true, "com.sun.ts.lib.harness"); + servletVehicleArchive.addClasses(ClientServlet.class, Client.class); + servletVehicleArchive.addAsWebInfResource(ClientServlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + servletVehicleArchive.addAsWebInfResource(ClientServlet.class.getPackage(), "xa_resXcomp3_servlet_vehicle_web.war.sun-web.xml", "sun-web.xml"); + + JavaArchive javaAchive = ShrinkWrap.create(JavaArchive.class, "xa_resXcomp3_ee_txpropagate2_ejb.jar"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.util"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.whitebox"); + javaAchive.addPackages(true, "com.sun.ts.lib.harness"); + javaAchive.addClasses(ClientServlet.class, Client.class); + javaAchive.addClasses(Ejb1Test.class, Ejb1TestEJB.class, Ejb2Test.class, Ejb2TestEJB.class); + javaAchive.addAsManifestResource(ClientServlet.class.getPackage(), "xa_resXcomp3_ee_txpropagate2_ejb.xml", "ejb-jar.xml"); + javaAchive.addAsManifestResource(ClientServlet.class.getPackage(), "xa_resXcomp3_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml", "sun-ejb-jar.xml"); + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_resXcomp3_servlet_vehicle.ear"); + ear.addAsModule(servletVehicleArchive); + ear.addAsModule(javaAchive); + + return ear; + + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + ClientServlet theTests = new ClientServlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* Run tests */ + /* + * @testName: test9 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test9() throws Exception { + super.test9(); + } + + /* + * @testName: test10 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_rollback + */ + @Test + @TargetVehicle("servlet") + public void test10() throws Exception { + super.test10(); + } + + /* + * @testName: test11 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test11() throws Exception { + super.test11(); + } + + /* + * @testName: test12 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a rollback to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_rollback + */ + @Test + @TargetVehicle("servlet") + public void test12() throws Exception { + super.test12(); + } + + /* + * @testName: test13 + * + * @assertion_ids: JavaEE:SPEC:74; JavaEE:SPEC:73; JavaEE:SPEC:82; + * JavaEE:SPEC:84 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test13() throws Exception { + super.test13(); + } +} + + diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/build.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/build.xml deleted file mode 100644 index 902b78814a..0000000000 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/build.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml index 3c8a43bed6..25e26af862 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml @@ -32,32 +32,32 @@ eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-notx eis/JDBCwhitebox-notx - user2 - password2 + cts1 + cts1 false @@ -88,16 +88,16 @@ eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml index b7b9e37521..9d16eff556 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml @@ -32,32 +32,32 @@ eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-notx eis/JDBCwhitebox-notx - user2 - password2 + cts1 + cts1 false @@ -88,16 +88,16 @@ eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml index 063e323750..9fde370d76 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml @@ -28,16 +28,16 @@ eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false @@ -72,32 +72,32 @@ eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-notx eis/JDBCwhitebox-notx - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ejb_vehicle_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ejb_vehicle_ejb.jar.sun-ejb-jar.xml index 1a2a64c2ba..2f4f9f8451 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ejb_vehicle_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_ejb_vehicle_ejb.jar.sun-ejb-jar.xml @@ -36,32 +36,32 @@ eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-notx eis/JDBCwhitebox-notx - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_jsp_vehicle_web.war.sun-web.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_jsp_vehicle_web.war.sun-web.xml index de2af6751e..774a91511a 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_jsp_vehicle_web.war.sun-web.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_jsp_vehicle_web.war.sun-web.xml @@ -31,32 +31,32 @@ eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-notx eis/JDBCwhitebox-notx - user2 - password2 + cts1 + cts1 diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_servlet_vehicle_web.war.sun-web.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_servlet_vehicle_web.war.sun-web.xml index 3479697477..f21debff23 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_servlet_vehicle_web.war.sun-web.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/resXcomp3/xa_resXcomp3_servlet_vehicle_web.war.sun-web.xml @@ -31,32 +31,32 @@ eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-notx eis/JDBCwhitebox-notx - user2 - password2 + cts1 + cts1 diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/Client.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/Client.java index 35902b2bdd..b9a233e124 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/Client.java +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/Client.java @@ -27,13 +27,21 @@ import java.util.Properties; import java.util.Vector; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContext; import com.sun.ts.lib.util.TestUtil; import jakarta.transaction.UserTransaction; +@ExtendWith(ArquillianExtension.class) +@Tag("xa") +@Tag("platform") + public class Client extends ServiceEETest implements Serializable { private TSNamingContext nctx = null; diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/ClientEJB.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/ClientEJB.java new file mode 100644 index 0000000000..cd66b668f9 --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/ClientEJB.java @@ -0,0 +1,192 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)Client.java 1.3 03/05/16 + */ + +/* + * @(#)Client.java 1.20 02/07/19 + */ +package com.sun.ts.tests.xa.ee.xresXcomp1; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") + +public class ClientEJB extends Client implements Serializable { + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "xa_xresXcomp1_ejb_vehicle_client.jar"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(ClientEJB.class, Client.class); + URL resURL = ClientEJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = ClientEJB.class.getResource( + "/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + + JavaArchive ejbVehicle = ShrinkWrap.create(JavaArchive.class, "xa_xresXcomp1_ejb_vehicle_ejb.jar"); + ejbVehicle.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbVehicle.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbVehicle.addPackages(true, "com.sun.ts.lib.harness"); + ejbVehicle.addClasses(Ejb1Test.class, Ejb1TestEJB.class); + ejbVehicle.addClasses(ClientEJB.class, Client.class); + resURL = ClientEJB.class.getResource("/com/sun/ts/tests/xa/ee/xresXcomp1/ejb_vehicle_ejb.xml"); + if (resURL != null) { + ejbVehicle.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + resURL = ClientEJB.class.getResource("/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + if (resURL != null) { + ejbVehicle.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "xa_xresXcomp1_ee_txpropagate1_ejb.jar"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(false, "com.sun.ts.tests.common.util"); + ejb.addPackages(false, "com.sun.ts.tests.common.whitebox"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(Ejb1Test.class, Ejb1TestEJB.class); + ejb.addClasses(ClientEJB.class, Client.class); + + resURL = ClientEJB.class + .getResource("/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = ClientEJB.class.getResource("/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate1_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_xresXcomp1_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejbVehicle); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + ClientEJB theTests = new ClientEJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* Run tests */ + /* + * @testName: test14 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test14() throws Exception { + super.test14(); + } + + /* + * @testName: test15 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test15() throws Exception { + super.test15(); + } + + /* + * @testName: test16 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test16() throws Exception { + super.test16(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/ClientJSP.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/ClientJSP.java new file mode 100644 index 0000000000..d2a43e806a --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/ClientJSP.java @@ -0,0 +1,162 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)Client.java 1.3 03/05/16 + */ + +/* + * @(#)Client.java 1.20 02/07/19 + */ +package com.sun.ts.tests.xa.ee.xresXcomp1; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class ClientJSP extends Client implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static EnterpriseArchive createDeploymentJSP(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive jspVehicleArchive = ShrinkWrap.create(WebArchive.class, "xa_xresXcomp1_jsp_vehicle_web.war"); + jspVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + jspVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + jspVehicleArchive.addPackages(true, "com.sun.ts.lib.harness"); + jspVehicleArchive.addClasses(ClientServlet.class, Client.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + jspVehicleArchive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + jspVehicleArchive.add(new ByteArrayAsset(clientHtml), "client.html"); + + jspVehicleArchive.addAsWebInfResource(ClientJSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + jspVehicleArchive.addAsWebInfResource(ClientJSP.class.getPackage(), "xa_xresXcomp1_jsp_vehicle_web.war.sun-web.xml", "sun-web.xml"); + + JavaArchive javaAchive = ShrinkWrap.create(JavaArchive.class, "xa_xresXcomp1_ee_txpropagate3_ejb.jar"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.util"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.whitebox"); + javaAchive.addPackages(true, "com.sun.ts.lib.harness"); + javaAchive.addClasses(ClientServlet.class, Client.class); + javaAchive.addClasses(Ejb1Test.class, Ejb1TestEJB.class); + javaAchive.addAsManifestResource(ClientJSP.class.getPackage(), "xa_xresXcomp1_ee_txpropagate3_ejb.xml", "ejb-jar.xml"); + javaAchive.addAsManifestResource(ClientJSP.class.getPackage(), "xa_xresXcomp1_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml", "sun-ejb-jar.xml"); + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_xresXcomp1_jsp_vehicle.ear"); + ear.addAsModule(jspVehicleArchive); + ear.addAsModule(javaAchive); + + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + ClientJSP theTests = new ClientJSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* Run tests */ + /* + * @testName: test14 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test14() throws Exception { + super.test14(); + } + + /* + * @testName: test15 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test15() throws Exception { + super.test15(); + } + + /* + * @testName: test16 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test16() throws Exception { + super.test16(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/ClientServlet.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/ClientServlet.java new file mode 100644 index 0000000000..5a003b701b --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/ClientServlet.java @@ -0,0 +1,152 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)Client.java 1.3 03/05/16 + */ + +/* + * @(#)Client.java 1.20 02/07/19 + */ +package com.sun.ts.tests.xa.ee.xresXcomp1; + +import java.io.IOException; +import java.io.Serializable; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class ClientServlet extends Client implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static EnterpriseArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive servletVehicleArchive = ShrinkWrap.create(WebArchive.class, "xa_xresXcomp1_servlet_vehicle_web.war"); + servletVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + servletVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + servletVehicleArchive.addPackages(true, "com.sun.ts.lib.harness"); + servletVehicleArchive.addClasses(ClientServlet.class, Client.class); + servletVehicleArchive.addAsWebInfResource(ClientServlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + servletVehicleArchive.addAsWebInfResource(ClientServlet.class.getPackage(), "xa_xresXcomp1_servlet_vehicle_web.war.sun-web.xml", "sun-web.xml"); + + JavaArchive javaAchive = ShrinkWrap.create(JavaArchive.class, "xa_xresXcomp1_ee_txpropagate2_ejb.jar"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.util"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.whitebox"); + javaAchive.addPackages(true, "com.sun.ts.lib.harness"); + javaAchive.addClasses(ClientServlet.class, Client.class); + javaAchive.addClasses(Ejb1Test.class, Ejb1TestEJB.class); + javaAchive.addAsManifestResource(ClientServlet.class.getPackage(), "xa_xresXcomp1_ee_txpropagate2_ejb.xml", "ejb-jar.xml"); + javaAchive.addAsManifestResource(ClientServlet.class.getPackage(), "xa_xresXcomp1_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml", "sun-ejb-jar.xml"); + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_xresXcomp1_servlet_vehicle.ear"); + ear.addAsModule(servletVehicleArchive); + ear.addAsModule(javaAchive); + + return ear; + }; + + + + /* Run test in standalone mode */ + public static void main(String[] args) { + ClientServlet theTests = new ClientServlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + + /* Run tests */ + /* + * @testName: test14 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test14() throws Exception { + super.test14(); + } + + /* + * @testName: test15 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test15() throws Exception { + super.test15(); + } + + /* + * @testName: test16 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test16() throws Exception { + super.test16(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/build.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/build.xml deleted file mode 100644 index 32d6b9f51c..0000000000 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/build.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml index 77577ae1fa..3f75fa4f38 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml @@ -28,40 +28,40 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml index 3ad97aa04d..448d97fba9 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml @@ -28,40 +28,40 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml index 91dce258f3..a75949f4b7 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml @@ -28,40 +28,40 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml index 32e31c9713..9ef8ef84b7 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_ejb_vehicle_ejb.jar.sun-ejb-jar.xml @@ -32,40 +32,40 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_jsp_vehicle_web.war.sun-web.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_jsp_vehicle_web.war.sun-web.xml index abd9de86c5..d9e5464811 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_jsp_vehicle_web.war.sun-web.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_jsp_vehicle_web.war.sun-web.xml @@ -27,40 +27,40 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_servlet_vehicle_web.war.sun-web.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_servlet_vehicle_web.war.sun-web.xml index e63c3e8bb4..03e9c5e1a1 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_servlet_vehicle_web.war.sun-web.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp1/xa_xresXcomp1_servlet_vehicle_web.war.sun-web.xml @@ -27,40 +27,40 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/Client.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/Client.java index a30ef1a538..2631dd3995 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/Client.java +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/Client.java @@ -27,13 +27,21 @@ import java.util.Properties; import java.util.Vector; -import com.sun.ts.lib.harness.Status; +import org.jboss.arquillian.junit5.ArquillianExtension; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + import com.sun.ts.lib.harness.ServiceEETest; +import com.sun.ts.lib.harness.Status; import com.sun.ts.lib.util.TSNamingContext; import com.sun.ts.lib.util.TestUtil; import jakarta.transaction.UserTransaction; +@ExtendWith(ArquillianExtension.class) +@Tag("xa") +@Tag("platform") + public class Client extends ServiceEETest implements Serializable { private TSNamingContext nctx = null; diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/ClientEJB.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/ClientEJB.java new file mode 100644 index 0000000000..063a27c63a --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/ClientEJB.java @@ -0,0 +1,257 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)Client.java 1.3 03/05/16 + */ + +/* + * @(#)Client.java 1.20 02/07/19 + */ +package com.sun.ts.tests.xa.ee.xresXcomp2; + +import java.io.IOException; +import java.io.Serializable; +import java.net.URL; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-appclient") + +public class ClientEJB extends Client implements Serializable { + + + @TargetsContainer("tck-appclient") + @OverProtocol("appclient") + @Deployment(name = "ejb", testable = true) + public static EnterpriseArchive createDeploymentAppclient(@ArquillianResource TestArchiveProcessor archiveProcessor) + throws IOException { + JavaArchive ejbClient = ShrinkWrap.create(JavaArchive.class, "xa_xresXcomp2_ejb_vehicle_client.jar"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbClient.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbClient.addPackages(true, "com.sun.ts.lib.harness"); + ejbClient.addClasses(ClientEJB.class, Client.class); + URL resURL = ClientEJB.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "application-client.xml"); + } + + resURL = ClientEJB.class.getResource( + "/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ejb_vehicle_client.jar.sun-application-client.xml"); + if (resURL != null) { + ejbClient.addAsManifestResource(resURL, "sun-application-client.xml"); + } + + ejbClient.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), + "MANIFEST.MF"); + + JavaArchive ejbVehicle = ShrinkWrap.create(JavaArchive.class, "xa_xresXcomp2_ejb_vehicle_ejb.jar"); + ejbVehicle.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejbVehicle.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejbVehicle.addPackages(true, "com.sun.ts.lib.harness"); + ejbVehicle.addClasses(Ejb1Test.class, Ejb1TestEJB.class, Ejb2Test.class, Ejb2TestEJB.class); + ejbVehicle.addClasses(ClientEJB.class, Client.class); + resURL = ClientEJB.class.getResource("/com/sun/ts/tests/xa/ee/xresXcomp2/ejb_vehicle_ejb.xml"); + if (resURL != null) { + ejbVehicle.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + resURL = ClientEJB.class + .getResource("/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml"); + if (resURL != null) { + ejbVehicle.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "xa_xresXcomp2_ee_txpropagate1_ejb.jar"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle"); + ejb.addPackages(false, "com.sun.ts.tests.common.vehicle.ejb"); + ejb.addPackages(false, "com.sun.ts.tests.common.util"); + ejb.addPackages(false, "com.sun.ts.tests.common.whitebox"); + ejb.addPackages(true, "com.sun.ts.lib.harness"); + ejb.addClasses(Ejb1Test.class, Ejb1TestEJB.class); + ejb.addClasses(ClientEJB.class, Client.class); + + resURL = ClientEJB.class.getResource( + "/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "sun-ejb-jar.xml"); + } + + resURL = ClientEJB.class + .getResource("/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate1_ejb.xml"); + + if (resURL != null) { + ejb.addAsManifestResource(resURL, "ejb-jar.xml"); + } + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_xresXcomp2_ejb_vehicle.ear"); + ear.addAsModule(ejbClient); + ear.addAsModule(ejbVehicle); + ear.addAsModule(ejb); + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + ClientEJB theTests = new ClientEJB(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* Run tests */ + /* + * @testName: test17 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test17() throws Exception { + super.test17(); + } + + /* + * @testName: test18 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test18() throws Exception { + super.test18(); + } + + /* + * @testName: test19 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test19() throws Exception { + super.test19(); + } + + /* + * @testName: test20 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test20() throws Exception { + super.test20(); + } + + /* + * @testName: test21 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test21() throws Exception { + super.test21(); + } + + /* + * @testName: test22 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("ejb") + public void test22() throws Exception { + super.test22(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/ClientJSP.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/ClientJSP.java new file mode 100644 index 0000000000..0141b604f5 --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/ClientJSP.java @@ -0,0 +1,222 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)Client.java 1.3 03/05/16 + */ + +/* + * @(#)Client.java 1.20 02/07/19 + */ +package com.sun.ts.tests.xa.ee.xresXcomp2; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.ByteArrayAsset; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class ClientJSP extends Client implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "jsp", testable = true) + public static EnterpriseArchive createDeploymentJsp(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive jspVehicleArchive = ShrinkWrap.create(WebArchive.class, "xa_xresXcomp2_jsp_vehicle_web.war"); + jspVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + jspVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle.jsp"); + jspVehicleArchive.addPackages(true, "com.sun.ts.lib.harness"); + jspVehicleArchive.addClasses(ClientJSP.class, Client.class); + InputStream jspVehicle = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/jsp_vehicle.jsp"); + jspVehicleArchive.add(new ByteArrayAsset(jspVehicle), "jsp_vehicle.jsp"); + InputStream clientHtml = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("com/sun/ts/tests/common/vehicle/jsp/contentRoot/client.html"); + jspVehicleArchive.add(new ByteArrayAsset(clientHtml), "client.html"); + + jspVehicleArchive.addAsWebInfResource(ClientJSP.class.getPackage(), "jsp_vehicle_web.xml", "web.xml"); + jspVehicleArchive.addAsWebInfResource(ClientJSP.class.getPackage(), "xa_xresXcomp2_jsp_vehicle_web.war.sun-web.xml", "sun-web.xml"); + + JavaArchive javaAchive = ShrinkWrap.create(JavaArchive.class, "xa_xresXcomp2_ee_txpropagate3_ejb.jar"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.util"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.whitebox"); + javaAchive.addPackages(true, "com.sun.ts.lib.harness"); + javaAchive.addClasses(Ejb1Test.class, Ejb1TestEJB.class, Ejb2Test.class, Ejb2TestEJB.class); + javaAchive.addClasses(ClientJSP.class, Client.class); + javaAchive.addAsManifestResource(ClientJSP.class.getPackage(), "xa_xresXcomp2_ee_txpropagate3_ejb.xml", "ejb-jar.xml"); + javaAchive.addAsManifestResource(ClientJSP.class.getPackage(), "xa_xresXcomp2_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml", "sun-ejb-jar.xml"); + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_xresXcomp2_jsp_vehicle.ear"); + ear.addAsModule(jspVehicleArchive); + ear.addAsModule(javaAchive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + ClientJSP theTests = new ClientJSP(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* Run tests */ + /* + * @testName: test17 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test17() throws Exception { + super.test17(); + } + + /* + * @testName: test18 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test18() throws Exception { + super.test18(); + } + + /* + * @testName: test19 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test19() throws Exception { + super.test19(); + } + + /* + * @testName: test20 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test20() throws Exception { + super.test20(); + } + + /* + * @testName: test21 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test21() throws Exception { + super.test21(); + } + + /* + * @testName: test22 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("jsp") + public void test22() throws Exception { + super.test22(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/ClientServlet.java b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/ClientServlet.java new file mode 100644 index 0000000000..ae7c0a71ef --- /dev/null +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/ClientServlet.java @@ -0,0 +1,214 @@ +/* + * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +/* + * @(#)Client.java 1.3 03/05/16 + */ + +/* + * @(#)Client.java 1.20 02/07/19 + */ +package com.sun.ts.tests.xa.ee.xresXcomp2; + +import java.io.IOException; +import java.io.Serializable; + +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.container.test.api.OverProtocol; +import org.jboss.arquillian.container.test.api.TargetsContainer; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.EnterpriseArchive; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import com.sun.ts.lib.harness.Status; + +import tck.arquillian.porting.lib.spi.TestArchiveProcessor; +import tck.arquillian.protocol.common.TargetVehicle; + +@Tag("tck-javatest") + +public class ClientServlet extends Client implements Serializable { + + @TargetsContainer("tck-javatest") + @OverProtocol("javatest") + @Deployment(name = "servlet", testable = true) + public static EnterpriseArchive createDeploymentServlet(@ArquillianResource TestArchiveProcessor archiveProcessor) throws IOException { + WebArchive servletVehicleArchive = ShrinkWrap.create(WebArchive.class, "xa_xresXcomp2_servlet_vehicle_web.war"); + servletVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle"); + servletVehicleArchive.addPackages(false, "com.sun.ts.tests.common.vehicle.servlet"); + servletVehicleArchive.addPackages(true, "com.sun.ts.lib.harness"); + servletVehicleArchive.addClasses(ClientServlet.class, Client.class); + servletVehicleArchive.addAsWebInfResource(ClientServlet.class.getPackage(), "servlet_vehicle_web.xml", "web.xml"); + servletVehicleArchive.addAsWebInfResource(ClientServlet.class.getPackage(), "xa_xresXcomp2_servlet_vehicle_web.war.sun-web.xml", "sun-web.xml"); + System.out.println(servletVehicleArchive.toString(true)); + + JavaArchive javaAchive = ShrinkWrap.create(JavaArchive.class, "xa_xresXcomp2_ee_txpropagate2_ejb.jar"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.util"); + javaAchive.addPackages(false, "com.sun.ts.tests.common.whitebox"); + javaAchive.addPackages(true, "com.sun.ts.lib.harness"); + javaAchive.addClasses(Ejb1Test.class, Ejb1TestEJB.class, Ejb2Test.class, Ejb2TestEJB.class); + javaAchive.addClasses(ClientJSP.class, Client.class); + javaAchive.addAsManifestResource(ClientServlet.class.getPackage(), "xa_xresXcomp2_ee_txpropagate2_ejb.xml", "ejb-jar.xml"); + javaAchive.addAsManifestResource(ClientServlet.class.getPackage(), "xa_xresXcomp2_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml", "sun-ejb-jar.xml"); + + + EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "xa_xresXcomp2_servlet_vehicle.ear"); + ear.addAsModule(servletVehicleArchive); + ear.addAsModule(javaAchive); + + return ear; + }; + + + /* Run test in standalone mode */ + public static void main(String[] args) { + ClientServlet theTests = new ClientServlet(); + Status s = theTests.run(args, System.out, System.err); + s.exit(); + } + + /* Run tests */ + /* + * @testName: test17 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test17() throws Exception { + super.test17(); + } + + /* + * @testName: test18 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test18() throws Exception { + super.test18(); + } + + /* + * @testName: test19 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test19() throws Exception { + super.test19(); + } + + /* + * @testName: test20 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test20() throws Exception { + super.test20(); + } + + /* + * @testName: test21 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test21() throws Exception { + super.test21(); + } + + /* + * @testName: test22 + * + * @assertion_ids: JavaEE:SPEC:90; JavaEE:SPEC:92; JavaEE:SPEC:79; + * JavaEE:SPEC:76; JavaEE:SPEC:74; JavaEE:SPEC:70 + * + * @test_Strategy: Contact a Servlet, EJB or JSP. Obtain the UserTransaction + * interface. Perform global transactions using the Ejb1Test (deployed as + * TX_REQUIRED) to a single RDBMS table. + * + * Insert/Delete followed by a commit to a single table. + * + * Database Access is performed from Ejb1Test EJB. CLIENT: tx_start, EJB1: + * Insert, EJB2: Insert, tx_commit + */ + @Test + @TargetVehicle("servlet") + public void test22() throws Exception { + super.test22(); + } + +} diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/build.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/build.xml deleted file mode 100644 index 21817243c0..0000000000 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/build.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml index 7571cdc306..a3baec4c3b 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate1_ejb.jar.sun-ejb-jar.xml @@ -32,40 +32,40 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false @@ -96,16 +96,16 @@ eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml index 342cc638a4..bd8c6cd8d3 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate2_ejb.jar.sun-ejb-jar.xml @@ -32,40 +32,40 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false @@ -96,16 +96,16 @@ eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml index 821f10cfd4..f7826ded3f 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ee_txpropagate3_ejb.jar.sun-ejb-jar.xml @@ -28,16 +28,16 @@ eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false @@ -72,40 +72,40 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml index c6a7b3745d..26ce725dd5 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_ejb_vehicle_ejb.jar.sun-ejb-jar.xml @@ -36,40 +36,40 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 false diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_jsp_vehicle_web.war.sun-web.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_jsp_vehicle_web.war.sun-web.xml index 475116078a..16af9d71ec 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_jsp_vehicle_web.war.sun-web.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_jsp_vehicle_web.war.sun-web.xml @@ -31,40 +31,40 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1 diff --git a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_servlet_vehicle_web.war.sun-web.xml b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_servlet_vehicle_web.war.sun-web.xml index 9921191105..a2297f1fc9 100644 --- a/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_servlet_vehicle_web.war.sun-web.xml +++ b/xa/src/main/java/com/sun/ts/tests/xa/ee/xresXcomp2/xa_xresXcomp2_servlet_vehicle_web.war.sun-web.xml @@ -31,40 +31,40 @@ eis/whitebox-tx eis/whitebox-tx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-notx eis/whitebox-notx - rauser1 - rapassword1 + cts1 + cts1 eis/whitebox-xa eis/whitebox-xa - rauser1 - rapassword1 + cts1 + cts1 eis/JDBCwhitebox-tx eis/JDBCwhitebox-tx - user2 - password2 + cts1 + cts1 eis/JDBCwhitebox-xa eis/JDBCwhitebox-xa - user2 - password2 + cts1 + cts1