aboutsummaryrefslogtreecommitdiff
path: root/gson/src/test/java/com/google/gson/functional/EnumWithObfuscatedTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'gson/src/test/java/com/google/gson/functional/EnumWithObfuscatedTest.java')
-rw-r--r--gson/src/test/java/com/google/gson/functional/EnumWithObfuscatedTest.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/gson/src/test/java/com/google/gson/functional/EnumWithObfuscatedTest.java b/gson/src/test/java/com/google/gson/functional/EnumWithObfuscatedTest.java
index 080b81fa..373f0071 100644
--- a/gson/src/test/java/com/google/gson/functional/EnumWithObfuscatedTest.java
+++ b/gson/src/test/java/com/google/gson/functional/EnumWithObfuscatedTest.java
@@ -16,22 +16,24 @@
package com.google.gson.functional;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
+
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
-
-import junit.framework.TestCase;
+import org.junit.Before;
+import org.junit.Test;
/**
* Functional tests for enums with Proguard.
*
* @author Young Cha
*/
-public class EnumWithObfuscatedTest extends TestCase {
+public class EnumWithObfuscatedTest {
private Gson gson;
- @Override
- protected void setUp() throws Exception {
- super.setUp();
+ @Before
+ public void setUp() throws Exception {
gson = new Gson();
}
@@ -43,6 +45,7 @@ public class EnumWithObfuscatedTest extends TestCase {
FEMALE
}
+ @Test
public void testEnumClassWithObfuscated() {
for (Gender enumConstant: Gender.class.getEnumConstants()) {
try {