Skip to content

Commit e6abf98

Browse files
committed
8374434: Several JShell tests report JUnit discovery warnings
Reviewed-by: jpai
1 parent 9513758 commit e6abf98

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

test/langtools/jdk/jshell/ErrorTranslationTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2026, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -149,7 +149,6 @@ private String createMarkingLine(int start, int end) {
149149
return sb.toString();
150150
}
151151

152-
@Test
153152
public String getKind(Diagnostic.Kind kind) {
154153
switch (kind) {
155154
case WARNING:

test/langtools/jdk/jshell/IdGeneratorTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2026, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -44,7 +44,6 @@
4444

4545
public class IdGeneratorTest {
4646

47-
@Test
4847
public JShell.Builder getBuilder() {
4948
TestingInputStream inStream = new TestingInputStream();
5049
ByteArrayOutputStream outStream = new ByteArrayOutputStream();

test/langtools/jdk/jshell/KullaCompletenessStressTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2026, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -32,13 +32,11 @@
3232
import java.io.File;
3333

3434
import org.junit.jupiter.api.Assumptions;
35-
import org.junit.jupiter.api.Test;
3635
import org.junit.jupiter.api.TestInstance;
3736

3837
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
3938
public class KullaCompletenessStressTest extends CompletenessStressTest {
4039
@Override
41-
@Test
4240
public File[] getDirectoriesToTest() {
4341
String src = System.getProperty("test.src");
4442
File file;

0 commit comments

Comments
 (0)