Example #1
0
 /**
  * Test method for {@link org.melati.poem.dbms.Dbms# caseInsensitiveRegExpSQL(java.lang.String,
  * java.lang.String)}.
  */
 public void testCaseInsensitiveRegExpSQLBlank() {
   String expected = " ILIKE '%%'";
   String actual = it.caseInsensitiveRegExpSQL("", "");
   assertEquals(expected, actual);
 }
Example #2
0
 /**
  * Test method for {@link org.melati.poem.dbms.Dbms# caseInsensitiveRegExpSQL(java.lang.String,
  * java.lang.String)}.
  */
 public void testCaseInsensitiveRegExpSQLQuoted() {
   String expected = "a ILIKE '%b%'";
   String actual = it.caseInsensitiveRegExpSQL("a", "\"b\"");
   assertEquals(expected, actual);
 }