db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1354043 - /db/torque/torque4/trunk/torque-generator/src/test/java/org/apache/torque/generator/control/OutputEncodingTest.java
Date Tue, 26 Jun 2012 14:54:34 GMT
Author: tfischer
Date: Tue Jun 26 14:54:33 2012
New Revision: 1354043

URL: http://svn.apache.org/viewvc?rev=1354043&view=rev
Log:
Fix generator test for us-ascii default platform encoding

Modified:
    db/torque/torque4/trunk/torque-generator/src/test/java/org/apache/torque/generator/control/OutputEncodingTest.java

Modified: db/torque/torque4/trunk/torque-generator/src/test/java/org/apache/torque/generator/control/OutputEncodingTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/test/java/org/apache/torque/generator/control/OutputEncodingTest.java?rev=1354043&r1=1354042&r2=1354043&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/test/java/org/apache/torque/generator/control/OutputEncodingTest.java
(original)
+++ db/torque/torque4/trunk/torque-generator/src/test/java/org/apache/torque/generator/control/OutputEncodingTest.java
Tue Jun 26 14:54:33 2012
@@ -24,7 +24,6 @@ import static org.junit.Assert.assertTru
 
 import java.io.File;
 import java.io.IOException;
-import java.nio.charset.Charset;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -59,9 +58,11 @@ public class OutputEncodingTest extends 
         controller.run(unitDescriptors);
 
         assertTrue(targetDir.exists());
-        checkFile(
-                new File(targetDir, "defaultEncoding.txt"),
-                Charset.defaultCharset().displayName());
+        // We cannot check the default encoding file content because
+        // there are default charsets where the generated characters
+        // do not exist (e.G. US 7-bit ASCII)
+        // -> this will produce error. So we check only file existence.
+        assertTrue(new File(targetDir, "defaultEncoding.txt").exists());
         checkFile(
                 new File(targetDir, "iso-8859-1.txt"),
                 "iso-8859-1");



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message