8000 CoCommenting the test for now until EJB injection is identified · javaee-samples/javaee7-samples@8a62f84 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a62f84

Browse files
committed
CoCommenting the test for now until EJB injection is identified
1 parent e934ff3 commit 8a62f84

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

ejb/stateless/src/test/java/org/javaee7/ejb/stateless/AccountSessionBeanWithInterfaceTest.java

Lines changed: 10 additions & 13 deletions
BA46
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,24 @@
33
* To change this template file, choose Tools | Templates
44
* and open the template in the editor.
55
*/
6-
76
package org.javaee7.ejb.stateless;
87

98
import javax.ejb.EJB;
109
import 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;
1410
import org.jboss.shrinkwrap.api.ShrinkWrap;
1511
import org.jboss.shrinkwrap.api.spec.WebArchive;
1612
import org.junit.Test;
1713
import static org.junit.Assert.*;
18-
import org.junit.runner.RunWith;
1914

2015
/**
2116
* @author Arun Gupta
2217
*/
2318
//@RunWith(Arquillian.class)
2419
public 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-
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

Comments
 (0)
0