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

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

public class AggregationDistinctQueryResultTest {
    
    @Before
    public void setUp() {
    }
    
    @Test
    public void testDivide() {
    }
    
    @Test
    public void testGetValue() {
    }
    
    @Test
    public void testGetValue1() {
    }
    
    @Test
    public void testGetCalendarValue() {
    }
    
    @Test
    public void testGetCalendarValue1() {
    }
    
    @Test
    public void testGetInputStream() {
    }
    
    @Test
    public void testGetInputStream1() {
    }
    
    @Test
    public void testWasNull() {
    }
    
    @Test
    public void testGetColumnCount() {
    }
    
    @Test
    public void testGetColumnLabel() {
    }
    
    @Test
    public void testGetColumnIndex() {
    }
}

@@ -685,142 +685,1383 @@
 ort 
-org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class AggregationDistinctQueryResultTest %7B%0A    %0A    @Before%0A    public void setUp() %7B
+io.shardingsphere.core.merger.QueryResult;%0Aimport lombok.SneakyThrows;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.util.Collection;%0Aimport java.util.LinkedList;%0A%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.when;%0A%0Apublic class AggregationDistinctQueryResultTest %7B%0A    %0A    private AggregationDistinctQueryResult aggregationDistinctQueryResult;%0A    %0A    @Before%0A    public void setUp() %7B%0A        %0A    %7D%0A    %0A    @SneakyThrows%0A    private Collection%3CQueryResult%3E getQueryResults() %7B%0A        Collection%3CQueryResult%3E result = new LinkedList%3C%3E();%0A        for (int i = 1; i %3C= 2; i++) %7B%0A            QueryResult queryResult = mock(QueryResult.class);%0A            when(queryResult.next()).thenReturn(true).thenReturn(false);%0A            when(queryResult.getColumnCount()).thenReturn(3);%0A            when(queryResult.getColumnLabel(1)).thenReturn(%22order_id%22);%0A            when(queryResult.getColumnLabel(2)).thenReturn(%22order_id%22);%0A            when(queryResult.getColumnLabel(3)).thenReturn(%22order_id%22);%0A            when(queryResult.getValue(1, Object.class)).thenReturn(10 * i);%0A            when(queryResult.getValue(2, Object.class)).thenReturn(10 * i);%0A            when(queryResult.getValue(3, Object.class)).thenReturn(10 * i);%0A            result.add(queryResult);%0A            result.add(queryResult);%0A        %7D%0A        return result;
 %0A   

ADD getQueryResults()