You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ji...@apache.org on 2022/05/09 11:22:41 UTC

[shardingsphere] branch master updated: Refactor StandalonePersistRepositoryFixture (#17489)

This is an automated email from the ASF dual-hosted git repository.

jianglongtao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new a07c43b2b96 Refactor StandalonePersistRepositoryFixture (#17489)
a07c43b2b96 is described below

commit a07c43b2b96b65d35d58f6a14aec619a77fb6cf9
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Mon May 9 19:22:36 2022 +0800

    Refactor StandalonePersistRepositoryFixture (#17489)
---
 .../manager/standalone/StandalonePersistRepositoryFactoryTest.java    | 4 ++--
 .../standalone/fixture/StandalonePersistRepositoryFixture.java        | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-standalone-mode/shardingsphere-standalone-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/standalone/StandalonePersistRepositoryFactoryTest.java b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-standalone-mode/shardingsphere-standalone-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/standalone/StandalonePersistRepositoryFactoryTest.java
index 6ce9e3779b4..4805c21d85e 100644
--- a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-standalone-mode/shardingsphere-standalone-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/standalone/StandalonePersistRepositoryFactoryTest.java
+++ b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-standalone-mode/shardingsphere-standalone-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/standalone/StandalonePersistRepositoryFactoryTest.java
@@ -41,12 +41,12 @@ public final class StandalonePersistRepositoryFactoryTest {
     @Test
     public void assertNewInstanceWithNoConfig() {
         StandalonePersistRepository standalonePersistRepository = StandalonePersistRepositoryFactory.newInstance(null);
-        assertThat(standalonePersistRepository.getType(), is("File"));
+        assertThat(standalonePersistRepository.getType(), is("FIXTURE"));
     }
     
     @Test
     public void assertNewInstanceWithConfig() {
-        PersistRepositoryConfiguration config = new StandalonePersistRepositoryConfiguration("File", new Properties());
+        PersistRepositoryConfiguration config = new StandalonePersistRepositoryConfiguration("FIXTURE", new Properties());
         StandalonePersistRepository standalonePersistRepository = StandalonePersistRepositoryFactory.newInstance(config);
         assertNotNull(standalonePersistRepository);
     }
diff --git a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-standalone-mode/shardingsphere-standalone-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/standalone/fixture/StandalonePersistRepositoryFixture.java b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-standalone-mode/shardingsphere-standalone-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/standalone/fixture/StandalonePersistRepositoryFixture.java
index 06d70734672..d5bd4b2e0a3 100644
--- a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-standalone-mode/shardingsphere-standalone-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/standalone/fixture/StandalonePersistRepositoryFixture.java
+++ b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-standalone-mode/shardingsphere-standalone-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/standalone/fixture/StandalonePersistRepositoryFixture.java
@@ -67,6 +67,6 @@ public final class StandalonePersistRepositoryFixture implements StandalonePersi
     
     @Override
     public String getType() {
-        return "File";
+        return "FIXTURE";
     }
 }