/*
 * Copyright 2016-2018 shardingsphere.io.
 * <p>
 * Licensed 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.
 * </p>
 */

package io.shardingsphere.orchestration.internal.state.service;

import io.shardingsphere.orchestration.reg.api.RegistryCenter;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;

@RunWith(MockitoJUnitRunner.class)
public class DataSourceServiceTest {
    
    @Mock
    private RegistryCenter regCenter;
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() throws Exception {
    }
    
    @Test
    public void testPersistDataSourcesNode() {
    }
    
    @Test
    public void testGetAvailableDataSourceConfigurations() {
    }
    
    @Test
    public void testGetAvailableShardingRuleConfiguration() {
    }
    
    @Test
    public void testGetAvailableMasterSlaveRuleConfiguration() {
    }
    
    @Test
    public void testGetDisabledSlaveDataSourceNames() {
    }
}
    
@@ -1055,41 +1055,165 @@
     
-@Before%0A    public void setUp() %7B
+private DataSourceService dataSourceService;%0A    %0A    @Before%0A    public void setUp() %7B%0A        dataSourceService = new DataSourceService(%22test%22, regCenter);
 %0A   

modify setUp()