Skip to content

Commit

Permalink
Bump up to collections4 (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianszczepanik authored Jan 5, 2024
1 parent 8e20576 commit 159abc0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Github build](https://github.com/damianszczepanik/maven-cucumber-reporting/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/damianszczepanik/maven-cucumber-reporting/actions/workflows/build.yml)

[![Maven Central](https://img.shields.io/maven-central/v/net.masterthought/maven-cucumber-reporting.svg)](http://search.maven.org/#search|gav|1|g%3A%22net.masterthought%22%20AND%20a%3A%22maven-cucumber-reporting%22)
![GitHub tag](https://img.shields.io/github/v/tag/damianszczepanik/maven-cucumber-reporting?label=maven%20central)
[![License](https://img.shields.io/badge/license-GNU%20LGPL%20v2.1-blue.svg)](https://raw.githubusercontent.com/damianszczepanik/maven-cucumber-reporting/master/LICENCE)

[![Live Demo](https://img.shields.io/badge/Live%20Demo-Online-blue.svg)](https://damianszczepanik.github.io/cucumber-html-reports/overview-features.html)
Expand Down
10 changes: 4 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
<packaging>maven-plugin</packaging>
<version>5.7.8-SNAPSHOT</version>
<name>maven-cucumber-reporting</name>
<url>http://maven.apache.org</url>
<url>https://github.com/damianszczepanik/maven-cucumber-reporting</url>

<properties>
<commons-collections.version>3.2.2</commons-collections.version>

<gitHubRepo>damianszczepanik/maven-cucumber-reporting</gitHubRepo>
</properties>

Expand Down Expand Up @@ -161,9 +159,9 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>${commons-collections.version}</version>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.4</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
import java.util.Map;
import java.util.Collections;

import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.collections4.MapUtils;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.codehaus.plexus.util.DirectoryScanner;
import org.codehaus.plexus.util.StringUtils;

import net.masterthought.cucumber.json.support.Status;
import net.masterthought.cucumber.reducers.ReducingMethod;
import org.codehaus.plexus.util.DirectoryScanner;

/**
* Goal which generates a Cucumber Report.
Expand Down Expand Up @@ -205,9 +205,9 @@ public void execute() throws MojoExecutionException {
if (mergeFeaturesById) {
configuration.addReducingMethod(ReducingMethod.MERGE_FEATURES_BY_ID);
}
if (!MapUtils.isEmpty(classifications)) {
if (MapUtils.isNotEmpty(classifications)) {
for (Map.Entry<String, String> entry : classifications.entrySet()) {
configuration.addClassifications(StringUtils.capitalise(entry.getKey()), entry.getValue());
configuration.addClassifications(StringUtils.capitalize(entry.getKey()), entry.getValue());
}
}
if (CollectionUtils.isNotEmpty(classificationFilesToProcess)) {
Expand Down

0 comments on commit 159abc0

Please sign in to comment.