Skip to content

Commit

Permalink
#29498 Enable Weld JUnit5 in integration test
Browse files Browse the repository at this point in the history
Added `@EnableWeld` annotation and extended `ImportContentletsProcessorIntegrationTest` from `Junit5WeldBaseTest`. These changes integrate Weld with the JUnit5 testing framework, enabling dependency injection and enhancing the test's capabilities.
  • Loading branch information
jgambarios committed Oct 29, 2024
1 parent 218c0bc commit 0d13629
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.jboss.weld.junit5.EnableWeld;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand All @@ -38,7 +39,8 @@
* <p>The test suite creates temporary content types and files for testing,
* and includes cleanup operations to maintain database integrity.
*/
public class ImportContentletsProcessorIntegrationTest {
@EnableWeld
public class ImportContentletsProcessorIntegrationTest extends com.dotcms.Junit5WeldBaseTest {

private static Host defaultSite;
private static User systemUser;
Expand Down

0 comments on commit 0d13629

Please sign in to comment.