mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-24 21:07:26 +08:00
added support for in-operation
This commit is contained in:
parent
5e55664f89
commit
bee87d573d
@ -9,6 +9,7 @@ import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import java.io.StringReader;
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.apache.lucene.analysis.standard.StandardAnalyzer;
|
||||
import org.apache.lucene.document.Document;
|
||||
@ -294,6 +295,13 @@ public class LuceneSerializerTest {
|
||||
testQuery(title.between("Indiana", "Jurassib"), "title:[indiana TO jurassib]", 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void in() throws Exception {
|
||||
testQuery(title.in(Arrays.asList("Jurassic","Park")), "title:jurassic title:park", 1);
|
||||
testQuery(title.in("Jurassic","Park"), "title:jurassic title:park", 1);
|
||||
testQuery(title.eq("Jurassic").or(title.eq("Park")), "title:jurassic title:park", 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void fuzzy() throws Exception {
|
||||
@ -312,11 +320,6 @@ public class LuceneSerializerTest {
|
||||
fail("Not yet implemented!");
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void in() throws Exception {
|
||||
fail("Not yet implemented!");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void various() throws Exception{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user