Skip to content

Commit

Permalink
Adds Test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sivasuriyankumarasamy committed Oct 27, 2023
1 parent 4002148 commit 0fb5512
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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<String, TableSegmentBinderContext> tableBinderContexts = new LinkedHashMap<>();
InExpression actual = subject.bind(mock(InExpression.class), mock(SegmentType.class), mock(SQLStatementBinderContext.class), tableBinderContexts);

Assertions.assertInstanceOf(InExpression.class, actual);
}
}

0 comments on commit 0fb5512

Please sign in to comment.