From 5e390f2d90cd7d85c87284f8278ef244a6b2f469 Mon Sep 17 00:00:00 2001 From: Rajeshwar Rao Date: Sun, 22 Oct 2023 19:18:27 +0530 Subject: [PATCH] Adding Unit test for NewGlobalNode#getGlobalRuleVersionNode (#28831) * Adding Unit test for NewGlobalNode#getGlobalRuleVersionNode * Fixing spotless violations introduced after adding Unit test --- .../metadata/persist/node/NewGlobalNodeTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/metadata/core/src/test/java/org/apache/shardingsphere/metadata/persist/node/NewGlobalNodeTest.java b/kernel/metadata/core/src/test/java/org/apache/shardingsphere/metadata/persist/node/NewGlobalNodeTest.java index c34837d5b70eb..0426017c6e34e 100644 --- a/kernel/metadata/core/src/test/java/org/apache/shardingsphere/metadata/persist/node/NewGlobalNodeTest.java +++ b/kernel/metadata/core/src/test/java/org/apache/shardingsphere/metadata/persist/node/NewGlobalNodeTest.java @@ -49,4 +49,9 @@ void assertGetGlobalRuleActiveVersionNode() { void assertGetGlobalRuleVersionsNode() { assertThat(NewGlobalNode.getGlobalRuleVersionsNode("transaction"), is("/rules/transaction/versions")); } + + @Test + void assertGetGlobalRuleVersionNode() { + assertThat(NewGlobalNode.getGlobalRuleVersionNode("transaction", "0"), is("/rules/transaction/versions/0")); + } }