diff options
author | Simon Pepping <spepping@apache.org> | 2010-11-11 09:48:24 +0000 |
---|---|---|
committer | Simon Pepping <spepping@apache.org> | 2010-11-11 09:48:24 +0000 |
commit | 1939c00e198dd9c45bc5847dd58f27485372934e (patch) | |
tree | 383c85f27f9c72268b9175a5ea7436da9451bfe3 /test/java | |
parent | 353cb3efa6ada2033a43eef693c6beabd2d9c3bf (diff) | |
download | xmlgraphics-fop-1939c00e198dd9c45bc5847dd58f27485372934e.tar.gz xmlgraphics-fop-1939c00e198dd9c45bc5847dd58f27485372934e.zip |
Applied patch 50240 by Mehdi Houshmand with changes: Java source and
target changed to 1.5. EncodingMode changed from class -> enum.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1033859 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java')
-rw-r--r-- | test/java/org/apache/fop/fonts/EncodingModeTest.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/java/org/apache/fop/fonts/EncodingModeTest.java b/test/java/org/apache/fop/fonts/EncodingModeTest.java new file mode 100644 index 000000000..d291f4c0b --- /dev/null +++ b/test/java/org/apache/fop/fonts/EncodingModeTest.java @@ -0,0 +1,17 @@ +package org.apache.fop.fonts; + +import junit.framework.TestCase; + +public class EncodingModeTest extends TestCase { + public void testGetName() { + assertEquals("auto", EncodingMode.AUTO.getName()); + assertEquals("single-byte", EncodingMode.SINGLE_BYTE.getName()); + assertEquals("cid", EncodingMode.CID.getName()); + } + + public void testGetValue() { + assertEquals(EncodingMode.AUTO, EncodingMode.getEncodingMode("auto")); + assertEquals(EncodingMode.SINGLE_BYTE, EncodingMode.getEncodingMode("single-byte")); + assertEquals(EncodingMode.CID, EncodingMode.getEncodingMode("cid")); + } +} |