| Test |
Method name |
Duration |
Result |
| should create and serialize AffectedDependency correctly |
testAffectedDependencyModel() |
0.006s |
passed |
| should create Vulnerability with all fields |
testCreateVulnerabilityWithAllFields() |
0.001s |
passed |
| should create Vulnerability with only required fields (nullable optionals) |
testCreateVulnerabilityWithMinimalFields() |
0s |
passed |
| should deserialize JSON to Vulnerability with all fields |
testJsonDeserializationAllFields() |
0.095s |
passed |
| should ignore unknown JSON properties during deserialization |
testJsonDeserializationIgnoresUnknownProperties() |
0.015s |
passed |
| should deserialize JSON with missing optional fields as null |
testJsonDeserializationWithNullFields() |
0.008s |
passed |
| should serialize and deserialize Vulnerability maintaining equality |
testJsonRoundtrip() |
0.035s |
passed |
| should serialize Vulnerability to JSON with all fields |
testJsonSerializationAllFields() |
0.007s |
passed |
| should exclude null fields from JSON serialization (JsonInclude.NON_NULL) |
testJsonSerializationExcludesNullFields() |
0.006s |
passed |
| should calculate CRITICAL severity for CVSS >= 9.0 |
testSeverityCalculationCritical() |
0s |
passed |
| should calculate HIGH severity for CVSS >= 7.0 and < 9.0 |
testSeverityCalculationHigh() |
0s |
passed |
| should calculate LOW severity for CVSS > 0 and < 4.0 |
testSeverityCalculationLow() |
0s |
passed |
| should calculate MEDIUM severity for CVSS >= 4.0 and < 7.0 |
testSeverityCalculationMedium() |
0s |
passed |
| should calculate UNKNOWN severity for null CVSS score |
testSeverityCalculationUnknown() |
0.001s |
passed |
| should calculate UNKNOWN severity for 0 CVSS score |
testSeverityCalculationZeroScore() |
0.001s |
passed |
| should serialize and deserialize VulnerabilitySource enum correctly |
testVulnerabilitySourceEnumSerialization() |
0.015s |
passed |