From 6042adbca520bcb209f30679609f6f832519b0e5 Mon Sep 17 00:00:00 2001 From: Philoul Date: Tue, 23 Nov 2021 00:19:31 +0100 Subject: [PATCH] Remove unused import and simplify a bit more --- .../java/info/nightscout/androidaps/queue/QueueThreadTest.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/test/java/info/nightscout/androidaps/queue/QueueThreadTest.kt b/app/src/test/java/info/nightscout/androidaps/queue/QueueThreadTest.kt index 6f45105592..6281c576a3 100644 --- a/app/src/test/java/info/nightscout/androidaps/queue/QueueThreadTest.kt +++ b/app/src/test/java/info/nightscout/androidaps/queue/QueueThreadTest.kt @@ -25,7 +25,6 @@ import org.junit.Test import org.mockito.ArgumentMatchers import org.mockito.Mock import org.mockito.Mockito -import org.mockito.invocation.InvocationOnMock class QueueThreadTest : TestBaseWithProfile() { @@ -79,7 +78,7 @@ class QueueThreadTest : TestBaseWithProfile() { val percentageConstraint = Constraint(0) Mockito.`when`(constraintChecker.applyBasalPercentConstraints(anyObject(), anyObject())) .thenReturn(percentageConstraint) - Mockito.`when`(rh.gs(ArgumentMatchers.eq(R.string.temp_basal_absolute), ArgumentMatchers.anyDouble(), ArgumentMatchers.anyInt())).thenReturn("TEMP BASAL %1\$.2f U/h %2\$d min") + Mockito.`when`(rh.gs(ArgumentMatchers.eq(R.string.temp_basal_absolute), anyObject(), anyObject())).thenReturn("TEMP BASAL %1\$.2f U/h %2\$d min") sut = QueueThread(commandQueue, context, aapsLogger, rxBus, activePlugin, rh, sp) }