You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by me...@apache.org on 2021/08/14 08:40:02 UTC

[shardingsphere] branch master updated: Issue10973 (#11803)

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

menghaoran 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 e00c228  Issue10973 (#11803)
e00c228 is described below

commit e00c2284fadd4b517a6fe70092c51f5522cc7711
Author: fwhdzh <43...@users.noreply.github.com>
AuthorDate: Sat Aug 14 16:39:27 2021 +0800

    Issue10973 (#11803)
    
    * Migrate YAML Configuration change history from
    4.1.2.Configuration Manual->YAML Configuration->Change History to
    7.2.API Change History->7.2.1.ShardingSphere-JDBC->YAML Configuration;
    
    * Add content of change history
    
    * add unit test for DataSourceNameAwareFactory.
    
    * add unit test for DataSourceNameAwareFactory.(modify code style)
    
    * modify code style.
    
    * remove useless empty line.
---
 .../aware/DataSourceNameAwareFactoryTest.java      | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/aware/DataSourceNameAwareFactoryTest.java b/shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/aware/DataSourceNameAwareFactoryTest.java
new file mode 100644
index 0000000..6143820
--- /dev/null
+++ b/shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/aware/DataSourceNameAwareFactoryTest.java
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.shardingsphere.infra.aware;
+
+import org.junit.Test;
+
+import static org.hamcrest.CoreMatchers.is;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertThat;
+
+public final class DataSourceNameAwareFactoryTest {
+
+    @Test
+    public void assertGetInstance() {
+        DataSourceNameAwareFactory instance = DataSourceNameAwareFactory.getInstance();
+        assertNotNull(instance);
+        assertThat(DataSourceNameAwareFactory.getInstance(), is(instance));
+    }
+}