This is an automated email from the ASF dual-hosted git repository.
yx9o 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 0e01867899f Add test case for WorkerIdNodeTest (#16988)
0e01867899f is described below
commit 0e01867899fd534f9bf61046b80ba818d0b826d7
Author: weihubeats <[email protected]>
AuthorDate: Fri Apr 22 16:19:28 2022 +0800
Add test case for WorkerIdNodeTest (#16988)
* Add test case for WorkerIdNodeTest
* Add test case for WorkerIdNodeTest
* Add test case for WorkerIdNodeTest
* Add test case for WorkerIdNodeTest
* Add test case for WorkerIdNodeTest
---
.../registry/workerid/node/WorkerIdNodeTest.java | 31 ++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git
a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/registry/workerid/node/WorkerIdNodeTest.java
b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/registry/workerid/node/WorkerIdNodeTest.java
new file mode 100644
index 00000000000..b0fcb29d0a2
--- /dev/null
+++
b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/registry/workerid/node/WorkerIdNodeTest.java
@@ -0,0 +1,31 @@
+/*
+ * 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.mode.manager.cluster.coordinator.registry.workerid.node;
+
+import org.junit.Test;
+
+import static org.hamcrest.CoreMatchers.is;
+import static org.junit.Assert.assertThat;
+
+public final class WorkerIdNodeTest {
+
+ @Test
+ public void assertGetWorkerIdGeneratorPath() {
+ assertThat(WorkerIdNode.getWorkerIdGeneratorPath("instanceId"),
is("/worker_id/instanceId"));
+ }
+}