Skip to content

Commit 5c79a0e

Browse files
strangelookingnerdok2c
authored andcommitted
Test classes and methods should have default package visibility
1 parent 7ca49fe commit 5c79a0e

File tree

193 files changed

+1734
-1734
lines changed

Some content is hidden

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

193 files changed

+1734
-1734
lines changed

httpcore5-h2/src/test/java/org/apache/hc/core5/http2/config/H2ConfigTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
import org.junit.jupiter.api.Test;
3636

37-
public class H2ConfigTest {
37+
class H2ConfigTest {
3838

3939
@Test
4040
void builder() {

httpcore5-h2/src/test/java/org/apache/hc/core5/http2/frame/TestDefaultFrameFactory.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
import org.junit.jupiter.api.Assertions;
3636
import org.junit.jupiter.api.Test;
3737

38-
public class TestDefaultFrameFactory {
38+
class TestDefaultFrameFactory {
3939

4040
@Test
41-
public void testDataFrame() throws Exception {
41+
void testDataFrame() {
4242

4343
final FrameFactory frameFactory = new DefaultFrameFactory();
4444

@@ -51,7 +51,7 @@ public void testDataFrame() throws Exception {
5151
}
5252

5353
@Test
54-
public void testSettingFrame() throws Exception {
54+
void testSettingFrame() {
5555

5656
final FrameFactory frameFactory = new DefaultFrameFactory();
5757
final Frame<ByteBuffer> settingsFrame = frameFactory.createSettings(
@@ -67,7 +67,7 @@ public void testSettingFrame() throws Exception {
6767
}
6868

6969
@Test
70-
public void testResetStreamFrame() throws Exception {
70+
void testResetStreamFrame() {
7171

7272
final FrameFactory frameFactory = new DefaultFrameFactory();
7373
final Frame<ByteBuffer> rstStreamFrame = frameFactory.createResetStream(12, H2Error.INTERNAL_ERROR);
@@ -82,7 +82,7 @@ public void testResetStreamFrame() throws Exception {
8282
}
8383

8484
@Test
85-
public void testGoAwayFrame() throws Exception {
85+
void testGoAwayFrame() {
8686

8787
final FrameFactory frameFactory = new DefaultFrameFactory();
8888
final Frame<ByteBuffer> goAwayFrame = frameFactory.createGoAway(13, H2Error.INTERNAL_ERROR, "Oopsie");

httpcore5-h2/src/test/java/org/apache/hc/core5/http2/frame/TestFrameFlag.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
import org.junit.jupiter.api.Assertions;
3030
import org.junit.jupiter.api.Test;
3131

32-
public class TestFrameFlag {
32+
class TestFrameFlag {
3333

3434
@Test
35-
public void testFrameFlagBasics() throws Exception {
35+
void testFrameFlagBasics() {
3636

3737
final int flags = FrameFlag.of(FrameFlag.END_STREAM, FrameFlag.PADDED, FrameFlag.PRIORITY);
3838
Assertions.assertEquals(0x01 | 0x08 | 0x20, flags);

httpcore5-h2/src/test/java/org/apache/hc/core5/http2/frame/TestH2Settings.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
import org.junit.jupiter.api.Assertions;
3232
import org.junit.jupiter.api.Test;
3333

34-
public class TestH2Settings {
34+
class TestH2Settings {
3535

3636
@Test
37-
public void testH2ParamBasics() throws Exception {
37+
void testH2ParamBasics() {
3838
for (final H2Param param: H2Param.values()) {
3939
Assertions.assertEquals(param, H2Param.valueOf(param.getCode()));
4040
Assertions.assertEquals(param.name(), H2Param.toString(param.getCode()));
@@ -46,7 +46,7 @@ public void testH2ParamBasics() throws Exception {
4646
}
4747

4848
@Test
49-
public void testH2SettingBasics() throws Exception {
49+
void testH2SettingBasics() {
5050

5151
final H2Setting setting1 = new H2Setting(H2Param.ENABLE_PUSH, 0);
5252
final H2Setting setting2 = new H2Setting(H2Param.INITIAL_WINDOW_SIZE, 1024);

httpcore5-h2/src/test/java/org/apache/hc/core5/http2/hpack/TestFifoBuffer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
import org.junit.jupiter.api.Assertions;
3131
import org.junit.jupiter.api.Test;
3232

33-
public class TestFifoBuffer {
33+
class TestFifoBuffer {
3434

3535
@Test
36-
public void testAddRemoveCycle() throws Exception {
36+
void testAddRemoveCycle() {
3737

3838
final FifoBuffer fifoBuffer = new FifoBuffer(5);
3939

@@ -88,7 +88,7 @@ public void testAddRemoveCycle() throws Exception {
8888
}
8989

9090
@Test
91-
public void testExpand() throws Exception {
91+
void testExpand() {
9292

9393
final HPackHeader h1 = new HPackHeader("h", "1");
9494
final HPackHeader h2 = new HPackHeader("h", "2");

httpcore5-h2/src/test/java/org/apache/hc/core5/http2/hpack/TestFifoLinkedList.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
import org.junit.jupiter.api.Assertions;
3131
import org.junit.jupiter.api.Test;
3232

33-
public class TestFifoLinkedList {
33+
class TestFifoLinkedList {
3434

3535
@Test
36-
public void testAddRemoveCycle() throws Exception {
36+
void testAddRemoveCycle() {
3737

3838
final FifoLinkedList fifoLinkedList = new FifoLinkedList();
3939

@@ -90,7 +90,7 @@ public void testAddRemoveCycle() throws Exception {
9090
}
9191

9292
@Test
93-
public void testGetIndex() throws Exception {
93+
void testGetIndex() {
9494

9595
final FifoLinkedList fifoLinkedList = new FifoLinkedList();
9696

0 commit comments

Comments
 (0)