Vulnerability Model Tests

16

tests

0

failures

0

ignored

0.738s

duration

100%

successful

Tests

Test Method name Duration Result
should create and serialize AffectedDependency correctly testAffectedDependencyModel() 0.004s passed
should create Vulnerability with all fields testCreateVulnerabilityWithAllFields() 0s passed
should create Vulnerability with only required fields (nullable optionals) testCreateVulnerabilityWithMinimalFields() 0.001s passed
should deserialize JSON to Vulnerability with all fields testJsonDeserializationAllFields() 0.186s passed
should ignore unknown JSON properties during deserialization testJsonDeserializationIgnoresUnknownProperties() 0.015s passed
should deserialize JSON with missing optional fields as null testJsonDeserializationWithNullFields() 0.010s passed
should serialize and deserialize Vulnerability maintaining equality testJsonRoundtrip() 0.485s 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.007s passed
should calculate CRITICAL severity for CVSS >= 9.0 testSeverityCalculationCritical() 0.001s 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() 0.001s passed
should calculate MEDIUM severity for CVSS >= 4.0 and < 7.0 testSeverityCalculationMedium() 0.001s 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.018s passed