@@ -0,0 +1,2409 @@
+/**%0A * Copyright (C) 2013-2020 Klarna AB%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.klarna.hiverunner.examples;%0A%0Aimport static org.junit.Assert.assertArrayEquals;%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.util.List;%0A%0Aimport org.junit.jupiter.api.BeforeEach;%0Aimport org.junit.jupiter.api.extension.ExtendWith;%0Aimport org.junit.jupiter.params.ParameterizedTest;%0Aimport org.junit.jupiter.params.provider.ValueSource;%0A%0Aimport com.klarna.hiverunner.HiveRunnerExtension;%0Aimport com.klarna.hiverunner.HiveShell;%0Aimport com.klarna.hiverunner.annotations.HiveSQL;%0A%0A/**%0A * A basic Hive Runner example showing how to use JUnit5's ParameterizedTest.%0A */%0A@ExtendWith(HiveRunnerExtension.class)%0Apublic class HelloHiveRunnerParamaterized %7B%0A%0A    @HiveSQL(files = %7B%7D)%0A    private HiveShell shell;%0A%0A    @BeforeEach%0A    public void setupSourceDatabase() %7B%0A        shell.executeStatement(%22CREATE DATABASE source_db%22);%0A    %7D%0A%0A    @ParameterizedTest%0A    @ValueSource(strings = %7B %22SEQUENCEFILE%22, %22ORC%22, %22PARQUET%22 %7D)%0A    public void testFileFormats(String fileFormat) %7B%0A      shell.executeStatement(new StringBuilder()%0A          .append(%22CREATE TABLE source_db.test_table (%22)%0A          .append(%22year STRING, value INT%22)%0A          .append(%22) stored as %22)%0A          .append(fileFormat)%0A          .toString());%0A      %0A        shell.insertInto(%22source_db%22, %22test_table%22)%0A                .withColumns(%22year%22, %22value%22)%0A                .addRow(%222014%22, 3)%0A                .addRow(%222014%22, 4)%0A                .addRow(%222015%22, 2)%0A                .addRow(%222015%22, 5)%0A                .commit();%0A%0A        List%3CObject%5B%5D%3E result = shell.executeStatement(%22select year, max(value) from source_db.test_table group by year%22);%0A%0A        assertEquals(2, result.size());%0A        assertArrayEquals(new Object%5B%5D%7B%222014%22, 4%7D, result.get(0));%0A        assertArrayEquals(new Object%5B%5D%7B%222015%22, 5%7D, result.get(1));%0A    %7D%0A%7D%0A

Add example of using paramaterized with HiveRunner (#131)