Revision 51115
Added by Alessia Bardi about 6 years ago
MongoCqlTranslatorTest.java | ||
---|---|---|
99 | 99 |
assertEquals(expected, o); |
100 | 100 |
} |
101 | 101 |
|
102 |
@Test |
|
103 |
public void testLongQuery() throws IOException, CQLParseException { |
|
104 |
String q = "oaftype=\"result\" AND resulttypeid=\"publication\" AND (set=\"All_Ireland_Public_Health_Repository\" OR set=\"ARROW_DIT\" OR set=\"Cork_Open_Research_Archive\" OR set=\"DCU_Online_Research_Access_Service\" OR set=\"e-publications_RCSI\" OR set=\"Marine_Institute_Open_Access_Repository__OAR\" OR set=\"Maynooth_University_ePrints___eTheses_Archive\" OR set=\"Research_Repository_UCD\" OR set=\"STOR\" OR set=\"Trinity_s_Access_to_Research_Archive\" OR set=\"UCD_Digital_Library\" OR set=\"University_of_Limerick_Institutional_Repository\" OR set=\"Waterford_Institute_of_Technology_Repository\")"; |
|
105 |
Bson o = tr.toMongo(q); |
|
106 |
log.info(o); |
|
107 |
} |
|
108 |
|
|
102 | 109 |
@Ignore |
103 | 110 |
@Test |
104 | 111 |
public void testParseWfLoggerQuery() throws IOException, CQLParseException { |
Also available in: Unified diff
using apache commons-lang3