aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/src/com/android/tv/FeaturesTest.java
diff options
context:
space:
mode:
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));
}
}