Rewrites InputProfileNameTest with matchers

Issue #2745
This commit is contained in:
Ryan Haining 2023-10-04 21:09:20 -07:00
parent 6454616c68
commit 2603ede988

View file

@ -1,15 +1,15 @@
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 InputProfileNameTest : TriggerTestBase() {
@Test fun setValue() {
val inputProfileName = InputProfileName(rh, activePlugin, "Test")
Assertions.assertEquals("Test", inputProfileName.value)
assertThat(inputProfileName.value).isEqualTo("Test")
inputProfileName.value = "Test2"
Assertions.assertEquals("Test2", inputProfileName.value)
assertThat(inputProfileName.value).isEqualTo("Test2")
}
}