Skip to content

Commit

Permalink
G2-1478 Add JsonIgnore needed for newer versions of jackson
Browse files Browse the repository at this point in the history
  • Loading branch information
gdgib committed Oct 24, 2023
1 parent 1bc0fc2 commit f308020
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameter;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fasterxml.jackson.dataformat.csv.CsvMapper;
import com.fasterxml.jackson.module.paranamer.ParanamerModule;
Expand All @@ -31,6 +32,7 @@
@RunWith(Parameterized.class)
public abstract class ATestStandardLicenseParser {
public interface ITestCase {
@JsonIgnore
public ILicenseApplied getLicenseApplied();

public String getPurpose();
Expand All @@ -48,7 +50,7 @@ public static <TestCase extends ITestCase> List<Object[]> computeTestParameters(
try (final InputStream stream = HResource.getResourceAsStream(testCaseType, file, true)) {
testCases = reader.<TestCase>readValues(stream).readAll();
} catch (IOException e) {
throw new RuntimeIOException(e);
throw new RuntimeIOException(String.format("Failed to read resource \"%1$s\" near %2$s", file, testCaseType), e);
}
}

Expand Down

0 comments on commit f308020

Please sign in to comment.