@@ -31,7 +31,7 @@ const request = jest.fn<any>().mockResolvedValue(undefined)
3131describe ( 'sbom feature' , ( ) => {
3232 let workspace : string
3333 let originalEnv : NodeJS . ProcessEnv
34- const javaVersion = '24 .0.0'
34+ const javaVersion = '25 .0.0'
3535 const distribution = c . DISTRIBUTION_GRAALVM
3636
3737 beforeEach ( ( ) => {
@@ -92,7 +92,7 @@ describe('sbom feature', () => {
9292 } )
9393
9494 it ( 'should not throw an error when the java-version is supported' , ( ) => {
95- const supported_versions = [ '24 ' , '24 -ea' , '24.0.2 ', 'latest-ea' ]
95+ const supported_versions = [ '25 ' , '26 -ea' , 'latest-ea' ]
9696 for ( const version of supported_versions ) {
9797 expect ( ( ) => setUpSBOMSupport ( version , distribution ) ) . not . toThrow ( )
9898 }
@@ -144,13 +144,13 @@ describe('sbom feature', () => {
144144 type : 'library' ,
145145 group : 'org.json' ,
146146 name : 'json' ,
147- version : '20241224 ' ,
148- purl : 'pkg:maven/org.json/json@20241224 ' ,
149- 'bom-ref' : 'pkg:maven/org.json/json@20241224 ' ,
147+ version : '20250517 ' ,
148+ purl : 'pkg:maven/org.json/json@20250517 ' ,
149+ 'bom-ref' : 'pkg:maven/org.json/json@20250517 ' ,
150150 properties : [
151151 {
152152 name : 'syft:cpe23' ,
153- value : 'cpe:2.3:a:json:json:20241224 :*:*:*:*:*:*:*'
153+ value : 'cpe:2.3:a:json:json:20250517 :*:*:*:*:*:*:*'
154154 }
155155 ]
156156 } ,
@@ -166,10 +166,10 @@ describe('sbom feature', () => {
166166 dependencies : [
167167 {
168168 ref :
'pkg:maven/com.oracle/[email protected] ' , 169- dependsOn : [ 'pkg:maven/org.json/json@20241224 ' ]
169+ dependsOn : [ 'pkg:maven/org.json/json@20250517 ' ]
170170 } ,
171171 {
172- ref : 'pkg:maven/org.json/json@20241224 ' ,
172+ ref : 'pkg:maven/org.json/json@20250517 ' ,
173173 dependsOn : [ ]
174174 }
175175 ]
@@ -184,9 +184,9 @@ describe('sbom feature', () => {
184184
185185 expect ( core . info ) . toHaveBeenCalledWith ( 'Found SBOM: ' + join ( workspace , 'test.sbom.json' ) )
186186 expect ( core . info ) . toHaveBeenCalledWith ( '=== SBOM Content ===' )
187- expect ( core . info ) . toHaveBeenCalledWith ( '- pkg:maven/org.json/json@20241224 ' )
187+ expect ( core . info ) . toHaveBeenCalledWith ( '- pkg:maven/org.json/json@20250517 ' )
188188 expect ( core . info ) . toHaveBeenCalledWith ( '- pkg:maven/com.oracle/[email protected] ' ) 189- expect ( core . info ) . toHaveBeenCalledWith ( ' depends on: pkg:maven/org.json/json@20241224 ' )
189+ expect ( core . info ) . toHaveBeenCalledWith ( ' depends on: pkg:maven/org.json/json@20250517 ' )
190190 expect ( core . warning ) . not . toHaveBeenCalled ( )
191191 } )
192192
@@ -253,12 +253,12 @@ describe('sbom feature', () => {
253253 name : 'test.sbom.json' ,
254254 resolved : expect . objectContaining ( {
255255 json : expect . objectContaining ( {
256- package_url : 'pkg:maven/org.json/json@20241224 ' ,
256+ package_url : 'pkg:maven/org.json/json@20250517 ' ,
257257 dependencies : [ ]
258258 } ) ,
259259 'main-test-app' : expect . objectContaining ( {
260260 package_url :
'pkg:maven/com.oracle/[email protected] ' , 261- dependencies : [ 'pkg:maven/org.json/json@20241224 ' ]
261+ dependencies : [ 'pkg:maven/org.json/json@20250517 ' ]
262262 } )
263263 } )
264264 } )
0 commit comments