Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: components/policy/android/junit/src/org/chromium/policy/test/annotations/PoliciesTest.java

Issue 2076783004: Changes to update Junit and Mockito. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding myself to junit OWNERS Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/policy/android/junit/src/org/chromium/policy/test/annotations/PoliciesTest.java
diff --git a/components/policy/android/junit/src/org/chromium/policy/test/annotations/PoliciesTest.java b/components/policy/android/junit/src/org/chromium/policy/test/annotations/PoliciesTest.java
index 7bc08e44940a52287409e074914c7a8d7b0c5082..9cc56febf2c387adb84ea43237667240d33978ef 100644
--- a/components/policy/android/junit/src/org/chromium/policy/test/annotations/PoliciesTest.java
+++ b/components/policy/android/junit/src/org/chromium/policy/test/annotations/PoliciesTest.java
@@ -4,6 +4,7 @@
package org.chromium.policy.test.annotations;
+import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
@@ -52,7 +53,7 @@ public class PoliciesTest {
method = SomeClass.class.getDeclaredMethod("someMethodThatDuplicates");
Map<String, PolicyData> policies = Policies.getPolicies(method);
assertThat(policies.size(), is(1));
- assertThat(policies.get("Ni"), is(PolicyData.Str.class));
+ assertThat(policies.get("Ni"), is(instanceOf(PolicyData.Str.class)));
// Annotations can be removed
method = SomeClass.class.getDeclaredMethod("someMethodThatTilRecentlyHadNi");

Powered by Google App Engine
This is Rietveld 408576698