You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/12/03 07:04:33 UTC

[shardingsphere] branch master updated: fix test with spi loader (#8490)

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 7d71335  fix test with spi loader (#8490)
7d71335 is described below

commit 7d71335808333c56f8edcfcfc76cd05e2549652f
Author: xiaoyu <54...@qq.com>
AuthorDate: Thu Dec 3 15:04:17 2020 +0800

    fix test with spi loader (#8490)
---
 .../generator/impl/ConditionValueInOperatorGeneratorTest.java     | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-route/src/test/java/org/apache/shardingsphere/sharding/route/engine/condition/generator/impl/ConditionValueInOperatorGeneratorTest.java b/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-route/src/test/java/org/apache/shardingsphere/sharding/route/engine/condition/generator/impl/ConditionValueInOperatorGeneratorTest.java
index f514dd3..50ecb26 100644
--- a/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-route/src/test/java/org/apache/shardingsphere/sharding/route/engine/condition/generator/impl/ConditionValueInOperatorGeneratorTest.java
+++ b/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-route/src/test/java/org/apache/shardingsphere/sharding/route/engine/condition/generator/impl/ConditionValueInOperatorGeneratorTest.java
@@ -17,12 +17,15 @@
 
 package org.apache.shardingsphere.sharding.route.engine.condition.generator.impl;
 
+import org.apache.shardingsphere.infra.datetime.DatetimeService;
+import org.apache.shardingsphere.infra.spi.ShardingSphereServiceLoader;
 import org.apache.shardingsphere.sharding.route.engine.condition.Column;
 import org.apache.shardingsphere.sharding.route.engine.condition.value.ListShardingConditionValue;
 import org.apache.shardingsphere.sharding.route.engine.condition.value.ShardingConditionValue;
 import org.apache.shardingsphere.sql.parser.sql.common.segment.dml.expr.InExpression;
 import org.apache.shardingsphere.sql.parser.sql.common.segment.dml.expr.ListExpression;
 import org.apache.shardingsphere.sql.parser.sql.common.segment.dml.expr.complex.CommonExpressionSegment;
+import org.junit.Before;
 import org.junit.Test;
 
 import java.util.Date;
@@ -39,6 +42,11 @@ public final class ConditionValueInOperatorGeneratorTest {
     
     private final Column column = new Column("id", "tbl");
     
+    @Before
+    public void setup(){
+        ShardingSphereServiceLoader.register(DatetimeService.class);
+    }
+    
     @Test
     public void assertNowExpression() {
         ListExpression listExpression = new ListExpression(0, 0);