@@ -22,9 +22,9 @@ class PetApiTest : ShouldSpec() {
22
22
val pet = Pet (
23
23
id = petId,
24
24
name = " kotlin client test" ,
25
- photoUrls = arrayOf (" http://test_kotlin_unit_test.com" ),
25
+ photoUrls = listOf (" http://test_kotlin_unit_test.com" ),
26
26
category = Category (petId, " test kotlin category" ),
27
- tags = arrayOf (Tag (petId, " test kotlin tag" ))
27
+ tags = listOf (Tag (petId, " test kotlin tag" ))
28
28
)
29
29
api.addPet(pet)
30
30
@@ -44,15 +44,15 @@ class PetApiTest : ShouldSpec() {
44
44
}
45
45
46
46
should(" find pet by status" ) {
47
- val result = api.findPetsByStatus(arrayOf (" available" ))
47
+ val result = api.findPetsByStatus(listOf (" available" ))
48
48
49
49
result.size.shouldBeGreaterThan(0 )
50
50
51
51
for (onePet in result) {
52
52
onePet.status.shouldBe(Pet .Status .available)
53
53
}
54
54
55
- val result2 = api.findPetsByStatus(arrayOf (" unknown_and_incorrect_status" ))
55
+ val result2 = api.findPetsByStatus(listOf (" unknown_and_incorrect_status" ))
56
56
57
57
result2.size.shouldBe(0 )
58
58
@@ -63,7 +63,7 @@ class PetApiTest : ShouldSpec() {
63
63
id = petId,
64
64
name = " kotlin client updatePet" ,
65
65
status = Pet .Status .pending,
66
- photoUrls = arrayOf (" http://test_kotlin_unit_test.com" )
66
+ photoUrls = listOf (" http://test_kotlin_unit_test.com" )
67
67
)
68
68
api.updatePet(pet)
69
69
0 commit comments