You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2012/06/26 16:54:34 UTC
svn commit: r1354043 -
/db/torque/torque4/trunk/torque-generator/src/test/java/org/apache/torque/generator/control/OutputEncodingTest.java
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