November 2018
Intermediate to advanced
388 pages
9h 5m
English
In the createPersonTest() function, we create the request object of the Person type and initialize this with some test data values, shown as follows:
@Test fun createPersonTest() { val createPersonRequest = mock(Person::class.java) createPersonRequest.name = "test user" createPersonRequest.loginId = "user@some.com" createPersonRequest.orgId = "123" val uuid = UUID.randomUUID().toString() }
Read now
Unlock full access