@@ -22,86 +22,6 @@ public void setup() throws Exception {
2222 client = getLiveClient ();
2323 }
2424
25- @ Test
26- @ Ignore ("only hit the network when we need to." )
27- public void testLiveSourceInternetBankingBay () throws IOException , OmiseException {
28- Request <Source > request = new Source .CreateRequestBuilder ()
29- .type (SourceType .InternetBankingBay )
30- .amount (10000 )
31- .currency ("thb" )
32- .build ();
33-
34- Source source = client .sendRequest (request );
35-
36- System .out .println ("created source: " + source .getId ());
37-
38- assertNotNull (source .getId ());
39- assertEquals ("internet_banking_bay" , source .getType ().toString ());
40- assertEquals ("redirect" , source .getFlow ().toString ());
41- assertEquals (10000L , source .getAmount ());
42- assertEquals ("THB" , source .getCurrency ());
43- }
44-
45- @ Test
46- @ Ignore ("only hit the network when we need to." )
47- public void testLiveSourceInternetBankingKtb () throws IOException , OmiseException {
48- Request <Source > request = new Source .CreateRequestBuilder ()
49- .type (SourceType .InternetBankingKtb )
50- .amount (10000 )
51- .currency ("thb" )
52- .build ();
53-
54- Source source = client .sendRequest (request );
55-
56- System .out .println ("created source: " + source .getId ());
57-
58- assertNotNull (source .getId ());
59- assertEquals ("internet_banking_ktb" , source .getType ().toString ());
60- assertEquals ("redirect" , source .getFlow ().toString ());
61- assertEquals (10000L , source .getAmount ());
62- assertEquals ("THB" , source .getCurrency ());
63- }
64-
65- @ Test
66- @ Ignore ("only hit the network when we need to." )
67- public void testLiveSourceInternetBankingScb () throws IOException , OmiseException {
68- Request <Source > request = new Source .CreateRequestBuilder ()
69- .type (SourceType .InternetBankingScb )
70- .amount (10000 )
71- .currency ("thb" )
72- .build ();
73-
74- Source source = client .sendRequest (request );
75-
76- System .out .println ("created source: " + source .getId ());
77-
78- assertNotNull (source .getId ());
79- assertEquals ("internet_banking_scb" , source .getType ().toString ());
80- assertEquals ("redirect" , source .getFlow ().toString ());
81- assertEquals (10000L , source .getAmount ());
82- assertEquals ("THB" , source .getCurrency ());
83- }
84-
85- @ Test
86- @ Ignore ("only hit the network when we need to." )
87- public void testLiveSourceInternetBankingBbl () throws IOException , OmiseException {
88- Request <Source > request = new Source .CreateRequestBuilder ()
89- .type (SourceType .InternetBankingBbl )
90- .amount (10000 )
91- .currency ("thb" )
92- .build ();
93-
94- Source source = client .sendRequest (request );
95-
96- System .out .println ("created source: " + source .getId ());
97-
98- assertNotNull (source .getId ());
99- assertEquals ("internet_banking_bbl" , source .getType ().toString ());
100- assertEquals ("redirect" , source .getFlow ().toString ());
101- assertEquals (10000L , source .getAmount ());
102- assertEquals ("THB" , source .getCurrency ());
103- }
104-
10525 @ Test
10626 @ Ignore ("only hit the network when we need to." )
10727 public void testLiveSourceBillPayment () throws IOException , OmiseException {
0 commit comments