Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java |
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java |
index 6e6ecd02273ee306517583259c6e8ff060d721cc..9fe3cbaeb9e77ae32a25086e2ba8aa03624327eb 100644 |
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java |
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java |
@@ -19,6 +19,7 @@ package org.adblockplus.libadblockplus.tests; |
import org.adblockplus.libadblockplus.FilterEngine; |
import org.adblockplus.libadblockplus.LazyWebRequest; |
+import org.adblockplus.libadblockplus.WebRequest; |
public abstract class FilterEngineGenericTest extends BaseJsTest |
{ |
@@ -28,9 +29,12 @@ public abstract class FilterEngineGenericTest extends BaseJsTest |
protected void setUp() throws Exception |
{ |
super.setUp(); |
- |
- jsEngine.setWebRequest(new LazyWebRequest()); |
- |
filterEngine = new FilterEngine(jsEngine); |
} |
+ |
+ @Override |
+ protected WebRequest createWebRequest() |
+ { |
+ return new LazyWebRequest(); |
+ } |
} |