Skip to content

Commit

Permalink
Remove usage of deprecated CDI API.
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotn committed Jun 9, 2021
1 parent fc3cd1f commit 47209c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public TestContainer startContainer(Environment environment) {
.endInitialization();
if (environment.equals(Environments.SE)) {
for (BeanDeploymentArchive beanDeploymentArchive : deployment.getBeanDeploymentArchives()) {
bootstrap.getManager(beanDeploymentArchive).fireEvent(new Object(), InitializedLiteral.APPLICATION);
bootstrap.getManager(beanDeploymentArchive).getEvent().select(InitializedLiteral.APPLICATION).fire(new Object());
}
}
return this;
Expand Down Expand Up @@ -278,7 +278,7 @@ public TestContainer stopContainer() {

if (environment.equals(Environments.SE)) {
for (BeanDeploymentArchive beanDeploymentArchive : deployment.getBeanDeploymentArchives()) {
bootstrap.getManager(beanDeploymentArchive).fireEvent(new Object(), DestroyedLiteral.APPLICATION);
bootstrap.getManager(beanDeploymentArchive).getEvent().select(DestroyedLiteral.APPLICATION).fire(new Object());
}
}
bootstrap.shutdown();
Expand Down
8 changes: 5 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@
<properties>

<!-- Versioning -->
<version.arquillian_core>1.7.0.Alpha2</version.arquillian_core>
<!-- TODO needs a released version, see https://github.com/arquillian/arquillian-core/pull/339 -->
<version.arquillian_core>1.7.0.Final-SNAPSHOT</version.arquillian_core>

<weld.api.version>4.0.Alpha1</weld.api.version>
<weld.core.version>4.0.0.Alpha3</weld.core.version>
<!-- TODO Circular dependency on Weld - will need to be updated after release along with CDI API version -->
<weld.api.version>4.0.SP1</weld.api.version>
<weld.core.version>4.0.1.SP1</weld.core.version>

<!-- Versioning -->
<cdi.api.version>3.0.0-M2</cdi.api.version>
Expand Down

0 comments on commit 47209c5

Please sign in to comment.