|
| 1 | +/* |
| 2 | + * To change this license header, choose License Headers in Project Properties. |
| 3 | + * To change this template file, choose Tools | Templates |
| 4 | + * and open the template in the editor. |
| 5 | + */ |
| 6 | + |
| 7 | +package org.javaee7.jta.transaction.scope; |
| 8 | + |
| 9 | +import org.junit.Test; |
| 10 | +import static org.junit.Assert.*; |
| 11 | + |
| 12 | +/** |
| 13 | + * @author Arun Gupta |
| 14 | + */ |
| 15 | +public class TransactionalBeanTest { |
| 16 | + |
| 17 | + /** |
| 18 | + * Test of scenario1 method, of class MyTransactionalBean. |
| 19 | + */ |
| 20 | + @Test |
| 21 | + public void testScenario1() { |
| 22 | + System.out.println("scenario1"); |
| 23 | + MyTransactionalBean instance = new MyTransactionalBean(); |
| 24 | + instance.scenario1(); |
| 25 | + // TODO review the generated test code and remove the default call to fail. |
| 26 | + fail("The test case is a prototype."); |
| 27 | + } |
| 28 | + |
| 29 | + /** |
| 30 | + * Test of scenario2 method, of class MyTransactionalBean. |
| 31 | + */ |
| 32 | + @Test |
| 33 | + public void testScenario2() { |
| 34 | + System.out.println("scenario2"); |
| 35 | + MyTransactionalBean instance = new MyTransactionalBean(); |
| 36 | + instance.scenario2(); |
| 37 | + // TODO review the generated test code and remove the default call to fail. |
| 38 | + fail("The test case is a prototype."); |
| 39 | + } |
| 40 | + |
| 41 | + /** |
| 42 | + * Test of scenario3 method, of class MyTransactionalBean. |
| 43 | + */ |
| 44 | + @Test |
| 45 | + public void testScenario3() { |
| 46 | + System.out.println("scenario3"); |
| 47 | + MyTransactionalBean instance = new MyTransactionalBean(); |
| 48 | + instance.scenario3(); |
| 49 | + // TODO review the generated test code and remove the default call to fail. |
| 50 | + fail("The test case is a prototype."); |
| 51 | + } |
| 52 | + |
| 53 | +} |
0 commit comments