Skip to content

Commit

Permalink
update MAX_SIZE_EXCEEDED value (#6779)
Browse files Browse the repository at this point in the history
  • Loading branch information
jandro996 authored Mar 12, 2024
1 parent 39767bb commit 0d49c12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit 0d49c12

Please sign in to comment.