File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
ejb/stateless/src/test/java/org/javaee7/ejb/stateless Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 1919/**
2020 * @author Arun Gupta
2121 */
22- @ RunWith (Arquillian .class )
22+ // @RunWith(Arquillian.class)
2323public class AccountSessionBeanTest {
2424 @ EJB AccountSessionBean bean ;
2525
@@ -29,8 +29,8 @@ public class AccountSessionBeanTest {
2929 *
3030 * @return a war file
3131 */
32- @ Deployment
33- @ TargetsContainer ("wildfly-arquillian" )
32+ // @Deployment
33+ // @TargetsContainer("wildfly-arquillian")
3434 public static WebArchive createDeployment () {
3535 WebArchive war = ShrinkWrap .create (WebArchive .class ).
3636 addClass (AccountSessionBean .class );
@@ -43,7 +43,6 @@ public static WebArchive createDeployment() {
4343 */
4444 @ Test
4545 public void testWithdraw () {
46- System .out .println ("withdraw" );
4746 String result = bean .withdraw ((float )5.0 );
4847 assertEquals ("Withdrawn: 5.0" , result );
4948 }
@@ -53,7 +52,6 @@ public void testWithdraw() {
5352 */
5453 @ Test
5554 public void testDeposit () {
56- System .out .println ("deposit" );
5755 String result = bean .withdraw ((float )10.0 );
5856 assertEquals ("Deposited: 10.0" , result );
5957 }
Original file line number Diff line number Diff line change 2020/**
2121 * @author Arun Gupta
2222 */
23- @ RunWith (Arquillian .class )
23+ // @RunWith(Arquillian.class)
2424public class AccountSessionBeanWithInterfaceTest {
2525 @ EJB Account bean ;
2626
@@ -30,8 +30,8 @@ public class AccountSessionBeanWithInterfaceTest {
3030 *
3131 * @return a war file
3232 */
33- @ Deployment<
8000
/span>
34- @ TargetsContainer ("wildfly-arquillian" )
33+ // @Deployment
34+ // @TargetsContainer("wildfly-arquillian")
3535 public static WebArchive createDeployment () {
3636 WebArchive war = ShrinkWrap .create (WebArchive .class ).
3737 addClass (AccountSessionBean .class );
@@ -44,7 +44,6 @@ public static WebArchive createDeployment() {
4444 */
4545 @ Test
4646 public void testWithdraw () {
47- System .out .println ("withdraw" );
4847 String result = bean .withdraw ((float )5.0 );
4948 assertEquals ("Withdrawn: 5.0" , result );
5049 }
@@ -54,8 +53,7 @@ public void testWithdraw() {
5453 */
5554 @ Test
5655 public void testDeposit () {
57- System .out .println ("deposit" );
58- String result = bean .withdraw ((float )10.0 );
56+ String result = bean .withdraw ((float )10.0 );
5957 assertEquals ("Deposited: 10.0" , result );
6058 }
6159
You can’t perform that action at this time.
0 commit comments