parent
f8b0404cc3
commit
11fa9f6539
1 changed files with 4 additions and 4 deletions
|
@ -1,18 +1,18 @@
|
|||
package app.aaps.plugins.automation.elements
|
||||
|
||||
import app.aaps.plugins.automation.triggers.TriggerTestBase
|
||||
import org.junit.jupiter.api.Assertions
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import org.junit.jupiter.api.Test
|
||||
|
||||
class ComparatorExistsTest : TriggerTestBase() {
|
||||
|
||||
@Test fun labelsTest() {
|
||||
Assertions.assertEquals(2, ComparatorExists.Compare.labels(rh).size)
|
||||
assertThat(ComparatorExists.Compare.labels(rh)).hasSize(2)
|
||||
}
|
||||
|
||||
@Test fun setValueTest() {
|
||||
val c = ComparatorExists(rh)
|
||||
c.value = ComparatorExists.Compare.NOT_EXISTS
|
||||
Assertions.assertEquals(ComparatorExists.Compare.NOT_EXISTS, c.value)
|
||||
assertThat(c.value).isEqualTo(ComparatorExists.Compare.NOT_EXISTS)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue