提交 334722a9 编写于 作者: T tristaZero

add assertGetKeyGeneratorWithClassName()

上级 8f6b7be3
......@@ -17,9 +17,13 @@
package io.shardingsphere.core.yaml.sharding;
import io.shardingsphere.core.keygen.SnowflakeKeyGenerator;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class YamlKeyGeneratorConfigurationTest {
@Before
......@@ -27,38 +31,9 @@ public class YamlKeyGeneratorConfigurationTest {
}
@Test
public void testGetKeyGenerator() {
}
@Test
public void testGetColumn() {
}
@Test
public void testGetType() {
}
@Test
public void testGetClassName() {
}
@Test
public void testGetProps() {
}
@Test
public void testSetColumn() {
}
@Test
public void testSetType() {
}
@Test
public void testSetClassName() {
}
@Test
public void testSetProps() {
public void assertGetKeyGeneratorWithClassName() {
YamlKeyGeneratorConfiguration keyGeneratorConfiguration = new YamlKeyGeneratorConfiguration();
keyGeneratorConfiguration.setClassName("io.shardingsphere.core.keygen.SnowflakeKeyGenerator");
assertThat(keyGeneratorConfiguration.getKeyGenerator().getClass().getName(), is(SnowflakeKeyGenerator.class.getName()));
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册