summaryrefslogtreecommitdiff
path: root/same/src/test/java/com
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-23 14:59:44 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-23 14:59:44 +0100
commitc4425e949d1942d7519046d276126dfab284b658 (patch)
treef36c0aeb40073317c7b12aa84ff92dcc15b045cf /same/src/test/java/com
parentb325d4005793d5f147b4eb539ae7f4fa5e5fb813 (diff)
Make it possible to create "fake" clients on Android.
Extract interface from Client.ClientInterface in order to override it for Android, while still using the VariableFactory code as-is.
Diffstat (limited to 'same/src/test/java/com')
-rw-r--r--same/src/test/java/com/orbekk/same/VariableFactoryTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/same/src/test/java/com/orbekk/same/VariableFactoryTest.java b/same/src/test/java/com/orbekk/same/VariableFactoryTest.java
index a6efa4b..ed0a962 100644
--- a/same/src/test/java/com/orbekk/same/VariableFactoryTest.java
+++ b/same/src/test/java/com/orbekk/same/VariableFactoryTest.java
@@ -14,7 +14,7 @@ import org.junit.Before;
import org.junit.Test;
public class VariableFactoryTest {
- Client.ClientInterface client;
+ Client.ClientInterfaceImpl client;
VariableFactory vf;
State sampleState;
@@ -24,7 +24,7 @@ public class VariableFactoryTest {
@Before
public void setUp() {
- client = mock(Client.ClientInterface.class);
+ client = mock(Client.ClientInterfaceImpl.class);
vf = new VariableFactory(client);
initializeSampleState();
when(client.getState()).thenReturn(sampleState);