diff --git a/.github/workflows/ci-actions.yml b/.github/workflows/ci-actions.yml
index fbc187a5..79ad06b3 100644
--- a/.github/workflows/ci-actions.yml
+++ b/.github/workflows/ci-actions.yml
@@ -6,7 +6,7 @@ on:
jobs:
build-weld-junit:
- name: "Weld Testing build, JDK ${{matrix.java.name}}"
+ name: "Weld Testing build, JDK ${{matrix.java.name}}, JUnit ${{matrix.junit.name}}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
@@ -20,6 +20,15 @@ jobs:
name: "21",
java-version: 21,
}
+ junit:
+ - {
+ name: "5.x",
+ profile: "junit5",
+ }
+ - {
+ name: "6.x",
+ profile: "junit6",
+ }
steps:
- uses: actions/checkout@v5
- name: Set up JDK @{}
@@ -40,8 +49,8 @@ jobs:
# Caching is an automated pre/post action that installs the cache if the key exists and exports the cache
# after the job is done. In this case we refresh the cache monthly (by changing key) to avoid unlimited growth.
key: q2maven-master-${{ steps.get-date.outputs.date }}
- - name: Build with Maven
- run: WELD_JUNIT_DEBUG=spotbugs mvn clean install -Dno-format -Dspotbugs.failOnError=true
+ - name: Build with Maven (JUnit ${{matrix.junit.name}})
+ run: WELD_JUNIT_DEBUG=spotbugs mvn clean install -P${{matrix.junit.profile}} -Dno-format -Dspotbugs.failOnError=true
- name: Delete Local Artifacts From Cache
shell: bash
run: rm -r ~/.m2/repository/org/jboss/weld/weld-junit*
@@ -53,5 +62,5 @@ jobs:
uses: actions/upload-artifact@v4
if: failure()
with:
- name: test-reports-jdk${{matrix.java.name}}
+ name: test-reports-jdk${{matrix.java.name}}-junit${{matrix.junit.name}}
path: 'test-reports.tgz'
diff --git a/JUNIT_VERSION_COMPATIBILITY.md b/JUNIT_VERSION_COMPATIBILITY.md
new file mode 100644
index 00000000..e86b448e
--- /dev/null
+++ b/JUNIT_VERSION_COMPATIBILITY.md
@@ -0,0 +1,113 @@
+# JUnit Version Compatibility
+
+## Overview
+
+The `weld-junit-jupiter` module **supports both JUnit Jupiter 5.x and 6.x** through a `provided` scope dependency strategy.
+
+## How It Works
+
+### Dependency Scope Strategy
+
+JUnit dependencies in `weld-junit-jupiter` are declared with `provided` scope:
+
+```xml
+
* Example:
*
*
*
*
* @author Steve Moyer
- * @see WeldJunit5Extension
+ * @see WeldJUnitJupiterExtension
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD })
@Documented
@Inherited
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public @interface EnableWeld {
}
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/ExplicitParamInjection.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/ExplicitParamInjection.java
similarity index 98%
rename from junit5/src/main/java/org/jboss/weld/junit5/ExplicitParamInjection.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/ExplicitParamInjection.java
index 8748b2c7..97578cf6 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/ExplicitParamInjection.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/ExplicitParamInjection.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5;
+package org.jboss.weld.junit.jupiter;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/ExtensionContextUtils.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/ExtensionContextUtils.java
similarity index 96%
rename from junit5/src/main/java/org/jboss/weld/junit5/ExtensionContextUtils.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/ExtensionContextUtils.java
index 124049ce..4159b812 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/ExtensionContextUtils.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/ExtensionContextUtils.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5;
+package org.jboss.weld.junit.jupiter;
import java.util.List;
@@ -50,7 +50,7 @@ private ExtensionContextUtils() {
*/
private static synchronized ExtensionContext.Store getRootExtensionStore(ExtensionContext context) {
if (EXTENSION_NAMESPACE == null) {
- EXTENSION_NAMESPACE = Namespace.create(WeldJunit5Extension.class);
+ EXTENSION_NAMESPACE = Namespace.create(WeldJUnitJupiterExtension.class);
}
return context.getRoot().getStore(EXTENSION_NAMESPACE);
}
@@ -63,7 +63,7 @@ private static synchronized ExtensionContext.Store getRootExtensionStore(Extensi
* @return {@link ExtensionContext.Store} based on {@link ExtensionContext} and the required test class
*/
private static ExtensionContext.Store getTestStore(ExtensionContext context) {
- return context.getStore(Namespace.create(WeldJunit5Extension.class, context.getRequiredTestClass()));
+ return context.getStore(Namespace.create(WeldJUnitJupiterExtension.class, context.getRequiredTestClass()));
}
/**
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/WeldInitiator.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/WeldInitiator.java
similarity index 97%
rename from junit5/src/main/java/org/jboss/weld/junit5/WeldInitiator.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/WeldInitiator.java
index 41447b05..7f5640d6 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/WeldInitiator.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/WeldInitiator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5;
+package org.jboss.weld.junit.jupiter;
import java.lang.annotation.Annotation;
import java.util.List;
@@ -28,16 +28,16 @@
import org.jboss.weld.environment.se.Weld;
import org.jboss.weld.environment.se.WeldContainer;
-import org.jboss.weld.junit.AbstractWeldInitiator;
+import org.jboss.weld.testing.AbstractWeldInitiator;
/**
- * JUnit 5 initiator - can be used to customize the Weld SE container started by {@link WeldJunit5Extension}.
+ * JUnit 5 initiator - can be used to customize the Weld SE container started by {@link WeldJUnitJupiterExtension}.
*
*
@@ -47,13 +47,13 @@
*
- * @ExtendWith(WeldJunit5Extension.class)
+ * @ExtendWith(WeldJUnitJupiterExtension.class)
* public class SimpleTest {
*
* @WeldSetup
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/WeldJunit5Extension.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/WeldJUnitJupiterExtension.java
similarity index 94%
rename from junit5/src/main/java/org/jboss/weld/junit5/WeldJunit5Extension.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/WeldJUnitJupiterExtension.java
index 3cfb829b..89af1442 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/WeldJunit5Extension.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/WeldJUnitJupiterExtension.java
@@ -14,17 +14,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5;
-
-import static org.jboss.weld.junit5.ExtensionContextUtils.getContainerFromStore;
-import static org.jboss.weld.junit5.ExtensionContextUtils.getEnrichersFromStore;
-import static org.jboss.weld.junit5.ExtensionContextUtils.getExplicitInjectionInfoFromStore;
-import static org.jboss.weld.junit5.ExtensionContextUtils.getInitiatorFromStore;
-import static org.jboss.weld.junit5.ExtensionContextUtils.removeContainerFromStore;
-import static org.jboss.weld.junit5.ExtensionContextUtils.setContainerToStore;
-import static org.jboss.weld.junit5.ExtensionContextUtils.setEnrichersToStore;
-import static org.jboss.weld.junit5.ExtensionContextUtils.setExplicitInjectionInfoToStore;
-import static org.jboss.weld.junit5.ExtensionContextUtils.setInitiatorToStore;
+package org.jboss.weld.junit.jupiter;
+
+import static org.jboss.weld.junit.jupiter.ExtensionContextUtils.getContainerFromStore;
+import static org.jboss.weld.junit.jupiter.ExtensionContextUtils.getEnrichersFromStore;
+import static org.jboss.weld.junit.jupiter.ExtensionContextUtils.getExplicitInjectionInfoFromStore;
+import static org.jboss.weld.junit.jupiter.ExtensionContextUtils.getInitiatorFromStore;
+import static org.jboss.weld.junit.jupiter.ExtensionContextUtils.removeContainerFromStore;
+import static org.jboss.weld.junit.jupiter.ExtensionContextUtils.setContainerToStore;
+import static org.jboss.weld.junit.jupiter.ExtensionContextUtils.setEnrichersToStore;
+import static org.jboss.weld.junit.jupiter.ExtensionContextUtils.setExplicitInjectionInfoToStore;
+import static org.jboss.weld.junit.jupiter.ExtensionContextUtils.setInitiatorToStore;
import static org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS;
import static org.junit.jupiter.api.TestInstance.Lifecycle.PER_METHOD;
@@ -73,7 +73,7 @@
*
- * @ExtendWith(WeldJunit5Extension.class)
+ * @ExtendWith(WeldJUnitJupiterExtension.class)
* public class SimpleTest {
*
* // Injected automatically
@@ -92,11 +92,11 @@
* @see EnableWeld
* @see WeldJunitEnricher
*/
-public class WeldJunit5Extension implements AfterAllCallback, BeforeAllCallback,
+public class WeldJUnitJupiterExtension implements AfterAllCallback, BeforeAllCallback,
BeforeEachCallback, AfterEachCallback, ParameterResolver {
// global system property
- public static final String GLOBAL_EXPLICIT_PARAM_INJECTION = "org.jboss.weld.junit5.explicitParamInjection";
+ public static final String GLOBAL_EXPLICIT_PARAM_INJECTION = "org.jboss.weld.junit.jupiter.explicitParamInjection";
private static void storeExplicitParamResolutionInformation(ExtensionContext ec) {
// check system property which may have set the global explicit param injection
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/WeldJunitEnricher.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/WeldJunitEnricher.java
similarity index 95%
rename from junit5/src/main/java/org/jboss/weld/junit5/WeldJunitEnricher.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/WeldJunitEnricher.java
index c4e69c13..a202ffdf 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/WeldJunitEnricher.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/WeldJunitEnricher.java
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5;
+package org.jboss.weld.junit.jupiter;
import org.jboss.weld.environment.se.Weld;
-import org.jboss.weld.junit5.WeldInitiator.Builder;
+import org.jboss.weld.junit.jupiter.WeldInitiator.Builder;
import org.junit.jupiter.api.extension.ExtensionContext;
/**
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/WeldSetup.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/WeldSetup.java
similarity index 91%
rename from junit5/src/main/java/org/jboss/weld/junit5/WeldSetup.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/WeldSetup.java
index 3ee7a597..481da0d6 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/WeldSetup.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/WeldSetup.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5;
+package org.jboss.weld.junit.jupiter;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
- * An annotation used to denote a WeldInitiator field. This is then picked up by {@link WeldJunit5Extension} and used for
+ * An annotation used to denote a WeldInitiator field. This is then picked up by {@link WeldJUnitJupiterExtension} and used for
* configuration.
*
* @author Matej Novotny
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/ActivateScopes.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ActivateScopes.java
similarity index 97%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/ActivateScopes.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ActivateScopes.java
index f55abcbb..4b8c431f 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/ActivateScopes.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ActivateScopes.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/AddBeanClasses.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddBeanClasses.java
similarity index 97%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/AddBeanClasses.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddBeanClasses.java
index d2f7f59f..2aaac0f2 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/AddBeanClasses.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddBeanClasses.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/AddEnabledDecorators.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddEnabledDecorators.java
similarity index 97%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/AddEnabledDecorators.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddEnabledDecorators.java
index 6e82b769..157dfa57 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/AddEnabledDecorators.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddEnabledDecorators.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/AddEnabledInterceptors.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddEnabledInterceptors.java
similarity index 97%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/AddEnabledInterceptors.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddEnabledInterceptors.java
index 76be3e9c..d9fd8980 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/AddEnabledInterceptors.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddEnabledInterceptors.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/AddExtensions.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddExtensions.java
similarity index 97%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/AddExtensions.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddExtensions.java
index 1667a20e..ed2e3819 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/AddExtensions.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddExtensions.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/AddPackages.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddPackages.java
similarity index 97%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/AddPackages.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddPackages.java
index db788244..58633e36 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/AddPackages.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/AddPackages.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/ClassScanning.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ClassScanning.java
similarity index 98%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/ClassScanning.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ClassScanning.java
index f371b442..1f07097f 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/ClassScanning.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ClassScanning.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static java.util.Arrays.asList;
import static java.util.Arrays.stream;
@@ -57,7 +57,6 @@
import org.junit.jupiter.api.Test;
import org.junit.platform.commons.support.AnnotationSupport;
import org.junit.platform.commons.support.HierarchyTraversalMode;
-import org.junit.platform.commons.util.CollectionUtils;
import org.junit.platform.commons.util.Preconditions;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
@@ -315,13 +314,13 @@ private static boolean isFieldShadowedBy(Field upper, Field lower) {
private static List findAnnotatedDeclaredFields(Class> clazz, Class extends Annotation> annotationType) {
return getDeclaredFields(clazz).stream()
.filter((field) -> isAnnotated(field, annotationType))
- .collect(CollectionUtils.toUnmodifiableList());
+ .toList();
}
private static List findAnnotatedDeclaredMethods(Class> clazz, Class extends Annotation> annotationType) {
return getDeclaredMethods(clazz).stream()
.filter((field) -> isAnnotated(field, annotationType))
- .collect(CollectionUtils.toUnmodifiableList());
+ .toList();
}
private static List> getDeclaredConstructors(Class> clazz) {
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/EnableAlternativeStereotypes.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/EnableAlternativeStereotypes.java
similarity index 97%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/EnableAlternativeStereotypes.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/EnableAlternativeStereotypes.java
index 75175d1b..b5db0e4b 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/EnableAlternativeStereotypes.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/EnableAlternativeStereotypes.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/EnableAlternatives.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/EnableAlternatives.java
similarity index 97%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/EnableAlternatives.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/EnableAlternatives.java
index bb374c64..6fdefd1c 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/EnableAlternatives.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/EnableAlternatives.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/EnableAutoWeld.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/EnableAutoWeld.java
similarity index 88%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/EnableAutoWeld.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/EnableAutoWeld.java
index a3571343..46c73036 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/EnableAutoWeld.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/EnableAutoWeld.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
@@ -27,7 +27,7 @@
/**
* Meta-annotation that allows test classes to be extended with {@code @EnableAutoWeld}
- * instead of {@code @ExtendWith(WeldJunit5AutoExtension.class)}.
+ * instead of {@code @ExtendWith(WeldJUnitJupiterAutoExtension.class)}.
*
*
*
@@ -46,13 +46,13 @@
* }
*
*
- * @see WeldJunit5AutoExtension
+ * @see WeldJUnitJupiterAutoExtension
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD })
@Documented
@Inherited
-@ExtendWith(WeldJunit5AutoExtension.class)
+@ExtendWith(WeldJUnitJupiterAutoExtension.class)
public @interface EnableAutoWeld {
}
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/ExcludeBean.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ExcludeBean.java
similarity index 97%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/ExcludeBean.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ExcludeBean.java
index 2030204f..4f033845 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/ExcludeBean.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ExcludeBean.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/ExcludeBeanClasses.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanClasses.java
similarity index 97%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/ExcludeBeanClasses.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanClasses.java
index b9f69acf..4dd4a135 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/ExcludeBeanClasses.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanClasses.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/ExcludedBeansExtension.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ExcludedBeansExtension.java
similarity index 97%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/ExcludedBeansExtension.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ExcludedBeansExtension.java
index f424c584..d73fac2c 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/ExcludedBeansExtension.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/ExcludedBeansExtension.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import java.lang.reflect.Type;
import java.util.Set;
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/SetBeanDiscoveryMode.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/SetBeanDiscoveryMode.java
similarity index 95%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/SetBeanDiscoveryMode.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/SetBeanDiscoveryMode.java
index 99e94aff..6ba319fd 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/SetBeanDiscoveryMode.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/SetBeanDiscoveryMode.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/TestInstanceInjectionExtension.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/TestInstanceInjectionExtension.java
similarity index 95%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/TestInstanceInjectionExtension.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/TestInstanceInjectionExtension.java
index a8bad21f..355c0c65 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/TestInstanceInjectionExtension.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/TestInstanceInjectionExtension.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import jakarta.enterprise.context.spi.CreationalContext;
import jakarta.enterprise.event.Observes;
@@ -30,7 +30,7 @@
/**
* Extension that makes a test instance appear like a regular bean even though instantiated by JUnit.
* Injection into all test instances, also {@link org.junit.jupiter.api.Nested @Nested} ones, is handled in
- * {@link org.jboss.weld.junit5.WeldInitiator#addObjectsToInjectInto} and related.
+ * {@link org.jboss.weld.junit.jupiter.WeldInitiator#addObjectsToInjectInto} and related.
* Proper handling of all other CDI annotations such as {@link jakarta.enterprise.inject.Produces @Produces} is supported
* only on top level test classes.
*/
diff --git a/junit5/src/main/java/org/jboss/weld/junit5/auto/WeldJunit5AutoExtension.java b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/WeldJUnitJupiterAutoExtension.java
similarity index 84%
rename from junit5/src/main/java/org/jboss/weld/junit5/auto/WeldJunit5AutoExtension.java
rename to junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/WeldJUnitJupiterAutoExtension.java
index 0ff109ef..37808cf7 100644
--- a/junit5/src/main/java/org/jboss/weld/junit5/auto/WeldJunit5AutoExtension.java
+++ b/junit-jupiter/src/main/java/org/jboss/weld/junit/jupiter/auto/WeldJUnitJupiterAutoExtension.java
@@ -14,25 +14,25 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static java.lang.String.format;
import static java.util.stream.Collectors.joining;
-import static org.jboss.weld.junit5.ExtensionContextUtils.getExplicitInjectionInfoFromStore;
+import static org.jboss.weld.junit.jupiter.ExtensionContextUtils.getExplicitInjectionInfoFromStore;
import java.lang.reflect.Field;
import java.util.List;
import java.util.stream.Collectors;
import org.jboss.weld.environment.se.Weld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldJunitEnricher;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJunitEnricher;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.junit.platform.commons.support.AnnotationSupport;
/**
- * An alternative to {@link WeldJunit5Extension} allowing to fully leverage an annotation based configuration approach.
+ * An alternative to {@link WeldJUnitJupiterExtension} allowing to fully leverage an annotation based configuration approach.
* When used, the extension will attempt to resolve all beans used in your test class and automatically adds them to
* the Weld container while bootstrapping it.
*
@@ -43,7 +43,7 @@
* Furthermore, all discovered {@link WeldJunitEnricher}s are invoked after the annotations are processed.
*
*
- * Note that this approach cannot be combined with {@link WeldJunit5Extension}, choose one or the other approach, not both.
+ * Note that this approach cannot be combined with {@link WeldJUnitJupiterExtension}, choose one or the other approach, not both.
*
* @see ActivateScopes
* @see AddBeanClasses
@@ -59,7 +59,7 @@
* @see SetBeanDiscoveryMode
* @see WeldJunitEnricher
*/
-public class WeldJunit5AutoExtension extends WeldJunit5Extension {
+public class WeldJUnitJupiterAutoExtension extends WeldJUnitJupiterExtension {
@Override
protected void validateInitiator(List foundInitiatorFields) {
if (foundInitiatorFields.size() > 0) {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/alternative/AlternativeAsSoleBeanInSyntheticArchiveTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/alternative/AlternativeAsSoleBeanInSyntheticArchiveTest.java
similarity index 80%
rename from junit5/src/test/java/org/jboss/weld/junit5/alternative/AlternativeAsSoleBeanInSyntheticArchiveTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/alternative/AlternativeAsSoleBeanInSyntheticArchiveTest.java
index 48f473b5..385ebd5e 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/alternative/AlternativeAsSoleBeanInSyntheticArchiveTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/alternative/AlternativeAsSoleBeanInSyntheticArchiveTest.java
@@ -1,13 +1,13 @@
-package org.jboss.weld.junit5.alternative;
+package org.jboss.weld.junit.jupiter.alternative;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.inject.spi.Bean;
import jakarta.inject.Inject;
-import org.jboss.weld.junit.MockBean;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.testing.MockBean;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/alternative/Fish.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/alternative/Fish.java
similarity index 78%
rename from junit5/src/test/java/org/jboss/weld/junit5/alternative/Fish.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/alternative/Fish.java
index 6d06cc59..683fd3b8 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/alternative/Fish.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/alternative/Fish.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.alternative;
+package org.jboss.weld.junit.jupiter.alternative;
public class Fish {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ActivateScopesInheritanceTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ActivateScopesInheritanceTest.java
similarity index 90%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ActivateScopesInheritanceTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ActivateScopesInheritanceTest.java
index 0cc0e5c6..6b02ad47 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ActivateScopesInheritanceTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ActivateScopesInheritanceTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
@@ -12,9 +12,9 @@
import jakarta.enterprise.inject.spi.BeanManager;
import jakarta.inject.Named;
-import org.jboss.weld.junit5.auto.beans.Engine;
-import org.jboss.weld.junit5.auto.beans.V6;
-import org.jboss.weld.junit5.auto.beans.V8;
+import org.jboss.weld.junit.jupiter.auto.beans.Engine;
+import org.jboss.weld.junit.jupiter.auto.beans.V6;
+import org.jboss.weld.junit.jupiter.auto.beans.V8;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ActivateScopesTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ActivateScopesTest.java
similarity index 89%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ActivateScopesTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ActivateScopesTest.java
index f45ec312..933e54cc 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ActivateScopesTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ActivateScopesTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
@@ -12,9 +12,9 @@
import jakarta.enterprise.inject.spi.BeanManager;
import jakarta.inject.Named;
-import org.jboss.weld.junit5.auto.beans.Engine;
-import org.jboss.weld.junit5.auto.beans.V6;
-import org.jboss.weld.junit5.auto.beans.V8;
+import org.jboss.weld.junit.jupiter.auto.beans.Engine;
+import org.jboss.weld.junit.jupiter.auto.beans.V6;
+import org.jboss.weld.junit.jupiter.auto.beans.V8;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/AddBeanClassesTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddBeanClassesTest.java
similarity index 75%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/AddBeanClassesTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddBeanClassesTest.java
index 78913e70..93de44e6 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/AddBeanClassesTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddBeanClassesTest.java
@@ -1,11 +1,11 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.auto.beans.Engine;
-import org.jboss.weld.junit5.auto.beans.V8;
+import org.jboss.weld.junit.jupiter.auto.beans.Engine;
+import org.jboss.weld.junit.jupiter.auto.beans.V8;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/AddDecoratorTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddDecoratorTest.java
similarity index 87%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/AddDecoratorTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddDecoratorTest.java
index 61acb1f6..2c3f2a75 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/AddDecoratorTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddDecoratorTest.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.auto.interceptorAndDecorator.DecoratedBean;
-import org.jboss.weld.junit5.auto.interceptorAndDecorator.TestDecorator;
+import org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator.DecoratedBean;
+import org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator.TestDecorator;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/AddExtensionsTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddExtensionsTest.java
similarity index 77%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/AddExtensionsTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddExtensionsTest.java
index 132ac094..a2bd7415 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/AddExtensionsTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddExtensionsTest.java
@@ -1,8 +1,8 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertTrue;
-import org.jboss.weld.junit5.auto.extension.AddedExtension;
+import org.jboss.weld.junit.jupiter.auto.extension.AddedExtension;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/AddInterceptorTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddInterceptorTest.java
similarity index 87%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/AddInterceptorTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddInterceptorTest.java
index 7748dd83..56bf6998 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/AddInterceptorTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddInterceptorTest.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.auto.interceptorAndDecorator.InterceptedBean;
-import org.jboss.weld.junit5.auto.interceptorAndDecorator.TestInterceptor;
+import org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator.InterceptedBean;
+import org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator.TestInterceptor;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/AddPackagesTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddPackagesTest.java
similarity index 76%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/AddPackagesTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddPackagesTest.java
index ac59e3dc..425ce7cc 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/AddPackagesTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AddPackagesTest.java
@@ -1,11 +1,11 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.auto.beans.Engine;
-import org.jboss.weld.junit5.auto.beans.V8;
+import org.jboss.weld.junit.jupiter.auto.beans.Engine;
+import org.jboss.weld.junit.jupiter.auto.beans.V8;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/AnnotationsInheritanceTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AnnotationsInheritanceTest.java
similarity index 82%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/AnnotationsInheritanceTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AnnotationsInheritanceTest.java
index 7fe66937..2aab836c 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/AnnotationsInheritanceTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AnnotationsInheritanceTest.java
@@ -1,17 +1,17 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.auto.beans.Engine;
-import org.jboss.weld.junit5.auto.beans.V8;
-import org.jboss.weld.junit5.auto.extension.AddedExtension;
-import org.jboss.weld.junit5.auto.interceptorAndDecorator.DecoratedBean;
-import org.jboss.weld.junit5.auto.interceptorAndDecorator.InterceptedBean;
-import org.jboss.weld.junit5.auto.interceptorAndDecorator.TestDecorator;
-import org.jboss.weld.junit5.auto.interceptorAndDecorator.TestInterceptor;
+import org.jboss.weld.junit.jupiter.auto.beans.Engine;
+import org.jboss.weld.junit.jupiter.auto.beans.V8;
+import org.jboss.weld.junit.jupiter.auto.extension.AddedExtension;
+import org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator.DecoratedBean;
+import org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator.InterceptedBean;
+import org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator.TestDecorator;
+import org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator.TestInterceptor;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/AutoConfigWithWeldSetupTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AutoConfigWithWeldSetupTest.java
similarity index 90%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/AutoConfigWithWeldSetupTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AutoConfigWithWeldSetupTest.java
index e2df7dee..14b08ab5 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/AutoConfigWithWeldSetupTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/AutoConfigWithWeldSetupTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertInstanceOf;
@@ -7,8 +7,8 @@
import java.lang.reflect.Field;
import java.util.Optional;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.AfterEachCallback;
@@ -55,7 +55,7 @@ public void afterEach(ExtensionContext context) throws NoSuchFieldException, Ill
Throwable throwable = executionException.get();
assertInstanceOf(IllegalStateException.class, throwable);
assertEquals("When using automagic mode, no @WeldSetup annotated field should be present! Fields found:\n"
- + "Field 'weld' with type class org.jboss.weld.junit5.WeldInitiator which is in class org.jboss.weld.junit5.auto.AutoConfigWithWeldSetupTest",
+ + "Field 'weld' with type class org.jboss.weld.junit.jupiter.WeldInitiator which is in class org.jboss.weld.junit.jupiter.auto.AutoConfigWithWeldSetupTest",
throwable.getMessage());
}
}
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/BasicAutoConfigTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/BasicAutoConfigTest.java
similarity index 80%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/BasicAutoConfigTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/BasicAutoConfigTest.java
index 68307dbd..3dc700d9 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/BasicAutoConfigTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/BasicAutoConfigTest.java
@@ -1,12 +1,12 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.basic.Foo;
-import org.jboss.weld.junit5.explicitInjection.Bar;
+import org.jboss.weld.junit.jupiter.basic.Foo;
+import org.jboss.weld.junit.jupiter.explicitInjection.Bar;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanClassesDepsTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanClassesDepsTest.java
similarity index 82%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanClassesDepsTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanClassesDepsTest.java
index 22adcb87..2d6e77ef 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanClassesDepsTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanClassesDepsTest.java
@@ -1,11 +1,11 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import jakarta.enterprise.inject.Produces;
-import org.jboss.weld.junit5.basic.unsatisfied.FooDeps;
-import org.jboss.weld.junit5.basic.unsatisfied.SomeFooDeps;
+import org.jboss.weld.junit.jupiter.basic.unsatisfied.FooDeps;
+import org.jboss.weld.junit.jupiter.basic.unsatisfied.SomeFooDeps;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanClassesTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanClassesTest.java
similarity index 81%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanClassesTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanClassesTest.java
index b1094561..97ddb5c5 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanClassesTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanClassesTest.java
@@ -1,12 +1,12 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import jakarta.enterprise.inject.Produces;
-import org.jboss.weld.junit5.basic.Foo;
-import org.jboss.weld.junit5.basic.SomeFoo;
+import org.jboss.weld.junit.jupiter.basic.Foo;
+import org.jboss.weld.junit.jupiter.basic.SomeFoo;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanDepsTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanDepsTest.java
similarity index 81%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanDepsTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanDepsTest.java
index fa17af05..931cdc44 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanDepsTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanDepsTest.java
@@ -1,11 +1,11 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import jakarta.enterprise.inject.Produces;
-import org.jboss.weld.junit5.basic.unsatisfied.FooDeps;
-import org.jboss.weld.junit5.basic.unsatisfied.SomeFooDeps;
+import org.jboss.weld.junit.jupiter.basic.unsatisfied.FooDeps;
+import org.jboss.weld.junit.jupiter.basic.unsatisfied.SomeFooDeps;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanHierarchyTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanHierarchyTest.java
similarity index 76%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanHierarchyTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanHierarchyTest.java
index bffd4c7c..9e7ff9e4 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanHierarchyTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanHierarchyTest.java
@@ -1,13 +1,13 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import jakarta.enterprise.inject.Produces;
-import org.jboss.weld.junit5.basic.Foo;
-import org.jboss.weld.junit5.basic.IFoo;
-import org.jboss.weld.junit5.basic.SomeIFoo;
+import org.jboss.weld.junit.jupiter.basic.Foo;
+import org.jboss.weld.junit.jupiter.basic.IFoo;
+import org.jboss.weld.junit.jupiter.basic.SomeIFoo;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanMetaAnnotationTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanMetaAnnotationTest.java
similarity index 90%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanMetaAnnotationTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanMetaAnnotationTest.java
index 1e6f40bc..b238a61f 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanMetaAnnotationTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanMetaAnnotationTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
@@ -10,8 +10,8 @@
import jakarta.enterprise.inject.Produces;
-import org.jboss.weld.junit5.basic.Foo;
-import org.jboss.weld.junit5.basic.SomeFoo;
+import org.jboss.weld.junit.jupiter.basic.Foo;
+import org.jboss.weld.junit.jupiter.basic.SomeFoo;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanTest.java
similarity index 80%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanTest.java
index 4f5f1b07..4c0a5e03 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExcludeBeanTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExcludeBeanTest.java
@@ -1,12 +1,12 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import jakarta.enterprise.inject.Produces;
-import org.jboss.weld.junit5.basic.Foo;
-import org.jboss.weld.junit5.basic.SomeFoo;
+import org.jboss.weld.junit.jupiter.basic.Foo;
+import org.jboss.weld.junit.jupiter.basic.SomeFoo;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExplicitParametersAutoConfigTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExplicitParametersAutoConfigTest.java
similarity index 73%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ExplicitParametersAutoConfigTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExplicitParametersAutoConfigTest.java
index d736b47f..ee4596e4 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ExplicitParametersAutoConfigTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ExplicitParametersAutoConfigTest.java
@@ -1,14 +1,14 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import jakarta.enterprise.inject.Default;
-import org.jboss.weld.junit5.ExplicitParamInjection;
-import org.jboss.weld.junit5.basic.Foo;
-import org.jboss.weld.junit5.explicitInjection.Bar;
-import org.jboss.weld.junit5.explicitInjection.CustomExtension;
+import org.jboss.weld.junit.jupiter.ExplicitParamInjection;
+import org.jboss.weld.junit.jupiter.basic.Foo;
+import org.jboss.weld.junit.jupiter.explicitInjection.Bar;
+import org.jboss.weld.junit.jupiter.explicitInjection.CustomExtension;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/InheritedInjectedTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InheritedInjectedTest.java
similarity index 96%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/InheritedInjectedTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InheritedInjectedTest.java
index 0f3a0860..e680f7ee 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/InheritedInjectedTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InheritedInjectedTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/InheritedProducerFieldTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InheritedProducerFieldTest.java
similarity index 96%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/InheritedProducerFieldTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InheritedProducerFieldTest.java
index 6c73028e..8c719b73 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/InheritedProducerFieldTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InheritedProducerFieldTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertEquals;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/InheritedProducerMethodTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InheritedProducerMethodTest.java
similarity index 96%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/InheritedProducerMethodTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InheritedProducerMethodTest.java
index 7c1da6dc..73c65b6b 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/InheritedProducerMethodTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InheritedProducerMethodTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertEquals;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/InjectInstanceTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InjectInstanceTest.java
similarity index 91%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/InjectInstanceTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InjectInstanceTest.java
index 199f346c..bab81440 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/InjectInstanceTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InjectInstanceTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/InjectMethodParamTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InjectMethodParamTest.java
similarity index 91%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/InjectMethodParamTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InjectMethodParamTest.java
index 9f98b388..b2ad0619 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/InjectMethodParamTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InjectMethodParamTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/InjectParameterizedInstanceTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InjectParameterizedInstanceTest.java
similarity index 91%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/InjectParameterizedInstanceTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InjectParameterizedInstanceTest.java
index c1174701..e53a8907 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/InjectParameterizedInstanceTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InjectParameterizedInstanceTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/InjectParameterizedTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InjectParameterizedTest.java
similarity index 89%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/InjectParameterizedTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InjectParameterizedTest.java
index a87e6333..1fc7c5e3 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/InjectParameterizedTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/InjectParameterizedTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ParametersAutoConfigTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ParametersAutoConfigTest.java
similarity index 79%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ParametersAutoConfigTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ParametersAutoConfigTest.java
index 316868ac..b5977a88 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ParametersAutoConfigTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ParametersAutoConfigTest.java
@@ -1,10 +1,10 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
-import org.jboss.weld.junit5.basic.Foo;
-import org.jboss.weld.junit5.explicitInjection.Bar;
+import org.jboss.weld.junit.jupiter.basic.Foo;
+import org.jboss.weld.junit.jupiter.explicitInjection.Bar;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ProducerMethodParametersScanningTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ProducerMethodParametersScanningTest.java
similarity index 83%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ProducerMethodParametersScanningTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ProducerMethodParametersScanningTest.java
index 3e319f10..37ef3fa9 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ProducerMethodParametersScanningTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ProducerMethodParametersScanningTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
@@ -6,8 +6,8 @@
import jakarta.enterprise.inject.Produces;
import jakarta.inject.Named;
-import org.jboss.weld.junit5.auto.beans.Engine;
-import org.jboss.weld.junit5.auto.beans.V6;
+import org.jboss.weld.junit.jupiter.auto.beans.Engine;
+import org.jboss.weld.junit.jupiter.auto.beans.V6;
import org.junit.jupiter.api.Test;
@EnableAutoWeld
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ProducesBeforeTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ProducesBeforeTest.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ProducesBeforeTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ProducesBeforeTest.java
index 65cb5582..32de9a8c 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ProducesBeforeTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ProducesBeforeTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ScannedClassesAreNotForcedBeansTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ScannedClassesAreNotForcedBeansTest.java
similarity index 85%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ScannedClassesAreNotForcedBeansTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ScannedClassesAreNotForcedBeansTest.java
index cf9c4385..2891d0fa 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ScannedClassesAreNotForcedBeansTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ScannedClassesAreNotForcedBeansTest.java
@@ -1,11 +1,11 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import jakarta.enterprise.inject.Produces;
-import org.jboss.weld.junit5.auto.beans.unsatisfied.InjectedV8NoAnnotation;
-import org.jboss.weld.junit5.auto.beans.unsatisfied.V8NoAnnotation;
+import org.jboss.weld.junit.jupiter.auto.beans.unsatisfied.InjectedV8NoAnnotation;
+import org.jboss.weld.junit.jupiter.auto.beans.unsatisfied.V8NoAnnotation;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/ScannedParameterClassesAreNotForcedBeansTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ScannedParameterClassesAreNotForcedBeansTest.java
similarity index 85%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/ScannedParameterClassesAreNotForcedBeansTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ScannedParameterClassesAreNotForcedBeansTest.java
index 114f803a..a498a26a 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/ScannedParameterClassesAreNotForcedBeansTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/ScannedParameterClassesAreNotForcedBeansTest.java
@@ -1,11 +1,11 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import jakarta.enterprise.inject.Produces;
-import org.jboss.weld.junit5.auto.beans.unsatisfied.ConstructedV8NoAnnotation;
-import org.jboss.weld.junit5.auto.beans.unsatisfied.V8NoAnnotation;
+import org.jboss.weld.junit.jupiter.auto.beans.unsatisfied.ConstructedV8NoAnnotation;
+import org.jboss.weld.junit.jupiter.auto.beans.unsatisfied.V8NoAnnotation;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/SetDiscoveryModeAllTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/SetDiscoveryModeAllTest.java
similarity index 82%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/SetDiscoveryModeAllTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/SetDiscoveryModeAllTest.java
index cd0e9306..1cd5884a 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/SetDiscoveryModeAllTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/SetDiscoveryModeAllTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto;
+package org.jboss.weld.junit.jupiter.auto;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -7,8 +7,8 @@
import jakarta.inject.Inject;
import org.jboss.weld.bootstrap.spi.BeanDiscoveryMode;
-import org.jboss.weld.junit5.auto.discovery.WithBeanDefiningAnnotation;
-import org.jboss.weld.junit5.auto.discovery.WithoutBeanDefiningAnnotation;
+import org.jboss.weld.junit.jupiter.auto.discovery.WithBeanDefiningAnnotation;
+import org.jboss.weld.junit.jupiter.auto.discovery.WithoutBeanDefiningAnnotation;
import org.junit.jupiter.api.Test;
@EnableAutoWeld
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/EnableAlternativeStereotypeInheritanceTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/EnableAlternativeStereotypeInheritanceTest.java
similarity index 85%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/EnableAlternativeStereotypeInheritanceTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/EnableAlternativeStereotypeInheritanceTest.java
index b5f7d278..f8668c7b 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/EnableAlternativeStereotypeInheritanceTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/EnableAlternativeStereotypeInheritanceTest.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.alternativeStereotype;
+package org.jboss.weld.junit.jupiter.auto.alternativeStereotype;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.auto.AddBeanClasses;
-import org.jboss.weld.junit5.auto.EnableAlternativeStereotypes;
-import org.jboss.weld.junit5.auto.EnableAutoWeld;
+import org.jboss.weld.junit.jupiter.auto.AddBeanClasses;
+import org.jboss.weld.junit.jupiter.auto.EnableAlternativeStereotypes;
+import org.jboss.weld.junit.jupiter.auto.EnableAutoWeld;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/EnableAlternativeStereotypeTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/EnableAlternativeStereotypeTest.java
similarity index 84%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/EnableAlternativeStereotypeTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/EnableAlternativeStereotypeTest.java
index 11eb7eb6..c8e219e1 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/EnableAlternativeStereotypeTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/EnableAlternativeStereotypeTest.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.alternativeStereotype;
+package org.jboss.weld.junit.jupiter.auto.alternativeStereotype;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.auto.AddBeanClasses;
-import org.jboss.weld.junit5.auto.EnableAlternativeStereotypes;
-import org.jboss.weld.junit5.auto.EnableAutoWeld;
+import org.jboss.weld.junit.jupiter.auto.AddBeanClasses;
+import org.jboss.weld.junit.jupiter.auto.EnableAlternativeStereotypes;
+import org.jboss.weld.junit.jupiter.auto.EnableAutoWeld;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/Foo.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/Foo.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/Foo.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/Foo.java
index 49c44159..fd61e21d 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/Foo.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/Foo.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.alternativeStereotype;
+package org.jboss.weld.junit.jupiter.auto.alternativeStereotype;
import jakarta.enterprise.context.ApplicationScoped;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/FooAlternative.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/FooAlternative.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/FooAlternative.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/FooAlternative.java
index 2f0e7ee2..9db0b257 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/FooAlternative.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/FooAlternative.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.alternativeStereotype;
+package org.jboss.weld.junit.jupiter.auto.alternativeStereotype;
import jakarta.enterprise.context.ApplicationScoped;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/SomeStereotype.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/SomeStereotype.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/SomeStereotype.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/SomeStereotype.java
index 4c3aca33..387c98e9 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternativeStereotype/SomeStereotype.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternativeStereotype/SomeStereotype.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.alternativeStereotype;
+package org.jboss.weld.junit.jupiter.auto.alternativeStereotype;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternatives/EnableAlternativeTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternatives/EnableAlternativeTest.java
similarity index 85%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/alternatives/EnableAlternativeTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternatives/EnableAlternativeTest.java
index 26e1f278..a1836f62 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternatives/EnableAlternativeTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternatives/EnableAlternativeTest.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.alternatives;
+package org.jboss.weld.junit.jupiter.auto.alternatives;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.auto.AddBeanClasses;
-import org.jboss.weld.junit5.auto.EnableAlternatives;
-import org.jboss.weld.junit5.auto.EnableAutoWeld;
+import org.jboss.weld.junit.jupiter.auto.AddBeanClasses;
+import org.jboss.weld.junit.jupiter.auto.EnableAlternatives;
+import org.jboss.weld.junit.jupiter.auto.EnableAutoWeld;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternatives/EnableAlternativesInheritanceTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternatives/EnableAlternativesInheritanceTest.java
similarity index 86%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/alternatives/EnableAlternativesInheritanceTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternatives/EnableAlternativesInheritanceTest.java
index ffd8c861..05d6b78a 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternatives/EnableAlternativesInheritanceTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternatives/EnableAlternativesInheritanceTest.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.alternatives;
+package org.jboss.weld.junit.jupiter.auto.alternatives;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.auto.AddBeanClasses;
-import org.jboss.weld.junit5.auto.EnableAlternatives;
-import org.jboss.weld.junit5.auto.EnableAutoWeld;
+import org.jboss.weld.junit.jupiter.auto.AddBeanClasses;
+import org.jboss.weld.junit.jupiter.auto.EnableAlternatives;
+import org.jboss.weld.junit.jupiter.auto.EnableAutoWeld;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternatives/Foo.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternatives/Foo.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/alternatives/Foo.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternatives/Foo.java
index 19ee2aa9..e9973de4 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternatives/Foo.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternatives/Foo.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.alternatives;
+package org.jboss.weld.junit.jupiter.auto.alternatives;
import jakarta.enterprise.context.ApplicationScoped;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternatives/FooAlternative.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternatives/FooAlternative.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/alternatives/FooAlternative.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternatives/FooAlternative.java
index e978e5f0..728f2285 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/alternatives/FooAlternative.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/alternatives/FooAlternative.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.alternatives;
+package org.jboss.weld.junit.jupiter.auto.alternatives;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.inject.Alternative;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/beans/Engine.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/Engine.java
similarity index 64%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/beans/Engine.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/Engine.java
index 9f6a26f2..d55fc1dc 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/beans/Engine.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/Engine.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto.beans;
+package org.jboss.weld.junit.jupiter.auto.beans;
public interface Engine {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/beans/V6.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/V6.java
similarity index 87%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/beans/V6.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/V6.java
index 14eb0eb1..5825f522 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/beans/V6.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/V6.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto.beans;
+package org.jboss.weld.junit.jupiter.auto.beans;
import java.io.Serializable;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/beans/V8.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/V8.java
similarity index 87%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/beans/V8.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/V8.java
index d818f0c3..58e5329e 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/beans/V8.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/V8.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto.beans;
+package org.jboss.weld.junit.jupiter.auto.beans;
import java.io.Serializable;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/beans/unsatisfied/ConstructedV8NoAnnotation.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/unsatisfied/ConstructedV8NoAnnotation.java
similarity index 82%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/beans/unsatisfied/ConstructedV8NoAnnotation.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/unsatisfied/ConstructedV8NoAnnotation.java
index 8f8ca27a..7081da23 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/beans/unsatisfied/ConstructedV8NoAnnotation.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/unsatisfied/ConstructedV8NoAnnotation.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto.beans.unsatisfied;
+package org.jboss.weld.junit.jupiter.auto.beans.unsatisfied;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/beans/unsatisfied/InjectedV8NoAnnotation.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/unsatisfied/InjectedV8NoAnnotation.java
similarity index 74%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/beans/unsatisfied/InjectedV8NoAnnotation.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/unsatisfied/InjectedV8NoAnnotation.java
index 50f0109d..c63ba627 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/beans/unsatisfied/InjectedV8NoAnnotation.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/unsatisfied/InjectedV8NoAnnotation.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto.beans.unsatisfied;
+package org.jboss.weld.junit.jupiter.auto.beans.unsatisfied;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/beans/unsatisfied/V8NoAnnotation.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/unsatisfied/V8NoAnnotation.java
similarity index 74%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/beans/unsatisfied/V8NoAnnotation.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/unsatisfied/V8NoAnnotation.java
index 84f396ec..7b3ce8b1 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/beans/unsatisfied/V8NoAnnotation.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/beans/unsatisfied/V8NoAnnotation.java
@@ -1,8 +1,8 @@
-package org.jboss.weld.junit5.auto.beans.unsatisfied;
+package org.jboss.weld.junit.jupiter.auto.beans.unsatisfied;
import java.io.Serializable;
-import org.jboss.weld.junit5.auto.beans.Engine;
+import org.jboss.weld.junit.jupiter.auto.beans.Engine;
// NOTE - deliberately missing bean defining annotation
public class V8NoAnnotation implements Engine, Serializable {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/discovery/WithBeanDefiningAnnotation.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/discovery/WithBeanDefiningAnnotation.java
similarity index 69%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/discovery/WithBeanDefiningAnnotation.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/discovery/WithBeanDefiningAnnotation.java
index 17123076..9ea0080d 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/discovery/WithBeanDefiningAnnotation.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/discovery/WithBeanDefiningAnnotation.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto.discovery;
+package org.jboss.weld.junit.jupiter.auto.discovery;
import jakarta.enterprise.context.ApplicationScoped;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/discovery/WithoutBeanDefiningAnnotation.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/discovery/WithoutBeanDefiningAnnotation.java
similarity index 66%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/discovery/WithoutBeanDefiningAnnotation.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/discovery/WithoutBeanDefiningAnnotation.java
index aefada28..0f477b68 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/discovery/WithoutBeanDefiningAnnotation.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/discovery/WithoutBeanDefiningAnnotation.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto.discovery;
+package org.jboss.weld.junit.jupiter.auto.discovery;
// intentionally doesn't have any bean defining annotation
public class WithoutBeanDefiningAnnotation {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/extension/AddedExtension.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/extension/AddedExtension.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/extension/AddedExtension.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/extension/AddedExtension.java
index d804541e..25cccfdd 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/extension/AddedExtension.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/extension/AddedExtension.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.extension;
+package org.jboss.weld.junit.jupiter.auto.extension;
import jakarta.enterprise.event.Observes;
import jakarta.enterprise.inject.spi.AfterBeanDiscovery;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/DecoratedBean.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/DecoratedBean.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/DecoratedBean.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/DecoratedBean.java
index 043937d1..b3b9c9da 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/DecoratedBean.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/DecoratedBean.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.interceptorAndDecorator;
+package org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator;
import jakarta.enterprise.context.Dependent;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/DecoratedBeanInterface.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/DecoratedBeanInterface.java
similarity index 93%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/DecoratedBeanInterface.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/DecoratedBeanInterface.java
index 57675a8d..981a654a 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/DecoratedBeanInterface.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/DecoratedBeanInterface.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.interceptorAndDecorator;
+package org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator;
/**
*
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/InterceptedBean.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/InterceptedBean.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/InterceptedBean.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/InterceptedBean.java
index 7000ce61..34bf0596 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/InterceptedBean.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/InterceptedBean.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.interceptorAndDecorator;
+package org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator;
import jakarta.enterprise.context.Dependent;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/TestDecorator.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/TestDecorator.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/TestDecorator.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/TestDecorator.java
index a9e797f8..f205915b 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/TestDecorator.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/TestDecorator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.interceptorAndDecorator;
+package org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator;
import jakarta.decorator.Decorator;
import jakarta.decorator.Delegate;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/TestInterceptor.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/TestInterceptor.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/TestInterceptor.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/TestInterceptor.java
index 078751ac..e9ea74fb 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/TestInterceptor.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/TestInterceptor.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.interceptorAndDecorator;
+package org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator;
import jakarta.interceptor.AroundInvoke;
import jakarta.interceptor.Interceptor;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/TestInterceptorBinding.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/TestInterceptorBinding.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/TestInterceptorBinding.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/TestInterceptorBinding.java
index c36ca07e..af98d242 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/interceptorAndDecorator/TestInterceptorBinding.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/interceptorAndDecorator/TestInterceptorBinding.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.auto.interceptorAndDecorator;
+package org.jboss.weld.junit.jupiter.auto.interceptorAndDecorator;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/auto/nested/OuterTestClassAndBeanSameInstanceTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/nested/OuterTestClassAndBeanSameInstanceTest.java
similarity index 97%
rename from junit5/src/test/java/org/jboss/weld/junit5/auto/nested/OuterTestClassAndBeanSameInstanceTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/nested/OuterTestClassAndBeanSameInstanceTest.java
index 532a2dbc..7a1bed74 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/auto/nested/OuterTestClassAndBeanSameInstanceTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/auto/nested/OuterTestClassAndBeanSameInstanceTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.auto.nested;
+package org.jboss.weld.junit.jupiter.auto.nested;
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -12,7 +12,7 @@
import jakarta.enterprise.inject.Produces;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.auto.EnableAutoWeld;
+import org.jboss.weld.junit.jupiter.auto.EnableAutoWeld;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/BeanManagerTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/BeanManagerTest.java
similarity index 82%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/BeanManagerTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/BeanManagerTest.java
index e75fce52..4969eabb 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/BeanManagerTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/BeanManagerTest.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.basic;
+package org.jboss.weld.junit.jupiter.basic;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -27,7 +27,7 @@
*
* @author Matej Novotny
*/
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class BeanManagerTest {
@WeldSetup
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/ContainerNotRunningTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/ContainerNotRunningTest.java
similarity index 84%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/ContainerNotRunningTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/ContainerNotRunningTest.java
index 1357a38e..5390ff41 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/ContainerNotRunningTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/ContainerNotRunningTest.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.basic;
+package org.jboss.weld.junit.jupiter.basic;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -27,7 +27,7 @@
*
* @author Matej Novotny
*/
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class ContainerNotRunningTest {
@WeldSetup
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/CustomWeldTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/CustomWeldTest.java
similarity index 83%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/CustomWeldTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/CustomWeldTest.java
index 73a347f7..0f72ae0a 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/CustomWeldTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/CustomWeldTest.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.basic;
+package org.jboss.weld.junit.jupiter.basic;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -27,7 +27,7 @@
*
* @author Matej Novotny
*/
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class CustomWeldTest {
@WeldSetup
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/DisabledMethodsTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/DisabledMethodsTest.java
similarity index 81%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/DisabledMethodsTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/DisabledMethodsTest.java
index 297a98ed..e61c428b 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/DisabledMethodsTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/DisabledMethodsTest.java
@@ -1,12 +1,12 @@
-package org.jboss.weld.junit5.basic;
+package org.jboss.weld.junit.jupiter.basic;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.jboss.weld.environment.se.WeldContainer;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
@@ -24,8 +24,8 @@
* @author Matej Novotny
*/
@Isolated
-@ExtendWith(WeldJunit5Extension.class)
-@TestMethodOrder(value = MethodOrderer.Alphanumeric.class) // enforces ordering of methods, required!
+@ExtendWith(WeldJUnitJupiterExtension.class)
+@TestMethodOrder(value = MethodOrderer.MethodName.class) // enforces ordering of methods, required!
public class DisabledMethodsTest {
@WeldSetup
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/EnableWeldTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/EnableWeldTest.java
similarity index 84%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/EnableWeldTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/EnableWeldTest.java
index 984e8a7c..f3923683 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/EnableWeldTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/EnableWeldTest.java
@@ -1,11 +1,11 @@
-package org.jboss.weld.junit5.basic;
+package org.jboss.weld.junit.jupiter.basic;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import jakarta.enterprise.inject.spi.BeanManager;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.EnableWeld;
+import org.jboss.weld.junit.jupiter.EnableWeld;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/Foo.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/Foo.java
similarity index 96%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/Foo.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/Foo.java
index e8c73e03..40b5e1b7 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/Foo.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/Foo.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.basic;
+package org.jboss.weld.junit.jupiter.basic;
import jakarta.annotation.PostConstruct;
import jakarta.enterprise.context.ApplicationScoped;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/FooAlternative.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/FooAlternative.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/FooAlternative.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/FooAlternative.java
index 85d98b7c..1aacdd9a 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/FooAlternative.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/FooAlternative.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.basic;
+package org.jboss.weld.junit.jupiter.basic;
import jakarta.enterprise.inject.Alternative;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/IFoo.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/IFoo.java
similarity index 53%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/IFoo.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/IFoo.java
index 4f245a55..93fb880d 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/IFoo.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/IFoo.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.basic;
+package org.jboss.weld.junit.jupiter.basic;
public interface IFoo {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/SimpleTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/SimpleTest.java
similarity index 86%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/SimpleTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/SimpleTest.java
index 97977110..03d7bd4f 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/SimpleTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/SimpleTest.java
@@ -14,17 +14,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.basic;
+package org.jboss.weld.junit.jupiter.basic;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
-import org.jboss.weld.junit5.ofpackage.Alpha;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.junit.jupiter.ofpackage.Alpha;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -32,7 +32,7 @@
*
* @author Matej Novotny
*/
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class SimpleTest {
@WeldSetup
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/SomeFoo.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/SomeFoo.java
similarity index 78%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/SomeFoo.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/SomeFoo.java
index 4992bc52..ae945e78 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/SomeFoo.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/SomeFoo.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.basic;
+package org.jboss.weld.junit.jupiter.basic;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/SomeIFoo.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/SomeIFoo.java
similarity index 79%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/SomeIFoo.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/SomeIFoo.java
index 3c089eb5..3f908f1e 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/SomeIFoo.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/SomeIFoo.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.basic;
+package org.jboss.weld.junit.jupiter.basic;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/unsatisfied/Baz.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/unsatisfied/Baz.java
similarity index 83%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/unsatisfied/Baz.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/unsatisfied/Baz.java
index 07234f6e..4caf41ea 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/unsatisfied/Baz.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/unsatisfied/Baz.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.basic.unsatisfied;
+package org.jboss.weld.junit.jupiter.basic.unsatisfied;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/unsatisfied/FooDeps.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/unsatisfied/FooDeps.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/unsatisfied/FooDeps.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/unsatisfied/FooDeps.java
index 7c2c14af..494d4d3c 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/unsatisfied/FooDeps.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/unsatisfied/FooDeps.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.basic.unsatisfied;
+package org.jboss.weld.junit.jupiter.basic.unsatisfied;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/basic/unsatisfied/SomeFooDeps.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/unsatisfied/SomeFooDeps.java
similarity index 75%
rename from junit5/src/test/java/org/jboss/weld/junit5/basic/unsatisfied/SomeFooDeps.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/unsatisfied/SomeFooDeps.java
index 00e16c46..2081e59f 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/basic/unsatisfied/SomeFooDeps.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/basic/unsatisfied/SomeFooDeps.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.basic.unsatisfied;
+package org.jboss.weld.junit.jupiter.basic.unsatisfied;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/bean/AddBeanTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/AddBeanTest.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/bean/AddBeanTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/AddBeanTest.java
index 88040b2e..6e612227 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/bean/AddBeanTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/AddBeanTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.bean;
+package org.jboss.weld.junit.jupiter.bean;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
@@ -31,10 +31,10 @@
import jakarta.enterprise.inject.spi.Bean;
import jakarta.enterprise.util.TypeLiteral;
-import org.jboss.weld.junit.MockBean;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.testing.MockBean;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.api.parallel.Isolated;
@@ -46,7 +46,7 @@
* @author Matej Novotny
*/
@Isolated
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class AddBeanTest {
private static final AtomicInteger SEQUENCE = new AtomicInteger(0);
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/bean/AddGloballyEnabledAlternativeTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/AddGloballyEnabledAlternativeTest.java
similarity index 88%
rename from junit5/src/test/java/org/jboss/weld/junit5/bean/AddGloballyEnabledAlternativeTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/AddGloballyEnabledAlternativeTest.java
index 3d31a294..431a37b9 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/bean/AddGloballyEnabledAlternativeTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/AddGloballyEnabledAlternativeTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.bean;
+package org.jboss.weld.junit.jupiter.bean;
import java.util.List;
import java.util.Set;
@@ -6,10 +6,10 @@
import jakarta.enterprise.inject.spi.Bean;
import jakarta.enterprise.util.TypeLiteral;
-import org.jboss.weld.junit.MockBean;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.testing.MockBean;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -22,7 +22,7 @@
* @author Matej Novotny
*/
@Isolated
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class AddGloballyEnabledAlternativeTest {
@WeldSetup
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/bean/AddPassivatingBeanTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/AddPassivatingBeanTest.java
similarity index 87%
rename from junit5/src/test/java/org/jboss/weld/junit5/bean/AddPassivatingBeanTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/AddPassivatingBeanTest.java
index 048d1197..150548fa 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/bean/AddPassivatingBeanTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/AddPassivatingBeanTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.bean;
+package org.jboss.weld.junit.jupiter.bean;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@@ -25,10 +25,10 @@
import jakarta.enterprise.inject.spi.Bean;
import jakarta.enterprise.util.TypeLiteral;
-import org.jboss.weld.junit.MockBean;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.testing.MockBean;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -37,7 +37,7 @@
*
* @author Matej Novotny
*/
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class AddPassivatingBeanTest {
@WeldSetup
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/bean/AlternativeMockBeanTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/AlternativeMockBeanTest.java
similarity index 88%
rename from junit5/src/test/java/org/jboss/weld/junit5/bean/AlternativeMockBeanTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/AlternativeMockBeanTest.java
index 719537b1..ad7aad0e 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/bean/AlternativeMockBeanTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/AlternativeMockBeanTest.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.bean;
+package org.jboss.weld.junit.jupiter.bean;
import jakarta.enterprise.context.Dependent;
-import org.jboss.weld.junit.MockBean;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.testing.MockBean;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/bean/Bar.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/Bar.java
similarity index 89%
rename from junit5/src/test/java/org/jboss/weld/junit5/bean/Bar.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/Bar.java
index f277548a..edc86c92 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/bean/Bar.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/Bar.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.bean;
+package org.jboss.weld.junit.jupiter.bean;
import java.util.List;
diff --git a/junit4/src/test/java/org/jboss/weld/junit4/bean/Blue.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/Blue.java
similarity index 96%
rename from junit4/src/test/java/org/jboss/weld/junit4/bean/Blue.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/Blue.java
index 2d79497d..68e830fa 100644
--- a/junit4/src/test/java/org/jboss/weld/junit4/bean/Blue.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/Blue.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit4.bean;
+package org.jboss.weld.junit.jupiter.bean;
import java.util.List;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/bean/BlueToDiscover.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/BlueToDiscover.java
similarity index 96%
rename from junit5/src/test/java/org/jboss/weld/junit5/bean/BlueToDiscover.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/BlueToDiscover.java
index 0e9e73cc..a2f20e74 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/bean/BlueToDiscover.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/BlueToDiscover.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.bean;
+package org.jboss.weld.junit.jupiter.bean;
import java.util.UUID;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/bean/Foo.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/Foo.java
similarity index 64%
rename from junit5/src/test/java/org/jboss/weld/junit5/bean/Foo.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/Foo.java
index 2032697b..1779c395 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/bean/Foo.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/Foo.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.bean;
+package org.jboss.weld.junit.jupiter.bean;
public class Foo {
diff --git a/junit4/src/test/java/org/jboss/weld/junit4/bean/Meaty.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/Meaty.java
similarity index 97%
rename from junit4/src/test/java/org/jboss/weld/junit4/bean/Meaty.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/Meaty.java
index cdd459bb..d5306dae 100644
--- a/junit4/src/test/java/org/jboss/weld/junit4/bean/Meaty.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/Meaty.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit4.bean;
+package org.jboss.weld.junit.jupiter.bean;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/bean/MockBeanWithQualifiersTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/MockBeanWithQualifiersTest.java
similarity index 75%
rename from junit5/src/test/java/org/jboss/weld/junit5/bean/MockBeanWithQualifiersTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/MockBeanWithQualifiersTest.java
index 46be0655..21317807 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/bean/MockBeanWithQualifiersTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/MockBeanWithQualifiersTest.java
@@ -1,11 +1,11 @@
-package org.jboss.weld.junit5.bean;
+package org.jboss.weld.junit.jupiter.bean;
import jakarta.enterprise.inject.Any;
-import org.jboss.weld.junit.MockBean;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.testing.MockBean;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/bean/TestClassProducerTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/TestClassProducerTest.java
similarity index 87%
rename from junit5/src/test/java/org/jboss/weld/junit5/bean/TestClassProducerTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/TestClassProducerTest.java
index 999dc08d..11404235 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/bean/TestClassProducerTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/TestClassProducerTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.bean;
+package org.jboss.weld.junit.jupiter.bean;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@@ -25,9 +25,9 @@
import jakarta.enterprise.inject.Produces;
import jakarta.enterprise.util.TypeLiteral;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -37,7 +37,7 @@
*
* @author Matej Novotny
*/
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class TestClassProducerTest {
@WeldSetup
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/bean/extension/AddExtensionAsBeanClassWithFromMethodTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/extension/AddExtensionAsBeanClassWithFromMethodTest.java
similarity index 89%
rename from junit5/src/test/java/org/jboss/weld/junit5/bean/extension/AddExtensionAsBeanClassWithFromMethodTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/extension/AddExtensionAsBeanClassWithFromMethodTest.java
index 1c73b3ca..5c670b5d 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/bean/extension/AddExtensionAsBeanClassWithFromMethodTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/extension/AddExtensionAsBeanClassWithFromMethodTest.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.bean.extension;
+package org.jboss.weld.junit.jupiter.bean.extension;
import org.jboss.weld.inject.WeldInstance;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/bean/extension/AddExtensionAsBeanClassWithOfMethodTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/extension/AddExtensionAsBeanClassWithOfMethodTest.java
similarity index 89%
rename from junit5/src/test/java/org/jboss/weld/junit5/bean/extension/AddExtensionAsBeanClassWithOfMethodTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/extension/AddExtensionAsBeanClassWithOfMethodTest.java
index 64cb24c8..b616bb7d 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/bean/extension/AddExtensionAsBeanClassWithOfMethodTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/extension/AddExtensionAsBeanClassWithOfMethodTest.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.bean.extension;
+package org.jboss.weld.junit.jupiter.bean.extension;
import org.jboss.weld.inject.WeldInstance;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/bean/extension/GoodOldBean.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/extension/GoodOldBean.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/bean/extension/GoodOldBean.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/extension/GoodOldBean.java
index 4ab95fc4..dd77665f 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/bean/extension/GoodOldBean.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/extension/GoodOldBean.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.bean.extension;
+package org.jboss.weld.junit.jupiter.bean.extension;
import jakarta.enterprise.context.ApplicationScoped;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/bean/extension/MyExtension.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/extension/MyExtension.java
similarity index 96%
rename from junit5/src/test/java/org/jboss/weld/junit5/bean/extension/MyExtension.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/extension/MyExtension.java
index 6fd97e99..2891e0d7 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/bean/extension/MyExtension.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/bean/extension/MyExtension.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.bean.extension;
+package org.jboss.weld.junit.jupiter.bean.extension;
import jakarta.enterprise.event.Observes;
import jakarta.enterprise.inject.spi.Extension;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/compat/JunitParameterResolverAutoWeldTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/compat/JunitParameterResolverAutoWeldTest.java
similarity index 51%
rename from junit5/src/test/java/org/jboss/weld/junit5/compat/JunitParameterResolverAutoWeldTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/compat/JunitParameterResolverAutoWeldTest.java
index e1440a9a..83587e88 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/compat/JunitParameterResolverAutoWeldTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/compat/JunitParameterResolverAutoWeldTest.java
@@ -1,6 +1,6 @@
-package org.jboss.weld.junit5.compat;
+package org.jboss.weld.junit.jupiter.compat;
-import org.jboss.weld.junit5.auto.EnableAutoWeld;
+import org.jboss.weld.junit.jupiter.auto.EnableAutoWeld;
@EnableAutoWeld
class JunitParameterResolverAutoWeldTest extends JunitParameterResolverReferenceTest {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/compat/JunitParameterResolverReferenceTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/compat/JunitParameterResolverReferenceTest.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/compat/JunitParameterResolverReferenceTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/compat/JunitParameterResolverReferenceTest.java
index aac9265d..87556f7d 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/compat/JunitParameterResolverReferenceTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/compat/JunitParameterResolverReferenceTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.compat;
+package org.jboss.weld.junit.jupiter.compat;
import java.nio.file.Path;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/compat/JunitParameterResolverWeldTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/compat/JunitParameterResolverWeldTest.java
similarity index 51%
rename from junit5/src/test/java/org/jboss/weld/junit5/compat/JunitParameterResolverWeldTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/compat/JunitParameterResolverWeldTest.java
index d6b34640..8ef97266 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/compat/JunitParameterResolverWeldTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/compat/JunitParameterResolverWeldTest.java
@@ -1,6 +1,6 @@
-package org.jboss.weld.junit5.compat;
+package org.jboss.weld.junit.jupiter.compat;
-import org.jboss.weld.junit5.EnableWeld;
+import org.jboss.weld.junit.jupiter.EnableWeld;
@EnableWeld
class JunitParameterResolverWeldTest extends JunitParameterResolverReferenceTest {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/contexts/ContextsActivatedTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/ContextsActivatedTest.java
similarity index 87%
rename from junit5/src/test/java/org/jboss/weld/junit5/contexts/ContextsActivatedTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/ContextsActivatedTest.java
index 602f8838..b5a510c9 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/contexts/ContextsActivatedTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/ContextsActivatedTest.java
@@ -14,15 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.contexts;
+package org.jboss.weld.junit.jupiter.contexts;
import jakarta.enterprise.context.RequestScoped;
import jakarta.enterprise.context.SessionScoped;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -31,7 +31,7 @@
*
* @author Matej Novotny
*/
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class ContextsActivatedTest {
@WeldSetup
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/contexts/Foo.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/Foo.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/contexts/Foo.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/Foo.java
index 7e03e106..4a3808c0 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/contexts/Foo.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/Foo.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.contexts;
+package org.jboss.weld.junit.jupiter.contexts;
import java.util.UUID;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/contexts/InvalidScopeTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/InvalidScopeTest.java
similarity index 86%
rename from junit5/src/test/java/org/jboss/weld/junit5/contexts/InvalidScopeTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/InvalidScopeTest.java
index fcb1ec99..a9b34358 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/contexts/InvalidScopeTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/InvalidScopeTest.java
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.contexts;
+package org.jboss.weld.junit.jupiter.contexts;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -26,7 +26,7 @@
*
* @author Matej Novotny
*/
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class InvalidScopeTest {
@Test
diff --git a/junit4/src/test/java/org/jboss/weld/junit4/contexts/Oof.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/Oof.java
similarity index 96%
rename from junit4/src/test/java/org/jboss/weld/junit4/contexts/Oof.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/Oof.java
index 42c7faea..0223cdc0 100644
--- a/junit4/src/test/java/org/jboss/weld/junit4/contexts/Oof.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/Oof.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit4.contexts;
+package org.jboss.weld.junit.jupiter.contexts;
import java.io.Serializable;
import java.util.UUID;
diff --git a/junit4/src/test/java/org/jboss/weld/junit4/contexts/RequestScopedProducer.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/RequestScopedProducer.java
similarity index 86%
rename from junit4/src/test/java/org/jboss/weld/junit4/contexts/RequestScopedProducer.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/RequestScopedProducer.java
index 4543c28d..ec6bd752 100644
--- a/junit4/src/test/java/org/jboss/weld/junit4/contexts/RequestScopedProducer.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/RequestScopedProducer.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit4.contexts;
+package org.jboss.weld.junit.jupiter.contexts;
import jakarta.enterprise.context.Dependent;
import jakarta.enterprise.context.RequestScoped;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/contexts/SomeAnnotation.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/SomeAnnotation.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/contexts/SomeAnnotation.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/SomeAnnotation.java
index e06966bc..729d5c7f 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/contexts/SomeAnnotation.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/SomeAnnotation.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.contexts;
+package org.jboss.weld.junit.jupiter.contexts;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/contexts/events/ContextLifecycleEventsObserver.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/events/ContextLifecycleEventsObserver.java
similarity index 97%
rename from junit5/src/test/java/org/jboss/weld/junit5/contexts/events/ContextLifecycleEventsObserver.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/events/ContextLifecycleEventsObserver.java
index f8b886bb..c0581569 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/contexts/events/ContextLifecycleEventsObserver.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/events/ContextLifecycleEventsObserver.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.contexts.events;
+package org.jboss.weld.junit.jupiter.contexts.events;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/contexts/events/ContextLifecycleEventsTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/events/ContextLifecycleEventsTest.java
similarity index 91%
rename from junit5/src/test/java/org/jboss/weld/junit5/contexts/events/ContextLifecycleEventsTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/events/ContextLifecycleEventsTest.java
index 56776e11..a45cc30b 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/contexts/events/ContextLifecycleEventsTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/contexts/events/ContextLifecycleEventsTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.contexts.events;
+package org.jboss.weld.junit.jupiter.contexts.events;
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -23,9 +23,9 @@
import jakarta.enterprise.context.RequestScoped;
import jakarta.enterprise.context.SessionScoped;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/enricher/FooWeldJunitEnricher.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/enricher/FooWeldJunitEnricher.java
similarity index 81%
rename from junit5/src/test/java/org/jboss/weld/junit5/enricher/FooWeldJunitEnricher.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/enricher/FooWeldJunitEnricher.java
index b2edd397..7f5cb1f2 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/enricher/FooWeldJunitEnricher.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/enricher/FooWeldJunitEnricher.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.enricher;
+package org.jboss.weld.junit.jupiter.enricher;
import org.jboss.weld.environment.se.Weld;
-import org.jboss.weld.junit5.WeldInitiator.Builder;
-import org.jboss.weld.junit5.WeldJunitEnricher;
-import org.jboss.weld.junit5.basic.Foo;
-import org.jboss.weld.junit5.enricher.disabled.WeldJunitEnricherDisabledTest;
+import org.jboss.weld.junit.jupiter.WeldInitiator.Builder;
+import org.jboss.weld.junit.jupiter.WeldJunitEnricher;
+import org.jboss.weld.junit.jupiter.basic.Foo;
+import org.jboss.weld.junit.jupiter.enricher.disabled.WeldJunitEnricherDisabledTest;
import org.junit.jupiter.api.extension.ExtensionContext;
public class FooWeldJunitEnricher implements WeldJunitEnricher {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/enricher/WeldJunitEnricherTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/enricher/WeldJunitEnricherTest.java
similarity index 90%
rename from junit5/src/test/java/org/jboss/weld/junit5/enricher/WeldJunitEnricherTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/enricher/WeldJunitEnricherTest.java
index 75ecfa40..7ad609c5 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/enricher/WeldJunitEnricherTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/enricher/WeldJunitEnricherTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.enricher;
+package org.jboss.weld.junit.jupiter.enricher;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.parallel.ResourceAccessMode.READ;
@@ -22,8 +22,8 @@
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.basic.Foo;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.basic.Foo;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.parallel.ResourceLock;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/enricher/disabled/WeldJunitEnricherDisabledTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/enricher/disabled/WeldJunitEnricherDisabledTest.java
similarity index 88%
rename from junit5/src/test/java/org/jboss/weld/junit5/enricher/disabled/WeldJunitEnricherDisabledTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/enricher/disabled/WeldJunitEnricherDisabledTest.java
index 934d4441..7ce57c37 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/enricher/disabled/WeldJunitEnricherDisabledTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/enricher/disabled/WeldJunitEnricherDisabledTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.enricher.disabled;
+package org.jboss.weld.junit.jupiter.enricher.disabled;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.parallel.Resources.SYSTEM_PROPERTIES;
@@ -22,9 +22,9 @@
import jakarta.enterprise.inject.Instance;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.basic.Foo;
-import org.jboss.weld.junit5.enricher.FooWeldJunitEnricher;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.basic.Foo;
+import org.jboss.weld.junit.jupiter.enricher.FooWeldJunitEnricher;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
diff --git a/junit4/src/test/java/org/jboss/weld/junit4/event/DummyObserver.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/event/DummyObserver.java
similarity index 92%
rename from junit4/src/test/java/org/jboss/weld/junit4/event/DummyObserver.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/event/DummyObserver.java
index 6724aec6..4ad0115c 100644
--- a/junit4/src/test/java/org/jboss/weld/junit4/event/DummyObserver.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/event/DummyObserver.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit4.event;
+package org.jboss.weld.junit.jupiter.event;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
@@ -22,7 +22,7 @@
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.event.Observes;
-import org.jboss.weld.junit4.Foo;
+import org.jboss.weld.junit.jupiter.basic.Foo;
@ApplicationScoped
public class DummyObserver {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/event/FireEventTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/event/FireEventTest.java
similarity index 82%
rename from junit5/src/test/java/org/jboss/weld/junit5/event/FireEventTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/event/FireEventTest.java
index 16ea887d..b4bdab27 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/event/FireEventTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/event/FireEventTest.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.event;
+package org.jboss.weld.junit.jupiter.event;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
-import org.jboss.weld.junit5.basic.Foo;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.junit.jupiter.basic.Foo;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -28,7 +28,7 @@
*
* @author Matej Novotny
*/
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class FireEventTest {
@WeldSetup
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/Bar.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/Bar.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/Bar.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/Bar.java
index 0225e98e..bae26f51 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/Bar.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/Bar.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.explicitInjection;
+package org.jboss.weld.junit.jupiter.explicitInjection;
import jakarta.enterprise.context.ApplicationScoped;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/BeanWithQualifier.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/BeanWithQualifier.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/BeanWithQualifier.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/BeanWithQualifier.java
index bf6df3e3..eb4afbeb 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/BeanWithQualifier.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/BeanWithQualifier.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.explicitInjection;
+package org.jboss.weld.junit.jupiter.explicitInjection;
import jakarta.enterprise.context.ApplicationScoped;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/CustomExtension.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/CustomExtension.java
similarity index 97%
rename from junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/CustomExtension.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/CustomExtension.java
index e0477030..34528b5b 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/CustomExtension.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/CustomExtension.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.explicitInjection;
+package org.jboss.weld.junit.jupiter.explicitInjection;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.junit.jupiter.api.extension.ParameterContext;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionNestedClass2Test.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionNestedClass2Test.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionNestedClass2Test.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionNestedClass2Test.java
index 3f83ff01..1e239e11 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionNestedClass2Test.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionNestedClass2Test.java
@@ -1,15 +1,15 @@
-package org.jboss.weld.junit5.explicitInjection;
+package org.jboss.weld.junit.jupiter.explicitInjection;
import jakarta.enterprise.inject.Default;
-import org.jboss.weld.junit5.ExplicitParamInjection;
-import org.jboss.weld.junit5.WeldJunit5Extension;
+import org.jboss.weld.junit.jupiter.ExplicitParamInjection;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
@ExplicitParamInjection(false)
public class ExplicitParameterInjectionNestedClass2Test {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionNestedClassTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionNestedClassTest.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionNestedClassTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionNestedClassTest.java
index 030255f5..19cd6d54 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionNestedClassTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionNestedClassTest.java
@@ -1,9 +1,9 @@
-package org.jboss.weld.junit5.explicitInjection;
+package org.jboss.weld.junit.jupiter.explicitInjection;
import jakarta.enterprise.inject.Default;
-import org.jboss.weld.junit5.ExplicitParamInjection;
-import org.jboss.weld.junit5.WeldJunit5Extension;
+import org.jboss.weld.junit.jupiter.ExplicitParamInjection;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
@@ -11,7 +11,7 @@
// Note that @ExtendWith(CustomExtension.class) has to be on each method separately. The inheritance of this would
// otherwise cause failures for TwiceNestedTestClass2 and ThriceNestedClass where Weld claims all parameters.
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
@ExplicitParamInjection(true)
public class ExplicitParameterInjectionNestedClassTest {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionViaClassAnnotationTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionViaClassAnnotationTest.java
similarity index 88%
rename from junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionViaClassAnnotationTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionViaClassAnnotationTest.java
index 647a367e..27497b3c 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionViaClassAnnotationTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionViaClassAnnotationTest.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.explicitInjection;
+package org.jboss.weld.junit.jupiter.explicitInjection;
import jakarta.enterprise.inject.Default;
-import org.jboss.weld.junit5.ExplicitParamInjection;
-import org.jboss.weld.junit5.WeldJunit5Extension;
+import org.jboss.weld.junit.jupiter.ExplicitParamInjection;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -28,7 +28,7 @@
*
* @author Matej Novotny
*/
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
@ExplicitParamInjection
public class ExplicitParameterInjectionViaClassAnnotationTest {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionViaMethodAnnotationTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionViaMethodAnnotationTest.java
similarity index 91%
rename from junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionViaMethodAnnotationTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionViaMethodAnnotationTest.java
index f6986824..eda3dec6 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionViaMethodAnnotationTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionViaMethodAnnotationTest.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.explicitInjection;
+package org.jboss.weld.junit.jupiter.explicitInjection;
import jakarta.enterprise.inject.Default;
-import org.jboss.weld.junit5.ExplicitParamInjection;
-import org.jboss.weld.junit5.WeldJunit5Extension;
+import org.jboss.weld.junit.jupiter.ExplicitParamInjection;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -28,7 +28,7 @@
*
* @author Matej Novotny
*/
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class ExplicitParameterInjectionViaMethodAnnotationTest {
@Test
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionViaPropertyTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionViaPropertyTest.java
similarity index 85%
rename from junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionViaPropertyTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionViaPropertyTest.java
index 1d1cdabb..7800580e 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/ExplicitParameterInjectionViaPropertyTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/ExplicitParameterInjectionViaPropertyTest.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.explicitInjection;
+package org.jboss.weld.junit.jupiter.explicitInjection;
import jakarta.enterprise.inject.Default;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.WeldJunit5Extension;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
@@ -37,7 +37,7 @@ public class ExplicitParameterInjectionViaPropertyTest {
@BeforeAll
public static void prepare() {
- System.setProperty(WeldJunit5Extension.GLOBAL_EXPLICIT_PARAM_INJECTION, "true");
+ System.setProperty(WeldJUnitJupiterExtension.GLOBAL_EXPLICIT_PARAM_INJECTION, "true");
}
@Test
@@ -56,6 +56,6 @@ public void testParametersNeedExtraAnnotation(@Default Foo foo, Bar bar, @MyQual
@AfterAll
public static void cleanUp() {
- System.setProperty(WeldJunit5Extension.GLOBAL_EXPLICIT_PARAM_INJECTION, "");
+ System.setProperty(WeldJUnitJupiterExtension.GLOBAL_EXPLICIT_PARAM_INJECTION, "");
}
}
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/Foo.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/Foo.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/Foo.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/Foo.java
index f211dd3c..0269b7cc 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/Foo.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/Foo.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.explicitInjection;
+package org.jboss.weld.junit.jupiter.explicitInjection;
import jakarta.enterprise.context.Dependent;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/MyQualifier.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/MyQualifier.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/MyQualifier.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/MyQualifier.java
index 885a053e..a52e3380 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/MyQualifier.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/MyQualifier.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.explicitInjection;
+package org.jboss.weld.junit.jupiter.explicitInjection;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/parameterizedTest/Foo.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/parameterizedTest/Foo.java
similarity index 77%
rename from junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/parameterizedTest/Foo.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/parameterizedTest/Foo.java
index 8c686a9b..c73aef85 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/parameterizedTest/Foo.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/parameterizedTest/Foo.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.explicitInjection.parameterizedTest;
+package org.jboss.weld.junit.jupiter.explicitInjection.parameterizedTest;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.inject.Produces;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/parameterizedTest/ParameterizedTestExplicitInjectionTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/parameterizedTest/ParameterizedTestExplicitInjectionTest.java
similarity index 90%
rename from junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/parameterizedTest/ParameterizedTestExplicitInjectionTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/parameterizedTest/ParameterizedTestExplicitInjectionTest.java
index a4f6b44e..b961b623 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/explicitInjection/parameterizedTest/ParameterizedTestExplicitInjectionTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/explicitInjection/parameterizedTest/ParameterizedTestExplicitInjectionTest.java
@@ -1,16 +1,16 @@
-package org.jboss.weld.junit5.explicitInjection.parameterizedTest;
+package org.jboss.weld.junit.jupiter.explicitInjection.parameterizedTest;
import java.util.Set;
import jakarta.enterprise.inject.Default;
-import org.jboss.weld.junit5.WeldJunit5Extension;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class ParameterizedTestExplicitInjectionTest {
public static final Set strings = Set.of("one", "two", "three");
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/BarBean.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/BarBean.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/BarBean.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/BarBean.java
index 7ccbf390..1f3dc6fb 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/BarBean.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/BarBean.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.extensionInjection;
+package org.jboss.weld.junit.jupiter.extensionInjection;
import jakarta.enterprise.context.ApplicationScoped;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/FooBean.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/FooBean.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/FooBean.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/FooBean.java
index a789f0dc..1617d365 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/FooBean.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/FooBean.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.extensionInjection;
+package org.jboss.weld.junit.jupiter.extensionInjection;
import jakarta.enterprise.context.Dependent;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/MapProducer.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/MapProducer.java
similarity index 89%
rename from junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/MapProducer.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/MapProducer.java
index 3018b508..6a1ad1f7 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/MapProducer.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/MapProducer.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.extensionInjection;
+package org.jboss.weld.junit.jupiter.extensionInjection;
import java.util.HashMap;
import java.util.Map;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/MyQualifier.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/MyQualifier.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/MyQualifier.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/MyQualifier.java
index e666e240..0401c2df 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/MyQualifier.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/MyQualifier.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.extensionInjection;
+package org.jboss.weld.junit.jupiter.extensionInjection;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/SomeBean.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/SomeBean.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/SomeBean.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/SomeBean.java
index f59ba08f..03618c87 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/SomeBean.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/SomeBean.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.extensionInjection;
+package org.jboss.weld.junit.jupiter.extensionInjection;
import jakarta.enterprise.context.ApplicationScoped;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/JUnit5ExtensionTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/WeldJUnitJupiterExtensionTest.java
similarity index 90%
rename from junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/JUnit5ExtensionTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/WeldJUnitJupiterExtensionTest.java
index 3c58aa16..d1132aa0 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/extensionInjection/JUnit5ExtensionTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/extensionInjection/WeldJUnitJupiterExtensionTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.extensionInjection;
+package org.jboss.weld.junit.jupiter.extensionInjection;
import java.util.Map;
@@ -22,19 +22,19 @@
import jakarta.enterprise.inject.Instance;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.WeldJunit5Extension;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
/**
- * Basic test for JUnit 5 injection into parameter/field handled by Weld
+ * Basic test for JUnit Jupiter injection into parameter/field handled by Weld
*
* @author Matej Novotny
*/
-@ExtendWith(WeldJunit5Extension.class)
-public class JUnit5ExtensionTest {
+@ExtendWith(WeldJUnitJupiterExtension.class)
+public class WeldJUnitJupiterExtensionTest {
@Inject
SomeBean bean;
diff --git a/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/bean/Bar.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/bean/Bar.java
new file mode 100644
index 00000000..4279b4ed
--- /dev/null
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/bean/Bar.java
@@ -0,0 +1,4 @@
+package org.jboss.weld.junit.jupiter.initiator.bean;
+
+public class Bar {
+}
diff --git a/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/bean/Foo.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/bean/Foo.java
new file mode 100644
index 00000000..184a26b8
--- /dev/null
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/bean/Foo.java
@@ -0,0 +1,5 @@
+package org.jboss.weld.junit.jupiter.initiator.bean;
+
+public class Foo {
+
+}
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/NestedClassesWeldInitiatorTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/NestedClassesWeldInitiatorTest.java
similarity index 91%
rename from junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/NestedClassesWeldInitiatorTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/NestedClassesWeldInitiatorTest.java
index af570233..e8b37eeb 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/NestedClassesWeldInitiatorTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/NestedClassesWeldInitiatorTest.java
@@ -1,13 +1,13 @@
-package org.jboss.weld.junit5.initiator.discovery;
+package org.jboss.weld.junit.jupiter.initiator.discovery;
import jakarta.inject.Inject;
import org.jboss.weld.exceptions.UnsatisfiedResolutionException;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
-import org.jboss.weld.junit5.initiator.bean.Bar;
-import org.jboss.weld.junit5.initiator.bean.Foo;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.junit.jupiter.initiator.bean.Bar;
+import org.jboss.weld.junit.jupiter.initiator.bean.Foo;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/ObjectWeldInitiatorTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/ObjectWeldInitiatorTest.java
similarity index 83%
rename from junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/ObjectWeldInitiatorTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/ObjectWeldInitiatorTest.java
index cfc5c630..204a044c 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/ObjectWeldInitiatorTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/ObjectWeldInitiatorTest.java
@@ -14,15 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.initiator.discovery;
+package org.jboss.weld.junit.jupiter.initiator.discovery;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.jboss.weld.environment.se.Weld;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
-import org.jboss.weld.junit5.initiator.bean.Foo;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.junit.jupiter.initiator.bean.Foo;
import org.junit.jupiter.api.Test;
/**
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/PrivateWeldInitiatorInSuperclassTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/PrivateWeldInitiatorInSuperclassTest.java
similarity index 89%
rename from junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/PrivateWeldInitiatorInSuperclassTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/PrivateWeldInitiatorInSuperclassTest.java
index a770c4fd..da9329ab 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/PrivateWeldInitiatorInSuperclassTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/PrivateWeldInitiatorInSuperclassTest.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.initiator.discovery;
+package org.jboss.weld.junit.jupiter.initiator.discovery;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.jboss.weld.environment.se.WeldContainer;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.initiator.bean.Foo;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.initiator.bean.Foo;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.parallel.Isolated;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/PrivateWeldInitiatorTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/PrivateWeldInitiatorTest.java
similarity index 84%
rename from junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/PrivateWeldInitiatorTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/PrivateWeldInitiatorTest.java
index 1ac94b4c..eeaf0df5 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/PrivateWeldInitiatorTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/PrivateWeldInitiatorTest.java
@@ -14,15 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.initiator.discovery;
+package org.jboss.weld.junit.jupiter.initiator.discovery;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.jboss.weld.environment.se.Weld;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
-import org.jboss.weld.junit5.initiator.bean.Foo;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.junit.jupiter.initiator.bean.Foo;
import org.junit.jupiter.api.Test;
/**
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/ProtectedWeldInitiatorInSuperclassTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/ProtectedWeldInitiatorInSuperclassTest.java
similarity index 88%
rename from junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/ProtectedWeldInitiatorInSuperclassTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/ProtectedWeldInitiatorInSuperclassTest.java
index 5d9af3c1..d1bf821c 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/ProtectedWeldInitiatorInSuperclassTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/ProtectedWeldInitiatorInSuperclassTest.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.initiator.discovery;
+package org.jboss.weld.junit.jupiter.initiator.discovery;
import static org.junit.jupiter.api.Assertions.assertNotNull;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.initiator.bean.Foo;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.initiator.bean.Foo;
import org.junit.jupiter.api.Test;
/**
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/SubclassWithWeldInitiatorTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/SubclassWithWeldInitiatorTest.java
similarity index 73%
rename from junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/SubclassWithWeldInitiatorTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/SubclassWithWeldInitiatorTest.java
index e6e05736..a94b3f92 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/SubclassWithWeldInitiatorTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/SubclassWithWeldInitiatorTest.java
@@ -1,8 +1,8 @@
-package org.jboss.weld.junit5.initiator.discovery;
+package org.jboss.weld.junit.jupiter.initiator.discovery;
import static org.junit.jupiter.api.Assertions.assertNotNull;
-import org.jboss.weld.junit5.initiator.bean.Foo;
+import org.jboss.weld.junit.jupiter.initiator.bean.Foo;
import org.junit.jupiter.api.Test;
public class SubclassWithWeldInitiatorTest extends SuperclassWithWeldInitiator {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/SuperclassWithPrivateWeldInitiator.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/SuperclassWithPrivateWeldInitiator.java
similarity index 83%
rename from junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/SuperclassWithPrivateWeldInitiator.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/SuperclassWithPrivateWeldInitiator.java
index eb56d9ab..71c6129c 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/SuperclassWithPrivateWeldInitiator.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/SuperclassWithPrivateWeldInitiator.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.initiator.discovery;
+package org.jboss.weld.junit.jupiter.initiator.discovery;
import org.jboss.weld.environment.se.Weld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
-import org.jboss.weld.junit5.initiator.bean.Foo;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.junit.jupiter.initiator.bean.Foo;
/**
*
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/SuperclassWithProtectedWeldInitiator.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/SuperclassWithProtectedWeldInitiator.java
similarity index 83%
rename from junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/SuperclassWithProtectedWeldInitiator.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/SuperclassWithProtectedWeldInitiator.java
index 3e218bf3..03f601cf 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/initiator/discovery/SuperclassWithProtectedWeldInitiator.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/SuperclassWithProtectedWeldInitiator.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.initiator.discovery;
+package org.jboss.weld.junit.jupiter.initiator.discovery;
import org.jboss.weld.environment.se.Weld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
-import org.jboss.weld.junit5.initiator.bean.Foo;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.junit.jupiter.initiator.bean.Foo;
/**
*
diff --git a/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/SuperclassWithWeldInitiator.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/SuperclassWithWeldInitiator.java
new file mode 100644
index 00000000..b767c435
--- /dev/null
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/initiator/discovery/SuperclassWithWeldInitiator.java
@@ -0,0 +1,16 @@
+package org.jboss.weld.junit.jupiter.initiator.discovery;
+
+import org.jboss.weld.environment.se.Weld;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.junit.jupiter.initiator.bean.Foo;
+import org.junit.jupiter.api.extension.ExtendWith;
+
+@ExtendWith(WeldJUnitJupiterExtension.class)
+public abstract class SuperclassWithWeldInitiator {
+ @WeldSetup
+ public WeldInitiator weld = WeldInitiator
+ .of(new Weld()
+ .addBeanClass(Foo.class));
+}
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/interceptor/MockInterceptorTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/interceptor/MockInterceptorTest.java
similarity index 93%
rename from junit5/src/test/java/org/jboss/weld/junit5/interceptor/MockInterceptorTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/interceptor/MockInterceptorTest.java
index b5437e9d..eac4c518 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/interceptor/MockInterceptorTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/interceptor/MockInterceptorTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.interceptor;
+package org.jboss.weld.junit.jupiter.interceptor;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
@@ -33,10 +33,10 @@
import jakarta.enterprise.util.AnnotationLiteral;
import jakarta.interceptor.InterceptorBinding;
-import org.jboss.weld.junit.MockInterceptor;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.testing.MockInterceptor;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/nested/MyBean.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/nested/MyBean.java
similarity index 79%
rename from junit5/src/test/java/org/jboss/weld/junit5/nested/MyBean.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/nested/MyBean.java
index 3772e293..85031c98 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/nested/MyBean.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/nested/MyBean.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.nested;
+package org.jboss.weld.junit.jupiter.nested;
import jakarta.enterprise.context.ApplicationScoped;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/nested/NestedTestClassTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/nested/NestedTestClassTest.java
similarity index 83%
rename from junit5/src/test/java/org/jboss/weld/junit5/nested/NestedTestClassTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/nested/NestedTestClassTest.java
index 709133d7..ca5d6383 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/nested/NestedTestClassTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/nested/NestedTestClassTest.java
@@ -1,10 +1,10 @@
-package org.jboss.weld.junit5.nested;
+package org.jboss.weld.junit.jupiter.nested;
import jakarta.inject.Inject;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Nested;
@@ -16,7 +16,7 @@
* {@code @BeforeEach} should still be invoked for nested classes. For the below scenario to work,
* we need to make the parent class an injection target as well.
*/
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class NestedTestClassTest {
@WeldSetup
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/ofpackage/Alpha.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/ofpackage/Alpha.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/ofpackage/Alpha.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/ofpackage/Alpha.java
index 44ec4c86..d14d1df7 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/ofpackage/Alpha.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/ofpackage/Alpha.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.ofpackage;
+package org.jboss.weld.junit.jupiter.ofpackage;
import jakarta.annotation.PostConstruct;
import jakarta.enterprise.context.Dependent;
diff --git a/junit4/src/test/java/org/jboss/weld/junit4/ofpackage/Bravo.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/ofpackage/Bravo.java
similarity index 95%
rename from junit4/src/test/java/org/jboss/weld/junit4/ofpackage/Bravo.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/ofpackage/Bravo.java
index e048c9c2..4d8212b6 100644
--- a/junit4/src/test/java/org/jboss/weld/junit4/ofpackage/Bravo.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/ofpackage/Bravo.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit4.ofpackage;
+package org.jboss.weld.junit.jupiter.ofpackage;
import jakarta.annotation.PostConstruct;
import jakarta.enterprise.context.Dependent;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/ofpackage/OfPackageTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/ofpackage/OfPackageTest.java
similarity index 81%
rename from junit5/src/test/java/org/jboss/weld/junit5/ofpackage/OfPackageTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/ofpackage/OfPackageTest.java
index 33bb2b1d..d74b9a0a 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/ofpackage/OfPackageTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/ofpackage/OfPackageTest.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.ofpackage;
+package org.jboss.weld.junit.jupiter.ofpackage;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
-import org.jboss.weld.junit5.basic.Foo;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
+import org.jboss.weld.junit.jupiter.basic.Foo;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -28,7 +28,7 @@
*
* @author Matej Novotny
*/
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
public class OfPackageTest {
@WeldSetup
diff --git a/junit4/src/test/java/org/jboss/weld/junit4/resources/DummySessionBean.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/DummySessionBean.java
similarity index 72%
rename from junit4/src/test/java/org/jboss/weld/junit4/resources/DummySessionBean.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/DummySessionBean.java
index 17aed2e6..243fbd89 100644
--- a/junit4/src/test/java/org/jboss/weld/junit4/resources/DummySessionBean.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/DummySessionBean.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit4.resources;
+package org.jboss.weld.junit.jupiter.resources;
public class DummySessionBean {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/resources/FooEjbs.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/FooEjbs.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/resources/FooEjbs.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/FooEjbs.java
index 42d500cd..131ef7e3 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/resources/FooEjbs.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/FooEjbs.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.resources;
+package org.jboss.weld.junit.jupiter.resources;
import jakarta.ejb.EJB;
import jakarta.enterprise.context.Dependent;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/resources/FooJpa.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/FooJpa.java
similarity index 96%
rename from junit5/src/test/java/org/jboss/weld/junit5/resources/FooJpa.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/FooJpa.java
index 55fd6f84..0cde78d8 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/resources/FooJpa.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/FooJpa.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.resources;
+package org.jboss.weld.junit.jupiter.resources;
import jakarta.enterprise.context.Dependent;
import jakarta.persistence.EntityManager;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/resources/FooResources.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/FooResources.java
similarity index 95%
rename from junit5/src/test/java/org/jboss/weld/junit5/resources/FooResources.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/FooResources.java
index 07c48914..13f1bfeb 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/resources/FooResources.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/FooResources.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.resources;
+package org.jboss.weld.junit.jupiter.resources;
import jakarta.annotation.Resource;
import jakarta.enterprise.context.Dependent;
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/resources/InjectResourcesTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/InjectResourcesTest.java
similarity index 98%
rename from junit5/src/test/java/org/jboss/weld/junit5/resources/InjectResourcesTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/InjectResourcesTest.java
index 9e798dfe..59942c7e 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/resources/InjectResourcesTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/resources/InjectResourcesTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.resources;
+package org.jboss.weld.junit.jupiter.resources;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
@@ -43,9 +43,9 @@
import jakarta.persistence.criteria.CriteriaUpdate;
import jakarta.persistence.metamodel.Metamodel;
-import org.jboss.weld.junit5.EnableWeld;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.EnableWeld;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldSetup;
import org.junit.jupiter.api.Test;
/**
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/testLifecycle/PerClassLifecycleChildTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/testLifecycle/PerClassLifecycleChildTest.java
similarity index 89%
rename from junit5/src/test/java/org/jboss/weld/junit5/testLifecycle/PerClassLifecycleChildTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/testLifecycle/PerClassLifecycleChildTest.java
index 3a203599..0398fd49 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/testLifecycle/PerClassLifecycleChildTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/testLifecycle/PerClassLifecycleChildTest.java
@@ -1,4 +1,4 @@
-package org.jboss.weld.junit5.testLifecycle;
+package org.jboss.weld.junit.jupiter.testLifecycle;
// all configuration is inherited, so are test methods
// we should recognize this class as having per-class lifecycle and bootstrap Weld accordingly
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/testLifecycle/PerClassLifecycleTest.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/testLifecycle/PerClassLifecycleTest.java
similarity index 89%
rename from junit5/src/test/java/org/jboss/weld/junit5/testLifecycle/PerClassLifecycleTest.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/testLifecycle/PerClassLifecycleTest.java
index ef159866..ba3c4f2e 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/testLifecycle/PerClassLifecycleTest.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/testLifecycle/PerClassLifecycleTest.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.testLifecycle;
+package org.jboss.weld.junit.jupiter.testLifecycle;
import org.jboss.weld.environment.se.Weld;
import org.jboss.weld.environment.se.WeldContainer;
-import org.jboss.weld.junit5.WeldInitiator;
-import org.jboss.weld.junit5.WeldJunit5Extension;
-import org.jboss.weld.junit5.WeldSetup;
+import org.jboss.weld.junit.jupiter.WeldInitiator;
+import org.jboss.weld.junit.jupiter.WeldJUnitJupiterExtension;
+import org.jboss.weld.junit.jupiter.WeldSetup;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
@@ -33,7 +33,7 @@
* @author Matej Novotny
*/
@Isolated
-@ExtendWith(WeldJunit5Extension.class)
+@ExtendWith(WeldJUnitJupiterExtension.class)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class PerClassLifecycleTest {
diff --git a/junit5/src/test/java/org/jboss/weld/junit5/testLifecycle/PlainBean.java b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/testLifecycle/PlainBean.java
similarity index 94%
rename from junit5/src/test/java/org/jboss/weld/junit5/testLifecycle/PlainBean.java
rename to junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/testLifecycle/PlainBean.java
index 73b0de02..c581073d 100644
--- a/junit5/src/test/java/org/jboss/weld/junit5/testLifecycle/PlainBean.java
+++ b/junit-jupiter/src/test/java/org/jboss/weld/junit/jupiter/testLifecycle/PlainBean.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.jboss.weld.junit5.testLifecycle;
+package org.jboss.weld.junit.jupiter.testLifecycle;
import jakarta.enterprise.context.ApplicationScoped;
diff --git a/junit-jupiter/src/test/resources/META-INF/services/org.jboss.weld.junit.jupiter.WeldJunitEnricher b/junit-jupiter/src/test/resources/META-INF/services/org.jboss.weld.junit.jupiter.WeldJunitEnricher
new file mode 100644
index 00000000..bd77f22b
--- /dev/null
+++ b/junit-jupiter/src/test/resources/META-INF/services/org.jboss.weld.junit.jupiter.WeldJunitEnricher
@@ -0,0 +1 @@
+org.jboss.weld.junit.jupiter.enricher.FooWeldJunitEnricher
\ No newline at end of file
diff --git a/junit5/src/test/resources/junit-platform.properties b/junit-jupiter/src/test/resources/junit-platform.properties
similarity index 100%
rename from junit5/src/test/resources/junit-platform.properties
rename to junit-jupiter/src/test/resources/junit-platform.properties
diff --git a/junit4/src/test/resources/logging.properties b/junit-jupiter/src/test/resources/logging.properties
similarity index 100%
rename from junit4/src/test/resources/logging.properties
rename to junit-jupiter/src/test/resources/logging.properties
diff --git a/junit4/README.md b/junit4/README.md
deleted file mode 100644
index 68ee5efe..00000000
--- a/junit4/README.md
+++ /dev/null
@@ -1,315 +0,0 @@
-# Weld JUnit 4 Extension
-
-Weld JUnit 4 extension uses the original JUnit extension system via `@Rule` or `@ClassRule` annotation.
-It requires JUnit 4.9+ and Java 17.
-
-## Table of contents
-
-* [Maven Artifact](#maven-artifact)
-* [WeldInitiator](#weldinitiator)
- * [Flat Deployment](#flat-deployment)
- * [Convenient Starting Points](#convenient-starting-points)
- * [Test class injection](#test-class-injection)
- * [Activating context for a normal scope](#activating-context-for-a-normal-scope)
- * [Adding mock beans](#adding-mock-beans)
- * [Adding mock interceptors](#adding-mock-interceptors)
- * [Mock injection services](#mock-injection-services)
-
-## Maven Artifact
-
-```xml
-
- org.jboss.weld
- weld-junit4
- ${version.weld-junit}
-
-```
-
-## WeldInitiator
-
-`org.jboss.weld.junit4.WeldInitiator` is a `TestRule` (JUnit 4.9+) which allows to *start/stop*
-a Weld container per test method execution if used as `@Rule` or per test class if used as `@ClassRule`.
-The container is configured through a provided `org.jboss.weld.environment.se.Weld` instance.
-By default, the container is optimized for testing purposes, i.e. with automatic discovery and concurrent deployment disabled (see also `WeldInitiator.createWeld()`).
-However, it is possible to provide a customized `Weld` instance - see also `WeldInitiator.of(Weld)` and `WeldInitiator.from(Weld)` methods.
-`WeldInitiator` also implements `jakarta.enterprise.inject.Instance` and therefore might be used to perform programmatic lookup of bean instances.
-
-### Flat Deployment
-
-Unlike when using [Arquillian Weld embedded container](https://github.com/arquillian/arquillian-container-weld), bean archive isolation is enabled by default.
-This behaviour can be changed by setting a system property `org.jboss.weld.se.archive.isolation` to `false` or through the `Weld.property()` method.
-In that case, Weld will use a _"flat"_ deployment structure - all bean classes share the same bean archive and all beans.xml descriptors are automatically merged into one.
-Thus alternatives, interceptors and decorators selected/enabled for a bean archive will be enabled for the whole application.
-
-### Convenient Starting Points
-
-A convenient static method `WeldInitiator.of(Class>...)` is also provided - in this case, the container is optimized for testing purposes and only the given bean classes are considered.
-
-```java
-import static org.junit.Assert.assertEquals;
-
-import org.junit.Rule;
-import org.junit.Test;
-
-class SimpleTest {
-
- @Rule
- public WeldInitiator weld = WeldInitiator.of(Foo.class);
-
- @Test
- public void testFoo() {
- // Note that Weld container is started automatically
-
- // WeldInitiator can be used to perform programmatic lookup of beans
- assertEquals("baz", weld.select(Foo.class).get().getBaz());
-
- // WeldInitiator can be used to fire a CDI event
- weld.event().select(Baz.class).fire(new Baz());
- }
-
-}
-```
-
-It's also possible to use `WeldInitiator.ofTestPackage()` - the container is optimized for testing purposes and all the classes from the test class package are added automatically.
-
-```java
-
-class AnotherSimpleTest {
-
- @Rule
- public WeldInitiator weld = WeldInitiator.ofTestPackage();
-
- @Test
- public void testFoo() {
- // Alpha comes from the same package as AnotherSimpleTest
- assertEquals(1, weld.select(Alpha.class).ping());
- }
-
-}
-```
-
-Furthermore, `WeldInitiator.Builder` can be used to customize the final `WeldInitiator` instance, e.g. to *activate a context for a given normal scope* or to *inject the test class*.
-
-#### Test class injection
-
-Sometimes, the programmatic lookup can imply unnecessary overhead, e.g. an annotation literal must be used for parameterized types and qualifiers with members.
-`WeldInitiator.Builder.inject(Object)` instructs the rule to inject the given non-contextual instance once the container is started, i.e. during each test method execution:
-
-```java
-class InjectTest {
-
- @Rule
- public WeldInitiator weld = WeldInitiator.from(Foo.class).inject(this).build();
-
- // Gets injected by WeldInitiator when testFoo() is about to be run
- @Inject
- @MyQualifier
- Foo foo;
-
- @Test
- public void testFoo() {
- assertEquals(42, foo.getValue());
- }
-}
-```
-
-When using the `WeldInitiator` as `@ClassRule` to only have one weld instance for the whole test class,
-`inject(this)` cannot be used, as no `this` reference is available yet and it cannot be done on the `WeldInitiator` itself.
-For this situation `WeldInitiator` provides the method `getTestClassInjectorRule()` that returns a `MethodRule`
-which can be used as a `@Rule` and injects into the test instance automatically:
-
-```java
-class InjectTest {
-
- @ClassRule
- public static WeldInitiator weld = WeldInitiator.from(Foo.class).build();
-
- @Rule
- public MethodRule testClassInjectorRule = weld.getTestClassInjectorRule();
-
- // Gets injected by testClassInjector when testFoo() is about to be run
- @Inject
- @MyQualifier
- Foo foo;
-
- @Test
- public void testFoo() {
- assertEquals(42, foo.getValue());
- }
-}
-```
-
-#### Activating context for a normal scope
-
-`WeldInitiator.Builder.activate(Object)` makes it possible to activate and deactivate contexts for the specified normal scopes for each test method execution:
-
-```java
-class ContextsActivatedTest {
-
- @Rule
- public WeldInitiator weld = WeldInitiator.from(Foo.class, Oof.class)
- .activate(RequestScoped.class, SessionScoped.class).build();
-
- @Test
- public void testFoo() {
- // Contexts for @RequestScoped and @SessionScoped are active!
- // Foo is @RequestScoped
- weld.select(Foo.class).get().doSomethingImportant();
- // Oof is @SessionScoped
- weld.select(Oof.class).get().doSomethingVeryImportant();
- }
-}
-```
-
-#### Adding mock beans
-
-Sometimes you might need to add a mock for a bean that cannot be part of the test deployment, e.g. the original bean implementation has dependencies which cannot be satisfied in the test environment.
-Very often, it's an ideal use case for mocking libraries, ie. to create a bean instance with the desired behavior.
-In this case, there are two options.
-The first option is to add a [producer method](http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#producer_method) to the test class and add the test class to the deployment.
-The test class will be recognized as a bean and therefore the producer will also be discovered.
-
-```java
-interface Bar {
- String ping();
-}
-
-class Foo {
- @Inject
- Bar bar;
-
- String ping() {
- return bar.ping();
- }
-}
-
-class TestClassProducerTest {
-
- @Rule
- public WeldInitiator weld = WeldInitiator.from(Foo.class, TestClassProducerTest.class).build();
-
- @ApplicationScoped
- @Produces
- Bar produceBar() {
- // Mock object provided by Mockito
- return Mockito.when(Mockito.mock(Bar.class).ping()).thenReturn("pong").getMock();
- }
-
- @Test
- public void testFoo() {
- Assert.assertEquals("pong", weld.select(Foo.class).get().ping());
- }
-}
-```
-
-This should work in most of the cases (assuming the test class [meets some conditions](http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#what_classes_are_beans)) although it's a little bit cumbersome.
-The second option is `WeldInitiator.Builder.addBeans(Bean>...)` which makes it possible to add beans during `AfterBeanDiscovery` phase easily.
-You can provide your own `jakarta.enterprise.inject.spi.Bean` implementation or make use of existing solutions such as DeltaSpike [BeanBuilder](https://github.com/apache/deltaspike/blob/master/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/bean/BeanBuilder.java) or for most use cases a convenient `org.jboss.weld.junit.MockBean` should be sufficient.
-Use `org.jboss.weld.junit.MockBean.builder()` to obtain a new builder instance.
-
-```java
-interface Bar {
- String ping();
-}
-
-class Foo {
- @Inject
- Bar bar;
-
- String ping() {
- return bar.ping();
- }
-}
-
-class AddBeanTest {
-
- @Rule
- public WeldInitiator weld = WeldInitiator.from(Foo.class).addBeans(createBarBean()).build();
-
- static Bean> createBarBean() {
- return MockBean.builder()
- .types(Bar.class)
- .scope(ApplicationScoped.class)
- .creating(
- // Mock object provided by Mockito
- Mockito.when(Mockito.mock(Bar.class).ping()).thenReturn("pong").getMock())
- .build();
- }
-
- @Test
- public void testFoo() {
- assertEquals("pong", weld.select(Foo.class).get().ping());
- }
-}
-```
-
-#### Adding mock interceptors
-
-Sometimes it might be useful to add a mock interceptor, e.g. if an interceptor implementation requires some environment-specific features.
-For this use case the `org.jboss.weld.junit.MockInterceptor` is a perfect match:
-
-```java
-@FooBinding
-class Foo {
- boolean ping() {
- return true;
- }
-}
-
-@Target({ TYPE, METHOD })
-@Retention(RUNTIME)
-@InterceptorBinding
-@interface FooBinding {
-
- @SuppressWarnings("serial")
- static final class Literal extends AnnotationLiteral implements FooBinding {
- public static final Literal INSTANCE = new Literal();
- };
- }
-}
-
-class MockInterceptorTest {
-
- @Rule
- public WeldInitiator weld = WeldInitiator.from(Foo.class).addBeans(
- MockInterceptor.withBindings(FooBinding.Literal.INSTANCE).aroundInvoke((ctx, b) -> {
- return false;
- })).build();
-
-
- @Test
- public void testInterception() {
- Assert.assertFalse(weld.select(Foo.class).get().ping());
- }
-}
-```
-
-#### Mock injection services
-
-If a bean under the test declares a non-CDI injection point (such as `@Resource`) a mock injection service must be installed.
-`WeldInitiator` builder comes with several convenient methods which allow to easily mock the Weld SPI:
-
-* `bindResource()` - to handle `@Resource`
-* `setEjbFactory()` - to handle `@EJB`
-* `setPersistenceUnitFactory()` - to handle `@PersistenceUnit`
-* `setPersistenceContextFactory()` - to handle `@PersistenceContext`
-
-```java
-class Baz {
-
- @Resource(lookup = "somejndiname")
- String coolResource;
-
-}
-
-class MyTest {
-
- @Rule
- public WeldInitiator weld = WeldInitiator.from(Baz.class).bindResource("somejndiname", "coolString").build();
-
- @Test
- public void test(Baz baz) {
- Assertions.assertEquals("coolString", baz.coolResource);
- }
-}
-```
diff --git a/junit4/pom.xml b/junit4/pom.xml
deleted file mode 100644
index 786fef63..00000000
--- a/junit4/pom.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-
- 4.0.0
-
- Weld JUnit 4 Extension
-
-
- org.jboss.weld
- weld-junit-parent
- 5.0.3-SNAPSHOT
-
-
- weld-junit4
-
-
-
-
- org.jboss.weld.se
- weld-se-core
-
-
-
- org.jboss.weld
- weld-junit-common
-
-
-
- junit
- junit
-
-
-
-
- org.mockito
- mockito-core
-
-
-
- jakarta.ejb
- jakarta.ejb-api
-
-
-
- jakarta.persistence
- jakarta.persistence-api
- test
-
-
-
- org.jboss.weld.module
- weld-ejb
- ${version.weld}
- test
-
-
-
-
-
diff --git a/junit4/src/main/java/org/jboss/weld/junit4/WeldInitiator.java b/junit4/src/main/java/org/jboss/weld/junit4/WeldInitiator.java
deleted file mode 100644
index e28a102c..00000000
--- a/junit4/src/main/java/org/jboss/weld/junit4/WeldInitiator.java
+++ /dev/null
@@ -1,274 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2017, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * 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.weld.junit4;
-
-import java.lang.annotation.Annotation;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.function.Function;
-
-import jakarta.enterprise.inject.Instance;
-import jakarta.enterprise.inject.spi.Bean;
-import jakarta.enterprise.inject.spi.Extension;
-import jakarta.enterprise.inject.spi.InjectionPoint;
-
-import org.jboss.weld.environment.se.Weld;
-import org.jboss.weld.junit.AbstractWeldInitiator;
-import org.junit.ClassRule;
-import org.junit.Rule;
-import org.junit.rules.MethodRule;
-import org.junit.rules.TestRule;
-import org.junit.runner.Description;
-import org.junit.runners.model.Statement;
-
-/**
- * JUnit 4 initiator - test rule which starts a Weld container per each test method execution:
- *
- *
- * import org.junit.Rule;
- *
- * public class SimpleTest {
- *
- * @Rule
- * public WeldInitiator weld = WeldInitiator.of(Foo.class);
- *
- * @Test
- * public void testFoo() {
- * // Weld container is started automatically
- * // WeldInitiator can be used to perform programmatic lookup of beans
- * assertEquals("baz", weld.select(Foo.class).get().getBaz());
- * }
- * }
- *
- *
- *
- * Alternatively, the container can be shared accross all test methods:
- *
- *
- *
- * import org.junit.ClassRule;
- *
- * public class ClassRuleTest {
- *
- * @ClassRule
- * public WeldInitiator weld = WeldInitiator.of(Foo.class);
- *
- * @Test
- * public void test1() {
- * // Weld container is started automatically
- * // WeldInitiator can be used to perform programmatic lookup of beans
- * assertEquals("baz", weld.select(Foo.class).get().getBaz());
- * }
- *
- * @Test
- * public void test2() {
- * // This test method is using the same Weld container as test1()
- * }
- * }
- *
- *
- *
- * {@link WeldInitiator} implements {@link Instance} and therefore might be used to perform programmatic lookup of bean
- * instances.
- *
- *
- * @author Martin Kouba
- * @author Matej Novotny
- */
-public class WeldInitiator extends AbstractWeldInitiator implements TestRule {
-
- /**
- * The container is configured with the result of {@link #createWeld()} method and the given bean classes are added. If any
- * of added classes is an extension, it is automatically recognized and enabled.
- *
- * @param beanClasses
- * @return a new test rule
- * @see Weld#beanClasses(Class...)
- */
- public static WeldInitiator of(Class>... beanClasses) {
- return from(beanClasses).build();
- }
-
- /**
- * The container is configured through a provided {@link Weld} instance.
- *
- * @param weld
- * @return a new test rule
- */
- public static WeldInitiator of(Weld weld) {
- return from(weld).build();
- }
-
- /**
- * The container is configured with the result of {@link #createWeld()} method and all the classes from the test class
- * package are added.
- *
- * @return a new test rule
- */
- public static WeldInitiator ofTestPackage() {
- return fromTestPackage().build();
- }
-
- /**
- * The container is instructed to do automatic bean discovery, the resulting bean archive is NOT synthetic. Note that this
- * requires beans.xml to be present. It is equals to {@code WeldInitiator.of(new Weld())} invocation.
- *
- * @return a new test rule
- */
- public static WeldInitiator performDefaultDiscovery() {
- return of(new Weld());
- }
-
- /**
- * Create a builder instance.
- *
- * @param weld
- * @return a builder instance
- * @see #of(Class...)
- */
- public static Builder from(Class>... beanClasses) {
- Weld weld = createWeld();
- for (Class> clazz : beanClasses) {
- if (Extension.class.isAssignableFrom(clazz)) {
- weld.addExtensions((Class extends Extension>) clazz);
- } else {
- weld.addBeanClass(clazz);
- }
- }
- return from(weld);
- }
-
- /**
- * Create a builder instance.
- *
- * @param weld
- * @return a builder instance
- * @see #of(Weld)
- */
- public static Builder from(Weld weld) {
- return new Builder(weld);
- }
-
- /**
- * Create a builder instance.
- *
- * @return a builder instance
- * @see #ofTestPackage()
- */
- public static Builder fromTestPackage() {
- return new Builder(null);
- }
-
- /**
- * The returned {@link Weld} instance has:
- *
- * - automatic discovery disabled
- * - concurrent deployment disabled
- *
- *
- * @return a new {@link Weld} instance suitable for testing
- * @see AbstractWeldInitiator#createDefaultWeld()
- */
- public static Weld createWeld() {
- return AbstractWeldInitiator.createDefaultWeld();
- }
-
- /**
- * This builder can be used to customize the final {@link WeldInitiator} instance, e.g. to activate a context for a given
- * normal scope.
- */
- public static final class Builder extends AbstractBuilder {
-
- private Builder(Weld weld) {
- super(weld);
- }
-
- @Override
- protected Builder self() {
- return this;
- }
-
- @Override
- protected WeldInitiator build(Weld weld, List