Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class TruncatedVulnerabilitiesAdapter extends FormattingAdapter<TruncatedVulnerabilities> {

private static final String MAX_SIZE_EXCEEDED = "MAX SIZE EXCEEDED";
private static final String MAX_SIZE_EXCEEDED = "MAX_SIZE_EXCEEDED";

private final JsonAdapter<Vulnerability> vulnerabilityAdapter;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ class VulnerabilityEncodingTest extends DDSpecification {
{
"type": "WEAK_HASH",
"evidence": {
"value": "MAX SIZE EXCEEDED"
"value": "MAX_SIZE_EXCEEDED"
},
"hash":1042880134,
"location": {
Expand Down Expand Up @@ -454,7 +454,7 @@ class VulnerabilityEncodingTest extends DDSpecification {
"vulnerabilities": [
{
"evidence": {
"value": "MAX SIZE EXCEEDED"
"value": "MAX_SIZE_EXCEEDED"
},
"hash": 1042880134,
"location": {
Expand All @@ -467,7 +467,7 @@ class VulnerabilityEncodingTest extends DDSpecification {
},
{
"evidence": {
"value": "MAX SIZE EXCEEDED"
"value": "MAX_SIZE_EXCEEDED"
},
"hash": 1042880134,
"location": {
Expand Down Expand Up @@ -543,7 +543,7 @@ class VulnerabilityEncodingTest extends DDSpecification {
}

private static int countGenericEvidenceOccurrences(final String input){
Pattern pattern = Pattern.compile("\"evidence\":\\{\"value\":\"MAX SIZE EXCEEDED\"}")
Pattern pattern = Pattern.compile("\"evidence\":\\{\"value\":\"MAX_SIZE_EXCEEDED\"}")
Matcher matcher = pattern.matcher(input)
int count = 0
while (matcher.find()){
Expand Down