/*
 * 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.core.executor.sql.execute.result;

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

public class QueryResultMetaDataTest {
    
    @Before
    public void setUp() {
    }
    
    @Test
    public void testGetColumnCount() {
    }
    
    @Test
    public void testGetColumnLabel() {
    }
    
    @Test
    public void testGetColumnName() {
    }
    
    @Test
    public void testGetColumnIndex() {
    }
    
    @Test
    public void testGetShardingEncryptor() {
    }
}

@@ -865,16 +865,44 @@
 esult;%0A%0A
+import lombok.SneakyThrows;%0A
 import o
@@ -946,89 +946,793 @@
 t;%0A%0A
-public class QueryResultMetaDataTest %7B%0A    %0A    @Before%0A    public void setUp() %7B
+import java.sql.ResultSetMetaData;%0Aimport java.sql.SQLException;%0A%0Aimport static org.mockito.ArgumentMatchers.anyInt;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.when;%0A%0Apublic class QueryResultMetaDataTest %7B%0A    %0A    private QueryResultMetaData queryResultMetaData;%0A    %0A    @Before%0A    @SneakyThrows%0A    public void setUp() %7B%0A        getResultMetaData();%0A    %7D%0A    %0A    private ResultSetMetaData getResultMetaData() throws SQLException %7B%0A        ResultSetMetaData result = mock(ResultSetMetaData.class);%0A        when(result.getColumnCount()).thenReturn(1);%0A        when(result.getColumnName(anyInt())).thenReturn(%22column%22);%0A        when(result.getColumnLabel(anyInt())).thenReturn(%22label%22);%0A        when(result.getTableName(anyInt())).thenReturn(%22table%22);
 %0A   

add getResultMetaData()