提交 06e20a43 编写于 作者: T tristaZero

modify assertGetKeyGeneratorClassNameWithUUID()

上级 c8474c6a
......@@ -19,6 +19,7 @@ package io.shardingsphere.core.yaml.sharding;
import io.shardingsphere.core.exception.ShardingConfigurationException;
import io.shardingsphere.core.keygen.SnowflakeKeyGenerator;
import io.shardingsphere.core.keygen.UUIDKeyGenerator;
import org.junit.Test;
import static org.hamcrest.Matchers.is;
......@@ -53,11 +54,11 @@ public class YamlKeyGeneratorConfigurationTest {
keyGeneratorConfiguration.getKeyGenerator();
}
@Test(expected = IllegalArgumentException.class)
@Test
public void assertGetKeyGeneratorClassNameWithUUID() {
YamlKeyGeneratorConfiguration keyGeneratorConfiguration = new YamlKeyGeneratorConfiguration();
keyGeneratorConfiguration.setType("UUID");
keyGeneratorConfiguration.getKeyGenerator();
assertThat(keyGeneratorConfiguration.getKeyGenerator().getClass().getName(), is(UUIDKeyGenerator.class.getName()));
}
@Test(expected = ShardingConfigurationException.class)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册