Browse Source

test error changed

pull/1/head
Amrit Giri 4 years ago
parent
commit
045c6c982e
  1. 78
      GME RemitTests/APITest.swift

78
GME RemitTests/APITest.swift

@ -188,98 +188,26 @@ class APITest: XCTestCase {
}
func testDomeRemitStart() {
let expt = expectation(description: "testDomeRemitStart")
let service = DomesticRemitService()
service.fetchInformation(
success: {
print($0)
expt.fulfill()
},
failure: {
expt.fulfill()
XCTAssert(false, $0.localizedDescription)
})
wait(for: [expt], timeout: 5.0)
}
func testRecentHistories() {
let expt = expectation(description: "testRecentHistories")
let service = RecentHistoriesService()
service.fetchHistories(
success: {
print($0)
expt.fulfill()
},
failure: {
expt.fulfill()
XCTAssert(false, $0.localizedDescription)
})
wait(for: [expt], timeout: 5.0)
}
func testGetName() {
let expt = expectation(description: "testGetName")
let service = DomesticRemitService()
service.getRecipientName(
account: "",
bankCode: "",
success: {
print($0)
expt.fulfill()
},
failure: {
expt.fulfill()
XCTAssert(false, $0.localizedDescription)
}
)
wait(for: [expt], timeout: 5.0)
}
func testFetchBalance() {
let expt = expectation(description: "testFetchBalance")
let service = DomesticRemitService()
service.fetchBalance(
type: "",
fintechUseNumber: "",
success: {
print($0)
expt.fulfill()
},
failure: {
expt.fulfill()
XCTAssert(false, $0.localizedDescription)
}
)
wait(for: [expt], timeout: 5.0)
}
func testDomesticTransactionHistories() {
let expt = expectation(description: "testDomesticTransactionHistories")
let service = TransactionHistoryService()
service.fetchDomesticTransactionHistory(
from: "",
to: "",
success: {
print($0)
expt.fulfill()
},
failure: {
expt.fulfill()
XCTAssert(false, $0.localizedDescription)
}
)
wait(for: [expt], timeout: 5.0)
}
func testDomesticReceipt() {
}
func testLoadFormKYC() {

Loading…
Cancel
Save