File tree 2 files changed +24
-3
lines changed
concurrency/managedexecutor/src/test
java/org/javaee7/concurrency/managedexecutor
2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1
1
package org .javaee7 .concurrency .managedexecutor ;
2
2
3
+ import static org .junit .Assert .assertEquals ;
4
+ import static org .junit .Assert .assertTrue ;
5
+
6
+ import java .io .File ;
3
7
import java .util .ArrayList ;
4
8
import java .util .Collection ;
5
9
import java .util .List ;
6
10
import java .util .concurrent .Callable ;
7
11
import java .util .concurrent .Future ;
12
+
8
13
import javax .annotation .Resource ;
9
14
import javax .ejb .EJB ;
10
15
import javax .enterprise .concurrent .ManagedExecutorService ;
16
+
11
17
import org .jboss .arquillian .container .test .api .Deployment ;
12
18
import org .jboss .arquillian .junit .Arquillian ;
13
19
import org .jboss .shrinkwrap .api .ShrinkWrap ;
20
+ import org .jboss .shrinkwrap .api .asset .FileAsset ;
14
21
import org .jboss .shrinkwrap .api .spec .WebArchive ;
15
- import org .junit .Test ;
16
- import static org .junit .Assert .*;
17
22
import org .junit .Before ;
23
+ import org .junit .Test ;
18
24
import org .junit .runner .RunWith ;
19
25
20
26
/**
@@ -50,7 +56,8 @@ public static WebArchive createDeployment() {
50
56
TestStatus .class ,
51
57
MyTaskWithListener .class ,
52
58
MyTaskWithTransaction .class ,
53
- TestBean .class );
59
+ TestBean .class ).
60
+ setWebXML (new FileAsset (new File ("src/main/webapp/WEB-INF/web.xml" )));
54
61
}
55
62
56
63
@ Before
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <arquillian xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xmlns =" http://jboss.org/schema/arquillian" xsi : schemaLocation =" http://jboss.org/schema/arquillian
3
+ http://jboss.org/schema/arquillian/arquillian_1_0.xsd" >
4
+
5
+ <defaultProtocol type =" Servlet 3.0" />
6
+
7
+ <container qualifier =" test" default =" true" >
8
+ <configuration >
9
+ <property name =" jbossHome" >${serverRoot:target/wildfly-8.0.0.Beta1}</property >
10
+ <property name =" serverConfig" >${serverProfile:standalone-full.xml}</property >
11
+ </configuration >
12
+ </container >
13
+
14
+ </arquillian >
You can’t perform that action at this time.
0 commit comments