Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java

Issue 29344967: Issue 4031 - Implement tests for libadblockplus-android (Closed)
Patch Set: fix typo ".. file[s]" Created Sept. 15, 2016, 10:44 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/AdblockPlusException.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java
similarity index 60%
copy from libadblockplus-android/src/org/adblockplus/libadblockplus/AdblockPlusException.java
copy to libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java
index 7e655ba71e65c7a8bfbfe9a4fa9c6b30a385ba55..2a5c6e6a24a9d38eaf5ed473f304be74656ac632 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/AdblockPlusException.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java
@@ -15,24 +15,23 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-package org.adblockplus.libadblockplus;
+package org.adblockplus.libadblockplus.tests;
-public class AdblockPlusException extends RuntimeException
+import org.adblockplus.libadblockplus.FilterEngine;
+import org.adblockplus.libadblockplus.LazyWebRequest;
+
+public abstract class FilterEngineGenericTest extends BaseJsTest
{
- private static final long serialVersionUID = -8127654134450836743L;
+ protected FilterEngine filterEngine;
- public AdblockPlusException(final String message)
+ @Override
+ protected void setUp() throws Exception
{
- super(message);
- }
+ super.setUp();
- public AdblockPlusException(final String message, final Throwable throwable)
- {
- super(message, throwable);
- }
+ jsEngine.setWebRequest(new LazyWebRequest());
+ jsEngine.setDefaultLogSystem();
- public AdblockPlusException(final Throwable throwable)
- {
- super(throwable);
+ filterEngine = new FilterEngine(jsEngine);
}
}

Powered by Google App Engine
This is Rietveld