-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix excluded tests for Weld injection in Jetty 12 ee9/10. Add asserti…
…on that servlets can be injected into (#198)
- Loading branch information
Showing
16 changed files
with
146 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...ee10/src/test/java/org/jboss/arquillian/container/jetty/embedded_12_ee10/MyOtherBean.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.jboss.arquillian.container.jetty.embedded_12_ee10; | ||
|
||
import jakarta.enterprise.context.Dependent; | ||
|
||
@Dependent | ||
public class MyOtherBean { | ||
|
||
public String ping() { | ||
return MyOtherBean.class.getSimpleName(); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...0/src/test/java/org/jboss/arquillian/container/jetty/embedded_12_ee10/MyOtherServlet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.jboss.arquillian.container.jetty.embedded_12_ee10; | ||
|
||
import static org.hamcrest.MatcherAssert.assertThat; | ||
import static org.hamcrest.Matchers.is; | ||
|
||
import jakarta.inject.Inject; | ||
import jakarta.servlet.ServletException; | ||
import jakarta.servlet.http.HttpServlet; | ||
import jakarta.servlet.http.HttpServletRequest; | ||
import jakarta.servlet.http.HttpServletResponse; | ||
|
||
import java.io.IOException; | ||
|
||
public class MyOtherServlet extends HttpServlet { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public static final String URL_PATTERN = "Test2"; | ||
|
||
public static final String MESSAGE = "hey there"; | ||
|
||
@Inject | ||
MyOtherBean bean; | ||
|
||
@Override | ||
protected void service(HttpServletRequest request, HttpServletResponse response) | ||
throws ServletException, IOException { | ||
assertThat(bean.ping(), is(MyOtherBean.class.getSimpleName())); | ||
response.getWriter().append(MESSAGE); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...2-ee9/src/test/java/org/jboss/arquillian/container/jetty/embedded_12_ee9/MyOtherBean.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.jboss.arquillian.container.jetty.embedded_12_ee9; | ||
|
||
import jakarta.enterprise.context.Dependent; | ||
|
||
@Dependent | ||
public class MyOtherBean { | ||
|
||
public String ping() { | ||
return MyOtherBean.class.getSimpleName(); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...e9/src/test/java/org/jboss/arquillian/container/jetty/embedded_12_ee9/MyOtherServlet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.jboss.arquillian.container.jetty.embedded_12_ee9; | ||
|
||
import static org.hamcrest.MatcherAssert.assertThat; | ||
import static org.hamcrest.Matchers.is; | ||
|
||
import jakarta.inject.Inject; | ||
import jakarta.servlet.ServletException; | ||
import jakarta.servlet.http.HttpServlet; | ||
import jakarta.servlet.http.HttpServletRequest; | ||
import jakarta.servlet.http.HttpServletResponse; | ||
|
||
import java.io.IOException; | ||
|
||
public class MyOtherServlet extends HttpServlet { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public static final String URL_PATTERN = "Test2"; | ||
|
||
public static final String MESSAGE = "hey there"; | ||
|
||
@Inject | ||
MyOtherBean bean; | ||
|
||
@Override | ||
protected void service(HttpServletRequest request, HttpServletResponse response) | ||
throws ServletException, IOException { | ||
assertThat(bean.ping(), is(MyOtherBean.class.getSimpleName())); | ||
response.getWriter().append(MESSAGE); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters