/*
 * 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.registry.config.listener;

import org.junit.Before;
import org.junit.Test;

public class SchemaChangedListenerTest {
    
    @Before
    public void setUp() {
    }
    
    @Test
    public void testCreateShardingOrchestrationEvent() {
    }
}
    
@@ -700,211 +700,1336 @@
 ort 
-org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class SchemaChangedListenerTest %7B%0A    %0A    @Before%0A    public void setUp() %7B%0A    %7D%0A    %0A    @Test%0A    public void testCreateShardingOrchestrationEvent() %7B
+io.shardingsphere.orchestration.internal.registry.config.event.IgnoredShardingOrchestrationEvent;%0Aimport io.shardingsphere.orchestration.reg.api.RegistryCenter;%0Aimport io.shardingsphere.orchestration.reg.listener.DataChangedEvent;%0Aimport io.shardingsphere.orchestration.reg.listener.DataChangedEvent.ChangedType;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.Mock;%0A%0Aimport java.util.Arrays;%0A%0Aimport static org.hamcrest.CoreMatchers.instanceOf;%0Aimport static org.junit.Assert.assertThat;%0A%0Apublic class SchemaChangedListenerTest %7B%0A    %0A    private SchemaChangedListener schemaChangedListener;%0A    %0A    @Mock%0A    private RegistryCenter regCenter;%0A    %0A    @Before%0A    public void setUp() %7B%0A        schemaChangedListener = new SchemaChangedListener(%22test%22, regCenter, Arrays.asList(%22sharding_db%22, %22masterslave_db%22));%0A    %7D%0A    %0A    @Test%0A    public void assertCreateIgnoredEvent() %7B%0A        assertThat(schemaChangedListener.createShardingOrchestrationEvent(new DataChangedEvent(%22/test/config/schema/logic_db%22, %22test%22, ChangedType.UPDATED)), instanceOf(IgnoredShardingOrchestrationEvent.class));%0A        assertThat(schemaChangedListener.createShardingOrchestrationEvent(new DataChangedEvent(%22/test/config/schema/logic_db/rule%22, %22test%22, ChangedType.IGNORED)), instanceOf(IgnoredShardingOrchestrationEvent.class));
 %0A   
@@ -2033,12 +2033,8 @@
     %7D%0A%7D%0A
-    

add assertCreateIgnoredEvent()