maxsudik / JQMax

Selenium Java
0 stars 6 forks source link

Implement filtering of tests and execute status based on the presence in excel spreadsheet #88

Open maxsudik opened 2 years ago

maxsudik commented 2 years ago
    List<Map<String, String>> smalllist = new ArrayList<>(list);

    Predicate<Map<String,String>> isTestNameNotMatching = map ->!map.get("testname").equalsIgnoreCase(testname);
    Predicate<Map<String,String>> isExecuteColumnNo = map -> map.get("execute").equalsIgnoreCase("no");

    smalllist.removeIf(isTestNameNotMatching.or(isExecuteColumnNo));
    return smalllist.toArray();

https://github.com/maxsudik/JQMax/blob/b84758030197b28a9baa9eed2867921b76541576/src/main/java/utils/DataProviderUtils.java#L19