Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gloriacai01 committed Aug 28, 2024
1 parent 8d8d63a commit fecfca9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class ServoTest {
val extra =
Struct.newBuilder().putAllFields(mapOf("foo" to Value.newBuilder().setStringValue("bar").build())).build()
`when`(servo.getPosition(any(Struct::class.java) ?: Struct.getDefaultInstance())).thenReturn(80)
val pos = servo.getPosition()
verify(servo).getPosition()
val pos = servo.getPosition(extra)
verify(servo).getPosition(extra)
assertEquals(80, pos)

}
Expand Down

0 comments on commit fecfca9

Please sign in to comment.