@@ -2730,7 +2730,7 @@ public void setup() throws Exception {
2730
2730
* @throws Exception
2731
2731
*/
2732
2732
@ Test
2733
- public void testExecuteUpdateInsertAndGenKeys () throws Exception {
2733
+ public void testExecuteUpdateInsertAndGenKeys () {
2734
2734
try (Connection con = getConnection ()) {
2735
2735
try (Statement stmt = con .createStatement ()) {
2736
2736
String sql = "INSERT INTO " + tableName + " (NAME) VALUES('test')" ;
@@ -2755,7 +2755,7 @@ public void testExecuteUpdateInsertAndGenKeys() throws Exception {
2755
2755
* @throws Exception
2756
2756
*/
2757
2757
@ Test
2758
- public void testExecuteInsertAndGenKeys () throws Exception {
2758
+ public void testExecuteInsertAndGenKeys () {
2759
2759
try (Connection con = getConnection ()) {
2760
2760
try (Statement stmt = con .createStatement ()) {
2761
2761
String sql = "INSERT INTO " + tableName + " (NAME) VALUES('test')" ;
@@ -2780,7 +2780,7 @@ public void testExecuteInsertAndGenKeys() throws Exception {
2780
2780
* @throws Exception
2781
2781
*/
2782
2782
@ Test
2783
- public void testExecuteInsertAndSelect () throws Exception {
2783
+ public void testExecuteInsertAndSelect () {
2784
2784
2785
2785
try (Connection con = getConnection ()) {
2786
2786
try (Statement stmt = con .createStatement ()) {
@@ -2818,7 +2818,7 @@ public void testExecuteInsertAndSelect() throws Exception {
2818
2818
* @throws Exception
2819
2819
*/
2820
2820
@ Test
2821
- public void testExecuteMergeAndSelect () throws Exception {
2821
+ public void testExecuteMergeAndSelect () {
2822
2822
try (Connection con = getConnection ()) {
2823
2823
try (Statement stmt = con .createStatement ()) {
2824
2824
boolean retval = stmt .execute ("MERGE INTO " + tableName + " AS target USING (VALUES ('test1')) AS source (name) ON target.name = source.name WHEN NOT MATCHED THEN INSERT (name) VALUES ('test1'); SELECT NAME FROM " + tableName + " WHERE ID = 1" );
@@ -2855,7 +2855,7 @@ public void testExecuteMergeAndSelect() throws Exception {
2855
2855
* @throws Exception
2856
2856
*/
2857
2857
@ Test
2858
- public void testExecuteInsertManyRowsAndSelect () throws Exception {
2858
+ public void testExecuteInsertManyRowsAndSelect () {
2859
2859
try (Connection con = getConnection ()) {
2860
2860
try (Statement stmt = con .createStatement ()) {
2861
2861
boolean retval = stmt .execute ("INSERT INTO " + tableName + " SELECT NAME FROM " + tableName + " SELECT NAME FROM " + tableName + " WHERE ID = 1" );
@@ -2892,7 +2892,7 @@ public void testExecuteInsertManyRowsAndSelect() throws Exception {
2892
2892
* @throws Exception
2893
2893
*/
2894
2894
@ Test
2895
- public void testExecuteTwoInsertsRowsAndSelect () throws Exception {
2895
+ public void testExecuteTwoInsertsRowsAndSelect () {
2896
2896
try (Connection con = getConnection ()) {
2897
2897
try (Statement stmt = con .createStatement ()) {
2898
2898
boolean retval = stmt .execute ("INSERT INTO " + tableName + " (NAME) VALUES('test') INSERT INTO " + tableName + " (NAME) VALUES('test') SELECT NAME from " + tableName + " WHERE ID = 1" );
@@ -2930,7 +2930,7 @@ public void testExecuteTwoInsertsRowsAndSelect() throws Exception {
2930
2930
* @throws Exception
2931
2931
*/
2932
2932
@ Test
2933
- public void testExecuteUpdAndSelect () throws Exception {
2933
+ public void testExecuteUpdAndSelect () {
2934
2934
try (Connection con = getConnection ()) {
2935
2935
try (Statement stmt = con .createStatement ()) {
2936
2936
boolean retval = stmt .execute ("UPDATE " + tableName +" SET NAME = 'test' SELECT NAME FROM " + tableName + " WHERE ID = 1" );
@@ -2966,7 +2966,7 @@ public void testExecuteUpdAndSelect() throws Exception {
2966
2966
* @throws Exception
2967
2967
*/
2968
2968
@ Test
2969
- public void testExecuteDelAndSelect () throws Exception {
2969
+ public void testExecuteDelAndSelect () {
2970
2970
try (Connection con = getConnection ()) {
2971
2971
try (Statement stmt = con .createStatement ()) {
2972
2972
boolean retval = stmt .execute ("DELETE FROM " + tableName +" WHERE ID = 1 SELECT NAME FROM " + tableName + " WHERE ID = 2" );
@@ -2997,15 +2997,13 @@ public void testExecuteDelAndSelect() throws Exception {
2997
2997
}
2998
2998
2999
2999
@ AfterEach
3000
- public void terminate () throws Exception {
3000
+ public void terminate () {
3001
3001
try (Connection con = getConnection (); Statement stmt = con .createStatement ()) {
3002
- try {
3003
- TestUtils .dropTriggerIfExists (triggerName , stmt );
3004
- TestUtils .dropTableIfExists (idTableName , stmt );
3005
- TestUtils .dropTableIfExists (tableName , stmt );
3006
- } catch (SQLException e ) {
3007
- fail (TestResource .getResource ("R_unexpectedException" ) + e .getMessage ());
3008
- }
3002
+ TestUtils .dropTriggerIfExists (triggerName , stmt );
3003
+ TestUtils .dropTableIfExists (idTableName , stmt );
3004
+ TestUtils .dropTableIfExists (tableName , stmt );
3005
+ } catch (SQLException e ) {
3006
+ fail (TestResource .getResource ("R_unexpectedException" ) + e .getMessage ());
3009
3007
}
3010
3008
}
3011
3009
}
0 commit comments