This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 90bac5527f1 Add test execute process reporter factory (#16833)
90bac5527f1 is described below
commit 90bac5527f1bec5d7fd99d8c6e4d17ee31edbf91
Author: weihubeats <[email protected]>
AuthorDate: Fri Apr 15 11:23:30 2022 +0800
Add test execute process reporter factory (#16833)
* Add test execute process reporter factory
---
.../spi/ExecuteProcessReporterFactoryTest.java | 35 ++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git
a/shardingsphere-infra/shardingsphere-infra-executor/src/test/java/org/apache/shardingsphere/infra/executor/sql/process/spi/ExecuteProcessReporterFactoryTest.java
b/shardingsphere-infra/shardingsphere-infra-executor/src/test/java/org/apache/shardingsphere/infra/executor/sql/process/spi/ExecuteProcessReporterFactoryTest.java
new file mode 100644
index 00000000000..30794b14423
--- /dev/null
+++
b/shardingsphere-infra/shardingsphere-infra-executor/src/test/java/org/apache/shardingsphere/infra/executor/sql/process/spi/ExecuteProcessReporterFactoryTest.java
@@ -0,0 +1,35 @@
+/*
+ * 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.infra.executor.sql.process.spi;
+
+import
org.apache.shardingsphere.infra.executor.sql.process.fixture.ExecuteProcessReporterFixture;
+import org.junit.Test;
+
+import java.util.Optional;
+
+import static org.junit.Assert.assertTrue;
+
+public final class ExecuteProcessReporterFactoryTest {
+
+ @Test
+ public void assertNewInstance() {
+ Optional<ExecuteProcessReporter> executeProcessReporter =
ExecuteProcessReporterFactory.newInstance();
+ assertTrue(executeProcessReporter.isPresent());
+ assertTrue(executeProcessReporter.get() instanceof
ExecuteProcessReporterFixture);
+ }
+}