Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit c153faa

Browse files
committed
Update to commons-io 2.17 and junit 4.13.2
Adjust test expectations accordingly. It's best to update to latest versions while at it so hopefully next CVE is not soon.
1 parent fa370fa commit c153faa

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

org.eclipse.m2e.tests/projects/526858-test-classpath/jar-dependencies/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
<dependency>
1515
<groupId>junit</groupId>
1616
<artifactId>junit</artifactId>
17-
<version>4.13.1</version>
17+
<version>4.13.2</version>
1818
<scope>test</scope>
1919
</dependency>
2020
<dependency>
2121
<groupId>commons-io</groupId>
2222
<artifactId>commons-io</artifactId>
23-
<version>2.14.0</version>
23+
<version>2.17.0</version>
2424
</dependency>
2525
<dependency>
2626
<groupId>commons-beanutils</groupId>

org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/jdt/JavaClasspathTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2010, 2021 Sonatype, Inc.
2+
* Copyright (c) 2010, 2024 Sonatype, Inc.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License 2.0
55
* which accompanies this distribution, and is available at
@@ -355,10 +355,10 @@ public void test526858_TestClasspathAttributeOnJar() throws Exception {
355355
.getClasspathEntries();
356356
assertEquals("" + Arrays.asList(classpathEntries), 6, classpathEntries.length);
357357
//test dependency
358-
assertEquals("junit-4.13.1.jar", classpathEntries[0].getPath().lastSegment());
358+
assertEquals("junit-4.13.2.jar", classpathEntries[0].getPath().lastSegment());
359359
assertTest(classpathEntries[0]);
360360
//compile dependency
361-
assertEquals("commons-io-2.7.jar", classpathEntries[2].getPath().lastSegment());
361+
assertEquals("commons-io-2.17.0.jar", classpathEntries[2].getPath().lastSegment());
362362
assertNotTest(classpathEntries[2]);
363363
//test + transitive test dependencies
364364
assertEquals("commons-beanutils-1.9.4.jar", classpathEntries[3].getPath().lastSegment());
@@ -381,7 +381,7 @@ public void test526858_TestClasspathAttributeOnProject() throws Exception {
381381
assertDoesntExportTests(classpathEntries[0]);
382382

383383
//transitive test dependency
384-
assertEquals("commons-io-2.7.jar", classpathEntries[1].getPath().lastSegment());
384+
assertEquals("commons-io-2.17.0.jar", classpathEntries[1].getPath().lastSegment());
385385
assertTest(classpathEntries[1]);
386386
}
387387

@@ -436,7 +436,7 @@ public void test526858_ProjectExportingTests() throws Exception {
436436
assertExportsTests(classpathEntries[0]);
437437

438438
//transitive dependency
439-
assertEquals("commons-io-2.7.jar", classpathEntries[1].getPath().lastSegment());
439+
assertEquals("commons-io-2.17.0.jar", classpathEntries[1].getPath().lastSegment());
440440
assertNotTest(classpathEntries[1]);
441441
}
442442

0 commit comments

Comments
 (0)