parent
8a4607549e
commit
eb3e237239
1 changed files with 5 additions and 5 deletions
|
@ -16,9 +16,9 @@ import app.aaps.plugins.automation.triggers.Trigger
|
||||||
import app.aaps.plugins.automation.ui.TimerUtil
|
import app.aaps.plugins.automation.ui.TimerUtil
|
||||||
import app.aaps.shared.impl.utils.DateUtilImpl
|
import app.aaps.shared.impl.utils.DateUtilImpl
|
||||||
import app.aaps.shared.tests.TestBase
|
import app.aaps.shared.tests.TestBase
|
||||||
|
import com.google.common.truth.Truth.assertThat
|
||||||
import dagger.android.AndroidInjector
|
import dagger.android.AndroidInjector
|
||||||
import dagger.android.HasAndroidInjector
|
import dagger.android.HasAndroidInjector
|
||||||
import org.junit.jupiter.api.Assertions
|
|
||||||
import org.junit.jupiter.api.BeforeEach
|
import org.junit.jupiter.api.BeforeEach
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
import org.mockito.ArgumentMatchers.anyInt
|
import org.mockito.ArgumentMatchers.anyInt
|
||||||
|
@ -63,10 +63,10 @@ class BolusTimerImplTest : TestBase() {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun doTest() {
|
fun doTest() {
|
||||||
Assertions.assertEquals(0, automationPlugin.size())
|
assertThat(automationPlugin.size()).isEqualTo(0)
|
||||||
automationPlugin.scheduleAutomationEventBolusReminder()
|
automationPlugin.scheduleAutomationEventBolusReminder()
|
||||||
Assertions.assertEquals(1, automationPlugin.size())
|
assertThat(automationPlugin.size()).isEqualTo(1)
|
||||||
automationPlugin.removeAutomationEventBolusReminder()
|
automationPlugin.removeAutomationEventBolusReminder()
|
||||||
Assertions.assertEquals(0, automationPlugin.size())
|
assertThat(automationPlugin.size()).isEqualTo(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue