Skip to content

Commit 31cb560

Browse files
committed
fix system tests
1 parent c64d171 commit 31cb560

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

inspectit-ocelot-agent/src/system-test/java/rocks/inspectit/ocelot/instrumentation/http/HttpInMetricTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ void fireRequest(String url) {
4242
}
4343
}
4444

45-
static class TestServlet extends HttpServlet {
45+
public static class TestServlet extends HttpServlet {
4646

4747
@Override
48-
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
48+
protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
4949
// 123 was not a valid status code and rejected by jdk 21
5050
resp.setStatus(200);
5151
}

inspectit-ocelot-agent/src/system-test/java/rocks/inspectit/ocelot/instrumentation/servicegraph/ServiceInMetricTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,12 @@ void fireRequest(String originService) {
5959
}
6060
}
6161

62-
static class TestServlet extends HttpServlet {
62+
public static class TestServlet extends HttpServlet {
6363

6464
@Override
65-
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
65+
protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
6666
resp.setStatus(200);
6767
}
68-
6968
}
7069

7170
@Nested

inspectit-ocelot-agent/src/system-test/java/rocks/inspectit/ocelot/instrumentation/special/remote/ServletApiContextPropagationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void startServer(Consumer<ServletHandler> shInitializer) {
6868
}
6969
}
7070

71-
static class TestServlet extends HttpServlet {
71+
public static class TestServlet extends HttpServlet {
7272

7373
static Map<String, String> lastAttributes;
7474

@@ -120,7 +120,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
120120
}
121121
}
122122

123-
static class TestFilter implements Filter {
123+
public static class TestFilter implements Filter {
124124

125125
static Map<String, String> lastAttributes;
126126

inspectit-ocelot-agent/src/system-test/java/rocks/inspectit/ocelot/instrumentation/tracing/HttpRemoteTracingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static void cleanup() throws Exception {
5757
server.stop();
5858
}
5959

60-
static class TracingServlet extends HttpServlet {
60+
public static class TracingServlet extends HttpServlet {
6161

6262
@Override
6363
public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {

0 commit comments

Comments
 (0)