Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vihangpatil committed Nov 5, 2019
1 parent c6f429d commit 3dcca56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class KYCResourceTest {
firstName = "Ole",
lastName = "Nordmann",
dob = "1988-01-23",
expiry = null,
rejectReason = id)
val scanInformation = ScanInformation(
scanId = "123456",
Expand All @@ -134,7 +135,7 @@ class KYCResourceTest {
if (id != null) {
val result = """{"scanId":"123456","countryCode":"sg","status":"REJECTED","""+
""""scanResult":{"vendorScanReference":"7890123","verificationStatus":"APPROVED_VERIFIED","time":123456,"type":"PASSPORT","country":"NORWAY","firstName":"Ole","""+
""""lastName":"Nordmann","dob":"1988-01-23","rejectReason":{"similarity":"NO_MATCH","validity":true,"reason":null,"handwrittenNoteMatches":null}}}"""
""""lastName":"Nordmann","dob":"1988-01-23","expiry":null,"rejectReason":{"similarity":"NO_MATCH","validity":true,"reason":null,"handwrittenNoteMatches":null}}}"""
Assertions.assertThat(objectMapper.writeValueAsString(scanInformation)).isEqualTo(result)
}
Assertions.assertThat(id).isNotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class Neo4jStoreTest {
customer = CUSTOMER, referredBy = "blah")
.fold({
assertEquals(
expected = "Failed to create REFERRED - blah -> ${CUSTOMER.id}",
expected = "Customer - blah not found.",
actual = it.message)
},
{ fail("Created customer in spite of invalid 'referred by'") })
Expand Down Expand Up @@ -558,7 +558,8 @@ class Neo4jStoreTest {
country = "NOR",
firstName = "Test User",
lastName = "Family",
dob = "1980/10/10",
dob = "1980-10-10",
expiry = null,
rejectReason = null
)
)
Expand Down Expand Up @@ -608,7 +609,8 @@ class Neo4jStoreTest {
country = "NOR",
firstName = "Test User",
lastName = "Family",
dob = "1980/10/10",
dob = "1980-10-10",
expiry = null,
rejectReason = null
)
)
Expand Down

0 comments on commit 3dcca56

Please sign in to comment.