From f65b6160b08c924a8570cff95818c6e9000dc8b4 Mon Sep 17 00:00:00 2001 From: zhangliang Date: Sat, 16 Nov 2024 11:17:17 +0800 Subject: [PATCH] Add test cases on ProjectionsToken --- .../token/pojo/ProjectionsTokenTest.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/rewrite/token/pojo/ProjectionsTokenTest.java b/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/rewrite/token/pojo/ProjectionsTokenTest.java index b7d5b9d2226cc..9a918ebee5519 100644 --- a/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/rewrite/token/pojo/ProjectionsTokenTest.java +++ b/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/rewrite/token/pojo/ProjectionsTokenTest.java @@ -31,15 +31,15 @@ class ProjectionsTokenTest { - @Test - void assertGetStopIndex() { - assertThat(new ProjectionsToken(10, Collections.emptyMap()).getStopIndex(), is(10)); - } + @Test + void assertGetStopIndex() { + assertThat(new ProjectionsToken(10, Collections.emptyMap()).getStopIndex(), is(10)); + } - @Test - void assertToStringWithoutRouteUnit() { - Map> projections = new HashMap<>(1, 1); - RouteUnit routeUnit = new RouteUnit(new RouteMapper("foo_ds", "foo_ds_0"), Collections.singleton(new RouteMapper("foo_tbl", "foo_tbl_1"))); - assertThat(new ProjectionsToken(0, Collections.singletonMap(routeUnit, Collections.singleton("foo_col"))).toString(routeUnit), is(", foo_col")); - } + @Test + void assertToStringWithoutRouteUnit() { + Map> projections = new HashMap<>(1, 1); + RouteUnit routeUnit = new RouteUnit(new RouteMapper("foo_ds", "foo_ds_0"), Collections.singleton(new RouteMapper("foo_tbl", "foo_tbl_1"))); + assertThat(new ProjectionsToken(0, Collections.singletonMap(routeUnit, Collections.singleton("foo_col"))).toString(routeUnit), is(", foo_col")); + } }