Statistics
| Branch: | Revision:

m2u-upass-admin / test / TrnxEnquiryTest.java @ 83:dc500037749f

History | View | Annotate | Download (1.98 KB)

1 0:ea666cc7880e hadi
2
import java.util.List;
3
4
import net.penril.ibss.core.IbUserTransactionHistoryDAO;
5
6
import org.junit.After;
7
import org.junit.AfterClass;
8
import org.junit.Before;
9
import org.junit.BeforeClass;
10
import org.junit.Test;
11
12
import com.ib.ibss.hibernate.tables.DAOFactory;
13
14
15
/**
16
 * Copyright (M) 2009 Penril Datability (M) Sdn Bhd All rights reserved.
17
 *
18
 * This software is copyrighted. Under the copyright laws, this software
19
 * may not be copied, in whole or in part, without prior written consent
20
 * of Penril Datability (M) Sdn Bhd or its assignees. This software is
21
 * provided under the terms of a license between Penril Datability (M)
22
 * Sdn Bhd and the recipient, and its use is subject to the terms of that
23
 * license.
24
 */
25
26
/**
27
 * PROGRAMMER: Danniell
28
 * CHANGE-NO:
29
 * TASK-NO:
30
 * DATE CREATED: Dec 19, 2010
31
 * TAG AS:
32
 * REASON(S):
33
 * MODIFICATION:
34
 */
35
36
/**
37
 * <Class description>
38
 */
39
public class TrnxEnquiryTest
40
{
41
        public static IbUserTransactionHistoryDAO dao;
42
        /**
43
         * <Method description>
44
         *
45
         * @throws java.lang.Exception
46
         */
47
        @BeforeClass
48
        public static void setUpBeforeClass () throws Exception
49
        {
50
        }
51
52
        /**
53
         * <Method description>
54
         *
55
         * @throws java.lang.Exception
56
         */
57
        @AfterClass
58
        public static void tearDownAfterClass () throws Exception
59
        {
60
        }
61
62
        /**
63
         * <Method description>
64
         *
65
         * @throws java.lang.Exception
66
         */
67
        @Before
68
        public void setUp () throws Exception
69
        {
70
                DAOFactory factory = DAOFactory.instance (DAOFactory.HIBERNATE);
71
                dao = factory.getUserTransactionHistoryDAO ();
72
        }
73
74
        /**
75
         * <Method description>
76
         *
77
         * @throws java.lang.Exception
78
         */
79
        @After
80
        public void tearDown () throws Exception
81
        {
82
        }
83
84
        @Test
85
        public void testEnquiry() throws Exception
86
        {
87
                try
88
                {
89
                        List l = dao.transactionEnquiry("", "busin", "", "", "","","", "", "","","", "", "", "", "", "", "", 0, 0) ;
90
91
                        System.out.println (l.size ());
92
                }
93
                catch(Exception e)
94
                {
95
                        e.printStackTrace ();
96
                        throw e;
97
                }
98
        }
99
}