File tree Expand file tree Collapse file tree 4 files changed +16
-3
lines changed
java/org/javaee7/jta/tx/exception
user-transaction/src/test Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public class EmployeeBeanTest {
2424 public static Archive <?> deploy () {
2525 return ShrinkWrap .create (JavaArchive .class )
2626 .addClasses (EmployeeBean .class , Employee .class )
27- .addAsManifestResource (EmptyAsset . INSTANCE , "beans.xml" )
27+ .addAsManifestResource ("beans.xml" )
2828 .addAsResource ("META-INF/persistence.xml" )
2929 .addAsResource ("META-INF/create.sql" )
3030 .addAsResource ("META-INF/load.sql" )
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <beans xmlns =" http://xmlns.jcp.org/xml/ns/javaee"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://xmlns.jcp.org/xml/ns/javaee
5+ http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
6+ bean-discovery-mode =" all" >
7+ </beans >
Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ public class UserTransactionTest {
2323 @ Deployment
2424 public static Archive <?> deploy () {
2525 return ShrinkWrap .create (JavaArchive .class )
26- .addAsManifestResource (EmptyAsset .INSTANCE , "beans.xml" );
27- // WF 8.0.0.Beta1 needs the beans.xml file. Shouldn't be the case with JavaEE 7
26+ .addAsManifestResource ("beans.xml" );
2827 }
2928
3029 @ Inject UserTransaction ut ;
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <beans xmlns =" http://xmlns.jcp.org/xml/ns/javaee"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://xmlns.jcp.org/xml/ns/javaee
5+ http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
6+ bean-discovery-mode =" all" >
7+ </beans >
You can’t perform that action at this time.
0 commit comments