-
Notifications
You must be signed in to change notification settings - Fork 889
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4035 from jamezp/RESTEASY-3388-follow-up
[RESTEASY-3388] Follow ups for JUnit 5 migration
- Loading branch information
Showing
60 changed files
with
398 additions
and
324 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
28 changes: 0 additions & 28 deletions
28
.../arquillian-utils/src/main/java/org/jboss/resteasy/category/AwaitingUpgradeInWildFly.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
testsuite/arquillian-utils/src/main/java/org/jboss/resteasy/category/ExpectedFailing.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...rquillian-utils/src/main/java/org/jboss/resteasy/category/ExpectedFailingOnWildFly18.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...rquillian-utils/src/main/java/org/jboss/resteasy/category/ExpectedFailingOnWildFly19.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...rquillian-utils/src/main/java/org/jboss/resteasy/category/ExpectedFailingOnWildFly20.java
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...rquillian-utils/src/main/java/org/jboss/resteasy/category/ExpectedFailingOnWildFly21.java
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
testsuite/arquillian-utils/src/main/java/org/jboss/resteasy/category/TracingRequired.java
This file was deleted.
Oops, something went wrong.
72 changes: 72 additions & 0 deletions
72
...te/arquillian-utils/src/main/java/org/jboss/resteasy/test/annotations/RequiresModule.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,72 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source. | ||
* | ||
* Copyright 2024 Red Hat, Inc., and individual contributors | ||
* as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.jboss.resteasy.test.annotations; | ||
|
||
import java.lang.annotation.Documented; | ||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Inherited; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
import org.jboss.resteasy.test.condition.RequiresModuleExecutionCondition; | ||
import org.junit.jupiter.api.extension.ExtendWith; | ||
|
||
/** | ||
* Enables or disables a test based on whether the module exists. You can optionally check the version of the module | ||
* to determine it's greater than the {@linkplain #minVersion() minimum version}. | ||
* | ||
* @author <a href="mailto:jperkins@redhat.com">James R. Perkins</a> | ||
*/ | ||
@Inherited | ||
@Documented | ||
@Target({ ElementType.TYPE, ElementType.METHOD }) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@ExtendWith(RequiresModuleExecutionCondition.class) | ||
public @interface RequiresModule { | ||
|
||
/** | ||
* The minimum version of the first library resource in the module. | ||
* | ||
* @return the minimum version | ||
*/ | ||
String minVersion() default ""; | ||
|
||
/** | ||
* The id of the issue which causes this issue. | ||
* | ||
* @return the issue id | ||
*/ | ||
String issueId() default ""; | ||
|
||
/** | ||
* The reason message for disabled tests. | ||
* | ||
* @return the reason message | ||
*/ | ||
String reason() default ""; | ||
|
||
/** | ||
* The module that is required for the test to run. | ||
* | ||
* @return the module name | ||
*/ | ||
String value(); | ||
} |
Oops, something went wrong.