Statistics
| Branch: | Revision:

m2u-upass-admin / test / BankBranchTest.java @ 16:d12529a64c6c

History | View | Annotate | Download (1.85 KB)

1

    
2
import net.penril.ib.content.BankBranchContentDAO;
3

    
4
import org.junit.After;
5
import org.junit.AfterClass;
6
import org.junit.Before;
7
import org.junit.BeforeClass;
8
import org.junit.Test;
9

    
10
import com.ib.ibss.hibernate.tables.DAOFactory;
11

    
12
/**
13
 * Copyright (M) 2009 Penril Datability (M) Sdn Bhd All rights reserved.
14
 *
15
 * This software is copyrighted. Under the copyright laws, this software
16
 * may not be copied, in whole or in part, without prior written consent
17
 * of Penril Datability (M) Sdn Bhd or its assignees. This software is
18
 * provided under the terms of a license between Penril Datability (M)
19
 * Sdn Bhd and the recipient, and its use is subject to the terms of that
20
 * license.
21
 */
22

    
23
/**
24
 * PROGRAMMER: Danniell
25
 * CHANGE-NO:
26
 * TASK-NO:
27
 * DATE CREATED: Dec 10, 2010
28
 * TAG AS:
29
 * REASON(S):
30
 * MODIFICATION:
31
 */
32

    
33
/**
34
 * <Class description>
35
 */
36
public class BankBranchTest
37
{
38

    
39
        public static BankBranchContentDAO dao;
40
        
41
        /**
42
         * <Method description>
43
         *
44
         * @throws java.lang.Exception
45
         */
46
        @BeforeClass
47
        public static void setUpBeforeClass () throws Exception
48
        {
49
        }
50

    
51
        /**
52
         * <Method description>
53
         *
54
         * @throws java.lang.Exception
55
         */
56
        @AfterClass
57
        public static void tearDownAfterClass () throws Exception
58
        {
59
        }
60

    
61
        /**
62
         * <Method description>
63
         *
64
         * @throws java.lang.Exception
65
         */
66
        @Before
67
        public void setUp () throws Exception
68
        {
69
                DAOFactory factory = DAOFactory.instance (DAOFactory.HIBERNATE);
70
                dao = factory.getBankBranchContentDAO ();
71
        }
72

    
73
        /**
74
         * <Method description>
75
         *
76
         * @throws java.lang.Exception
77
         */
78
        @After
79
        public void tearDown () throws Exception
80
        {
81
        }
82

    
83
//        @Test
84
//        public void testDelete() throws Exception
85
//        {
86
//                dao.deleteBankBranch (new Long(13));
87
//        }
88
        
89
        @Test
90
        public void testBankBranchRetrieval() throws Exception
91
        {
92
                dao.getBankBranchByID(13L);
93
        }
94
}