aboutsummaryrefslogtreecommitdiffstats
path: root/test/java/org/apache/fop/fonts/EncodingModeTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/java/org/apache/fop/fonts/EncodingModeTest.java')
-rw-r--r--test/java/org/apache/fop/fonts/EncodingModeTest.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/java/org/apache/fop/fonts/EncodingModeTest.java b/test/java/org/apache/fop/fonts/EncodingModeTest.java
index 4e81c46d6..310916a04 100644
--- a/test/java/org/apache/fop/fonts/EncodingModeTest.java
+++ b/test/java/org/apache/fop/fonts/EncodingModeTest.java
@@ -19,15 +19,20 @@
package org.apache.fop.fonts;
-import junit.framework.TestCase;
+import static org.junit.Assert.assertEquals;
-public class EncodingModeTest extends TestCase {
+import org.junit.Test;
+
+public class EncodingModeTest {
+
+ @Test
public void testGetName() {
assertEquals("auto", EncodingMode.AUTO.getName());
assertEquals("single-byte", EncodingMode.SINGLE_BYTE.getName());
assertEquals("cid", EncodingMode.CID.getName());
}
+ @Test
public void testGetValue() {
assertEquals(EncodingMode.AUTO, EncodingMode.getEncodingMode("auto"));
assertEquals(EncodingMode.SINGLE_BYTE, EncodingMode.getEncodingMode("single-byte"));