From af28ed9c2a0a3ed1772a7a7c6e9a1221adc8f3ea Mon Sep 17 00:00:00 2001 From: Rajeshwar Rao Date: Sun, 22 Oct 2023 18:00:33 +0530 Subject: [PATCH] Adding Unit Test for NewDatabaseMetaDataNode#getDataSourceNodeVersionsNode (#28833) * Adding Unit Test for NewDatabaseMetaDataNode#getDataSourceNodeVersionsNode * Fixing spotless violations introducd with newly added test --- .../metadata/persist/node/NewDatabaseMetaDataNodeTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/metadata/core/src/test/java/org/apache/shardingsphere/metadata/persist/node/NewDatabaseMetaDataNodeTest.java b/kernel/metadata/core/src/test/java/org/apache/shardingsphere/metadata/persist/node/NewDatabaseMetaDataNodeTest.java index f8b24aac7646f..4ea5203b9731e 100644 --- a/kernel/metadata/core/src/test/java/org/apache/shardingsphere/metadata/persist/node/NewDatabaseMetaDataNodeTest.java +++ b/kernel/metadata/core/src/test/java/org/apache/shardingsphere/metadata/persist/node/NewDatabaseMetaDataNodeTest.java @@ -187,4 +187,9 @@ void assertGetViewVersionNode() { void assertGetViewNode() { assertThat(NewDatabaseMetaDataNode.getViewNode("foo_db", "foo_schema", "foo_view"), is("/metadata/foo_db/schemas/foo_schema/views/foo_view")); } + + @Test + void assertGetDataSourceNodeVersionsNode() { + assertThat(NewDatabaseMetaDataNode.getDataSourceNodeVersionsNode("foo_db", "foo_ds"), is("/metadata/foo_db/data_sources/nodes/foo_ds/versions")); + } }