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

machen 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 224b5666724 Remove pojo test case (#24959)
224b5666724 is described below

commit 224b5666724500fdd277df6a2f2586ab67b40e6d
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Apr 2 23:16:10 2023 +0800

    Remove pojo test case (#24959)
---
 ...teSplittingDataSourceRuleConfigurationTest.java | 48 ----------------------
 1 file changed, 48 deletions(-)

diff --git 
a/features/readwrite-splitting/core/src/test/java/org/apache/shardingsphere/readwritesplitting/rule/ReadWriteSplittingDataSourceRuleConfigurationTest.java
 
b/features/readwrite-splitting/core/src/test/java/org/apache/shardingsphere/readwritesplitting/rule/ReadWriteSplittingDataSourceRuleConfigurationTest.java
deleted file mode 100644
index 03f0202c9d9..00000000000
--- 
a/features/readwrite-splitting/core/src/test/java/org/apache/shardingsphere/readwritesplitting/rule/ReadWriteSplittingDataSourceRuleConfigurationTest.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * 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.readwritesplitting.rule;
-
-import 
org.apache.shardingsphere.readwritesplitting.api.rule.ReadwriteSplittingDataSourceRuleConfiguration;
-import 
org.apache.shardingsphere.readwritesplitting.api.strategy.StaticReadwriteSplittingStrategyConfiguration;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-
-import java.util.Arrays;
-
-import static org.hamcrest.CoreMatchers.is;
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-
-class ReadWriteSplittingDataSourceRuleConfigurationTest {
-    
-    private ReadwriteSplittingDataSourceRuleConfiguration 
readwriteSplittingDataSourceRuleConfig;
-    
-    @BeforeEach
-    void setup() {
-        readwriteSplittingDataSourceRuleConfig = new 
ReadwriteSplittingDataSourceRuleConfiguration("ds",
-                new StaticReadwriteSplittingStrategyConfiguration("write_ds", 
Arrays.asList("read_ds_0", "read_ds_1")), null, "");
-    }
-    
-    @Test
-    void assertStaticReadWriteSplittingConfig() {
-        
assertNotNull(readwriteSplittingDataSourceRuleConfig.getStaticStrategy());
-        StaticReadwriteSplittingStrategyConfiguration actual = 
readwriteSplittingDataSourceRuleConfig.getStaticStrategy();
-        assertThat(actual.getWriteDataSourceName(), is("write_ds"));
-        assertThat(actual.getReadDataSourceNames(), 
is(Arrays.asList("read_ds_0", "read_ds_1")));
-    }
-}

Reply via email to