提交 73880b64 编写于 作者: T tristaZero

add assertGetKeyGeneratorClassNameWithUUID()

上级 2edf02b5
......@@ -44,4 +44,18 @@ public class YamlKeyGeneratorConfigurationTest {
YamlKeyGeneratorConfiguration keyGeneratorConfiguration = new YamlKeyGeneratorConfiguration();
assertThat(keyGeneratorConfiguration.getKeyGenerator().getClass().getName(), is(SnowflakeKeyGenerator.class.getName()));
}
@Test(expected = IllegalArgumentException.class)
public void assertGetKeyGeneratorClassNameWithLeaf() {
YamlKeyGeneratorConfiguration keyGeneratorConfiguration = new YamlKeyGeneratorConfiguration();
keyGeneratorConfiguration.setType("LEAF");
keyGeneratorConfiguration.getKeyGenerator();
}
@Test(expected = IllegalArgumentException.class)
public void assertGetKeyGeneratorClassNameWithUUID() {
YamlKeyGeneratorConfiguration keyGeneratorConfiguration = new YamlKeyGeneratorConfiguration();
keyGeneratorConfiguration.setType("UUID");
keyGeneratorConfiguration.getKeyGenerator();
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册