Setting up the test data

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 = "[email protected]"
createPersonRequest.orgId = "123"
val uuid = UUID.randomUUID().toString()
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset