aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/src/com/android/tv/FeaturesTest.java
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-10-09 19:19:21 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-10-09 19:19:21 +0000
commit411c4a576a92253a386784dddb646a2671b5d6f9 (patch)
treed31e2adc1f9cce4f27ca07d30bee921032e33a3c /tests/unit/src/com/android/tv/FeaturesTest.java
parentbc7f430decab0bc34a533811efe457d4615f28aa (diff)
parentbb2e798ef4d546dd54cd9e95796403062b860c15 (diff)
downloadTV-411c4a576a92253a386784dddb646a2671b5d6f9.tar.gz
Change-Id: I06099c50eb5f4c5791fab1e6055cca20fb367c6d
Diffstat (limited to 'tests/unit/src/com/android/tv/FeaturesTest.java')
-rw-r--r--tests/unit/src/com/android/tv/FeaturesTest.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/unit/src/com/android/tv/FeaturesTest.java b/tests/unit/src/com/android/tv/FeaturesTest.java
index 644c4248..9d61e757 100644
--- a/tests/unit/src/com/android/tv/FeaturesTest.java
+++ b/tests/unit/src/com/android/tv/FeaturesTest.java
@@ -16,19 +16,21 @@
package com.android.tv;
+import static org.junit.Assert.assertFalse;
+
import android.support.test.filters.SmallTest;
-import junit.framework.TestCase;
+import org.junit.Test;
/**
* Test for features.
*/
@SmallTest
-public class FeaturesTest extends TestCase {
-
+public class FeaturesTest {
+ @Test
public void testPropertyFeatureKeyLength() {
// This forces the class to be loaded and verifies all PropertyFeature key lengths.
// If any keys are too long the test will fail to load.
- assertEquals(false, Features.TEST_FEATURE.isEnabled(null));
+ assertFalse(Features.TEST_FEATURE.isEnabled(null));
}
}