From 0fb5512ed5cc197e181a9adfc8389ec1e70334c5 Mon Sep 17 00:00:00 2001 From: sivasuriyankumarasamy Date: Sat, 28 Oct 2023 01:08:24 +0530 Subject: [PATCH] Adds Test case --- .../impl/InExpressionBinderTest.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/infra/binder/src/test/java/org/apache/shardingsphere/infra/binder/segment/expression/impl/InExpressionBinderTest.java b/infra/binder/src/test/java/org/apache/shardingsphere/infra/binder/segment/expression/impl/InExpressionBinderTest.java index e69de29bb2d1d..176343e3234c4 100644 --- a/infra/binder/src/test/java/org/apache/shardingsphere/infra/binder/segment/expression/impl/InExpressionBinderTest.java +++ b/infra/binder/src/test/java/org/apache/shardingsphere/infra/binder/segment/expression/impl/InExpressionBinderTest.java @@ -0,0 +1,28 @@ +package org.apache.shardingsphere.infra.binder.segment.expression.impl; + +import org.apache.shardingsphere.infra.binder.enums.SegmentType; +import org.apache.shardingsphere.infra.binder.segment.from.TableSegmentBinderContext; +import org.apache.shardingsphere.infra.binder.statement.SQLStatementBinderContext; +import org.apache.shardingsphere.sql.parser.sql.common.segment.dml.expr.InExpression; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; + +import java.util.LinkedHashMap; +import java.util.Map; + +import static org.mockito.Mockito.mock; + +public class InExpressionBinderTest { + + @InjectMocks + InExpressionBinder subject; + + @Test + void bindTest() { + Map tableBinderContexts = new LinkedHashMap<>(); + InExpression actual = subject.bind(mock(InExpression.class), mock(SegmentType.class), mock(SQLStatementBinderContext.class), tableBinderContexts); + + Assertions.assertInstanceOf(InExpression.class, actual); + } +}