-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a JUnit 5 Internal module and post ShamrockUnitTest for our in… #571
Create a JUnit 5 Internal module and post ShamrockUnitTest for our in… #571
Conversation
1c560d3
to
42e68d5
Compare
...s/arc/deployment/src/main/java/org/jboss/shamrock/arc/deployment/ArcAnnotationProcessor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few things I noted with a quick review.
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertTrue; | ||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.wildfly.common.Assert.assertTrue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import does not seem right.
@@ -114,6 +115,15 @@ public void handleRequest(HttpServerExchange exchange) throws Exception { | |||
return new RuntimeValue<>(d); | |||
} | |||
|
|||
public static SocketAddress getHttpAddress() { | |||
for (Undertow.ListenerInfo info : undertow.getListenerInfo()) { | |||
if (info.getProtcol().equals("http") && info.getSslContext() == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to this patch but there's a typo here: s/getProtcol()/getProtocol()/
integration-tests/jpa-h2/src/test/java/org/jboss/shamrock/example/test/TestResources.java
Show resolved
Hide resolved
There are now three different runners: - junit5: our preferred runner for end users - junit4: legacy runner for JUnit 4 - junit5-internal: unit test runner for testing Shamrock itself
42e68d5
to
cbd69ea
Compare
…ternal testing purposes
This moves our internal Shrinkwrap based tests to JUnit 5