From 3ebd7dcdb82c77c64f95f38355529080e58e32f9 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 12 Mar 2019 20:03:41 +0100 Subject: [PATCH] AuthRequestTest 2 --- .../plugins/general/smsCommunicator/AuthRequestTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/test/java/info/nightscout/androidaps/plugins/general/smsCommunicator/AuthRequestTest.java b/app/src/test/java/info/nightscout/androidaps/plugins/general/smsCommunicator/AuthRequestTest.java index f5d2b6b56d..dd41f9873a 100644 --- a/app/src/test/java/info/nightscout/androidaps/plugins/general/smsCommunicator/AuthRequestTest.java +++ b/app/src/test/java/info/nightscout/androidaps/plugins/general/smsCommunicator/AuthRequestTest.java @@ -60,6 +60,10 @@ public class AuthRequestTest { actionCalled = false; authRequest.action("ABC"); Assert.assertTrue(actionCalled); + // second time action should not be called + actionCalled = false; + authRequest.action("ABC"); + Assert.assertFalse(actionCalled); // test timed out message long now = 10000;