diff --git a/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/transaction/cases/autocommit/AutoCommitTestCase.java b/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/transaction/cases/autocommit/AutoCommitTestCase.java deleted file mode 100644 index bebad98454689..0000000000000 --- a/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/transaction/cases/autocommit/AutoCommitTestCase.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.shardingsphere.test.e2e.transaction.cases.autocommit; - -import org.apache.shardingsphere.test.e2e.transaction.cases.base.BaseTransactionTestCase; - -import java.sql.Connection; -import java.sql.PreparedStatement; -import java.sql.SQLException; - -import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertTrue; - -/** - * Auto commit transaction integration test. - */ -public abstract class AutoCommitTestCase extends BaseTransactionTestCase { - - protected AutoCommitTestCase(final TransactionTestCaseParameter testCaseParam) { - super(testCaseParam); - } - - protected void assertAutoCommitWithStatement() throws SQLException { - try (Connection connection = getDataSource().getConnection()) { - connection.setAutoCommit(false); - executeWithLog(connection, "DELETE FROM account"); - assertFalse(connection.getAutoCommit()); - executeWithLog(connection, "INSERT INTO account VALUES (1, 1, 1)"); - connection.commit(); - assertFalse(connection.getAutoCommit()); - executeUpdateWithLog(connection, "INSERT INTO account VALUES (2, 2, 2)"); - connection.commit(); - assertFalse(connection.getAutoCommit()); - executeWithLog(connection, "INSERT INTO account VALUES (3, 3, 3)"); - connection.rollback(); - assertFalse(connection.getAutoCommit()); - assertAccountRowCount(connection, 2); - connection.setAutoCommit(true); - assertTrue(connection.getAutoCommit()); - executeWithLog(connection, "INSERT INTO account VALUES (4, 4, 4)"); - assertAccountRowCount(connection, 3); - } - } - - protected void assertAutoCommitWithPrepareStatement() throws SQLException { - try (Connection connection = getDataSource().getConnection()) { - connection.setAutoCommit(false); - executeWithLog(connection, "DELETE FROM account"); - assertFalse(connection.getAutoCommit()); - PreparedStatement prepareStatement = connection.prepareStatement("INSERT INTO account VALUES(?, ?, ?)"); - setPrepareStatementParameters(prepareStatement, 1); - prepareStatement.execute(); - connection.commit(); - assertFalse(connection.getAutoCommit()); - setPrepareStatementParameters(prepareStatement, 2); - prepareStatement.executeUpdate(); - connection.commit(); - assertFalse(connection.getAutoCommit()); - setPrepareStatementParameters(prepareStatement, 3); - prepareStatement.execute(); - connection.rollback(); - assertFalse(connection.getAutoCommit()); - assertAccountRowCount(connection, 2); - connection.setAutoCommit(true); - assertTrue(connection.getAutoCommit()); - setPrepareStatementParameters(prepareStatement, 4); - prepareStatement.execute(); - assertAccountRowCount(connection, 3); - } - } - - private void setPrepareStatementParameters(final PreparedStatement prepareStatement, final int value) throws SQLException { - prepareStatement.setInt(1, value); - prepareStatement.setInt(2, value); - prepareStatement.setInt(3, value); - } -} diff --git a/test/it/optimizer/src/test/resources/converter/merge.xml b/test/it/optimizer/src/test/resources/converter/merge.xml deleted file mode 100644 index d4c3291f09bba..0000000000000 --- a/test/it/optimizer/src/test/resources/converter/merge.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - diff --git a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/column/OuterJoinExpressionAssert.java b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/column/OuterJoinExpressionAssert.java deleted file mode 100644 index 738487de9d9ee..0000000000000 --- a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/column/OuterJoinExpressionAssert.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.shardingsphere.test.it.sql.parser.internal.asserts.segment.column; - -import lombok.AccessLevel; -import lombok.NoArgsConstructor; -import org.apache.shardingsphere.sql.parser.sql.dialect.segment.oracle.join.OuterJoinExpression; -import org.apache.shardingsphere.test.it.sql.parser.internal.asserts.SQLCaseAssertContext; -import org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.impl.expr.ExpectedOuterJoinExpression; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Outer join expression assert. - */ - -@NoArgsConstructor(access = AccessLevel.PRIVATE) -public final class OuterJoinExpressionAssert { - - /** - * Assert actual outer join expression is correct with expected outer join expression. - * - * @param assertContext assert context - * @param actual actual outer join expression - * @param expected expected outer join expression - */ - - public static void assertIs(final SQLCaseAssertContext assertContext, final OuterJoinExpression actual, final ExpectedOuterJoinExpression expected) { - ColumnAssert.assertIs(assertContext, actual.getColumnName(), expected.getColumn()); - assertEquals(actual.getJoinOperator(), expected.getJoinOperator()); - } -} diff --git a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/segment/impl/expr/ExpectedOuterJoinExpression.java b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/segment/impl/expr/ExpectedOuterJoinExpression.java deleted file mode 100644 index 6e94e8e0d6963..0000000000000 --- a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/segment/impl/expr/ExpectedOuterJoinExpression.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.impl.expr; - -import lombok.Getter; -import lombok.Setter; -import org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.AbstractExpectedSQLSegment; -import org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.impl.column.ExpectedColumn; - -import javax.xml.bind.annotation.XmlElement; - -/** - * Expected outer join expression. - */ -@Getter -@Setter -public final class ExpectedOuterJoinExpression extends AbstractExpectedSQLSegment implements ExpectedExpressionSegment { - - @XmlElement - private ExpectedColumn column; - - @XmlElement(name = "join-operator") - private String joinOperator; - -} diff --git a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ddl/CreateJavaStatementTestCase.java b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ddl/CreateJavaStatementTestCase.java deleted file mode 100644 index 08ab8adb99eea..0000000000000 --- a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ddl/CreateJavaStatementTestCase.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ddl; - -import org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.SQLParserTestCase; - -/** - * Create java statement test case. - */ -public final class CreateJavaStatementTestCase extends SQLParserTestCase { -} diff --git a/test/it/parser/src/main/resources/case/ddl/create-java.xml b/test/it/parser/src/main/resources/case/ddl/create-java.xml deleted file mode 100644 index d583d7d659d57..0000000000000 --- a/test/it/parser/src/main/resources/case/ddl/create-java.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - diff --git a/test/it/parser/src/main/resources/sql/supported/ddl/create-java.xml b/test/it/parser/src/main/resources/sql/supported/ddl/create-java.xml deleted file mode 100644 index 81fda18cf7c40..0000000000000 --- a/test/it/parser/src/main/resources/sql/supported/ddl/create-java.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - -