Author: jdoyle
Date: 2009-08-21 15:44:27 -0400 (Fri, 21 Aug 2009)
New Revision: 1268
Modified:
trunk/connectors/connector-salesforce/src/test/java/com/metamatrix/connector/salesforce/execution/visitors/TestVisitors.java
Log:
Fixing incorrect test assertion.
Modified:
trunk/connectors/connector-salesforce/src/test/java/com/metamatrix/connector/salesforce/execution/visitors/TestVisitors.java
===================================================================
---
trunk/connectors/connector-salesforce/src/test/java/com/metamatrix/connector/salesforce/execution/visitors/TestVisitors.java 2009-08-21
18:59:08 UTC (rev 1267)
+++
trunk/connectors/connector-salesforce/src/test/java/com/metamatrix/connector/salesforce/execution/visitors/TestVisitors.java 2009-08-21
19:44:27 UTC (rev 1268)
@@ -116,7 +116,7 @@
IQuery command = (IQuery)translationUtility.parseCommand("select * from Account
where not (Name = 'foo' and Stuff = 'bar')"); //$NON-NLS-1$
SelectVisitor visitor = new SelectVisitor(translationUtility.createRuntimeMetadata());
visitor.visit(command);
- assertEquals("SELECT Account.id, Account.AccountName, Account.Stuff,
Account.Industry FROM Account WHERE NOT ((Account.AccountName = 'foo') AND
(Account.Stuff = 'bar'))", visitor.getQuery().toString().trim());
//$NON-NLS-1$
+ assertEquals("SELECT Account.id, Account.AccountName, Account.Stuff,
Account.Industry FROM Account WHERE (Account.AccountName != 'foo') OR
(Account.Stuff != 'bar')", visitor.getQuery().toString().trim());
//$NON-NLS-1$
}
@Test public void testCountStart() throws Exception {
Show replies by thread