|
25 | 25 | import java.util.HashMap; |
26 | 26 | import java.util.List; |
27 | 27 | import java.util.Map; |
| 28 | +import javax.naming.NamingException; |
28 | 29 | import org.javabeanstack.model.appcatalog.AppResource; |
29 | 30 | import org.javabeanstack.model.appcatalog.AppTablesRelation; |
30 | 31 | import org.javabeanstack.model.appcatalog.AppUser; |
31 | 32 | import org.javabeanstack.model.tables.Moneda; |
32 | 33 | import org.javabeanstack.model.views.CtactemovimientodetalleView; |
33 | 34 | import org.javabeanstack.util.LocalDates; |
34 | | -import org.junit.Test; |
35 | | -import static org.junit.Assert.*; |
36 | | -import org.junit.BeforeClass; |
37 | | -import org.junit.FixMethodOrder; |
38 | | -import org.junit.runners.MethodSorters; |
| 35 | + |
| 36 | +import static org.junit.jupiter.api.Assertions.*; |
| 37 | +import org.junit.jupiter.api.BeforeAll; |
| 38 | +import org.junit.jupiter.api.MethodOrderer; |
| 39 | +import org.junit.jupiter.api.Test; |
| 40 | +import org.junit.jupiter.api.TestMethodOrder; |
| 41 | + |
39 | 42 |
|
40 | 43 | /** |
41 | 44 | * |
42 | 45 | * @author Jorge Enciso |
| 46 | + * |
43 | 47 | */ |
44 | | -@FixMethodOrder(MethodSorters.NAME_ASCENDING) |
| 48 | +@TestMethodOrder(MethodOrderer.DisplayName.class) |
45 | 49 | public class AbstractDAOTest extends TestClass { |
46 | 50 | private static IGenericDAO dao; |
47 | 51 |
|
48 | 52 | public AbstractDAOTest() { |
49 | 53 | } |
50 | 54 |
|
51 | | - @BeforeClass |
| 55 | + @BeforeAll |
52 | 56 | public static void setUpClass2() { |
53 | 57 | try { |
54 | 58 | dao = (IGenericDAORemote) context.lookup(jndiProject + "GenericDAO!org.javabeanstack.data.IGenericDAORemote"); |
55 | | - } catch (Exception e) { |
| 59 | + } catch (NamingException e) { |
56 | 60 | System.out.println(e.getMessage()); |
57 | 61 | } |
58 | 62 | } |
|
0 commit comments