Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
fix test after pull in patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Apr 29, 2013
1 parent 88a03a8 commit e4a412b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -31,7 +31,7 @@ public class FilterConstraintToQueryTest
public static final String TARGET_CONTENT_CASE_INSENSITIVE = "(lower(content0) like :searchString or lower(content1) like :searchString or lower(content2) like :searchString or lower(content3) like :searchString or lower(content4) like :searchString or lower(content5) like :searchString)";
public static final String SOURCE_CONTENT_CASE_SENSITIVE = "((tf.content0) like :searchString or (tf.content1) like :searchString or (tf.content2) like :searchString or (tf.content3) like :searchString or (tf.content4) like :searchString or (tf.content5) like :searchString)";
public static final String TARGET_CONTENT_CASE_SENSITIVE = "((content0) like :searchString or (content1) like :searchString or (content2) like :searchString or (content3) like :searchString or (content4) like :searchString or (content5) like :searchString)";
public static final String QUERY_BEFORE_WHERE = "SELECT distinct tf FROM HTextFlow tf LEFT JOIN tf.targets tfts WITH index(tfts)=:locale ";
public static final String QUERY_BEFORE_WHERE = "SELECT distinct tf FROM HTextFlow tf LEFT JOIN tf.targets tfts WITH tfts.index=:locale ";
@Mock
private Query query;
@Mock
Expand Down Expand Up @@ -181,7 +181,7 @@ public void testToHQLWithSearchAndStateCondition()

// @formatter:off
assertThat(result, Matchers.equalToIgnoringCase(
"SELECT distinct tf FROM HTextFlow tf LEFT JOIN tf.targets tfts WITH index(tfts)=:locale WHERE " +
"SELECT distinct tf FROM HTextFlow tf LEFT JOIN tf.targets tfts WITH tfts.index=:locale WHERE " +
"(tf.obsolete=0 AND tf.document.id=:docId AND " +
"(" +
SOURCE_CONTENT_CASE_INSENSITIVE + " OR EXISTS " +
Expand Down

0 comments on commit e4a412b

Please sign in to comment.