Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Fix unit test naming
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt committed May 21, 2020
1 parent dd23122 commit 3e899cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions throw/src/test/java/GattTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class GattTest {
}

@Test
fun `readRemoteRssi throws IllegalStateException for non-GATT_SUCCESS response`() {
fun `readRemoteRssiOrThrow throws IllegalStateException for non-GATT_SUCCESS response`() {
val gatt = mockk<Gatt> {
coEvery { readRemoteRssi() } returns OnReadRemoteRssi(rssi = 0, status = GATT_FAILURE)
}
Expand All @@ -63,7 +63,7 @@ class GattTest {
}

@Test
fun `readRemoteRssi returns RSSI as Int for GATT_SUCCESS response`() {
fun `readRemoteRssiOrThrow returns RSSI as Int for GATT_SUCCESS response`() {
val gatt = mockk<Gatt> {
coEvery { readRemoteRssi() } returns OnReadRemoteRssi(rssi = 1, status = GATT_SUCCESS)
}
Expand Down Expand Up @@ -123,7 +123,7 @@ class GattTest {
}

@Test
fun `setCharacteristicNotification throws IllegalStateException for false return`() {
fun `setCharacteristicNotificationOrThrow throws IllegalStateException for false return`() {
val gatt = mockk<Gatt> {
coEvery { setCharacteristicNotification(any(), any()) } returns false
}
Expand Down

0 comments on commit 3e899cb

Please sign in to comment.