Skip to content

Commit

Permalink
feat: updates Weld to 4.x release, re-enable tests. (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotn authored Jun 26, 2020
1 parent 526adca commit 2c9fe86
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions testenrichers/cdi-jakarta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
<maven.compiler.source>1.8</maven.compiler.source>

<!-- Versioning -->
<!-- Weld version is to be replaced by 4.x as soon as release is out, also re-enable CDIInjectionEnricherTestCase -->
<version.weld-core>3.1.4.Final</version.weld-core>
<version.weld-core>4.0.0.Alpha1</version.weld-core>
<version.jakarta.cdi-api>3.0.0-M2</version.jakarta.cdi-api>
<version.javax-el>2.2</version.javax-el>
<version.slf4j>1.7.28</version.slf4j>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

public class CDIInjectionEnricherTestCase extends AbstractTestTestBase {
Expand Down Expand Up @@ -69,15 +68,13 @@ public void teardown() throws Exception {
}

@Test
@Ignore // Re-enable after Weld 4.x can be used as dependency
public void shouldInjectClassMembers() throws Exception {
TestClass testClass = new TestClass();
enricher.injectClass(testClass);
testClass.testMethod(testClass.dogService, testClass.catService);
}

@Test
@Ignore // Re-enable after Weld 4.x can be used as dependency
public void shouldInjectMethodArguments() throws Exception {
Method testMethod = TestClass.class.getMethod("testMethod", Service.class, Service.class);

Expand All @@ -88,7 +85,6 @@ public void shouldInjectMethodArguments() throws Exception {
}

@Test
@Ignore // Re-enable after Weld 4.x can be used as dependency
public void shouldInjectMethodArgumentsEvent() throws Exception {
Method testMethod = TestClass.class.getMethod("testEvent", Event.class, Event.class);

Expand All @@ -99,7 +95,6 @@ public void shouldInjectMethodArgumentsEvent() throws Exception {
}

@Test
@Ignore // Re-enable after Weld 4.x can be used as dependency
public void shouldReleaseCreationalContext() throws Exception {
TestClass testClass = new TestClass();
enricher.injectClass(testClass);
Expand All @@ -109,7 +104,6 @@ public void shouldReleaseCreationalContext() throws Exception {
}

@Test
@Ignore // Re-enable after Weld 4.x can be used as dependency
public void shouldInjectMethodArgumentsInstance() throws Exception {
Method testMethod = TestClass.class.getMethod("testInstance", Instance.class, Instance.class);

Expand Down

0 comments on commit 2c9fe86

Please sign in to comment.