Fix matrix smoke test package name
RENAME
smoke-tests/matrix/src/main/java/com/splunk/opentelemetry/appservers/javaee/GreetingServlet.java
smoke-tests/matrix/src/main/java/io/opentelemetry/smoketest/matrix/GreetingServlet.java
* SPDX-License-Identifier: Apache-2.0
*/
-package com.splunk.opentelemetry.appservers.javaee;
+package io.opentelemetry.smoketest.matrix;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@@ -30,11 +30,7 @@ public class GreetingServlet extends HttpServlet {
String responseBody = buffer.toString("UTF-8");
ServletOutputStream outputStream = resp.getOutputStream();
outputStream.print(
- bytesRead
- + " bytes read by "
- + urlConnection.getClass().getName()
- + "\n"
- + responseBody);
+ bytesRead + " bytes read by " + urlConnection.getClass().getName() + "\n" + responseBody);
outputStream.flush();
}
}

RENAME
smoke-tests/matrix/src/main/java/com/splunk/opentelemetry/appservers/javaee/HeaderDumpingServlet.java
smoke-tests/matrix/src/main/java/io/opentelemetry/smoketest/matrix/HeaderDumpingServlet.java
* SPDX-License-Identifier: Apache-2.0
*/
-package com.splunk.opentelemetry.appservers.javaee;
+package io.opentelemetry.smoketest.matrix;
import java.io.IOException;
import java.io.PrintWriter;

RENAME
smoke-tests/matrix/src/main/java/com/splunk/opentelemetry/appservers/javaee/JspServlet.java
smoke-tests/matrix/src/main/java/io/opentelemetry/smoketest/matrix/JspServlet.java
* SPDX-License-Identifier: Apache-2.0
*/
-package com.splunk.opentelemetry.appservers.javaee;
+package io.opentelemetry.smoketest.matrix;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
@@ -20,5 +20,4 @@ public class JspServlet extends HttpServlet {
RequestDispatcher resultView = req.getRequestDispatcher("test.jsp");
resultView.forward(req, resp);
}
-
}

MODIFY
smoke-tests/matrix/src/main/webapp/WEB-INF/web.xml
smoke-tests/matrix/src/main/webapp/WEB-INF/web.xml
version="3.1">
<servlet>
<servlet-name>Headers</servlet-name>
- <servlet-class>com.splunk.opentelemetry.appservers.javaee.HeaderDumpingServlet</servlet-class>
+ <servlet-class>io.opentelemetry.smoketest.matrix.HeaderDumpingServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>Greeting</servlet-name>
- <servlet-class>com.splunk.opentelemetry.appservers.javaee.GreetingServlet</servlet-class>
+ <servlet-class>io.opentelemetry.smoketest.matrix.GreetingServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>Jsp</servlet-name>
- <servlet-class>com.splunk.opentelemetry.appservers.javaee.JspServlet</servlet-class>
+ <servlet-class>io.opentelemetry.smoketest.matrix.JspServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Headers</servlet-name>

Fix matrix smoke test package name (#1827)