Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AndroidWebRequestResourceWrapperTest.java |
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AndroidWebRequestResourceWrapperTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AndroidWebRequestResourceWrapperTest.java |
index 25b70d7055ff3b2804b9ffc021407e709fad534a..b65b178323a9219005bd3e4dd9ba5363755449a0 100644 |
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AndroidWebRequestResourceWrapperTest.java |
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AndroidWebRequestResourceWrapperTest.java |
@@ -22,6 +22,7 @@ import android.os.SystemClock; |
import org.adblockplus.libadblockplus.HeaderEntry; |
import org.adblockplus.libadblockplus.ServerResponse; |
import org.adblockplus.libadblockplus.Subscription; |
+import org.adblockplus.libadblockplus.WebRequest; |
import org.adblockplus.libadblockplus.android.AndroidWebRequest; |
import org.adblockplus.libadblockplus.android.AndroidWebRequestResourceWrapper; |
import org.adblockplus.libadblockplus.android.Utils; |
@@ -105,7 +106,6 @@ public class AndroidWebRequestResourceWrapperTest extends FilterEngineGenericTes |
@Override |
protected void setUp() throws Exception |
{ |
- super.setUp(); |
request = new TestRequest(); |
preloadMap = new HashMap<String, Integer>(); |
@@ -115,7 +115,13 @@ public class AndroidWebRequestResourceWrapperTest extends FilterEngineGenericTes |
wrapperListener = new TestWrapperListener(); |
wrapper.setListener(wrapperListener); |
- jsEngine.setWebRequest(wrapper); |
+ super.setUp(); |
+ } |
+ |
+ @Override |
+ protected WebRequest createWebRequest() |
+ { |
+ return wrapper; |
} |
private void updateSubscriptions() |