parent
a42ef55cb0
commit
fa49e3e152
|
@ -1,7 +1,6 @@
|
||||||
package info.nightscout.androidaps.interaction.utils
|
package info.nightscout.androidaps.interaction.utils
|
||||||
|
|
||||||
import com.google.common.truth.Truth.assertThat
|
import com.google.common.truth.Truth.assertThat
|
||||||
import org.junit.Assert
|
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
|
|
||||||
class PairTest {
|
class PairTest {
|
||||||
|
@ -19,14 +18,14 @@ class PairTest {
|
||||||
val no4: Pair<*, *> = Pair.create(12, 345L)
|
val no4: Pair<*, *> = Pair.create(12, 345L)
|
||||||
|
|
||||||
// THEN
|
// THEN
|
||||||
Assert.assertNotEquals(left, right)
|
assertThat(right).isNotEqualTo(left)
|
||||||
Assert.assertEquals(left, another)
|
assertThat(another).isEqualTo(left)
|
||||||
Assert.assertNotEquals(left, samePos1)
|
assertThat(samePos1).isNotEqualTo(left)
|
||||||
Assert.assertNotEquals(left, samePos2)
|
assertThat(samePos2).isNotEqualTo(left)
|
||||||
Assert.assertNotEquals(no1, no2)
|
assertThat(no2).isNotEqualTo(no1)
|
||||||
Assert.assertNotEquals(no1, no3)
|
assertThat(no3).isNotEqualTo(no1)
|
||||||
Assert.assertEquals(no1, no4)
|
assertThat(no4).isEqualTo(no1)
|
||||||
Assert.assertNotEquals("aa bbb", left.toString())
|
assertThat(left.toString()).isNotEqualTo("aa bbb")
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test fun pairHashTest() {
|
@Test fun pairHashTest() {
|
||||||
|
|
Loading…
Reference in a new issue