GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix 4.1 build of AbstractDiskHttpDataTest · netty/netty@d919d81

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • codec-http/src/test/java/io/netty/handler/codec/http/multipart
    • AbstractDiskHttpDataTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎codec-http/src/test/java/io/netty/handler/codec/http/multipart/AbstractDiskHttpDataTest.java‎

Copy file name to clipboardExpand all lines: codec-http/src/test/java/io/netty/handler/codec/http/multipart/AbstractDiskHttpDataTest.java
+20-3Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import io.netty.util.internal.PlatformDependent;
2121
import org.junit.jupiter.api.Test;
2222
import org.junit.jupiter.api.Timeout;
23+
import org.junit.jupiter.api.function.Executable;
2324

2425
import java.io.EOFException;
2526
import java.io.File;
@@ -89,9 +90,25 @@ public long length() {
8990
}
9091
};
9192
test.setContent(shortFile);
92-
assertThrows(EOFException.class, test::get);
93-
assertThrows(EOFException.class, test::getByteBuf);
94-
assertThrows(EOFException.class, test::getString);
93+
final TestHttpData data = test;
94+
assertThrows(EOFException.class, new Executable() {
95+
@Override
96+
public void execute() throws Throwable {
97+
data.get();
98+
}
99+
});
100+
assertThrows(EOFException.class, new Executable() {
101+
@Override
102+
public void execute() throws Throwable {
103+
data.getByteBuf();
104+
}
105+
});
106+
assertThrows(EOFException.class, new Executable() {
107+
@Override
108+
public void execute() throws Throwable {
109+
data.getString();
110+
}
111+
});
95112
} finally {
96113
test.delete();
97114
assertTrue(tmpFile.delete());

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.