Skip to content

Commit 6bcabb5

Browse files
committed
Fixing compilation errors
1 parent f2aa2e6 commit 6bcabb5

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

validation/methods/src/test/java/org/javaee7/validation/methods/ConstructorParametersInjectionTest.java

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import org.jboss.shrinkwrap.api.ShrinkWrap;
1010
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
1111
import org.jboss.shrinkwrap.api.spec.JavaArchive;
12-
import org.jboss.weld.exceptions.UnsatisfiedResolutionException;
1312
import org.junit.Rule;
1413
import org.junit.Test;
1514
import org.junit.rules.ExpectedException;
@@ -21,22 +20,21 @@
2120
@RunWith(Arquillian.class)
2221
public class ConstructorParametersInjectionTest {
2322

24-
@Inject
25-
Instance<MyBean2> bean;
23+
@Inject
24+
Instance<MyBean2> bean;
2625

27-
@Rule
28-
public ExpectedException thrown = ExpectedException.none();
26+
@Rule
27+
public ExpectedException thrown = ExpectedException.none();
2928

30-
@Deployment
31-
public static Archive<?> deployment() {
32-
return ShrinkWrap.create(JavaArchive.class).addClasses(MyBean2.class)
33-
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
34-
}
29+
@Deployment
30+
public static Archive<?> deployment() {
31+
return ShrinkWrap.create(JavaArchive.class).addClasses(MyBean2.class)
32+
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
33+
}
3534

36-
@Test
37-
public void constructorViolationsWhenNullParameters() throws NoSuchMethodException, SecurityException {
38-
thrown.expect(UnsatisfiedResolutionException.class);
39-
bean.get();
40-
}
35+
@Test
36+
public void constructorViolationsWhenNullParameters() throws NoSuchMethodException, SecurityException {
37+
bean.get();
38+
}
4139

4240
}

0 commit comments

Comments
 (0)