From 52a61f56633d9f23c05bde6fe341955892a42950 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Thu, 10 Sep 2015 15:48:56 -0700 Subject: [PATCH] Fixed test --- tests/org/kde/kdeconnect/LanLinkTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/org/kde/kdeconnect/LanLinkTest.java b/tests/org/kde/kdeconnect/LanLinkTest.java index d3d94c9c..4ed03add 100644 --- a/tests/org/kde/kdeconnect/LanLinkTest.java +++ b/tests/org/kde/kdeconnect/LanLinkTest.java @@ -26,6 +26,7 @@ import android.util.Log; import org.apache.mina.core.future.WriteFuture; import org.apache.mina.core.session.IoSession; import org.json.JSONObject; +import org.kde.kdeconnect.Backends.BaseLink; import org.kde.kdeconnect.Backends.LanBackend.LanLink; import org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider; import org.mockito.Mockito; @@ -80,7 +81,7 @@ public class LanLinkTest extends AndroidTestCase { Mockito.when(writeFutureFailure.isDone()).thenReturn(true); Mockito.when(writeFutureFailure.getException()).thenReturn(new RuntimeException()); - lanLink = new LanLink(session, "testDevice", linkProvider); + lanLink = new LanLink(session, "testDevice", linkProvider, BaseLink.ConnectionStarted.Remotely); } @Override