You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2024/10/23 10:58:38 UTC

(shardingsphere) branch master updated: Add more test cases on PlaceholderInventoryDataRecordPositionCreator (#33374)

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 1a8d8e39892 Add more test cases on PlaceholderInventoryDataRecordPositionCreator (#33374)
1a8d8e39892 is described below

commit 1a8d8e398928880de35e5e4aef0182d31953ec86
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Wed Oct 23 18:58:30 2024 +0800

    Add more test cases on PlaceholderInventoryDataRecordPositionCreator (#33374)
---
 ...lderInventoryDataRecordPositionCreatorTest.java | 36 ++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/kernel/data-pipeline/core/src/test/java/org/apache/shardingsphere/data/pipeline/core/ingest/dumper/inventory/position/type/PlaceholderInventoryDataRecordPositionCreatorTest.java b/kernel/data-pipeline/core/src/test/java/org/apache/shardingsphere/data/pipeline/core/ingest/dumper/inventory/position/type/PlaceholderInventoryDataRecordPositionCreatorTest.java
new file mode 100644
index 00000000000..68d970f4a1c
--- /dev/null
+++ b/kernel/data-pipeline/core/src/test/java/org/apache/shardingsphere/data/pipeline/core/ingest/dumper/inventory/position/type/PlaceholderInventoryDataRecordPositionCreatorTest.java
@@ -0,0 +1,36 @@
+/*
+ * 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.data.pipeline.core.ingest.dumper.inventory.position.type;
+
+import org.apache.shardingsphere.data.pipeline.core.ingest.dumper.inventory.InventoryDumperContext;
+import org.apache.shardingsphere.data.pipeline.core.ingest.position.type.placeholder.IngestPlaceholderPosition;
+import org.junit.jupiter.api.Test;
+
+import java.sql.ResultSet;
+
+import static org.hamcrest.CoreMatchers.instanceOf;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.mockito.Mockito.mock;
+
+class PlaceholderInventoryDataRecordPositionCreatorTest {
+    
+    @Test
+    void assertCreate() {
+        assertThat(new PlaceholderInventoryDataRecordPositionCreator().create(mock(InventoryDumperContext.class), mock(ResultSet.class)), instanceOf(IngestPlaceholderPosition.class));
+    }
+}