Skip to content

Commit

Permalink
Assert that the new device id is different
Browse files Browse the repository at this point in the history
  • Loading branch information
luismfonseca committed Dec 19, 2018
1 parent 22feeaa commit 75c91f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4
import com.pusher.pushnotifications.PushNotificationsInstance
import com.pusher.pushnotifications.internal.DeviceStateStore
import org.hamcrest.CoreMatchers.`is`
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.CoreMatchers.*
import org.junit.After
import org.junit.AfterClass

Expand Down Expand Up @@ -124,5 +123,6 @@ class StopTest {
val newStoredDeviceId = getStoredDeviceId()
assertNotNull(newStoredDeviceId)
assertNotNull(errolClient.getDevice(newStoredDeviceId!!))
assertThat(newStoredDeviceId, `is`(not(equalTo(storedDeviceId))))
}
}

0 comments on commit 75c91f8

Please sign in to comment.