From ee7a697b546b0a71b43e3f0ce19455ecc1e5b57a Mon Sep 17 00:00:00 2001 From: erilong Date: Thu, 29 Nov 2007 18:54:48 +0000 Subject: [PATCH] use explicit types for picky drivers (postgres) --- .../java/org/jumpmind/symmetric/IntegrationTest.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/symmetric/src/test/java/org/jumpmind/symmetric/IntegrationTest.java b/symmetric/src/test/java/org/jumpmind/symmetric/IntegrationTest.java index aa0fc67750..d5940bd99e 100644 --- a/symmetric/src/test/java/org/jumpmind/symmetric/IntegrationTest.java +++ b/symmetric/src/test/java/org/jumpmind/symmetric/IntegrationTest.java @@ -22,12 +22,14 @@ package org.jumpmind.symmetric; import java.sql.Timestamp; +import java.text.ParseException; import java.util.Date; import java.util.List; import java.util.Map; import javax.sql.DataSource; +import org.apache.commons.lang.time.DateUtils; import org.jumpmind.symmetric.common.Constants; import org.jumpmind.symmetric.common.TestConstants; import org.jumpmind.symmetric.model.OutgoingBatch; @@ -109,15 +111,16 @@ public void testSyncToRoot() { clientJdbcTemplate.update(insertOrderHeaderSql, new Object[] { "10", "100", null, "2007-01-03" }); clientJdbcTemplate.update(insertOrderDetailSql, new Object[] { "10", - "1", "STK", "110000065", "3", "3.33" }); + 1, "STK", "110000065", 3, "3.33" }); clientEngine.push(); } @Test(groups = "integration") - public void testSyncInsertCondition() { + public void testSyncInsertCondition() throws ParseException { // Should not sync when status = null + Date date = DateUtils.parseDate("2007-01-02", new String [] { "yyyy-MM-dd" }); rootJdbcTemplate.update(insertOrderHeaderSql, new Object[] { "11", - "100", null, "2007-01-02" }); + 100, null, date }); clientEngine.pull(); IOutgoingBatchService outgoingBatchService = (IOutgoingBatchService) rootEngine @@ -134,7 +137,7 @@ public void testSyncInsertCondition() { // Should sync when status = C rootJdbcTemplate.update(insertOrderHeaderSql, new Object[] { "12", - "100", "C", "2007-01-02" }); + 100, "C", date }); clientEngine.pull(); Assert.assertEquals(clientJdbcTemplate.queryForList( selectOrderHeaderSql, new Object[] { "12" }).size(), 1,