未验证 提交 13d95c97 编写于 作者: Z zhaojun 提交者: GitHub

fix unit test for TableRuleTest. (#5032)

上级 0740acf6
......@@ -29,6 +29,7 @@ import org.apache.shardingsphere.spi.keygen.KeyGenerateAlgorithm;
import org.apache.shardingsphere.spi.type.TypedSPIRegistry;
import org.apache.shardingsphere.underlying.common.config.exception.ShardingSphereConfigurationException;
import org.apache.shardingsphere.underlying.common.rule.DataNode;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.Arrays;
......@@ -45,6 +46,11 @@ import static org.junit.Assert.assertTrue;
public final class TableRuleTest {
@BeforeClass
public static void beforeClass() {
ShardingSphereServiceLoader.register(KeyGenerateAlgorithm.class);
}
@Test
public void assertCreateMinTableRule() {
TableRuleConfiguration tableRuleConfig = new TableRuleConfiguration("LOGIC_TABLE");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册