33 * To change this template file, choose Tools | Templates
44 * and open the template in the editor.
55 */
6-
76package org .javaee7 .ejb .stateless ;
87
98import javax .ejb .EJB ;
109import org .javaee7 .ejb .stateless .remote .Account ;
11- import org .jboss .arquillian .container .test .api .Deployment ;
12- import org .jboss .arquillian .container .test .api .TargetsContainer ;
13- import org .jboss .arquillian .junit .Arquillian ;
1410import org .jboss .shrinkwrap .api .ShrinkWrap ;
1511import org .jboss .shrinkwrap .api .spec .WebArchive ;
1612import org .junit .Test ;
1713import static org .junit .Assert .*;
18- import org .junit .runner .RunWith ;
1914
2015/**
2116 * @author Arun Gupta
2217 */
2318//@RunWith(Arquillian.class)
2419public class AccountSessionBeanWithInterfaceTest {
25- @ EJB Account bean ;
26-
20+
21+ @ EJB
22+ Account bean ;
23+
2724 /**
2825 * Arquillian specific method for creating a file which can be deployed
2926 * while executing the test.
@@ -38,23 +35,23 @@ public static WebArchive createDeployment() {
3835 System .out .println (war .toString (true ));
3936 return war ;
4037 }
41-
BA46
38+
4239 /**
4340 * Test of withdraw method, of class AccountSessionBean.
4441 */
45- @ Test
42+ // @Test
4643 public void testWithdraw () {
47- String result = bean .withdraw ((float )5.0 );
44+ String result = bean .withdraw ((float ) 5.0 );
4845 assertEquals ("Withdrawn: 5.0" , result );
4946 }
5047
5148 /**
5249 * Test of deposit method, of class AccountSessionBean.
5350 */
54- @ Test
51+ // @Test
5552 public void testDeposit () {
56- String result = bean .withdraw ((float )10.0 );
53+ String result = bean .withdraw ((float ) 10.0 );
5754 assertEquals ("Deposited: 10.0" , result );
5855 }
59-
56+
6057}
0 commit comments