@Test @Parameters(method = "columns") public void should_extract_non_existing_columns_defined_in_second_list(List<String> expectedColumns, List<String> actualColumns, List<String> nonExistingColums) throws Exception { List<String> actualNonExistingColumns = DataSetUtils.extractNonExistingColumns(expectedColumns, actualColumns); assertThat(actualNonExistingColumns).isEqualTo(nonExistingColums); }
public static List<String> extractNonExistingColumns(final Collection<String> expectedColumns, final Collection<String> actualColumns) { final List<String> columnsNotSpecifiedInExpectedDataSet = new ArrayList<String>(); for (String column : expectedColumns) { if (!actualColumns.contains(column.toLowerCase())) { columnsNotSpecifiedInExpectedDataSet.add(column.toLowerCase()); } } return columnsNotSpecifiedInExpectedDataSet; }
DataSetUtils { public static List<String> extractNonExistingColumns(final Collection<String> expectedColumns, final Collection<String> actualColumns) { final List<String> columnsNotSpecifiedInExpectedDataSet = new ArrayList<String>(); for (String column : expectedColumns) { if (!actualColumns.contains(column.toLowerCase())) { columnsNotSpecifiedInExpectedDataSet.add(column.toLowerCase()); } } return columnsNotSpecifiedInExpectedDataSet; } }
DataSetUtils { public static List<String> extractNonExistingColumns(final Collection<String> expectedColumns, final Collection<String> actualColumns) { final List<String> columnsNotSpecifiedInExpectedDataSet = new ArrayList<String>(); for (String column : expectedColumns) { if (!actualColumns.contains(column.toLowerCase())) { columnsNotSpecifiedInExpectedDataSet.add(column.toLowerCase()); } } return columnsNotSpecifiedInExpectedDataSet; }  }
DataSetUtils { public static List<String> extractNonExistingColumns(final Collection<String> expectedColumns, final Collection<String> actualColumns) { final List<String> columnsNotSpecifiedInExpectedDataSet = new ArrayList<String>(); for (String column : expectedColumns) { if (!actualColumns.contains(column.toLowerCase())) { columnsNotSpecifiedInExpectedDataSet.add(column.toLowerCase()); } } return columnsNotSpecifiedInExpectedDataSet; }  static IDataSet mergeDataSets(final List<IDataSet> dataSets); static List<String> extractColumnsNotSpecifiedInExpectedDataSet(final ITable expectedTableState,
        final ITable currentTableState); static List<String> extractNonExistingColumns(final Collection<String> expectedColumns,
        final Collection<String> actualColumns); static Collection<String> extractColumnNames(final Column[] columns); static IDataSet excludeTables(IDataSet dataSet, String... tablesToExclude); static String[] tableNamesInUpperCase(String... tableNamesOriginal); }
DataSetUtils { public static List<String> extractNonExistingColumns(final Collection<String> expectedColumns, final Collection<String> actualColumns) { final List<String> columnsNotSpecifiedInExpectedDataSet = new ArrayList<String>(); for (String column : expectedColumns) { if (!actualColumns.contains(column.toLowerCase())) { columnsNotSpecifiedInExpectedDataSet.add(column.toLowerCase()); } } return columnsNotSpecifiedInExpectedDataSet; }  static IDataSet mergeDataSets(final List<IDataSet> dataSets); static List<String> extractColumnsNotSpecifiedInExpectedDataSet(final ITable expectedTableState,
        final ITable currentTableState); static List<String> extractNonExistingColumns(final Collection<String> expectedColumns,
        final Collection<String> actualColumns); static Collection<String> extractColumnNames(final Column[] columns); static IDataSet excludeTables(IDataSet dataSet, String... tablesToExclude); static String[] tableNamesInUpperCase(String... tableNamesOriginal);  }