Author: shawkins
Date: 2011-05-16 09:40:43 -0400 (Mon, 16 May 2011)
New Revision: 3176
Modified:
trunk/connectors/translator-jdbc/src/test/java/org/teiid/translator/jdbc/teradata/TestTeradataTranslator.java
Log:
TEIID-1495 fix for unit test
Modified:
trunk/connectors/translator-jdbc/src/test/java/org/teiid/translator/jdbc/teradata/TestTeradataTranslator.java
===================================================================
---
trunk/connectors/translator-jdbc/src/test/java/org/teiid/translator/jdbc/teradata/TestTeradataTranslator.java 2011-05-16
13:39:57 UTC (rev 3175)
+++
trunk/connectors/translator-jdbc/src/test/java/org/teiid/translator/jdbc/teradata/TestTeradataTranslator.java 2011-05-16
13:40:43 UTC (rev 3176)
@@ -21,7 +21,7 @@
*/
package org.teiid.translator.jdbc.teradata;
-import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.*;
import java.sql.Date;
import java.sql.Timestamp;
@@ -35,6 +35,7 @@
import org.teiid.language.Function;
import org.teiid.language.In;
import org.teiid.language.LanguageFactory;
+import org.teiid.query.unittest.TimestampUtil;
import org.teiid.translator.TranslatorException;
import org.teiid.translator.TypeFacility;
import org.teiid.translator.jdbc.SQLConversionVisitor;
@@ -76,7 +77,7 @@
}
@Test public void testTimestampToTime() throws Exception {
- helpTest(LANG_FACTORY.createLiteral(new Timestamp(1304604994220L), Timestamp.class),
"time", "cast(cast('2011-05-05 09:16:34.22' AS TIMESTAMP(6)) AS
TIME)");
+ helpTest(LANG_FACTORY.createLiteral(TimestampUtil.createTimestamp(111, 4, 5, 9, 16,
34, 220000000), Timestamp.class), "time", "cast(cast('2011-05-05
09:16:34.22' AS TIMESTAMP(6)) AS TIME)");
}
@Test public void testIntegerToString() throws Exception {