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

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

Issue 29347192: Issue 4181 - Fix FilterEngineTest tests (Closed)
Patch Set: Created July 1, 2016, 1:41 p.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/FilterEngineTest.java
===================================================================
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java
@@ -12,17 +12,16 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
package org.adblockplus.libadblockplus.tests;
-import android.util.Log;
import org.adblockplus.libadblockplus.Filter;
import org.adblockplus.libadblockplus.FilterEngine;
import org.adblockplus.libadblockplus.MockFilterChangeCallback;
import org.adblockplus.libadblockplus.Subscription;
import org.junit.Test;
public class FilterEngineTest extends FilterEngineGenericTest
@@ -316,17 +315,17 @@
});
assertNotNull(match5);
assertEquals(Filter.Type.EXCEPTION, match5.getType());
}
@Test
public void testFirstRunFlag()
{
- assertFalse(filterEngine.isFirstRun());
+ assertTrue(filterEngine.isFirstRun());
}
@Test
public void testSetRemoveFilterChangeCallback()
{
MockFilterChangeCallback mockFilterChangeCallback = new MockFilterChangeCallback(0);
filterEngine.setFilterChangeCallback(mockFilterChangeCallback);

Powered by Google App Engine
This is Rietveld