Skip to content

Commit

Permalink
Add test cases on ProjectionsToken
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Nov 16, 2024
1 parent f65b616 commit 037ab4e
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
import org.apache.shardingsphere.infra.route.context.RouteUnit;
import org.junit.jupiter.api.Test;

import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
Expand All @@ -38,7 +35,6 @@ void assertGetStopIndex() {

@Test
void assertToStringWithoutRouteUnit() {
Map<RouteUnit, Collection<String>> 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"));
}
Expand Down

0 comments on commit 037ab4e

Please sign in to comment.