Skip to content

Commit 8749e5f

Browse files
committed
RATIS-1977. Improve Code.
1 parent 77e8c0b commit 8749e5f

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

pom.xml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,8 @@
221221
<testsThreadCount>4</testsThreadCount>
222222

223223
<slf4j.version>2.0.7</slf4j.version>
224-
<junit-bom.version>5.11.2</junit-bom.version>
225-
<mockito.version>4.3.1</mockito.version>
226-
<tomcat.version>6.0.53</tomcat.version>
224+
<junit-bom.version>5.12.2</junit-bom.version>
225+
<mockito.version>4.11.0</mockito.version>
227226
<jacoco.version>0.8.12</jacoco.version>
228227
<flaky-test-groups>flaky | org.apache.ratis.test.tag.FlakyTest</flaky-test-groups>
229228
</properties>
@@ -431,12 +430,6 @@
431430
<artifactId>mockito-core</artifactId>
432431
<version>${mockito.version}</version>
433432
</dependency>
434-
<dependency>
435-
<groupId>org.apache.tomcat</groupId>
436-
<artifactId>annotations-api</artifactId>
437-
<version>${tomcat.version}</version>
438-
<scope>provided</scope>
439-
</dependency>
440433
</dependencies>
441434
</dependencyManagement>
442435

ratis-common/src/test/java/org/apache/ratis/BaseTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ public void setFirstException(Throwable e) {
7070
}
7171
}
7272

73-
// TODO: Junit 4 reference should be removed once all the unit tests are migrated to Junit 5.
74-
7573
private String testCaseName;
7674

7775
@BeforeEach
@@ -127,7 +125,6 @@ public File getClassTestDir() {
127125
}
128126

129127
public File getTestDir() {
130-
// This will work for both junit 4 and 5.
131128
return new File(getClassTestDir(), testCaseName);
132129
}
133130

ratis-proto/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,5 @@
175175
<groupId>org.apache.ratis</groupId>
176176
<artifactId>ratis-thirdparty-misc</artifactId>
177177
</dependency>
178-
<dependency>
179-
<groupId>org.apache.tomcat</groupId>
180-
<artifactId>annotations-api</artifactId>
181-
</dependency>
182178
</dependencies>
183179
</project>

0 commit comments

Comments
 (0)