提交 22b45cb1 编写于 作者: T tristaZero

change import

上级 347cf7e6
......@@ -31,7 +31,7 @@ import lombok.RequiredArgsConstructor;
public enum KeyGeneratorType {
SNOWFLAKE("io.shardingsphere.core.keygen.generator.SnowflakeKeyGenerator"),
UUID("io.shardingsphere.core.keygen.UUIDKeyGenerator"),
UUID("io.shardingsphere.core.keygen.generator.UUIDKeyGenerator"),
LEAF("");
private final String keyGeneratorClassName;
......
......@@ -15,9 +15,8 @@
* </p>
*/
package io.shardingsphere.core.keygen;
package io.shardingsphere.core.keygen.generator;
import io.shardingsphere.core.keygen.generator.KeyGenerator;
import lombok.Getter;
import lombok.Setter;
......
......@@ -29,7 +29,7 @@ public class KeyGeneratorTypeTest {
public void assertGetKeyGeneratorType() {
assertThat(KeyGeneratorType.getKeyGeneratorType("io.shardingsphere.core.keygen.generator.SnowflakeKeyGenerator"),
is(Optional.of(KeyGeneratorType.SNOWFLAKE)));
assertThat(KeyGeneratorType.getKeyGeneratorType("io.shardingsphere.core.keygen.UUIDKeyGenerator"),
assertThat(KeyGeneratorType.getKeyGeneratorType("io.shardingsphere.core.keygen.generator.UUIDKeyGenerator"),
is(Optional.of(KeyGeneratorType.UUID)));
assertThat(KeyGeneratorType.getKeyGeneratorType(""),
is(Optional.of(KeyGeneratorType.LEAF)));
......
......@@ -17,6 +17,7 @@
package io.shardingsphere.core.keygen;
import io.shardingsphere.core.keygen.generator.UUIDKeyGenerator;
import org.junit.Test;
import java.util.Properties;
......
......@@ -19,7 +19,7 @@ package io.shardingsphere.core.yaml.sharding;
import io.shardingsphere.core.exception.ShardingConfigurationException;
import io.shardingsphere.core.keygen.generator.SnowflakeKeyGenerator;
import io.shardingsphere.core.keygen.UUIDKeyGenerator;
import io.shardingsphere.core.keygen.generator.UUIDKeyGenerator;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册