Skip to content

Commit d9180c7

Browse files
committed
Use JUnit 5 convention for class visibility
1 parent dfeddc8 commit d9180c7

122 files changed

Lines changed: 122 additions & 122 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/test/java/org/apache/bcel/AnnotationAccessFlagTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import org.apache.bcel.classfile.JavaClass;
2626
import org.junit.jupiter.api.Test;
2727

28-
public class AnnotationAccessFlagTest extends AbstractTest {
28+
class AnnotationAccessFlagTest extends AbstractTest {
2929
/**
3030
* If you write an annotation and compile it, the class file generated should be marked as an annotation type - which is
3131
* detectable through BCEL.

src/test/java/org/apache/bcel/AnnotationDefaultAttributeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.apache.bcel.classfile.SimpleElementValue;
2929
import org.junit.jupiter.api.Test;
3030

31-
public class AnnotationDefaultAttributeTest extends AbstractTest {
31+
class AnnotationDefaultAttributeTest extends AbstractTest {
3232
/**
3333
* For values in an annotation that have default values, we should be able to query the AnnotationDefault attribute
3434
* against the method to discover the default value that was originally declared.

src/test/java/org/apache/bcel/AnnotationEntryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/**
3535
* Tests {@link AnnotationEntry}.
3636
*/
37-
public class AnnotationEntryTest {
37+
class AnnotationEntryTest {
3838

3939
@Test
4040
void testAddElementNameValuePair() {

src/test/java/org/apache/bcel/AnonymousClassTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import org.apache.bcel.data.EmptyClass;
3131
import org.junit.jupiter.api.Test;
3232

33-
public class AnonymousClassTest extends AbstractTest {
33+
class AnonymousClassTest extends AbstractTest {
3434
@Test
3535
void testAnonymousInnerClassIsAnonymous() throws ClassNotFoundException {
3636
final JavaClass clazz = getTestJavaClass(PACKAGE_BASE_NAME + ".data.AnonymousClassTest$1");

src/test/java/org/apache/bcel/ConstTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/**
2727
* Tests {@link Const}.
2828
*/
29-
public class ConstTest {
29+
class ConstTest {
3030

3131
@Test
3232
void testJava22() throws Exception {

src/test/java/org/apache/bcel/CounterVisitorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.apache.bcel.classfile.JavaClass;
2525
import org.junit.jupiter.api.Test;
2626

27-
public class CounterVisitorTest extends AbstractCounterVisitorTest {
27+
class CounterVisitorTest extends AbstractCounterVisitorTest {
2828
@Override
2929
protected JavaClass getTestClass() throws ClassNotFoundException {
3030
return getTestJavaClass(PACKAGE_BASE_NAME + ".data.MarkedType");

src/test/java/org/apache/bcel/ElementValueGenTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import org.apache.bcel.generic.SimpleElementValueGen;
3838
import org.junit.jupiter.api.Test;
3939

40-
public class ElementValueGenTest extends AbstractTest {
40+
class ElementValueGenTest extends AbstractTest {
4141
private void checkSerialize(final ElementValueGen evgBefore, final ConstantPoolGen cpg) throws IOException {
4242
final String beforeValue = evgBefore.stringifyValue();
4343
final ByteArrayOutputStream baos = new ByteArrayOutputStream();

src/test/java/org/apache/bcel/EnclosingMethodAttributeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import org.apache.bcel.util.SyntheticRepository;
3333
import org.junit.jupiter.api.Test;
3434

35-
public class EnclosingMethodAttributeTest extends AbstractTest {
35+
class EnclosingMethodAttributeTest extends AbstractTest {
3636

3737
/**
3838
* Check that we can save and load the attribute correctly.

src/test/java/org/apache/bcel/EnumAccessFlagTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import org.apache.bcel.classfile.JavaClass;
2626
import org.junit.jupiter.api.Test;
2727

28-
public class EnumAccessFlagTest extends AbstractTest {
28+
class EnumAccessFlagTest extends AbstractTest {
2929
/**
3030
* An enumerated type, once compiled, should result in a class file that is marked such that we can determine from the
3131
* access flags (through BCEL) that it was originally an enum type declaration.

src/test/java/org/apache/bcel/HandleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* Test for https://issues.apache.org/jira/browse/BCEL-267 "Race conditions on static fields in BranchHandle and
3131
* InstructionHandle".
3232
*/
33-
public class HandleTest {
33+
class HandleTest {
3434

3535
static Throwable exception;
3636
static final int MAXI = 100;

0 commit comments

Comments
 (0)