File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed
validation/methods/src/test/java/org/javaee7/validation/methods Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change 99import org .jboss .shrinkwrap .api .ShrinkWrap ;
1010import org .jboss .shrinkwrap .api .asset .EmptyAsset ;
1111import org .jboss .shrinkwrap .api .spec .JavaArchive ;
12- import org .jboss .weld .exceptions .UnsatisfiedResolutionException ;
1312import org .junit .Rule ;
1413import org .junit .Test ;
1514import org .junit .rules .ExpectedException ;
2120@ RunWith (Arquillian .class )
2221public 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}
You can’t perform that action at this time.
0 commit comments